/* ==========================================================================
   JUSTTICKETS – VERSIONE Ottimizzata, Ordinata, Commentata
   ========================================================================== */

.justtickets-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  box-sizing: border-box;
}

/* Griglia desktop */
.justtickets-wrapper.layout-desktop-grid {
  display: grid;
  justify-content: flex-start;
}

.justtickets-wrapper.layout-desktop-grid.cols-1 { grid-template-columns: 1fr; }
.justtickets-wrapper.layout-desktop-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.justtickets-wrapper.layout-desktop-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.justtickets-wrapper.layout-desktop-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   2) CARD BASE
   ========================================================================== */

.jtiq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8ebf1;
  border-radius: 10px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow .2s, transform .15s;
}

.jtiq-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Overlay clickabile */
.jtiq-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: auto;
}

/* Permette click sull’overlay e sui contenuti quando serve */
.jtiq-card .jtiq-card-overlay {
  pointer-events: auto !important;
  z-index: 20 !important;
}

.jtiq-card * {
  pointer-events: auto; /* non blocchiamo più tutto */
}

/* Il pulsante deve SEMPRE essere cliccabile */
.jtiq-btn {
  position: relative;
  z-index: 30 !important;
  pointer-events: auto !important;
}


/* ==========================================================================
   3) MEDIA (immagine / icona)
   ========================================================================== */

.jtiq-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef1f5;
  overflow: hidden;
}

.jtiq-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Icon mode */
.jtiq-main-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.jtiq-main-icon svg,
.jtiq-main-icon i {
  width: 40px;
  height: 40px;
  color: #023169;
}
/* ------------------------------------------
   Riduzione altezza immagini SOLO su desktop
------------------------------------------- */
@media (min-width: 769px) {
  .jtiq-media {
    aspect-ratio: 3 / 2 !important; /* era 4/3 */
    max-height: 150px; /* limite opzionale */
  }
}

/* ==========================================================================
   4) CONTENUTO
   ========================================================================== */

.jtiq-content {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0; /* Allow CTA text to wrap inside compact cards. */
}

/* Titoli */
.jtiq-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #f3a90b;
}
.jtiq-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  padding-bottom: 10px;
}

/* Descrizione breve */
.jtiq-desc {
  font-size: 13px;
  color: #313131;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   5) EXTRA (icone + testo)
   ========================================================================== */

.jtiq-extras {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.jtiq-extra-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.jtiq-extra-icon svg,
.jtiq-extra-icon i {
  width: 16px;
  height: 16px;
  color: #023169;
}
/* Fix allineamento verticale icona + testo */
.jtiq-extra-item {
  display: flex;
  align-items: center !important;
}

.jtiq-extra-item .jtiq-extra-icon i,
.jtiq-extra-item .jtiq-extra-icon svg {
  display: inline-block;
  vertical-align: middle;
  line-height: 1 !important;
}

.jtiq-extra-item .jtiq-extra-text {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
  padding-top: 2px;
}


/* ==========================================================================
   6) BADGES
   ========================================================================== */

.jtiq-badge {
  position: absolute;
  top: 10px;
  left: 8px;
  padding: 0 10px;
  background: var(--e-global-color-accent, #E53935);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.jtiq-badge2,
.jtiq-badge3 {
  display: inline-flex;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0;
  white-space: nowrap;
  width: max-content !important;
  align-self: flex-start !important;
}
.jtiq-badge2 { color: #fff; }
.jtiq-badge3 { color: #023169; }

/* Contenitore immagine + badge */
.jtiq-media-wrap {
    position: relative;
    display: block;
}

/* Badge sopra l'immagine */
.jtiq-media-wrap .jtiq-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}


/* ==========================================================================
   7) RATING
   ========================================================================== */

.jtiq-rating {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.jtiq-stars {
  display: flex;
  gap: 2px;
}
.jtiq-stars i { color: #FAB510; font-size: 11px; }

/* ==========================================================================
   8) PREZZO
   ========================================================================== */

.jtiq-price {
  font-size: 18px;
  margin-top: 4px;
}
.jtiq-price-prefix { color: #555; text-transform: lowercase; font-size: 13px; }
.jtiq-price-current { color: #e63946; font-weight: 700; }
.jtiq-price-old {
  font-size: 13px;
  text-decoration: line-through;
  color: #888;
  margin-left: 3px;
}
/* Rating sopra */
.jtiq-rating-block {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

/* Riga prezzo + pulsante */
.jtiq-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* SE IL PREZZO ESISTE → pulsante a destra */
.jtiq-price + .jtiq-btn {
  margin-left: auto;
}

.jtiq-btn {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--e-global-color-accent, #E53935) !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: none !important;
  transform: none !important;
}

.jtiq-card:hover .jtiq-btn,
.jtiq-btn:hover {
  color: #fff !important;
  transform: none !important;
}


/* ==========================================================================
   9) FOOTER – REGOLA UNICA
   Rating prima riga; prezzo + CTA seconda riga.
   Cards e carousel: desktop, tablet e mobile.
   ========================================================================== */

.jtiq-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: auto !important;
    padding-top: 0 !important;
}

.jtiq-rating-block {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}

.jtiq-stars,
.jtiq-rating-score,
.jtiq-rating-count {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.jtiq-price-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.jtiq-price-row .jtiq-price {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    line-height: 1.15;
    white-space: nowrap !important;
}

.jtiq-price-row .jtiq-price-prefix,
.jtiq-price-row .jtiq-price-current,
.jtiq-price-row .jtiq-price-old {
    display: inline !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.jtiq-price-row .jtiq-btn {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-left: auto !important;
    align-self: center !important;
    white-space: nowrap !important;
    text-align: center;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

@media (max-width: 1167px) {
    .jtiq-footer {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .jtiq-rating-block {
        width: 100% !important;
    }

    .jtiq-price-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .jtiq-price-row .jtiq-btn {
        margin-left: auto !important;
    }
}
.justtickets-wrapper.layout-desktop-grid .jtiq-card {
    container-type: inline-size;
}

@container (max-width: 230px) {
    .justtickets-wrapper.layout-desktop-grid .jtiq-card .jtiq-price-row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .justtickets-wrapper.layout-desktop-grid .jtiq-card .jtiq-price {
        width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .justtickets-wrapper.layout-desktop-grid .jtiq-card .jtiq-btn {
        width: auto !important;
        margin: 0 !important;
        align-self: flex-start !important;
    }
}
/* CTA lunga — SOLO vertical cards */
.justtickets-wrapper:not(.layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn-long) .jtiq-price-row {
    flex-wrap: wrap !important;
}

.justtickets-wrapper:not(.layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn-long) .jtiq-price {
    flex: 0 0 auto !important;
    width: 100% !important;
}

.justtickets-wrapper:not(.layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn-long) .jtiq-btn {
    margin-left: 0 !important;
    margin-right: auto !important;
}
/* Horizontal cards — price left, CTA right */
.justtickets-wrapper.layout-desktop-horizontal
.jtiq-price-row .jtiq-btn {
    margin-left: auto !important;
    margin-right: 0 !important;
}
/* ==========================================================================
   10) DESKTOP – Card orizzontale
   ========================================================================== */
@media only screen and (min-width: 768px) {
.justtickets-wrapper.layout-desktop-horizontal .jtiq-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.justtickets-wrapper.layout-desktop-horizontal .jtiq-media {
    aspect-ratio: auto !important;
    height: 100% !important;
    max-height: none !important;
}

.justtickets-wrapper.layout-desktop-horizontal .jtiq-media img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* Aumenta dimensioni testi SOLO per card orizzontali desktop */
.justtickets-wrapper.layout-desktop-horizontal .jtiq-title {
    font-size: 26px;
}

.justtickets-wrapper.layout-desktop-horizontal .jtiq-desc {
    font-size: 15px;
    line-height: 1.4;
}

.justtickets-wrapper.layout-desktop-horizontal .jtiq-extra-item {
    font-size: 15px !important;
}

.justtickets-wrapper.layout-desktop-horizontal .jtiq-price {
    font-size: 20px;
}

.justtickets-wrapper.layout-desktop-horizontal .jtiq-btn {
    font-size: 15px;
    padding: 10px 18px !important;
}
/* Aumenta dimensione icone nei bullet SOLO nel layout orizzontale desktop */
.justtickets-wrapper.layout-desktop-horizontal .jtiq-extra-icon svg {
    width: 20px !important;
    height: 20px !important;
 }
}
/* ============================================
   LISTA DESKTOP — prezzo vicino al pulsante
===============================================*/
.justtickets-wrapper.layout-desktop-horizontal .jtiq-price-row {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
}

.justtickets-wrapper.layout-desktop-horizontal .jtiq-price {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
}

.justtickets-wrapper.layout-desktop-horizontal .jtiq-btn {
    margin-left: 0 !important;
}


/* ==========================================================================
   12) MOBILE – TUTTO in UNA SOLA MEDIA QUERY
   ========================================================================== */

@media (max-width:767px) {

  /* Griglia -> singola card */
  .justtickets-wrapper.layout-desktop-grid {
    grid-template-columns: 1fr !important;
  }

  /* Elementor: avoid incorrect intrinsic heights from inline-size
     containment in mobile Cards mode (standard and compact). */
  .justtickets-wrapper.layout-desktop-grid:not(.jtiq-carousel-track) > .jtiq-card,
  .jtiq-mode-cards > .justtickets-wrapper.layout-desktop-grid > .jtiq-card {
    container-type: normal;
  }

  /* Modalità verticale */
  .justtickets-wrapper.layout-mobile-vertical .jtiq-media {
    aspect-ratio: 4/3;
  }

  /* Layout mobile "orizzontale compatto" */
  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-card {
    display: flex;
    flex-direction: row;
  }
  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-media {
    width: 120px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
  }
  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-desc {
    display: none;
  }

  /* Footer impilato: prezzo sopra, bottone sotto */
  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px;
  }

  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-footer-left,
  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-footer-right {
    width: 100%;
    text-align: left;
  }

  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-btn {
    align-self: flex-start !important;
  }

  /* Compact mobile: prezzo sopra il pulsante (stile JustParigi) */
  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-price-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    width: 100% !important;
  }
  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-footer {
    gap: 4px !important; 
}

  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-price-row .jtiq-price {
    width: 100% !important;
    margin: 0 !important;
	margin-top:4px;
  }

  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-price-row .jtiq-btn {
    margin-left: 0 !important;
    align-self: flex-start !important;
	margin-top:4px;
  }
    .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-title {
    padding-bottom: 0px;
  }

  /* Rating in un’unica linea */
  .justtickets-wrapper.layout-mobile-horizontal-compact .jtiq-rating {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  /* Pulsante */
.jtiq-btn {
  font-size: 12px;
 }
 .jtiq-badge2,
.jtiq-badge3 {
  font-size: 11px;
  font-weight: 600;
  margin: 4px 0;
 }
 .jtiq-content {
  gap: 2px;
 }
}

/* ==========================================================================
   13) MOBILE GRID
   ========================================================================== */
.justtickets-wrapper.layout-mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* =========================================
   TIQETS PRODUCT SEARCH - ELEMENTOR EDITOR
   ========================================= */

.jtiq-product-search {
    margin: 0 0 25px;
    padding: 15px;
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
}

.jtiq-product-search-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.jtiq-product-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 7px;
}

.jtiq-product-result-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.jtiq-product-result-info small {
    opacity: .65;
}

.jtiq-select-product {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 0;
    border-radius: 5px;
    background: #023169;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.jtiq-select-product:hover {
    opacity: .9;
}

.jtiq-select-product.is-selected {
    background: #198754;
}

.jtiq-product-search-empty {
    padding: 12px;
    margin-bottom: 20px;
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
}

/* ==========================================================================
   14) TIQETS COMPARISON TABLE — JUSTCITY V3
   ========================================================================== */

.jtiq-comparison-scroll {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: #aab8ca #eef2f7;
    border-radius: 12px;
    user-select: none;
}

.jtiq-comparison-scroll.is-dragging {
    cursor: grabbing;
}

.jtiq-comparison-scroll::-webkit-scrollbar {
    height: 9px;
}

.jtiq-comparison-scroll::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 20px;
}

.jtiq-comparison-scroll::-webkit-scrollbar-thumb {
    background: #aab8ca;
    border-radius: 20px;
}

.jtiq-comparison {
    display: grid;
    grid-template-columns:
        205px
        repeat(var(--jtiq-products), 235px);
    width: max-content;
    min-width: 100%;
    background: #fff;
    border: 1px solid var(--jtiq-border-color, #E7EEF7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(2,49,105,.06);
}

.jtiq-comparison > * {
    border-right: 1px solid var(--jtiq-border-color, #E7EEF7);
    border-bottom: 1px solid var(--jtiq-border-color, #E7EEF7);
}

.jtiq-comparison > *:nth-child(calc(var(--jtiq-products) + 1)n) {
    border-right: 0;
}

.jtiq-comparison-label {
    display: flex;
    align-items: center;
    min-width: 205px;
    padding: 13px 16px;
    background: #f3f7fc;
    color: #023169;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

.jtiq-comparison-corner {
    align-items: flex-start;
    padding-top: 20px;
    background: linear-gradient(135deg,#f5f9ff 0%,#eef5fd 100%);
    color: #023169;
    font-size: 17px;
    line-height: 1.25;
}

.jtiq-comparison-product {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 10px 14px;
    background: #fff;
}

.jtiq-comparison-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef1f5;
    pointer-events: none;
}

.jtiq-comparison-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.jtiq-comparison-title {
    color: #023169;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.28;
}

.jtiq-comparison-cell {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 49px;
    padding: 11px 15px;
    background: #fff;
    color: #40536c;
    font-size: 13px;
}

.jtiq-comparison-price {
    flex-wrap: wrap;
}

.jtiq-comparison-price strong {
    color: #e63946;
    font-size: 18px;
    line-height: 1;
}

.jtiq-comparison-from {
    color: #64748b;
}

.jtiq-comparison-old {
    color: #94a0ae;
    font-size: 11px;
    text-decoration: line-through;
}

.jtiq-comparison-star {
    color: #FAB510;
    font-size: 17px;
}

.jtiq-comparison-cell small {
    color: #7a8797;
    font-size: 11px;
}

.jtiq-comparison-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 50%;
    background: #e7f7f3;
    color: #07967c;
    font-size: 16px;
    font-weight: 800;
}

.jtiq-comparison-na {
    color: #a6b0bd;
}

.jtiq-comparison-feature-text {
    color: #51657d;
    font-size: 11px;
    line-height: 1.25;
}

.jtiq-comparison-cta-label {
    background: #f3f7fc;
}

.jtiq-comparison-cta {
    min-height: 67px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.jtiq-comparison-cta .jtiq-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 10px 12px !important;
    border-radius: 7px;
    white-space: nowrap;
}

/* Desktop: product columns stay wide enough to look like real cards.
   Overflow is intentional and can be dragged horizontally. */
@media (min-width: 769px) {
    .jtiq-comparison {
        grid-template-columns:
            205px
            repeat(var(--jtiq-products), 235px);
    }
}

/* Mobile/tablet */
@media (max-width: 768px) {
    .jtiq-comparison {
        grid-template-columns:
            145px
            repeat(var(--jtiq-products), 190px);
        width: max-content;
        min-width: max-content;
    }

    .jtiq-comparison-label {
        min-width: 145px;
        padding: 10px 12px;
        font-size: 12px;
		overflow-wrap: anywhere;
    word-break: normal;
    }
	
	.jtiq-comparison-cta .jtiq-btn {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.2;
    text-align: center;
	}
    .jtiq-comparison-corner {
        font-size: 14px;
    }

    .jtiq-comparison-image {
        height: 100px;
    }

    .jtiq-comparison-title {
        font-size: 12px;
    }

    .jtiq-comparison-cell {
        padding: 10px 12px;
        font-size: 12px;
    }

    .jtiq-comparison-price strong {
        font-size: 16px;
    }
	  .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-label {
        border-bottom: 1px solid #E7EEF7 !important;
    }

    /* Ultima cella: niente bordo interno,
       il bordo esterno è già dato dal contenitore */
    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-cta-label {
        border-bottom: 0 !important;
    }
}


/* ==========================================================================
   14B) COMPARISON — FIXED LABEL COLUMN
   The scroller remains the only horizontal viewport. Every first-column cell
   is sticky, so labels never move while product columns slide underneath.
   ========================================================================== */

.jtiq-comparison-label {
    position: sticky;
    left: 0;
    z-index: 12;
    box-sizing: border-box;
    flex-shrink: 0;
    box-shadow: 1px 0 0 var(--jtiq-border-color, #E7EEF7);
}

.jtiq-comparison-corner {
    z-index: 14;
}

.jtiq-comparison-product,
.jtiq-comparison-cell {
    position: relative;
    z-index: 1;
}

/* Keep the sticky column fully opaque while products pass behind it. */
.jtiq-comparison-label:not(.jtiq-comparison-cta-label) {
    background-clip: padding-box;
}

@media (max-width: 768px) {
    .jtiq-comparison-label {
        left: 0;
    }
}


/* ==========================================================================
   15) COMPARISON POLISH — ICONS / ALIGNMENT
   ========================================================================== */

.jtiq-comparison-label {
    gap: 9px;
}

.jtiq-comparison-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    color: #023169;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.jtiq-comparison-cell {
    justify-content: center;
    text-align: center;
}

.jtiq-comparison-price {
    justify-content: center;
}

.jtiq-comparison-price strong {
    font-weight: 800;
}

.jtiq-comparison-cta {
    justify-content: center;
}

.jtiq-comparison-product {
    text-align: left;
}


/* ==========================================================================
   16) COMPARISON V5 — FONT AWESOME / LEFT ALIGN / STRONGER PRICE
   ========================================================================== */

.jtiq-comparison-label-icon {
    width: 22px;
    min-width: 22px;
    font-size: 17px;
    line-height: 1;
}

.jtiq-comparison-label-icon i {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 17px;
    line-height: 1;
    color: #023169;
}

.jtiq-comparison-cell,
.jtiq-comparison-price,
.jtiq-comparison-cta {
    justify-content: flex-start;
    text-align: left;
}

.jtiq-comparison-price strong {
    font-weight: 900;
    letter-spacing: -0.15px;
}

.jtiq-comparison-cta .jtiq-btn {
    text-align: center;
}


/* ==========================================================================
   17) COMPARISON V6 — HEADER / TICKETS ROW / CTA
   ========================================================================== */

.jtiq-comparison-corner {
    align-items: center !important;
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 16px;
    text-align: center;
}

.jtiq-comparison-corner > span {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.jtiq-comparison-cta-label {
    background: #eaf2fc;
    font-size: 14px;
    font-weight: 800;
}

.jtiq-comparison-cta-label .jtiq-comparison-label-icon,
.jtiq-comparison-cta-label .jtiq-comparison-label-icon i {
    font-size: 18px;
}

.jtiq-comparison-cta {
    background: #fbfcfe;
    padding-top: 12px;
    padding-bottom: 12px;
}

.jtiq-comparison-cta .jtiq-btn {
    min-height: 38px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .05px;
}

.jtiq-comparison-price strong {
    font-weight: 700 !important;
    font-size: 19px;
}


/* ==========================================================================
   18) COMPARISON FINAL — TICKETS ROW
   ========================================================================== */

/* Distinguish the complete final row, not only the first label cell. */
.jtiq-comparison-cta-label,
.jtiq-comparison-cta {
    background: #f2f7fd !important;
}

.jtiq-comparison-cta-label {
    font-size: 14px;
    font-weight: 800;
}

/* Ticket icon gets its own subtle badge. */
.jtiq-comparison-ticket-icon {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px;
    border-radius: 8px;
    background: #dfeefa;
    color: #023169;
}

.jtiq-comparison-ticket-icon i {
    font-size: 15px !important;
    color: #023169 !important;
}

/* Final CTAs. */
.jtiq-comparison-cta {
    min-height: 67px;
    align-items: center;
}

.jtiq-comparison-cta .jtiq-btn {
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-align: center !important;
}
@media (max-width: 768px) {
    .jtiq-comparison-cta .jtiq-btn {
        font-size: 13px;
    }
}

/* ==========================================================================
   19) COMPARISON DESKTOP NAVIGATION ARROWS
   ========================================================================== */

/* ==========================================================================
   19) COMPARISON DESKTOP NAVIGATION ARROWS
   ========================================================================== */

.jtiq-comparison-nav {
    position: absolute;
    top: 50%;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    border: 0 !important;
    outline: 0 !important;
    border-radius: 50%;

    background: rgba(255,255,255,.97);
    color: #023169;

    box-shadow: 0 4px 14px rgba(2,49,105,.16);

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        opacity .18s ease,
        background-color .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.jtiq-comparison-nav:hover,
.jtiq-comparison-nav:focus,
.jtiq-comparison-nav:focus-visible {
    border: 0 !important;
    outline: 0 !important;

    background: #E53935;
    color: #fff;

    box-shadow: 0 5px 16px rgba(2,49,105,.20);
}

.jtiq-comparison-nav i {
    font-size: 14px;
    line-height: 1;
    color: inherit !important;
}

.jtiq-comparison-wrap > .jtiq-comparison-nav-prev {
    left: -20px;
}

.jtiq-comparison-wrap > .jtiq-comparison-nav-next {
    right: -20px;
}

.jtiq-comparison-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .jtiq-comparison-nav {
        display: none !important;
    }
}


/* 20) FIX: arrows anchored to the comparison viewport */
.jtiq-comparison-wrap {
    position: relative;
    width: 100%;
}

.jtiq-comparison-wrap > .jtiq-comparison-nav {
    position: absolute !important;
    top: 50%;
    z-index: 60;
    margin: 0 !important;
    float: none !important;
    transform: translateY(-50%);
}


@media (max-width: 768px) {
    .jtiq-comparison-wrap > .jtiq-comparison-nav {
        display: none !important;
    }
}
/* Nasconde la scrollbar della tabella Tiqets */
.jtiq-comparison-scroll {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* vecchio Edge / IE */
}

.jtiq-comparison-scroll::-webkit-scrollbar {
    display: none;              /* Chrome, Safari, Edge */
    width: 0;
    height: 0;
}


/* ==========================================================================
   TABLET – numero colonne configurabile dal widget
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1167px) {
    .justtickets-wrapper.layout-desktop-grid.cols-tablet-1 {
        grid-template-columns: 1fr !important;
    }

    .justtickets-wrapper.layout-desktop-grid.cols-tablet-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .justtickets-wrapper.layout-desktop-grid.cols-tablet-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .justtickets-wrapper.layout-desktop-grid.cols-tablet-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}


/* ==========================================================================
   DESKTOP – hover stabile, senza sfocatura/ridimensionamento al rientro
   ========================================================================== */
@media (min-width: 1168px) {
    .justtickets-wrapper .jtiq-card {
        position: relative !important;
        transform: translate3d(0, 0, 0) !important;
        transition: transform .22s cubic-bezier(.4,0,.2,1),
                    box-shadow .22s cubic-bezier(.4,0,.2,1) !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform;
    }

    .justtickets-wrapper .jtiq-card:hover {
        transform: translate3d(0, -6px, 0) !important;
        box-shadow: 0 6px 14px rgba(0, 0, 0, .10) !important;
        z-index: 30 !important;
    }
}
/* ==========================================================
   HORIZONTAL CARD – adattamento alla larghezza del contenitore
   SOLO DESKTOP
   ========================================================== */

.justtickets-wrapper.layout-desktop-horizontal {
    container-type: inline-size;
}

@media (min-width: 1025px) {

    /* CONTENITORE MEDIO: card orizzontale adattata */
    @container (max-width: 700px) {

        .justtickets-wrapper.layout-desktop-horizontal .jtiq-card {
            grid-template-columns: minmax(150px, 40%) minmax(0, 1fr) !important;
            gap: 12px !important;
            height: 250px;
        }

        .justtickets-wrapper.layout-desktop-horizontal .jtiq-content {
            min-width: 0;
            padding: 12px 14px !important;
        }

        .justtickets-wrapper.layout-desktop-horizontal .jtiq-title {
            font-size: 18px;
            line-height: 1.2;
            overflow-wrap: normal;
        }

        .justtickets-wrapper.layout-desktop-horizontal .jtiq-desc {
            font-size: 13px;
            line-height: 1.35;
        }

        .justtickets-wrapper.layout-desktop-horizontal .jtiq-rating-block {
            flex-wrap: wrap;
        }

        .justtickets-wrapper.layout-desktop-horizontal .jtiq-price-row {
            flex-wrap: wrap;
            gap: 8px !important;
        }

        .justtickets-wrapper.layout-desktop-horizontal .jtiq-price {
            font-size: 17px;
        }

        .justtickets-wrapper.layout-desktop-horizontal .jtiq-btn {
            font-size: 12px;
            padding: 8px 10px !important;
        }
    }

  /* CONTENITORE MOLTO STRETTO: card verticale */
@container (max-width: 480px) {

    .justtickets-wrapper.layout-desktop-horizontal .jtiq-card {
        grid-template-columns: 1fr !important;
        height: 100% !important;
        gap: 0 !important;
    }

    .justtickets-wrapper.layout-desktop-horizontal .jtiq-media {
        width: 100% !important;
        height: 160px !important;
        min-height: 160px !important;
    }

    .justtickets-wrapper.layout-desktop-horizontal .jtiq-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
	  /* spazio fisso per massimo 2 righe titolo */
    .justtickets-wrapper.layout-desktop-horizontal .jtiq-title {
        min-height: 52px !important;
    }

    /* spazio fisso per massimo 3 righe descrizione */
    .justtickets-wrapper.layout-desktop-horizontal .jtiq-desc {
        min-height: 53px !important;
    }
}
}
/* ==========================================================
   PRICE TABLE
   All styling lives here: no <style> block in PHP.
   ========================================================== */

.jtiq-price-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.jtiq-price-table {
    width: 100%;
    border: 1px solid #E7EEF7 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.jtiq-price-table th,
.jtiq-price-table td {
    padding: 14px 18px;
    border: 0 !important;
    border-right: 1px solid #E7EEF7 !important;
    border-bottom: 1px solid #E7EEF7 !important;
    text-align: left;
    vertical-align: middle;
}

.jtiq-price-table tr > *:last-child {
    border-right: 0 !important;
}

.jtiq-price-table tbody tr:last-child > * {
    border-bottom: 0 !important;
}

.jtiq-price-table thead th {
    background: #f4f6fa;
    color: #0B2E63;
    font-weight: 700;
    border-block-start: 0 !important;
}

.jtiq-price-table-product {
    color: #0B2E63;
    font-weight: 700;
}

.jtiq-price-table-product a {
    color: inherit;
    text-decoration: none;
}

.jtiq-price-table-product a:hover {
    text-decoration: underline;
}

.jtiq-price-table-price {
    white-space: nowrap;
}

.jtiq-price-table-price strong {
    color: #E53935;
    font-size: 1.08em;
}

.jtiq-price-table-prefix {
    font-weight: 400;
    color: inherit;
}

.jtiq-price-table-action {
    width: 48px;
    text-align: right !important;
}

.jtiq-price-table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 !important;
    border-radius: 50%;
    color: #E53935;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease;
}

.jtiq-price-table-link:hover {
    transform: translateX(2px);
}

@media (max-width: 767px) {
    .jtiq-price-table {
        width: 100% !important;
        table-layout: auto;
    }

    .jtiq-price-table th,
    .jtiq-price-table td {
        padding: 12px 10px;
    }

    .jtiq-price-table-product {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .jtiq-price-table-price {
        white-space: normal;
    }

    .jtiq-price-table-prefix {
        display: block;
        font-size: 12px;
        line-height: 1.2;
        margin-bottom: 3px;
    }

    .jtiq-price-table-action {
        width: 38px;
        min-width: 38px;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}

/* ==========================================================================
   21) COMPARISON — DESKTOP STICKY / MOBILE PHYSICALLY FIXED COLUMN
   ========================================================================== */

:root { --jtiq-border-color: #E7EEF7; }

.jtiq-comparison-wrap {
    --jtiq-comparison-label-width: 205px;
    position: relative;
}

/* Desktop/tablet > 768: keep the working native sticky layout. */
.jtiq-comparison-scroll {
    position: relative;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 12px;
    overscroll-behavior-x: contain;
}

.jtiq-comparison {
    overflow: visible !important;
}

.jtiq-comparison > .jtiq-comparison-label {
    position: sticky !important;
    left: 0 !important;
    z-index: 40 !important;
    width: var(--jtiq-comparison-label-width);
    min-width: var(--jtiq-comparison-label-width);
    box-sizing: border-box;
    transform: none !important;
}

.jtiq-comparison > .jtiq-comparison-corner,
.jtiq-comparison > .jtiq-comparison-cta-label {
    z-index: 50 !important;
}

@media (min-width: 769px) {
    .jtiq-comparison-wrap > .jtiq-comparison-nav-prev {
        left: calc(var(--jtiq-comparison-label-width) - 20px) !important;
    }
    .jtiq-comparison-wrap > .jtiq-comparison-nav-next {
        right: -20px !important;
    }
}

/* MOBILE: labels and scroller are siblings in a FLEX row.
   The label column has NO overflow and NO transform, therefore it cannot move. */
@media (max-width: 768px) {
    .jtiq-comparison-wrap {
        --jtiq-comparison-label-width: 145px;
    }

    .jtiq-comparison-mobile-viewport {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(2,49,105,.06);
    }

    .jtiq-comparison-fixed-column {
        position: relative !important;
        flex: 0 0 var(--jtiq-comparison-label-width) !important;
        width: var(--jtiq-comparison-label-width) !important;
        min-width: var(--jtiq-comparison-label-width) !important;
        max-width: var(--jtiq-comparison-label-width) !important;
        z-index: 80 !important;
        overflow: hidden !important;
        border: 1px solid var(--jtiq-border-color, #E7EEF7);
        border-right: 0;
        border-radius: 12px 0 0 12px;
        background: #f5f9ff;
        box-sizing: border-box;
    }

    .jtiq-comparison-fixed-column > .jtiq-comparison-label {
        position: relative !important;
        left: auto !important;
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
        translate: none !important;
        will-change: auto !important;
        z-index: 1 !important;
        border-right: 1px solid var(--jtiq-border-color, #E7EEF7);
        border-bottom: 1px solid var(--jtiq-border-color, #E7EEF7);
        box-shadow: none !important;
    }

    .jtiq-comparison-fixed-column > .jtiq-comparison-label:last-child {
        border-bottom: 0;
    }

    .jtiq-comparison-fixed-column > .jtiq-comparison-corner {
        background: linear-gradient(135deg,#f5f9ff 0%,#eef5fd 100%) !important;
    }

    .jtiq-comparison-fixed-column > .jtiq-comparison-cta-label {
        background: #f2f7fd !important;
    }

    .jtiq-comparison-mobile-viewport > .jtiq-comparison-scroll {
        position: relative !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        border-radius: 0 12px 12px 0 !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        transform: none !important;
    }

    /* After JS moves labels out, this grid contains ONLY product cells. */
    .jtiq-comparison-mobile-viewport .jtiq-comparison {
        display: grid !important;
        grid-template-columns: repeat(var(--jtiq-products), 190px) !important;
        width: max-content !important;
        min-width: max-content !important;
        overflow: visible !important;
        border-left: 0 !important;
        border-radius: 0 12px 12px 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* One static pixel over the join prevents any product edge peeking through. */
    .jtiq-comparison-fixed-column::after {
        content: "";
        position: absolute;
        top: 12px;
        right: -1px;
        bottom: 12px;
        width: 2px;
        background: #f5f9ff;
        pointer-events: none;
        z-index: 90;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split > .jtiq-comparison-nav-prev {
        display: none !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split > .jtiq-comparison-nav-next {
        right: -14px !important;
    }
}


/* 21.1 — mobile structural guard: fixed column can NEVER cover product area */
@media (max-width: 768px) {
    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison-mobile-viewport {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison-fixed-column {
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        flex-basis: var(--jtiq-comparison-label-width) !important;
        inline-size: var(--jtiq-comparison-label-width) !important;
        min-inline-size: var(--jtiq-comparison-label-width) !important;
        max-inline-size: var(--jtiq-comparison-label-width) !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison-scroll {
        flex: 1 1 0 !important;
        min-inline-size: 0 !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison > .jtiq-comparison-cell {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
}


/* 21.2 — definitive mobile side-by-side geometry */
@media (max-width: 768px) {
    .jtiq-comparison-mobile-viewport {
        display: flex !important;
        flex-flow: row nowrap !important;
    }
    .jtiq-comparison-mobile-viewport > .jtiq-comparison-fixed-column {
        flex: 0 0 145px !important;
        width: 145px !important;
        min-width: 145px !important;
        max-width: 145px !important;
    }
    .jtiq-comparison-mobile-viewport > .jtiq-comparison-scroll {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
    }
}


/* 21.3 — mobile comparison corner-radius refinement only
   Keep the working fixed-left / scroll-right structure unchanged. */
@media (max-width: 768px) {
    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison-mobile-viewport {
        border-radius: 12px !important;
        overflow: visible !important;
    }

    /* Fixed column owns ONLY the two left outer corners. */
    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison-fixed-column {
        border-radius: 12px 0 0 12px !important;
    }

    /* Remove any inherited corner rounding from individual fixed cells. */
    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-label {
        border-radius: 0 !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-corner {
        border-radius: 12px 0 0 0 !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-cta-label {
        border-radius: 0 0 0 12px !important;
    }

    /* Scroll area has ZERO radius on the left join and radius only on the right. */
    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-mobile-viewport > .jtiq-comparison-scroll {
        border-radius: 0 12px 12px 0 !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-mobile-viewport .jtiq-comparison {
        border-radius: 0 12px 12px 0 !important;
    }
}


/* 21.4 — actual visible mobile corners.
   The previous seam mask was covering the rounded outer corners. */
@media (max-width: 768px) {
    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison-fixed-column {
        border-radius: 12px 0 0 12px !important;
        overflow: hidden !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-corner {
        border-radius: 12px 0 0 0 !important;
        overflow: hidden !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-cta-label {
        border-radius: 0 0 0 12px !important;
        overflow: hidden !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-mobile-viewport > .jtiq-comparison-scroll {
        border-radius: 0 12px 12px 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-mobile-viewport .jtiq-comparison {
        border-radius: 0 12px 12px 0 !important;
    }
}


/* ==========================================================================
   22) COMPARISON — FINAL BORDER POLISH
   ========================================================================== */

/* Mobile: continue the horizontal row separators through the fixed label column. */
@media (max-width: 768px) {
    .jtiq-comparison-mobile-labels .jtiq-comparison-label {
        border-bottom: 1px solid var(--jtiq-border-color, #E7EEF7) !important;
    }

    /* The final CTA row is the outer edge: no internal bottom border. */
    .jtiq-comparison-mobile-labels .jtiq-comparison-cta-label {
        border-bottom: 0 !important;
    }
}

/* Final CTA row: remove bottom borders from all cells.
   The wrapper supplies the outer rounded edge, avoiding the double-border effect. */
.jtiq-comparison-cta-label,
.jtiq-comparison-cta {
    border-bottom: 0 !important;
}


/* ==========================================================================
   23) COMPARISON — MOBILE BORDER FAILSAFE
   ========================================================================== */
@media (max-width: 768px) {
    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison-fixed-column {
        border-top: 1px solid #E7EEF7 !important;
        border-bottom: 1px solid #E7EEF7 !important;
        border-left: 1px solid #E7EEF7 !important;
        border-right: 0 !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-label {
        border-right: 0 !important;
        border-bottom: 1px solid #E7EEF7 !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-cta-label {
        border-bottom: 0 !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-mobile-viewport .jtiq-comparison > * {
        border-right-color: #E7EEF7 !important;
        border-bottom-color: #E7EEF7 !important;
    }
}

/* ==========================================================================
   24) MOBILE FIXED COLUMN — DEFINITIVE BORDERS
   ========================================================================== */
@media (max-width: 768px) {
    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison-fixed-column {
        border-top: 1px solid #E7EEF7 !important;
        border-left: 1px solid #E7EEF7 !important;
        border-bottom: 1px solid #E7EEF7 !important;
        border-right: 0 !important;
        border-radius: 12px 0 0 12px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-label {
        border-right: 0 !important;
        border-bottom: 1px solid #E7EEF7 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    /* Last sticky cell: the container supplies the outer bottom border. */
    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-cta-label {
        border-bottom: 0 !important;
    }
}

/* ========================================================================== 
   25) MOBILE FIXED COLUMN — VISIBLE BORDER OVERLAY
   Drawn as overlays so flex sizing / overflow cannot swallow the 1px lines.
   ========================================================================== */
@media (max-width: 768px) {
    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison-fixed-column {
        position: relative !important;
    }

    /* Outer edge: TOP + LEFT + BOTTOM only. */
    .jtiq-comparison-wrap.jtiq-mobile-split .jtiq-comparison-fixed-column::before {
        content: "";
        position: absolute;
        inset: 0;
        border-top: 1px solid #E7EEF7;
        border-left: 1px solid #E7EEF7;
        border-bottom: 1px solid #E7EEF7;
        border-right: 0;
        border-radius: 12px 0 0 12px;
        box-sizing: border-box;
        pointer-events: none;
        z-index: 1000;
    }

    /* Horizontal separator on every sticky row. */
    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-label {
        position: relative !important;
    }

    .jtiq-comparison-wrap.jtiq-mobile-split
    .jtiq-comparison-fixed-column > .jtiq-comparison-label:not(.jtiq-comparison-cta-label)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: #E7EEF7;
        pointer-events: none;
        z-index: 1001;
    }
}
@media (max-width: 767px) {
    .jtiq-comparison-fixed-column .jtiq-comparison-label {
        border-bottom: 1px solid #E7EEF7 !important;
    }
}
/* ==========================================================
   CAROUSEL — spazio per sollevamento card in hover
   ========================================================== */
@media (min-width: 1168px) {
    .justtickets-wrapper.jtiq-carousel-track {
        padding: 10px 8px !important;
    }
}
/* Tablet: price and CTA share one row; the label stays on one line. */
@media (min-width: 768px) and (max-width: 1167px) {
    .justtickets-wrapper:is(.layout-desktop-grid, .layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn) .jtiq-price-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .justtickets-wrapper:is(.layout-desktop-grid, .layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn) .jtiq-price {
        flex: 0 0 auto !important;
        width: auto !important;
    }
    .justtickets-wrapper:is(.layout-desktop-grid, .layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn) .jtiq-price-row .jtiq-btn {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        align-self: center !important;
        white-space: nowrap !important;
        padding: 8px 6px !important;
    }
}

/* Desktop and tablet: CTA labels stay on one line. Mobile is unchanged. */
@media (min-width: 768px) {
    .justtickets-wrapper .jtiq-card .jtiq-price-row .jtiq-btn {
        white-space: nowrap !important;
        max-width: none !important;
        flex-shrink: 0 !important;
    }
}

/* Horizontal tablet cards use the desktop CTA size. */
@media (min-width: 768px) and (max-width: 1167px) {
    .justtickets-wrapper.layout-desktop-horizontal .jtiq-card:has(.jtiq-btn) .jtiq-price-row .jtiq-btn {
        padding: 10px 18px !important;
    }
}

/* CTA row: wrap the whole button when price + label do not fit. */
@media (min-width: 768px) {
 .justtickets-wrapper:is(.layout-desktop-grid, .layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn) .jtiq-price-row {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  width: 100% !important;
 }
 .justtickets-wrapper:is(.layout-desktop-grid, .layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn) .jtiq-price-row .jtiq-price {
  flex: 0 0 auto !important;
  width: auto !important;
 }
 .justtickets-wrapper:is(.layout-desktop-grid, .layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn) .jtiq-price-row .jtiq-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  max-width: 100% !important;
 }
}
@media (max-width: 767px) {
 .justtickets-wrapper:not(.layout-mobile-horizontal-compact) .jtiq-card:has(.jtiq-btn) .jtiq-price-row {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  width: 100% !important;
 }
 .justtickets-wrapper:not(.layout-mobile-horizontal-compact) .jtiq-card:has(.jtiq-btn) .jtiq-price-row .jtiq-price {
  flex: 0 0 auto !important;
  width: auto !important;
 }
 .justtickets-wrapper:not(.layout-mobile-horizontal-compact) .jtiq-card:has(.jtiq-btn) .jtiq-price-row .jtiq-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
 }
}

/* Long CTAs in vertical cards use a consistent two-row footer. */
.justtickets-wrapper:not(.layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn-long) .jtiq-price-row {
 flex-direction: column !important;
 flex-wrap: nowrap !important;
 align-items: flex-start !important;
 gap: 8px !important;
 width: 100% !important;
}
.justtickets-wrapper:not(.layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn-long) .jtiq-price-row .jtiq-price {
 flex: 0 0 auto !important;
 width: 100% !important;
}
.justtickets-wrapper:not(.layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn-long) .jtiq-price-row .jtiq-btn {
 flex: 0 0 auto !important;
 margin-left: 0 !important;
 margin-right: auto !important;
 align-self: flex-start !important;
 white-space: nowrap !important;
}

/* Low-specificity tablet fallback; Elementor typography can override it. */
@media (min-width: 768px) and (max-width: 1167px) {
    .jtiq-btn { font-size: 10px; }
}

/* Cards verticali: spazio dopo il prezzo, CTA a sinistra quando va a capo. */
.justtickets-wrapper:not(.layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn) .jtiq-price-row .jtiq-price {
    margin-right: auto !important;
}
.justtickets-wrapper:not(.layout-desktop-horizontal) .jtiq-card:has(.jtiq-btn) .jtiq-price-row .jtiq-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Shadow-only decoration: no effect on carousel geometry or interactions. */
.jtiq-carousel > .jtiq-carousel-shadow-layer {
    position: absolute;
    inset: 0;
    display: none;
    overflow: visible;
    pointer-events: none !important;
    z-index: 40;
}
.jtiq-carousel-shadow-layer > .jtiq-carousel-shadow-copy {
    position: absolute;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    pointer-events: none !important;
}

/* Ticket options layout */
.jtiq-options{--options-accent:var(--e-global-color-accent, #E53935);box-sizing:border-box;width:100%;padding:30px;border:1px solid #e5e5e5;border-radius:12px;background:#fff;color:#103255}
.jtiq-options *{box-sizing:border-box}
.jtiq-options .jtiq-options-heading{margin:0 0 22px;font-size:clamp(26px,3vw,40px);font-weight:800;line-height:1.2;color:inherit}
.jtiq-options-list{display:grid;gap:10px}
.jtiq-options .jtiq-option{display:grid;grid-template-columns:minmax(0,1fr) 150px 140px;align-items:center;gap:22px;padding:18px;border:1px solid #e5e5e5;border-radius:12px;background:#fff}
.jtiq-option-info{min-width:0}
.jtiq-options .jtiq-option-title{margin:0 0 6px;font-size:18px;font-weight:750;line-height:1.35;color:inherit;overflow-wrap:anywhere}
.jtiq-option-desc{font-size:14px;line-height:1.6;color:#686868;overflow-wrap:anywhere}
.jtiq-option-badge{display:inline-block;margin-top:8px;padding:3px 10px;border-radius:20px;background:#edf3ff;font-size:12px;font-weight:700}
.jtiq-option-audience{font-size:13px;color:#777;line-height:1.5}
.jtiq-option-prefix{font-size:14px;color:#777;font-weight:600}
.jtiq-option-price strong{font-size:23px;line-height:1.3;font-weight:800}
.jtiq-options .jtiq-option-button{display:flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border-radius:8px;background:var(--options-accent);color:#fff;text-decoration:none;font-size:15px;font-weight:700;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.jtiq-options .jtiq-option-button:hover{filter:brightness(.92);color:#fff}
.jtiq-options .jtiq-option-button:focus-visible{outline:3px solid #103255;outline-offset:3px}
.jtiq-options-footer{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:18px;padding-top:18px;border-top:1px solid #eee;color:#1766a5;font-size:14px;font-weight:700}
.jtiq-options-footer i{margin-right:6px}
@media(max-width:767px){
.jtiq-options{padding:18px}
.jtiq-options .jtiq-option{grid-template-columns:minmax(0,1fr) minmax(110px,auto);gap:14px;padding:16px}
.jtiq-option-info{grid-column:1/-1}
.jtiq-options .jtiq-option-title{font-size:17px}
.jtiq-option-price strong{font-size:21px}
.jtiq-options-footer{flex-direction:column;font-size:13px}
}
@media(max-width:359px){.jtiq-options .jtiq-option{grid-template-columns:minmax(0,1fr)}.jtiq-option-info{grid-column:auto}}
/* Editable List options footer icons, including SVG uploads. */
.jtiq-options-footer-left,.jtiq-options-footer-right{display:inline-flex;align-items:center;gap:8px}
.jtiq-options-footer-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.jtiq-options-footer .jtiq-options-footer-icon i{margin:0}
.jtiq-options-footer-icon svg{width:1em;height:1em;fill:currentColor}