/*
 * Baris ticket kit — "the paper ticket" in AFCON pitch green, loaded after afcon-theme.css.
 * Compact density, notched ticket buttons, perforations, faint barcodes.
 * Notches on cards are painted in the page colour; masks only on single elements (buttons, hero).
 */

:root {
    --tk-page: #f1eee6;                  /* a touch darker than the white cards so the cuts show */
    --tk-ink: #096b3c;
    --tk-ink-2: #0c8349;
    --tk-text: #3a3a33;
    --tk-muted: #77746a;
    --tk-line: #d9d2c2;
    --tk-ring: #e7e2d6;
    --tk-soft: #f6f3ec;
    --tk-gold: #fb8916;
    --tk-n: 10px;
    --tk-ease: cubic-bezier(.22, 1, .36, 1);
    --tk-barcode: repeating-linear-gradient(90deg, #096b3c 0 1px, #0000 1px 3px, #096b3c 3px 5px, #0000 5px 6px, #096b3c 6px 7px, #0000 7px 10px, #096b3c 10px 13px, #0000 13px 15px);
}

html { font-size: 15px; }

body {
    background: var(--tk-page) !important;
    color: var(--tk-text);
}

main { padding: 1.25rem 0 0.5rem; }

/* ---------- Header: slim, white ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: #fff !important;
    background-image: none !important;
    color: var(--tk-ink);
    padding: 0.45rem 0 !important;
    border-bottom: 1px solid var(--tk-ring);
    box-shadow: none !important;
}

.navbar .nav-logo img {
    filter: brightness(0) saturate(100%) invert(16%) sepia(31%) saturate(1032%) hue-rotate(115deg) brightness(92%) contrast(95%) !important;
    height: 30px;
    width: auto;
}

.nav-menu a {
    color: var(--tk-text) !important;
    font-size: 0.93rem;
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--tk-ink) !important;
}

.nav-menu a:not(.btn-sell)::before {
    background: var(--tk-gold) !important;
}

.hamburger span {
    background: var(--tk-ink) !important;
}

.cart-link,
.cart-link svg {
    color: var(--tk-ink) !important;
}

.pamoja-stripe { height: 4px; }

@media (max-width: 768px) {
    .nav-menu {
        background: #fff !important;
    }

    .nav-menu a {
        color: var(--tk-ink) !important;
        font-size: 1.05rem;
    }
}

/* ---------- Labels & section heads ---------- */
.tk-label {
    margin: 0;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
    color: var(--tk-ink) !important;
}

.tk-label--light { color: var(--gold-bright, #ffa53d) !important; }

.tk-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.75rem;
}

.tk-head__hint {
    font-size: 0.78rem;
    color: var(--tk-muted);
    text-decoration: none;
}

.tk-head__hint:hover { color: var(--tk-ink); }

/* ---------- Buttons: notched tickets with a dashed inner edge ---------- */
.btn,
.afcon-btn,
.afcon-buy,
.add-to-cart-btn,
.cookie-btn,
.pagination-btn,
.btn-remove-item,
.afcon-paybtn,
.afcon-sticky-buy .afcon-btn,
.afcon-cartbar .afcon-btn {
    --n: 5px;
    position: relative;
    isolation: isolate;
    border-radius: 10px !important;
    font-weight: 700;
    box-shadow: none !important;
    -webkit-mask:
        radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
        radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
    outline: 1px dashed color-mix(in srgb, currentColor 40%, transparent) !important;
    outline-offset: -4px;
    transition: background-color .2s ease, color .2s ease, transform .2s var(--tk-ease);
}

.btn:focus-visible,
.afcon-btn:focus-visible {
    outline: 2px solid var(--tk-gold) !important;
    outline-offset: -4px;
}

.btn-primary,
.afcon-buy,
.afcon-btn--pitch {
    background: var(--tk-ink) !important;
    color: #fff !important;
}

.btn-primary:hover,
.afcon-buy:hover,
.afcon-btn--pitch:hover {
    background: var(--tk-ink-2) !important;
}

.afcon-btn--gold {
    background: var(--tk-gold) !important;
    color: #06482a !important;
}

.btn-secondary,
.ghost-btn {
    background: #fff !important;
    color: var(--tk-ink) !important;
    border: 0 !important;
    outline-color: var(--tk-line) !important;
}

/* arrow nudges on the main card button */
.afcon-buy::after {
    content: "→";
    margin-left: 0.15rem;
    transition: transform .2s var(--tk-ease);
}

.afcon-buy:hover::after { transform: translateX(3px); }
.afcon-buy .afcon-icon { display: none; }

/* ---------- Hero: a big ticket with an ADMIT ONE stub ---------- */
.tk-hero.afcon-hero {
    display: grid;
    grid-template-columns: 1fr 96px;
    margin-top: 0.25rem;
    padding: 0 !important;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 85% 0%, rgba(12, 131, 73, 0.95), transparent 55%),
        linear-gradient(160deg, #096b3c 0%, #06482a 80%) !important;
    box-shadow: 0 18px 30px -22px rgba(6, 72, 42, 0.8);
    --n: 12px;
    -webkit-mask:
        radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
        radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.tk-hero.afcon-hero::before { display: none; }

.tk-hero__main {
    padding: 1.6rem 1.75rem 1.4rem;
    min-width: 0;
}

.tk-hero .afcon-hero__title {
    margin: 0.5rem 0 1rem;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem) !important;
    line-height: 1.05;
}

.tk-hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.tk-hero__row .afcon-btn {
    min-height: 48px;
    padding: 0 1.4rem;
}

.tk-hero .afcon-paywith img {
    width: 34px;
    height: 34px;
    padding: 3px;
    border-radius: 8px;
    background: #fff;
}

.tk-hero__next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.7rem;
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(250, 246, 236, 0.22);
    color: rgba(250, 246, 236, 0.85);
    font-size: 0.85rem;
    text-decoration: none;
}

.tk-hero__next-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-bright, #ffa53d);
}

.tk-hero__next .afcon-match {
    font-size: 0.95rem !important;
    color: #fff;
}

.tk-hero__next .afcon-vs { color: rgba(250, 246, 236, 0.6); }

.tk-hero__next .afcon-countdown {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--gold-bright, #ffa53d);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tk-hero__next .afcon-countdown b {
    font-size: inherit;
    color: inherit;
}

.tk-hero__stub {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 2px dashed rgba(250, 246, 236, 0.28);
}

.tk-hero__stub span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(250, 246, 236, 0.85);
}

/* compact "how it works" row */
.tk-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.tk-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border: 1.5px dashed var(--tk-line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tk-ink);
}

.tk-steps .afcon-icon { width: 16px; height: 16px; color: var(--tk-gold); }

.home-features { margin-top: 1.5rem !important; }

/* ---------- Event cards: compact paper tickets ---------- */
.events-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)) !important;
    gap: 1rem !important;
}

.afcon-card.event-card {
    border: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06), 0 10px 22px -14px rgba(6, 72, 42, .35) !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
}

.afcon-card.event-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .08), 0 18px 28px -16px rgba(6, 72, 42, .45) !important;
}

.afcon-card .event-image {
    aspect-ratio: 3 / 4;
    background: #e9e5da !important;
}

.afcon-card .event-image::after { display: none !important; }

.afcon-datebadge {
    top: 8px !important;
    left: 8px !important;
    min-width: 40px !important;
    padding: 4px 7px 5px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px -4px rgba(6, 72, 42, .45) !important;
}

.afcon-datebadge b { font-size: 1.05rem !important; font-weight: 800; color: var(--tk-ink) !important; }
.afcon-datebadge small { font-size: .55rem !important; letter-spacing: .12em !important; color: var(--tk-gold) !important; }

.afcon-cardchip {
    bottom: 8px !important;
    left: 8px !important;
    font-size: .62rem !important;
    letter-spacing: .1em !important;
    text-transform: uppercase;
    border: 1.5px dashed rgba(255, 255, 255, .55);
}

.afcon-card .event-content {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    gap: 0 !important;
    padding: .8rem .85rem .8rem !important;
}

.afcon-card .afcon-match,
.afcon-card .afcon-title {
    margin: 0 0 .4rem !important;
    font-size: .95rem !important;
    font-weight: 800 !important;
    line-height: 1.3;
    color: var(--tk-ink) !important;
    gap: .15rem .4rem !important;
}

.afcon-card .afcon-team__flag { font-size: 1.15em !important; }
.afcon-card .afcon-vs { display: inline !important; font-size: .7em; }

.afcon-card .afcon-facts {
    margin: 0 0 .5rem !important;
    gap: .2rem !important;
    font-size: .74rem !important;
    color: var(--tk-muted) !important;
}

.afcon-card .afcon-facts li:nth-child(2) { display: flex !important; }
.afcon-card .afcon-facts .afcon-icon { width: .85rem; height: .85rem; color: #a8a292 !important; }

/* perforation: two notches painted in the page colour + dashed line */
.tk-perf {
    flex: none;
    height: calc(var(--tk-n) * 2);
    margin: auto -.85rem .35rem;
    background:
        radial-gradient(circle var(--tk-n) at 0 50%, var(--tk-page) calc(var(--tk-n) - .5px), #0000 var(--tk-n)),
        radial-gradient(circle var(--tk-n) at 100% 50%, var(--tk-page) calc(var(--tk-n) - .5px), #0000 var(--tk-n)),
        repeating-linear-gradient(90deg, var(--tk-line) 0 6px, #0000 6px 11px) center / calc(100% - var(--tk-n) * 2 - 14px) 2px no-repeat;
}

.tk-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .1rem .45rem;
    margin: 0 0 .5rem !important;
    font-size: .95rem !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    color: var(--tk-ink) !important;
}

.tk-price .afcon-was {
    font-size: .72rem;
    font-weight: 600;
    color: #a8a292;
}

.afcon-card .afcon-buy {
    width: 100%;
    min-height: 38px !important;
    padding: .5rem .8rem !important;
    font-size: .78rem !important;
    white-space: nowrap;
}

.afcon-card .afcon-buy.is-off {
    background: var(--tk-soft) !important;
    color: #a8a292 !important;
}

.afcon-card .afcon-buy.is-soon {
    background: var(--tk-gold) !important;
    color: #06482a !important;
}

.tk-barcode {
    display: block;
    flex: none;
    height: 9px;
    margin-top: .65rem;
    opacity: .2;
    background: var(--tk-barcode);
}

/* ---------- Events page ---------- */
.events-page h1 {
    font-size: 1.15rem !important;
    margin: 0 0 .75rem !important;
}

.events-page h1 .afcon-icon { display: none; }

.events-search {
    display: flex;
    align-items: stretch;
    margin-bottom: .75rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06);
}

.events-search input {
    border: 0 !important;
    background: transparent !important;
    min-height: 50px !important;
    font-size: .95rem !important;
}

.events-search input:focus { box-shadow: none !important; }

.tk-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0 0 .9rem;
}

.tk-filter {
    min-height: 36px;
    padding: 0 .9rem;
    border: 1.5px solid var(--tk-ring);
    border-radius: 999px;
    background: #fff;
    color: var(--tk-text);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.tk-filter.is-on {
    background: var(--tk-ink);
    border-color: var(--tk-ink);
    color: #fff;
}

.tk-count {
    margin: 0 0 .75rem;
    font-size: .8rem;
    color: var(--tk-muted);
}

.tk-count b { color: var(--tk-ink); }

/* ---------- Event page: compact, ticket rows ---------- */
.event-details-container { gap: 1.25rem !important; margin-top: .25rem !important; }

.event-info-section {
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06) !important;
    padding: 1.25rem !important;
}

.event-header .afcon-match {
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
}

.afcon-bigfacts li {
    padding: .6rem .8rem !important;
    border: 1.5px dashed var(--tk-line) !important;
    background: #fff !important;
}

.afcon-bigfacts b { font-size: .95rem !important; }
.afcon-bigfacts .afcon-icon { width: 22px !important; height: 22px !important; }

.ticket-categories-section { margin-top: 1.5rem !important; }

.ticket-section-header h2 {
    font-size: .72rem !important;
    font-weight: 800 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tk-ink) !important;
}

.ticket-section-header h2 .afcon-icon { display: none; }

.ticket-categories-table .ticket-table-row:not(.ticket-table-header) {
    --n: 10px;
    position: relative;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06) !important;
    padding: .85rem 1.1rem !important;
    -webkit-mask:
        radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
        radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.ticket-categories-table .ticket-table-row.is-selected {
    outline: 2px dashed var(--tk-gold);
    outline-offset: -6px;
    background: #fffaf0 !important;
}

.ticket-col-name h3 { font-size: 1rem !important; }
.ticket-col-price .price-amount,
.ticket-col-price .price-free { font-size: 1.1rem !important; }

.afcon-qty { border-width: 1.5px !important; }
.afcon-qty__btn { width: 40px !important; height: 40px !important; font-size: 1.35rem !important; }
.afcon-qty__n { min-width: 34px !important; font-size: 1.1rem !important; }

.event-directions-wrap,
.event-info-grid { margin-top: 1.5rem !important; }

.event-directions-wrap > *,
.event-info-grid .info-card {
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06) !important;
}

/* ---------- My tickets: real paper tickets ---------- */
.tickets-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important;
    gap: 1rem !important;
}

.afcon-tcard {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem .85rem !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06), 0 10px 22px -14px rgba(6, 72, 42, .35) !important;
    overflow: hidden;
}

/* coloured status edge along the top */
.afcon-tcard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--tk-muted);
}

.afcon-tcard.status-confirmed::before { background: #15803d; }
.afcon-tcard.status-pending::before { background: var(--tk-gold); }
.afcon-tcard.status-failed::before,
.afcon-tcard.status-cancelled::before { background: var(--danger, #b42318); }

.afcon-tcard .afcon-match,
.afcon-tcard .afcon-title { font-size: 1rem !important; }

.afcon-tcard .afcon-facts { font-size: .8rem !important; margin: .5rem 0 .25rem !important; }

/* perforation above the stub */
.afcon-tcard__actions {
    position: relative;
    margin: .6rem -1.1rem 0;
    padding: 1.05rem 1.1rem 0 !important;
    border-top: 0 !important;
}

.afcon-tcard__actions::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 20px;
    background:
        radial-gradient(circle 10px at 0 50%, var(--tk-page) 9.5px, #0000 10px),
        radial-gradient(circle 10px at 100% 50%, var(--tk-page) 9.5px, #0000 10px),
        repeating-linear-gradient(90deg, var(--tk-line) 0 6px, #0000 6px 11px) center / calc(100% - 34px) 2px no-repeat;
}

.afcon-tcard__actions .afcon-btn--xl {
    min-height: 46px !important;
    font-size: .95rem !important;
}

.afcon-tcard::after {
    content: "";
    display: block;
    height: 9px;
    margin-top: .75rem;
    opacity: .18;
    background: var(--tk-barcode);
}

/* ---------- Footer: compact dark ---------- */
.footer {
    margin-top: 2.5rem !important;
    padding: 1.25rem 0 !important;
    background: #06482a !important;
}

.footer-bottom { font-size: .8rem !important; }

/* ---------- Cookie banner as a small ticket ---------- */
.cookie-consent {
    left: 1rem !important;
    right: auto !important;
    bottom: 1rem !important;
    max-width: 420px;
    border-radius: 16px !important;
    border-top: 0 !important;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6) !important;
}

@media (max-width: 600px) {
    .tk-hero.afcon-hero { grid-template-columns: 1fr 52px; }
    .tk-hero__main { padding: 1.25rem 1.1rem 1.1rem; }
    .tk-hero__stub span { font-size: .6rem; letter-spacing: .3em; }
    .tk-hero__row .afcon-btn { flex: 1 1 auto; }

    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .7rem !important;
    }

    .afcon-card .event-content { padding: .65rem .65rem .65rem !important; }
    .tk-perf { margin-left: -.65rem; margin-right: -.65rem; }
    .afcon-card .afcon-match { font-size: .85rem !important; }
    .afcon-card .afcon-facts li:nth-child(2) { display: none !important; }
    .afcon-card .afcon-buy { font-size: .74rem !important; min-height: 36px !important; }

    .cookie-consent { left: .5rem !important; right: .5rem !important; max-width: none; }
}

/* search bar: full width input + ticket button on the right */
#eventsSearchForm {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .35rem .35rem .35rem .9rem;
}

#eventsSearchForm input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    padding: 0 !important;
}

#eventsSearchForm .btn {
    flex: none;
    min-height: 44px;
    min-width: 54px;
    padding: 0 1.1rem !important;
}

.events-page {
    padding-top: .75rem;
}

.events-page .tk-head h1 {
    margin: 0 !important;
}

.home-features .events-grid,
.events-page .events-grid {
    margin-top: 0 !important;
}

.home-features .tk-head {
    margin-bottom: .85rem;
}

/* Card images: 4:3 — shorter cards, more matches per screen */
.afcon-card .event-image {
    aspect-ratio: 4 / 3 !important;
}

.afcon-card .event-image img {
    object-position: center 20% !important;
}

/* Event page poster: a calm, capped size */
.event-poster-section .event-poster,
.event-poster-section img {
    aspect-ratio: 4 / 5 !important;
    max-height: 420px !important;
}

.events-search-status:empty {
    display: none !important;
}

@media (max-width: 768px) {
    .event-poster-section {
        max-width: none !important;
    }

    .event-poster-section .event-poster,
    .event-poster-section img {
        aspect-ratio: 16 / 9 !important;
        max-height: 220px !important;
    }
}

.home-features .tk-head h2,
.events-page .tk-head h1 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.afcon-card .afcon-match {
    column-gap: .45rem !important;
}

.afcon-card .afcon-vs {
    padding: 0 .1rem !important;
}

/* My tickets: compact head, calm failed state */
.tickets-page h1 {
    font-size: 1.15rem !important;
    margin: .5rem 0 .75rem !important;
}

.tickets-page h1 .afcon-icon { display: none; }

.tickets-search input {
    background: #fff !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06);
    min-height: 50px !important;
}

.tickets-page hr,
.tickets-search + hr { display: none; }

.afcon-btn--danger {
    background: #fff !important;
    color: var(--danger, #b42318) !important;
    outline-color: color-mix(in srgb, #b42318 45%, transparent) !important;
}

.afcon-btn--danger:hover { background: #fdecea !important; }

.tickets-pagination,
.pagination-controls {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Match page: tickets first. Desktop = info left + sticky ticket panel right;
   phones = compact header, then tickets straight away.
   ========================================================================== */
.ev-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    grid-template-areas:
        "head side"
        "more side";
    gap: 1rem 1.25rem;
    align-items: start;
    margin-top: .25rem;
}

.ev-head { grid-area: head; }
.ev-side { grid-area: side; position: sticky; top: 72px; display: flex; flex-direction: column; gap: .85rem; }
.ev-more { grid-area: more; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

/* Head card: poster + who / when / where */
.ev-head {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06), 0 10px 22px -16px rgba(6, 72, 42, .3);
}

.ev-poster {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    background: #e9e5da;
}

.ev-poster img,
.ev-poster .event-poster {
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover;
    object-position: center top;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ev-poster .event-poster-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: #a8a292;
    font-size: .8rem;
}

.ev-poster .event-poster-placeholder svg { width: 40px; height: 40px; }

.ev-head__info { min-width: 0; }
.ev-head__info .tk-label { margin-bottom: .45rem; color: var(--tk-gold) !important; }

.ev-head .afcon-match,
.ev-head .afcon-title {
    margin: 0 0 .85rem !important;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem) !important;
    font-weight: 800 !important;
    line-height: 1.15;
    color: var(--tk-ink) !important;
}

.ev-facts {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .95rem;
    font-weight: 600;
    color: var(--tk-text);
}

.ev-facts li { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.ev-facts .afcon-icon { width: 18px; height: 18px; color: var(--tk-gold); }

/* Ticket panel */
.ev-side .event-ticket-purchase-area {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.ev-side .ticket-categories-section {
    margin: 0 !important;
    padding: 1rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06), 0 10px 22px -16px rgba(6, 72, 42, .3);
}

.ev-side .ticket-section-header { margin: 0 0 .65rem !important; }
.ev-side .ticket-section-header p { display: none; }
.ev-side .afcon-onsale { margin-bottom: .65rem; }

/* Each ticket type: name + price left, stepper right, notes underneath */
.ev-side .ticket-categories-table { gap: .5rem !important; }

.ev-side .ticket-categories-table .ticket-table-row:not(.ticket-table-header) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
        "name action"
        "price action"
        "avail avail" !important;
    align-items: center;
    gap: .1rem .75rem !important;
    padding: .75rem .9rem !important;
    background: var(--tk-soft) !important;
    box-shadow: none !important;
}

.ev-side .ticket-col-name { grid-area: name; }
.ev-side .ticket-col-price { grid-area: price; text-align: left !important; }
.ev-side .ticket-col-availability { grid-area: avail; }
.ev-side .ticket-col-action { grid-area: action; justify-content: flex-end !important; }

.ev-side .ticket-col-name h3 { margin: 0 !important; font-size: .98rem !important; }
.ev-side .ticket-col-price .price-amount,
.ev-side .ticket-col-price .price-free { font-size: 1rem !important; font-weight: 800; }
.ev-side .ticket-col-price .price-original { font-size: .72rem !important; }
.ev-side .ticket-col-availability:not(:empty) { margin-top: .35rem; }

.ev-side .afcon-qty { width: auto !important; background: #fff; }
.ev-side .ticket-col-action .btn { width: auto !important; min-height: 40px; padding: 0 1rem !important; font-size: .85rem; }

/* Cart bar inside the panel */
.ev-side .afcon-cartbar {
    position: static;
    margin: 0;
    border-radius: 14px;
}

.ev-side .event-queue-room { margin: 0 !important; }

/* More: map + about */
.ev-more .event-directions-wrap,
.ev-more .event-info-grid { margin: 0 !important; }

.ev-more .event-info-grid {
    display: block !important;
}

.ev-more .info-card {
    padding: 1rem 1.15rem !important;
    background: #fff !important;
}

.ev-more .info-card h2 {
    margin: 0 0 .5rem !important;
    font-size: .72rem !important;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tk-ink) !important;
}

.ev-more .info-card p { margin: 0; font-size: .95rem; }

/* Phones: header compact, tickets right after */
@media (max-width: 960px) {
    .ev-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "side"
            "more";
        gap: .85rem;
    }

    .ev-side { position: static; }

    .ev-head {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: .85rem;
        padding: .75rem;
        align-items: start;
    }

    .ev-poster { border-radius: 10px; }

    .ev-head .afcon-match,
    .ev-head .afcon-title {
        margin-bottom: .5rem !important;
        font-size: 1.15rem !important;
    }

    .ev-head .afcon-team__flag { font-size: 1.15em !important; }
    .ev-head__info .tk-label { margin-bottom: .25rem; font-size: .62rem !important; }

    .ev-facts { gap: .25rem; font-size: .82rem; }
    .ev-facts .afcon-icon { width: 15px; height: 15px; }

    .ev-side .ticket-categories-section { padding: .85rem; }

    /* the sticky bottom bar carries total + Pay on phones */
    .ev-side .afcon-cartbar { display: none !important; }

    .is-queue-waiting .ev-more { display: none !important; }
}

#eventTicketPurchaseArea { scroll-margin-top: 80px; }

/* Phones: the bottom bar only appears once there is something to pay for */
@media (max-width: 768px) {
    .afcon-sticky-buy:not(.is-pay) { display: none !important; }
}

/* ---------- Footer: organised, ticket feel ---------- */
.tk-footer {
    margin-top: 3rem !important;
    padding: 2.25rem 0 1.25rem !important;
    background: #06482a !important;
    color: rgba(250, 246, 236, .78) !important;
    text-align: left !important;
}

.tk-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px dashed rgba(250, 246, 236, .18);
}

.tk-footer__name {
    margin: 0 0 .5rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #fff;
}

.tk-footer__text {
    margin: 0 0 1rem;
    max-width: 26rem;
    font-size: .88rem;
    line-height: 1.55;
}

.tk-footer__barcode {
    display: block;
    width: 170px;
    height: 12px;
    opacity: .35;
    background: repeating-linear-gradient(90deg, #faf6ec 0 1px, #0000 1px 3px, #faf6ec 3px 5px, #0000 5px 6px, #faf6ec 6px 7px, #0000 7px 10px, #faf6ec 10px 13px, #0000 13px 15px);
}

.tk-footer__col {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.tk-footer__head {
    margin: 0 0 .25rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tk-gold);
}

.tk-footer a {
    color: rgba(250, 246, 236, .85) !important;
    font-size: .9rem;
    text-decoration: none !important;
    opacity: 1 !important;
}

.tk-footer a:hover { color: #fff !important; }

.tk-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    padding-top: 1.1rem;
    font-size: .8rem;
}

.tk-footer__legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.1rem;
}

.tk-footer__legal a { font-size: .8rem; color: rgba(250, 246, 236, .65) !important; }
.tk-footer__legal p { margin: 0; color: rgba(250, 246, 236, .5); }

@media (max-width: 700px) {
    .tk-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
    }

    .tk-footer__brand { grid-column: 1 / -1; }

    .tk-footer__legal {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Header menu. Desktop: plain text links. Phones: a ticket that slides in.
   ========================================================================== */
.tk-menu-head,
.tk-nav-ico,
.tk-menu-barcode,
.tk-nav-count { display: none; }

.tk-menu-stub { display: contents; }

@media (min-width: 769px) {
    .nav-menu { gap: 1.35rem !important; }
    .tk-menu-auth {
        padding: .35rem .9rem !important;
        border-radius: 999px;
        border: 1.5px solid var(--tk-ring);
    }
    .tk-menu-auth::before { display: none !important; }
}

@media (max-width: 768px) {
    .nav-menu {
        top: 10px !important;
        bottom: 10px;
        right: calc(-100% - 20px) !important;
        height: auto !important;
        width: min(320px, 86vw) !important;
        padding: 1rem 1rem 1rem !important;
        gap: 0 !important;
        align-items: stretch !important;
        background: #fff !important;
        border-radius: 20px 0 0 20px;
        box-shadow: -18px 0 40px -20px rgba(6, 72, 42, .55) !important;
        transition: right .35s var(--tk-ease) !important;
    }

    .nav-menu.active { right: 0 !important; }

    .nav-overlay.active {
        background: rgba(6, 72, 42, .45) !important;
        backdrop-filter: none !important;
    }

    .tk-menu-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: .5rem;
        padding: .35rem .25rem .9rem;
        margin-right: 2.75rem;          /* room for the close (X) button */
    }

    .tk-menu-head__hint {
        font-size: .7rem;
        color: var(--tk-muted);
        white-space: nowrap;
    }

    .nav-menu .tk-nav-link {
        display: flex !important;
        align-items: center;
        gap: .85rem !important;
        width: 100%;
        min-height: 52px;
        padding: 0 .75rem !important;
        border: 0 !important;
        border-radius: 12px;
        color: var(--tk-ink) !important;
        font-size: 1.02rem !important;
        font-weight: 700 !important;
        background: transparent;
    }

    .nav-menu .tk-nav-link + .tk-nav-link {
        box-shadow: 0 -1px 0 0 transparent;
        background-image: repeating-linear-gradient(90deg, var(--tk-ring) 0 5px, transparent 5px 9px);
        background-size: calc(100% - 1.5rem) 1px;
        background-position: .75rem 0;
        background-repeat: no-repeat;
    }

    .nav-menu .tk-nav-link::before { display: none !important; }

    .nav-menu .tk-nav-link.active {
        background: var(--tk-soft) !important;
        background-image: none !important;
    }

    .nav-menu .tk-nav-link.active .tk-nav-ico { color: var(--tk-gold); }

    .tk-nav-ico {
        display: block;
        width: 22px !important;
        height: 22px !important;
        color: #a8a292;
    }

    .tk-nav-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        margin-left: auto;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--tk-gold);
        color: #06482a;
        font-size: .75rem;
        font-weight: 800;
    }

    /* perforation + stub with the account button and a barcode */
    .tk-menu-stub {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: .85rem;
        margin: auto -1rem 0;
        padding: 1.35rem 1rem 0;
    }

    .tk-menu-stub::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -10px;
        height: 20px;
        background:
            radial-gradient(circle 10px at 0 50%, rgba(6, 72, 42, .45) 9.5px, #0000 10px),
            repeating-linear-gradient(90deg, var(--tk-line) 0 6px, #0000 6px 11px) center / calc(100% - 34px) 2px no-repeat;
    }

    .nav-menu .tk-menu-auth {
        --n: 6px;
        justify-content: center;
        min-height: 52px;
        background: var(--tk-ink) !important;
        background-image: none !important;
        color: #fff !important;
        -webkit-mask:
            radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
            radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
        mask:
            radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
            radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
        outline: 1px dashed rgba(255, 255, 255, .4);
        outline-offset: -5px;
    }

    .nav-menu .tk-menu-auth .tk-nav-ico { color: var(--tk-gold); }

    .tk-menu-barcode {
        display: block;
        height: 12px;
        opacity: .22;
        background: var(--tk-barcode);
    }

    /* close button sits over the panel */
    .hamburger.active { position: fixed; top: 22px; right: 18px; z-index: 1003; }
}

/* ==========================================================================
   Search
   ========================================================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.tk-search {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: 0 0 .6rem;
    padding: .35rem .35rem .35rem .85rem;
    background: #fff;
    border: 1.5px solid transparent;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06), 0 8px 18px -14px rgba(6, 72, 42, .35);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.tk-search:focus-within {
    border-color: var(--tk-ink);
    box-shadow: 0 0 0 4px rgba(9, 107, 60, .1);
}

.tk-search__icon { display: inline-flex; color: #a8a292; }
.tk-search__icon .afcon-icon { width: 20px; height: 20px; }

.tk-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    padding: 0 .25rem;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--tk-ink);
    -webkit-appearance: none;
    appearance: none;
}

.tk-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.tk-search input::placeholder { color: #a8a292; }

.tk-search__clear {
    flex: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--tk-soft);
    color: var(--tk-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.tk-search__clear:hover { background: var(--tk-ring); color: var(--tk-ink); }

.tk-search__kbd {
    flex: none;
    padding: .1rem .45rem;
    border: 1.5px solid var(--tk-ring);
    border-radius: 6px;
    font: inherit;
    font-size: .75rem;
    color: #a8a292;
}

.tk-search:focus-within .tk-search__kbd { display: none; }

.tk-search__go {
    flex: none;
    min-height: 46px !important;
    padding: 0 1.25rem !important;
    font-size: .92rem !important;
}

.tk-suggest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .75rem;
    font-size: .8rem;
    color: var(--tk-muted);
}

.tk-suggest[hidden] { display: none; }

.tk-suggest__chip {
    min-height: 32px;
    padding: 0 .75rem;
    border: 1.5px dashed var(--tk-line);
    border-radius: 999px;
    background: transparent;
    color: var(--tk-ink);
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.tk-suggest__chip:hover { background: #fff; border-style: solid; }

#eventsResults { transition: opacity .15s ease; }
#eventsResults.is-loading { opacity: .5; pointer-events: none; }

/* Empty state as a small ticket */
.tk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 440px;
    margin: 1rem auto;
    padding: 1.75rem 1.5rem;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    border: 1.5px dashed var(--tk-line);
}

.tk-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: .85rem;
    border-radius: 14px;
    background: var(--tk-soft);
    color: var(--tk-ink);
}

.tk-empty__icon .afcon-icon { width: 26px; height: 26px; }
.tk-empty__title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; color: var(--tk-ink); }
.tk-empty__text { margin: 0 0 1rem; font-size: .9rem; color: var(--tk-muted); }

@media (max-width: 600px) {
    .tk-search { padding-left: .7rem; }
    .tk-search__kbd { display: none; }
    .tk-search__go { padding: 0 .9rem !important; font-size: .85rem !important; }
    .tk-search input[type="search"] { font-size: 16px; }   /* no zoom-in on iPhone */
}

@media (max-width: 600px) {
    .tk-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -20px;
        padding-right: 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .tk-filters::-webkit-scrollbar { display: none; }
    .tk-filter { flex: none; }
}

/* ==========================================================================
   Cart
   ========================================================================== */
.tk-cart { padding-top: .75rem; }

.tk-cart__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 1.25rem;
    align-items: start;
}

.tk-cart__list { display: flex; flex-direction: column; gap: .75rem; }

.tk-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    padding: .75rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06), 0 10px 22px -16px rgba(6, 72, 42, .3);
    transition: opacity .2s ease;
}

.tk-line.is-busy { opacity: .55; pointer-events: none; }

.tk-line.disabled { outline: 2px dashed rgba(180, 35, 24, .35); outline-offset: -2px; }

.tk-line__thumb {
    display: grid;
    place-items: center;
    width: 72px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--tk-soft);
    color: #a8a292;
}

.tk-line__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.tk-line__info { min-width: 0; }

.tk-line__match {
    display: block;
    color: var(--tk-ink);
    text-decoration: none;
}

.tk-line__match .afcon-match {
    font-size: 1rem !important;
    font-weight: 800 !important;
    gap: .1rem .4rem !important;
}

.tk-line__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .1rem .5rem;
    margin: .25rem 0 0;
    font-size: .78rem;
    color: var(--tk-muted);
}

.tk-line__meta .cart-item-category {
    font-weight: 800;
    color: var(--tk-gold);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tk-line__meta span + span::before { content: "·"; margin-right: .5rem; color: #c9c2b2; }

.tk-line .afcon-avail { margin-top: .4rem; font-size: .75rem; }

.tk-line__buy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .45rem;
}

.tk-line__price {
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
    color: var(--tk-ink);
    white-space: nowrap;
}

.tk-line__price small { margin-left: .3rem; font-size: .7rem; font-weight: 600; color: var(--tk-muted); }

.tk-line__ctrl { display: flex; align-items: center; gap: .4rem; }

.tk-cart-qty { background: #fff; }
.tk-cart-qty .afcon-qty__btn { width: 36px !important; height: 36px !important; font-size: 1.2rem !important; }

.tk-cart-qty input.afcon-qty__n {
    width: 40px;
    min-width: 40px !important;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    font: inherit;
    font-size: 1rem !important;
    font-weight: 800;
    color: var(--tk-ink);
    -moz-appearance: textfield;
}

.tk-cart-qty input::-webkit-outer-spin-button,
.tk-cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tk-line__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 50% !important;
    background: transparent !important;
    color: #a8a292 !important;
    cursor: pointer;
    -webkit-mask: none !important;
    mask: none !important;
    outline: 0 !important;
}

.tk-line__remove:hover { background: #fdecea !important; color: var(--danger, #b42318) !important; }
.tk-line__remove .afcon-icon { width: 20px; height: 20px; }

/* Order summary: a paper ticket that stays in view */
.tk-cart__summary {
    position: sticky;
    top: 72px;
    padding: 1rem 1.1rem .9rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06), 0 14px 28px -18px rgba(6, 72, 42, .4);
}

.tk-cart__summary .tk-perf { margin: .6rem -1.1rem .5rem; }

.tk-sum__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }

.tk-sum__count {
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--tk-soft);
    font-size: .75rem;
    font-weight: 800;
    color: var(--tk-ink);
}

.tk-sum__items { display: flex; flex-direction: column; gap: .35rem; }

.tk-sum__items .summary-item {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    font-size: .82rem;
    color: var(--tk-text);
}

.tk-sum__items .summary-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sum__items .summary-item strong { flex: none; color: var(--tk-ink); }

.tk-sum__row {
    display: flex;
    justify-content: space-between;
    margin: .2rem 0;
    font-size: .88rem;
    color: var(--tk-muted);
}

.tk-sum__row strong { color: var(--tk-text) !important; font-weight: 700; }

.tk-sum__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: .6rem 0 .9rem;
    padding: .7rem .85rem;
    border-radius: 12px;
    background: var(--tk-soft);
    font-weight: 700;
}

.tk-sum__total strong { font-size: 1.4rem; font-weight: 800; color: var(--tk-ink) !important; }

.tk-sum__pay {
    width: 100%;
    min-height: 54px !important;
    font-size: 1.02rem !important;
}

.tk-sum__notes {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin: .85rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .76rem;
    color: var(--tk-muted);
}

.tk-sum__notes li { display: flex; align-items: center; gap: .4rem; }
.tk-sum__notes .afcon-icon { width: 15px; height: 15px; color: var(--tk-gold); }

.toast-container { z-index: 1200; }

@media (max-width: 860px) {
    .tk-cart__layout { grid-template-columns: minmax(0, 1fr); }
    .tk-cart__summary { position: static; }
}

@media (max-width: 560px) {
    .tk-line {
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-areas: "thumb info" "buy buy";
        gap: .55rem .75rem;
        padding: .65rem;
    }
    .tk-line__thumb { grid-area: thumb; width: 56px; }
    .tk-line__info { grid-area: info; }
    .tk-line__buy {
        grid-area: buy;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: .55rem;
        border-top: 1px dashed var(--tk-ring);
    }
    .tk-line__match .afcon-match { font-size: .92rem !important; }
    .tk-line__venue { display: none; }
}

/* ==========================================================================
   Checkout
   ========================================================================== */
.checkout-page .checkout-hero.card-style {
    margin: .5rem auto 0;
    max-width: 560px;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.checkout-hero .afcon-progress {
    justify-content: flex-start;
    gap: .35rem;
    margin: 0 0 .65rem;
}

.checkout-hero .afcon-progress li {
    flex-direction: row;
    gap: .35rem;
    min-width: 0;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    background: #fff;
    border: 1.5px solid var(--tk-ring);
}

.checkout-hero .afcon-progress .afcon-icon { width: 16px; height: 16px; }
.checkout-hero .afcon-progress li.is-current { background: var(--tk-ink); border-color: var(--tk-ink); }
.checkout-hero .afcon-progress li.is-done { border-color: #bfe3c9; background: #f1faf3; }

.checkout-hero .hero-text { text-align: left !important; }
.checkout-hero .hero-text h1 { font-size: 1.15rem !important; }
.checkout-hero .hero-subtitle { margin: .3rem 0 0; font-size: .9rem; color: var(--tk-muted); }

.afcon-checkout { margin-top: .75rem !important; }

.afcon-paycard.card-style {
    padding: 1rem 1.1rem .9rem !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(6, 72, 42, .06), 0 14px 28px -18px rgba(6, 72, 42, .4) !important;
}

.afcon-paycard::after {
    content: "";
    display: block;
    height: 9px;
    margin-top: .9rem;
    opacity: .18;
    background: var(--tk-barcode);
}

.afcon-paylist li {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    padding: .65rem 0 !important;
}

.afcon-paylist__price { grid-column: auto !important; font-size: .95rem !important; }
.afcon-paylist__icon .afcon-icon { width: 22px !important; height: 22px !important; color: var(--tk-gold) !important; }
.afcon-paylist__what .afcon-match { font-size: .95rem !important; }

.afcon-paytotal {
    margin: .75rem 0 1rem !important;
    padding: .75rem .9rem !important;
    background: var(--tk-soft) !important;
}

.afcon-paytotal b { font-size: 1.45rem !important; font-weight: 800; }

.afcon-phone input[type="tel"] { min-height: 50px !important; font-size: 1.05rem !important; }

.afcon-paybtn.afcon-btn--xl { min-height: 56px !important; }

.afcon-reassure { margin-top: .9rem !important; padding-top: .75rem !important; border-top: 1px dashed var(--tk-ring) !important; }

.tk-line__thumb { position: relative; display: block; }
.tk-line__thumb img { position: absolute; inset: 0; }
.tk-line__thumb .afcon-icon { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; }

/* checkout: the highlighted "Pay" step already says where we are */
.checkout-hero .afcon-progress { justify-content: center; }
.checkout-hero .hero-text:not(:has(.hero-subtitle)) { display: none; }
.checkout-hero .hero-text { text-align: center !important; }

/* checkout line: teams never get cut; on phones the price drops under the match */
.afcon-paylist__what { min-width: 0; }
.afcon-paylist__what .afcon-match { display: flex !important; flex-wrap: wrap !important; align-items: center; column-gap: 6px; row-gap: 2px; }
.afcon-paylist__what .afcon-team { white-space: nowrap; }
@media (max-width: 480px) {
  .afcon-paylist li { grid-template-columns: auto 1fr !important; row-gap: 4px !important; }
  .afcon-paylist__icon { grid-row: span 2; align-self: start; }
  .afcon-paylist__price { grid-column: 2 !important; justify-self: start; }
}
