/*
 * Alligator Ticket — Show flow styles (step 1 + step 2 + step 3)
 *
 * Nessun colore specifico del plugin: colori, bordi e pulsanti ereditati
 * da tema e WooCommerce. Per personalizzare l'eventuale accento:
 *
 *   .algtk-show-wrap { --algtk-accent: #yourcolor; }
 */

.algtk-show-wrap {
    --algtk-border:    #e5e5e5;
    --algtk-radius:    12px;
    --algtk-max-width: 860px;
    /* Si aggancia al colore primario del tema WP/WooCommerce; sovrascrivibile via:
       .algtk-show-wrap { --algtk-accent: #tuocolore; } */
    --algtk-accent: var(--wp--preset--color--primary, var(--wc-color-primary, #1e1e1e));
    --algtk-accent-text: #fff;
    /* Colore titoli: segue il preset "contrast" dei temi a blocchi, poi heading
       personalizzato (theme.json custom), poi colore testo/body del tema corrente */
    --algtk-heading: var(--wp--preset--color--contrast,
                     var(--wp--custom--color--heading,
                     var(--color-heading,
                     currentColor)));
}

/* Ticket card su pagine non-show (es. thank-you) */
.algtk-tickets-wrap {
    --algtk-accent: var(--wp--preset--color--primary, var(--wc-color-primary, #1e1e1e));
    --algtk-accent-text: #fff;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.algtk-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    background: var(--algtk-accent);
    background-size: cover;
    background-position: center;
}


.algtk-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* overlay più leggero quando non c'è immagine di sfondo */
.algtk-hero:not(.algtk-hero--has-img) .algtk-hero__overlay {
    background: rgba(0, 0, 0, 0.15);
}

.algtk-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 32px 24px;
    color: #fff;
    text-align: center;
}


.algtk-hero__title {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}


.algtk-hero__subtitle {
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,.85);
}

/* ── Breadcrumb ─────────────────────────────────────────────────────── */

.algtk-breadcrumb {
    border-bottom: 1px solid var(--algtk-border);
    background: #fff;
}

.algtk-breadcrumb__inner {
    max-width: var(--algtk-max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.algtk-breadcrumb__step {
    font-size: .875rem;
    color: #999;
    white-space: nowrap;
}

.algtk-breadcrumb__step--active {
    color: inherit;
    font-weight: 600;
}

.algtk-breadcrumb__sep {
    color: #ccc;
    font-size: .875rem;
}

/* Breadcrumb link cliccabile (step precedente) */
.algtk-breadcrumb__step--link {
    text-decoration: none;
    color: #999;
}
.algtk-breadcrumb__step--link:hover {
    color: inherit;
    text-decoration: underline;
}

/* ── Main content — step 1 ──────────────────────────────────────────── */

.algtk-show-main {
    max-width: var(--algtk-max-width);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* ── Intro pannello (titolo + testo sopra lista/calendario/step) ────── */

.algtk-panel-intro {
    margin-bottom: 24px;
}

.algtk-panel-intro__title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--algtk-heading);
    line-height: 1.2;
}

.algtk-panel-intro__text {
    margin: 0;
    font-size: .95rem;
    color: #555;
    line-height: 1.6;
}

/* ── Toggle lista / calendario ──────────────────────────────────────── */

.algtk-view-toggle {
    display: flex !important;
    gap: 4px;
    margin-bottom: 24px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
}

.algtk-view-toggle__btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: background .15s, color .15s, box-shadow .15s;
    line-height: 1;
    box-sizing: content-box;
    min-height: unset;
    height: auto;
    width: auto;
    text-transform: none;
    letter-spacing: normal;
}

.algtk-view-toggle__btn--active,
.algtk-view-toggle__btn[aria-pressed="true"] {
    background: #fff !important;
    color: var(--algtk-heading);
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.algtk-view-panel[hidden] {
    display: none;
}

/* ── Date rows ──────────────────────────────────────────────────────── */

.algtk-dates {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.algtk-date-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--algtk-border);
    border-radius: var(--algtk-radius);
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-shadow: 0px 0px 8px 0px #00000033;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.algtk-date-row:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    color: inherit;
    text-decoration: none;
}

.algtk-date-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.algtk-date-row__venue {
    font-size: 1rem;
    font-weight: 700;
    color: var(--algtk-heading) !important;
}

.algtk-date-row__date {
    font-size: .9rem;
    color: #555;
}

.algtk-date-row__price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.algtk-date-row__amount {
    font-size: .95rem;
    color: inherit;
}

.algtk-date-row__amount strong {
    font-size: 1.1rem;
}

.algtk-date-row__commission {
    font-size: .78rem;
    color: #888;
}

.algtk-date-row__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    opacity: .35;
    transition: opacity .15s ease;
}

.algtk-date-row:hover .algtk-date-row__arrow {
    opacity: 1;
}

.algtk-dates__empty {
    color: #888;
    font-style: italic;
}

/* ── Info evento — step 1 ───────────────────────────────────────────── */

.algtk-show-info {
    margin-top: 48px;
    border-top: 1px solid var(--algtk-border);
    padding-top: 32px;
}

.algtk-show-info__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--algtk-heading);
}

.algtk-show-info__title::before {
    content: 'ⓘ';
    font-style: normal;
    font-size: 1.1rem;
    color: #888;
}

.algtk-show-info__content {
    font-size: .95rem;
    line-height: 1.7;
    color: #444;
}

/* ── Responsive step 1 ──────────────────────────────────────────────── */

@media (max-width: 600px) {
    .algtk-date-row {
        padding: 14px;
        gap: 10px;
    }

    .algtk-date-row__price {
        display: none;
    }

    .algtk-breadcrumb__inner {
        padding: 10px 16px;
    }

    .algtk-show-main {
        padding: 20px 16px 48px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP 2 — Selezione biglietti
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Layout due colonne ─────────────────────────────────────────────── */

.algtk-step2 {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    align-items: start;
}

.algtk-step2__main {
    min-width: 0;
}

.algtk-step2__subtitle {
    margin: 0 0 24px;
    font-size: .9rem;
    color: #666;
}

/* ── Ticket rows ────────────────────────────────────────────────────── */

.algtk-ticket-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.algtk-sub-forms {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.algtk-ticket-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--algtk-border);
    border-radius: var(--algtk-radius);
    background: #fff;
    box-shadow: 0px 0px 8px 0px #00000033;
}

.algtk-ticket-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.algtk-ticket-row__name {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--algtk-heading) !important;
}

.algtk-ticket-row__commission {
    font-size: .78rem;
    color: #888;
}

.algtk-ticket-row__price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Quantità +/- ───────────────────────────────────────────────────── */

.algtk-ticket-row__qty {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.algtk-qty-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    box-sizing: content-box;
    padding: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: transparent;
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .45;
    transition: opacity .12s;
    padding: 0;
}

.algtk-qty-btn:hover {
    opacity: 1;
}

.algtk-qty-input {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
    pointer-events: none;
}

.algtk-qty-input::-webkit-inner-spin-button,
.algtk-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* ── Pulsante Continua — eredita stile dal tema WC ──────────────────── */

.algtk-btn-continua {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
    box-sizing: border-box;
    min-height: 3em;
}

.algtk-btn-continua:disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

.algtk-btn-continua--mobile {
    display: none !important;
}

/* ── Sidebar carrello (stile WooCommerce) ───────────────────────────── */

.algtk-step2__sidebar {
    position: sticky;
    top: 24px;
}

.algtk-cart-summary {
    padding: 0;
    background: transparent;
}

.algtk-cart-summary__title {
    font-size: var(--wp--preset--font-size--small, 14px);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    padding: 8px 16px 10px 0;
    text-align: left;
    text-decoration: inherit;
    text-transform: inherit;
    text-transform: uppercase;
    vertical-align: baseline;
    color: #3d3e3f;
    border-bottom: none;
    display: block;
}

.algtk-cart-summary__icon {
    display: none;
}

.algtk-cart-lines {
    min-height: 20px;
    margin-bottom: 0;
}

.algtk-cart-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    font-size: var(--wp--preset--font-size--small, 14px);
    border-bottom: 1px solid var(--algtk-border);
}

.algtk-cart-line:last-child {
    border-bottom: none;
}

.algtk-cart-line__amount {
    white-space: nowrap;
    font-weight: 500;
}

.algtk-cart-empty {
    font-size: var(--wp--preset--font-size--small, 14px);
    color: #aaa;
    font-style: italic;
    margin: 10px 0;
    padding: 0;
}


.algtk-cart-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    font-size: var(--wp--preset--font-size--small, 14px);
    font-weight: 400;
}

.algtk-cart-totals__row strong,
.algtk-cart-totals__row span {
    font-weight: 400;
}

.algtk-cart-totals__row--subtotal {
    font-weight: 600;
    border-bottom: 2px solid var(--algtk-border);
}

.algtk-cart-totals__row--subtotal span,
.algtk-cart-totals__subtotal {
    font-weight: 600;
}

.algtk-cart-totals__sep--acc,
.algtk-cart-totals__sep--acc-bottom {
    border: none;
    border-top: 1px solid var(--algtk-border);
    margin: 4px 0;
}

.algtk-cart-totals__acc-label {
    padding: 6px 0;
    font-size: var(--wp--preset--font-size--small, 14px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--algtk-muted, #888);
}

.algtk-cart-acc-lines .algtk-cart-line {
    padding: 4px 0;
    font-size: var(--wp--preset--font-size--small, 13px);
}

.algtk-cart-totals__row--total {
    font-size: var(--wp--preset--font-size--medium, 22px);
    font-weight: 400;
    padding: 16px 0;
    border-top: none;
    border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    margin-top: 0;
    margin-bottom: 16px;
}

.algtk-cart-totals__row--total strong,
.algtk-cart-totals__total {
    font-size: var(--wp--preset--font-size--medium, 22px);
    font-weight: 400;
}

.algtk-no-tickets {
    color: #888;
    padding: 24px 0;
}

/* ── Responsive step 2 ──────────────────────────────────────────────── */

@media (max-width: 700px) {
    .algtk-step2 {
        grid-template-columns: 1fr;
        padding: 20px 16px 48px;
        gap: 0;
    }

    .algtk-step2__sidebar {
        position: static;
        display: none;
    }

    .algtk-btn-continua--mobile {
        display: block !important;
    }

    .algtk-ticket-row {
        padding: 14px;
        gap: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP 3 — Prodotti complementari
   ═══════════════════════════════════════════════════════════════════════ */

.algtk-step3 {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    align-items: start;
}

.algtk-step3__main {
    min-width: 0;
}

.algtk-step3__title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--algtk-heading);
}

.algtk-step3__subtitle {
    margin: 0 0 24px;
    font-size: .9rem;
    color: #666;
}

.algtk-step3__sidebar {
    position: sticky;
    top: 24px;
}

/* ── Accessory rows ─────────────────────────────────────────────────── */

.algtk-acc-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.algtk-acc-row {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--algtk-border);
    border-radius: var(--algtk-radius);
    background: #fff;
    box-shadow: 0px 0px 8px 0px #00000033;
}

/* Con immagine: niente padding sulla card, ci pensa il body */
.algtk-acc-row--has-img {
    padding: 0 32px 0 0;
    overflow: hidden;
    gap: 40px;
}

.algtk-acc-row__img {
    flex-shrink: 0;
    width: 170px;
    align-self: stretch;
    border-radius: 0;
    overflow: hidden;
    opacity: 1;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 120px;
    border-bottom-left-radius: 12px;
}

.algtk-acc-row__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.algtk-acc-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.algtk-acc-row--has-img .algtk-acc-row__body {
    padding: 32px 0;
}

.algtk-acc-row__name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--algtk-heading);
}

.algtk-acc-row__desc {
    font-size: .875rem;
    color: #555;
    line-height: 1.5;
}

.algtk-acc-row__desc p {
    margin: 0 0 4px;
}

.algtk-acc-row__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}

.algtk-acc-row__price {
    font-size: 1rem;
    font-weight: 600;
}

/* ── Variazione accessorio ──────────────────────────────────────────── */

.algtk-acc-variation-select {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 4px;
    padding: 7px 10px;
    border: 1px solid var(--algtk-border);
    border-radius: 4px;
    font-size: .9rem;
    background: #fff;
    color: inherit;
    cursor: pointer;
}

.algtk-acc-variation-select:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

/* ── Skip link ──────────────────────────────────────────────────────── */

.algtk-skip-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: .85rem;
    color: #888;
    text-decoration: underline;
}

.algtk-skip-link:hover {
    color: #444;
}

.algtk-skip-link--mobile {
    display: none;
}

/* ── Info wrap ──────────────────────────────────────────────────────── */

.algtk-show-info-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* ═══════════════════════════════════════════════════════════════════════
   ACCORDION — Informazioni evento
   ═══════════════════════════════════════════════════════════════════════ */

.algtk-event-info {
    border-top: 1px solid var(--algtk-border);
    padding-top: 40px;
}

.algtk-event-info__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px;
    display: flex;
    color: var(--algtk-heading);
    align-items: center;
    gap: 8px;
}

.algtk-event-info__icon {
    color: #888;
}

.algtk-accordion {
    border-top: 1px solid var(--algtk-border);
}

.algtk-accordion__item {
    border-bottom: 1px solid var(--algtk-border);
}

.algtk-accordion__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 500;
    color: inherit;
    text-align: left;
    transition: opacity .15s;
}

.algtk-accordion__trigger:hover {
    opacity: .7;
}

.algtk-accordion__chevron {
    display: block;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.algtk-accordion__trigger[aria-expanded="true"] .algtk-accordion__chevron {
    transform: rotate(180deg);
}

.algtk-accordion__body {
    overflow: hidden;
}

.algtk-accordion__body[hidden] {
    display: none;
}

.algtk-accordion__content {
    padding: 4px 4px 20px;
    font-size: .9rem;
    line-height: 1.7;
    color: #444;
}

/* ── Back link (carrello WC e step interni) ─────────────────────────── */

.algtk-back-wrap {
    max-width: var(--algtk-content-width, 960px);
    margin: 0 auto;
    padding: 12px 20px 0;
}

.algtk-cart-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
}

.algtk-cart-back:hover {
    text-decoration: underline;
    color: inherit;
}

/* ── Responsive step 3 ──────────────────────────────────────────────── */

@media (max-width: 700px) {
    .algtk-step3 {
        grid-template-columns: 1fr;
        padding: 20px 16px 40px;
        gap: 0;
    }

    .algtk-step3__sidebar {
        position: static;
        display: none;
    }

    .algtk-btn-continua--mobile {
        display: block !important;
    }

    .algtk-skip-link--mobile {
        display: block;
    }

    /* Accessory card: colonna (immagine sopra, testi sotto) */
    .algtk-acc-row--has-img {
        flex-direction: column;
        padding: 0 0 20px 0;
        gap: 0;
    }

    .algtk-acc-row__img {
        width: 100%;
        height: 160px;
        border-radius: 12px 12px 0 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .algtk-acc-row--has-img .algtk-acc-row__body {
        padding: 16px 20px 0;
    }

    /* Gap tra ultima card e bottone Continua step 3 */
    .algtk-acc-rows {
        margin-bottom: 8px;
    }

    .algtk-step3 .algtk-btn-continua--mobile {
        margin-top: 28px !important;
    }

    .algtk-show-info-wrap {
        padding: 0 16px 48px;
    }

    .algtk-hero__content {
        padding: 24px 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP NOMINATIVI
   ═══════════════════════════════════════════════════════════════════════ */

.algtk-nominees-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: var(--algtk-radius);
    background: #fff3f3;
    border: 1px solid #f5c2c2;
    color: #c0392b;
    font-size: .9rem;
    font-weight: 500;
}

.algtk-nominees-intro {
    margin: 0 0 24px;
    font-size: .9rem;
    color: #666;
    line-height: 1.6;
}

.algtk-nominees-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.algtk-nominee-row {
    padding: 20px;
    border: 1px solid var(--algtk-border);
    border-radius: var(--algtk-radius);
    background: #fff;
    box-shadow: 0px 0px 8px 0px #00000033;
    transition: border-color .15s;
}

.algtk-nominee-row:focus-within {
    border-color: #aab;
}

.algtk-nominee-row__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: .9rem;
}

.algtk-nominee-row__label strong {
    font-size: 1rem;
    color: var(--algtk-heading);
}

.algtk-nominee-row__type {
    color: #888;
    font-size: .85rem;
}

.algtk-nominee-row__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.algtk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.algtk-field label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #777;
}

.algtk-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--algtk-border);
    border-radius: 6px;
    font-size: 1rem;
    color: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.algtk-field input[type="text"]:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.algtk-required {
    color: #c0392b;
    margin-left: 2px;
}

/* ── Responsive nominees ────────────────────────────────────────────── */

@media (max-width: 700px) {
    .algtk-nominee-row__fields {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   TICKET CARD — thank-you page
   ═══════════════════════════════════════════════════════════════════════ */

.algtk-tickets-wrap {
    max-width: 1100px;
    margin: 32px auto 0;
}

.algtk-tickets-wrap__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .algtk-tickets-wrap__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .algtk-tickets-wrap__cards {
        grid-template-columns: 1fr;
    }
}

.algtk-tickets-wrap__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--algtk-heading);
}

.algtk-tickets-wrap__hint {
    font-size: .9rem;
    color: #666;
    margin: 0 0 24px;
}

/* ═══════════════════════════════════════════════════════════════════════
   BREAKDOWN TOTALI — pagine carrello e checkout WooCommerce
   ═══════════════════════════════════════════════════════════════════════ */

.algtk-wc-breakdown {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}

.algtk-wc-breakdown__row th,
.algtk-wc-breakdown__row td {
    padding: 6px 0;
    font-size: .9rem;
    font-weight: 400;
    text-align: left;
}

.algtk-wc-breakdown__row td {
    text-align: right;
}

.algtk-wc-breakdown__subtotal th,
.algtk-wc-breakdown__subtotal td {
    font-weight: 600;
    border-bottom: 2px solid var(--algtk-border, #e5e5e5);
}

.algtk-wc-breakdown__acc-label th {
    padding: 8px 0 4px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--algtk-muted, #888);
    border-bottom: none;
}

.algtk-wc-breakdown__sep-row td {
    padding: 0;
    border: none;
}

.algtk-wc-breakdown__sep-row hr {
    margin: 4px 0;
    border: none;
    border-top: 1px solid var(--algtk-border, #e5e5e5);
}

/* ═══════════════════════════════════════════════════════════════════════
   BREAKDOWN TOTALI — WC Blocks checkout/cart
   ═══════════════════════════════════════════════════════════════════════ */

.algtk-blocks-breakdown {
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.algtk-blocks-breakdown__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 5px 0;
    font-size: .9rem;
    font-weight: 400;
}

.algtk-blocks-breakdown__subtotal {
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--algtk-border, #e5e5e5);
    margin-bottom: 4px;
}

.algtk-blocks-breakdown__sep {
    border: none;
    border-top: 1px solid var(--algtk-border, #e5e5e5);
    margin: 6px 0;
}

.algtk-ticket-card {
    border: 1px solid #dde0e8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

/* ── Ticket card: dark header ─────────────────────────────────────── */

.algtk-ticket-card__header {
    background: var(--algtk-accent);
    padding: 22px 26px;
    color: #fff;
}

.algtk-ticket-card__counter {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.5);
    margin-bottom: 8px;
}

.algtk-ticket-card__title {
    margin: 0 0 6px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.algtk-ticket-card__location {
    margin: 0;
    font-size: .85rem;
    color: rgba(255,255,255,.7);
}

/* ── Ticket card: data body ───────────────────────────────────────── */

.algtk-ticket-card__body {
    background: #fff;
    padding: 22px 26px 18px;
}

.algtk-ticket-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.algtk-ticket-card__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.algtk-ticket-card__field--full {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid #f0f1f5;
}

.algtk-ticket-card__field-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(0,0,0,.45);
}

.algtk-ticket-card__field-value {
    font-size: .95rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}

.algtk-ticket-card__field-value--mono {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: .04em;
}

.algtk-ticket-card__field-value--small {
    font-size: .8rem;
    font-weight: 400;
    color: #555;
    word-break: break-all;
}

/* ── Ticket card: QR section ──────────────────────────────────────── */

.algtk-ticket-card__qr {
    background: #f6f7fb;
    border-top: 1px solid #dde0e8;
    padding: 28px 26px;
    text-align: center;
}

.algtk-ticket-card__qr-img {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto 12px;
    border-radius: 6px;
}

.algtk-ticket-card__qr-hint {
    margin: 0;
    font-size: .8rem;
    color: rgba(0,0,0,.45);
    font-style: italic;
}

/* ── Responsive ticket card ────────────────────────────────────────── */

@media (max-width: 500px) {
    .algtk-ticket-card__header {
        padding: 18px 20px;
    }

    .algtk-ticket-card__body {
        padding: 18px 20px 14px;
    }

    .algtk-ticket-card__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .algtk-ticket-card__field--full {
        padding-top: 10px;
    }

    .algtk-ticket-card__qr {
        padding: 22px 20px;
    }

    .algtk-ticket-card__qr-img {
        width: 150px;
        height: 150px;
    }

    .algtk-tickets-wrap {
        margin-top: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   GLOBAL MOBILE IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    /* Hero tighter on small screens */
    .algtk-hero {
        min-height: 160px;
    }


    /* Breadcrumb: più leggibile su mobile */
    .algtk-breadcrumb__inner {
        gap: 6px;
        padding: 12px 16px;
    }

    .algtk-breadcrumb__step {
        font-size: .95rem;
    }

    .algtk-breadcrumb__sep {
        font-size: .95rem;
    }

    /* Step 1 date rows: full-width tap targets */
    .algtk-date-row {
        padding: 16px 14px;
        min-height: 56px;
    }

    .algtk-date-row__arrow {
        display: none;
    }

    /* Step 2 ticket rows — colonna sinistra: nome/prezzo/commissioni; destra: quantità */
    .algtk-ticket-row {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "info qty"
            "price qty";
        align-items: center;
        gap: 2px 16px;
        padding: 14px;
    }

    .algtk-ticket-row__info {
        grid-area: info;
    }

    .algtk-ticket-row__price-wrap {
        grid-area: price;
        align-items: flex-start;
        white-space: normal;
    }

    .algtk-ticket-row__qty {
        grid-area: qty;
        align-self: center;
    }

    /* Qty stepper: bigger tap target, perfectly round */
    .algtk-qty-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 50% !important;
        box-sizing: border-box;
    }

    .algtk-qty-input {
        width: 40px;
        font-size: 1.1rem;
    }

    /* Gap tra l'ultimo ticket-row e il bottone Continua */
    .algtk-btn-continua--mobile {
        margin-top: 28px !important;
    }

    /* Info wrap */
    .algtk-show-info-wrap {
        padding: 0 14px 40px;
    }

    /* Accordion larger tap */
    .algtk-accordion__trigger {
        padding: 18px 4px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   FOCUS — outline elegante al posto del bordo nero del browser
   ═══════════════════════════════════════════════════════════════════════ */

/* Rimuove l'outline brusco su click (mouse/touch), lo mantiene per tastiera */
.algtk-show-wrap a:focus:not(:focus-visible),
.algtk-show-wrap button:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.algtk-show-wrap a:focus-visible,
.algtk-show-wrap button:focus-visible {
    outline: 2px solid rgba(0, 0, 0, .18);
    outline-offset: 3px;
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   TIMER PRENOTAZIONE
   ═══════════════════════════════════════════════════════════════════════ */

.algtk-timer[hidden] {
    display: none;
}

/* Blocco inline nella sidebar */
.algtk-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color .3s, background .3s, color .3s;
    user-select: none;
    margin: 0;
}

.algtk-cart-summary__sep {
    border: none;
    border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    margin: 16px 0;
}

.algtk-timer__icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.algtk-timer__label {
    font-size: .78rem;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: .01em;
}

.algtk-timer__countdown {
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: inherit;
    line-height: 1;
    min-width: 3.6ch;
}

.algtk-timer--urgent {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #92400e;
    box-shadow: 0 4px 16px rgba(120,53,15,.14);
}

.algtk-timer--expired {
    border-color: #fca5a5;
    background: #fff5f5;
    color: #991b1b;
    box-shadow: 0 4px 16px rgba(127,29,29,.14);
}

@media (max-width: 480px) {
    .algtk-timer {
        padding: 8px 12px 8px 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   NOTICE — messaggio sessione scaduta (step 1)
   ═══════════════════════════════════════════════════════════════════════ */

.algtk-notice {
    max-width: var(--algtk-max-width);
    margin: 0 auto;
    padding: 12px 24px;
    font-size: .9rem;
    border-radius: var(--algtk-radius);
}

.algtk-notice--warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════
   CALENDARIO — visualizzazione date (date_mode=calendar)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Layout: calendario full-width, poi pannello orari full-width ── */

.algtk-calendar-layout {
    display: block;
}

.algtk-calendar,
.algtk-calendar-times {
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 25px;
    background: #fff;
    box-shadow: 0px 0px 8px 0px #00000033;
    border-radius: 12px;
}

/* ── Pannello orari (visibile dopo click su una data) ─────────────── */

.algtk-calendar-times[hidden] {
    display: none;
}

/* Header "hai scelto / cambia data" */
.algtk-cal__slots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--algtk-border);
}

.algtk-cal__slots-chosen {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.algtk-cal__slots-chosen-label {
    font-size: .75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.algtk-cal__slots-chosen-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--algtk-heading);
    text-transform: capitalize;
}

.algtk-cal__slots-back {
    background: none;
    border: 1px solid var(--algtk-border);
    border-radius: 6px;
    padding: 7px 14px;
    font-size: .85rem;
    cursor: pointer;
    color: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
}

.algtk-cal__slots-back:hover {
    border-color: #aaa;
    background: #f5f5f5;
}

/* Placeholder non più usato — nascosto */
.algtk-calendar-times__placeholder {
    display: none;
}

.algtk-calendar-times__placeholder--unused {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    text-align: center;
    color: #c5c5c5;
    gap: 14px;
}

.algtk-calendar-times__placeholder-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.algtk-calendar-times__placeholder p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.5;
    max-width: 180px;
}

/* ── Header mese ──────────────────────────────────────────────────── */

.algtk-cal__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 14px;
}

.algtk-cal__month-label {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-transform: capitalize;
    padding: 0 6px;
}

.algtk-cal__nav {
    background: none;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s;
    flex-shrink: 0;
    padding: 0;
}

.algtk-cal__nav:hover:not(:disabled) {
    background: #f0f0f0;
}

.algtk-cal__nav:disabled {
    opacity: .3;
    cursor: default;
}

/* ── Griglia ──────────────────────────────────────────────────────── */

.algtk-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.algtk-cal__grid-head {
    text-align: center;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #aaa;
    padding: 2px 0 8px;
}

.algtk-cal__day {
    position: relative;
    aspect-ratio: 2 / 1.15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .9rem;
    border-radius: var(--algtk-radius);
    border: 1px solid var(--algtk-border);
    background: #fff;
    cursor: default;
    color: #ccc;
    line-height: 1;
    padding: 6px 4px;
    transition: background .1s, border-color .1s;
}

.algtk-cal__day--empty {
    background: none;
    border-color: transparent;
}

.algtk-cal__day--disabled {
    color: #ccc;
    background: #fafafa;
}

.algtk-cal__day--available {
    color: inherit;
    font-weight: 700;
    cursor: pointer;
    border-color: var(--algtk-border);
}

.algtk-cal__day--available:hover:not(.algtk-cal__day--selected) {
    border-color: #aaa;
    background: #f5f5f5;
}

.algtk-cal__day--selected {
    background: var(--algtk-accent) !important;
    color: var(--algtk-accent-text) !important;
    border-color: var(--algtk-accent) !important;
}

.algtk-cal__day-price {
    font-size: .6rem;
    font-weight: 400;
    color: #888;
    line-height: 1;
    white-space: nowrap;
}

.algtk-cal__day--selected .algtk-cal__day-price {
    color: var(--algtk-accent-text);
    opacity: .85;
}

/* Dot rimosso — usiamo il prezzo come indicatore */
.algtk-cal__day-dot {
    display: none;
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--algtk-accent);
    opacity: .5;
}

.algtk-cal__day--selected .algtk-cal__day-dot {
    background: var(--algtk-accent-text);
    opacity: 1;
}

/* ── Pannello orari (colonna destra) ──────────────────────────────── */

.algtk-cal__slots[hidden] {
    display: none;
}

.algtk-cal__slots-title {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: capitalize;
    color: #444;
}

.algtk-cal__slots-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.algtk-cal__slot-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid var(--algtk-border);
    border-radius: var(--algtk-radius);
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow .12s, border-color .12s;
}

.algtk-cal__slot-row:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    text-decoration: none;
    color: inherit;
}

.algtk-cal__slot-time {
    font-size: 1rem;
    font-weight: 700;
    min-width: 48px;
    flex-shrink: 0;
}

.algtk-cal__slot-time em {
    font-style: normal;
    font-weight: 400;
    font-size: .82rem;
    color: #888;
}

.algtk-cal__slot-venue {
    font-size: .85rem;
    color: #666;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.algtk-cal__slot-price {
    font-size: .88rem;
    flex-shrink: 0;
    text-align: right;
    color: #444;
}

.algtk-cal__slot-arrow {
    color: #ccc;
    flex-shrink: 0;
    font-size: .9rem;
}

/* ── Responsive calendario ────────────────────────────────────────── */

@media (max-width: 480px) {
    .algtk-calendar,
    .algtk-calendar-times {
        max-width: 100%;
        padding: 20px 10px;
        overflow: hidden;
    }

    /* Griglia a 7 colonne compatta */
    .algtk-cal__grid {
        gap: 3px;
        width: 100%;
    }

    /* Intestazioni giorno settimana: più piccole */
    .algtk-cal__grid-head {
        font-size: .6rem;
        padding: 2px 0 6px;
    }

    .algtk-cal__day {
        aspect-ratio: unset;
        height: 50px;
        font-size: .82rem;
        padding: 4px 2px;
        gap: 3px;
    }

    .algtk-cal__day-price {
        font-size: .58rem;
    }

    .algtk-cal__slots-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .algtk-cal__slot-venue {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PRODOTTI AGGIUNTIVI — thank-you / ordine ricevuto
   ═══════════════════════════════════════════════════════════════════════ */

.algtk-tickets-accessories {
    max-width: 680px;
    margin: 32px 0 0;
    padding: 22px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

.algtk-tickets-accessories__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--algtk-heading);
}

.algtk-tickets-accessories__hint {
    font-size: .85rem;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* ── Riepilogo dati ordine ────────────────────────────────────────── */

.algtk-order-summary {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.algtk-order-summary__row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: .875rem;
}

.algtk-order-summary__row:first-child {
    padding-top: 0;
}

.algtk-order-summary__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.algtk-order-summary__label {
    font-weight: 600;
    color: #999;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    min-width: 76px;
    flex-shrink: 0;
}

.algtk-order-summary__value {
    color: inherit;
    word-break: break-word;
}

.algtk-order-summary__value--strong {
    font-weight: 700;
    font-size: 1rem;
}

/* ── Lista prodotti aggiuntivi ────────────────────────────────────── */

.algtk-tickets-accessories__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.algtk-tickets-accessories__item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #ececec;
    font-size: .875rem;
}

.algtk-tickets-accessories__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.algtk-tickets-accessories__qty {
    font-weight: 700;
    color: #555;
    flex-shrink: 0;
    min-width: 20px;
}

.algtk-tickets-accessories__name {
    flex: 1;
    min-width: 0;
}

.algtk-tickets-accessories__variation {
    font-size: .8rem;
    color: #888;
}

