/* Purchase pages — navy/gold theme overrides
   Applied to all /Purchase/* views. Overrides legacy purchase.css colors. */

/* === Font: standardise the whole purchase flow on the site font ===
   The legacy ticket CSS files set a different font on almost every element:
   MasterPage.css / SelectTickets.css → Segoe UI, CategoryTabs.css /
   TicketingPages.css → Calibri, SelectSeats.css → Verdana, Superwire.css →
   brandon-grotesque/Arial, purchase.css → Roboto. The result is that the
   purchase pages and their modals look nothing like the rest of the site.
   style.css sets `html, body { font-family: roboto condensed }`, so force that
   one font across everything in the purchase scope. Icon-font classes are
   exempted so any future glyph icons keep their own font. */
.purchase-page-wrap,
.purchase-page-wrap *:not([class*="glyphicon"]):not([class*="fa-"]):not(.fa):not(.material-icons),
.age-warn-modal,
.age-warn-modal *:not([class*="glyphicon"]):not([class*="fa-"]):not(.fa):not(.material-icons) {
    font-family: "roboto condensed", sans-serif !important;
}

/* === Reset legacy wrapper backgrounds (purchase.css set them to #242424) === */
.div_section,
.div_img_cont,
.box,
.div_bs_heading {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
    display: block !important;
}

/* Legacy purchase.css applies .float_left { float:left } directly on cards.
   On mobile this combines with bootstrap's stacked cols to collapse parents
   to 1px and leave cards shrink-to-fit (boxes look misaligned/overlapped).
   The bootstrap column itself already lays them out — drop the inner float. */
.purchase-page-wrap .float_left,
.purchase-page-wrap .div_ineer_box,
.purchase-page-wrap .div_bs_wrapper,
.purchase-page-wrap .div_left_main_wrapper,
.purchase-page-wrap .div_sb_h2,
.purchase-page-wrap .div_sb_ul {
    float: none !important;
    width: auto !important;
    max-width: 100%;
}

/* === Card panel pattern (matches Showtimes .state-msg) === */
.div_ineer_box,
.div_bs_wrapper,
#SelectTicketsPanel,
.purchase-card {
    padding: 24px !important;
    background: #0b173d !important;
    border: 1px solid #1f2c63 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    margin-bottom: 16px !important;
    color: #fff;
}

/* === Empty/notice state — full card pattern (centered, big padding) === */
#div_no_sales .box,
.purchase-card.empty-state {
    padding: 64px 24px !important;
    text-align: center !important;
    background: #0b173d !important;
    border: 1px solid #1f2c63 !important;
    border-radius: 8px !important;
    color: #fff;
}
#div_no_sales .box h6,
.purchase-card.empty-state h6 {
    color: #fce695;
    border: 0;
    padding: 0;
}
#div_no_sales .box h6:after,
.purchase-card.empty-state h6:after { display: none; }

/* === Heading reset inside cards (kill site default border-bottom + ::after) === */
.div_ineer_box h2, .div_ineer_box h3, .div_ineer_box h4, .div_ineer_box h5,
#SelectTicketsPanel h2, #SelectTicketsPanel h3, #SelectTicketsPanel h4, #SelectTicketsPanel h5,
.div_bs_wrapper h2, .div_bs_wrapper h3, .div_bs_wrapper h4, .div_bs_wrapper h5,
.purchase-card h2, .purchase-card h3, .purchase-card h4, .purchase-card h5 {
    color: #fff;
    border: 0;
    padding: 0 0 8px;
    margin: 0 0 10px;
}
.div_ineer_box h2:after, .div_ineer_box h3:after, .div_ineer_box h4:after, .div_ineer_box h5:after,
#SelectTicketsPanel h2:after, #SelectTicketsPanel h3:after, #SelectTicketsPanel h4:after, #SelectTicketsPanel h5:after,
.div_bs_wrapper h2:after, .div_bs_wrapper h3:after, .div_bs_wrapper h4:after, .div_bs_wrapper h5:after,
.purchase-card h2:after, .purchase-card h3:after, .purchase-card h4:after, .purchase-card h5:after { display: none; }

/* === Page hero === */
#content_hero h1 { color: #fff; border: 0; padding: 0; }
#content_hero h1:after { display: none; }

/* === Cinema cart sidebar === */
.div_bs_heading p { color: #fce695; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 8px; }
.div_bs_heading hr { border-color: #1f2c63; margin: 8px 0 16px; }
.div_sb_ul ul { list-style: none; padding: 0; margin: 0; }
.div_sb_ul li { padding: 4px 0; color: #9fb0d9; }
.div_sb_ul li b { color: #fff; }
.div_sb_h2 h5 { color: #9fb0d9; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; border: 0; padding: 14px 0 0; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.div_sb_h2 h5:after { display: none; }
.div_sb_h2 h5 #span_total_cost { color: #fce695; font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.div_sb_h2 > span { color: #9fb0d9; font-size: 11px; }

/* === Movie info list === */
.div_ineer_box ul { list-style: none; padding: 0; margin: 0; }
.div_ineer_box li { margin: 0 !important; padding: 6px 0 !important; float: none !important; width: 100% !important; line-height: 1.5; }
.div_ineer_box li:first-child { padding-top: 0 !important; padding-bottom: 12px !important; }
.div_ineer_box .dtts1 { color: #9fb0d9; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; display: inline-block; min-width: 60px; width: auto !important; float: none !important; margin: 0 !important; }
.div_ineer_box .dtts2 { color: #fff; font-weight: 700; margin-left: 8px; width: auto !important; float: none !important; }
.div_ineer_box h4 { color: #fff; border: 0; padding: 0; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.div_ineer_box h4:after { display: none; }

/* === Select Tickets table === */
#SelectTicketsPanel .main-page-blurb p { color: #9fb0d9; }
#SelectTicketsPanel ul { list-style: none; padding: 0; margin: 0; }
#SelectTicketsPanel ul .item {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    align-items: center;
    border: 0 !important;
    padding: 12px 10px !important;
    gap: 12px;
}
#SelectTicketsPanel .desc {
    width: auto !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
    color: #fff !important;
    margin: 0 !important;
    font-weight: 400 !important;
}
#SelectTicketsPanel .desc span { color: #fff; }
#SelectTicketsPanel .price {
    width: auto !important;
    text-align: left !important;
    color: #fce695 !important;
    font-weight: 700 !important;
}
#SelectTicketsPanel .ticket-quantity {
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 4px !important;
    padding: 0 !important;
}
#SelectTicketsPanel .ticket-quantity button[name*="btn_minus"],
#SelectTicketsPanel .ticket-quantity button[name*="btn_plus"] {
    float: none !important;
    margin: 0 !important;
}
#SelectTicketsPanel .ticket-quantity input.quantity {
    margin: 0 !important;
    width: 40px !important;
}
#SelectTicketsPanel .sub-total {
    width: auto !important;
    text-align: right !important;
    color: #fce695 !important;
    font-weight: 700 !important;
}
/* Header row h6 (Tickets / Cost / Quantity / Price labels) */
#SelectTicketsPanel ul .item h6 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #9fb0d9 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}
#SelectTicketsPanel ul .item h6:after { display: none; }
#SelectTicketsPanel ul .item.hide,
#SelectTicketsPanel ul .item.hidden { display: none !important; }

/* === CTA button (Select Seats, Confirm Purchase etc.) === */
#ibtnOrderTickets,
.btn-purchase-action {
    background: linear-gradient(to right, #c39330, #fce695, #c39330) !important;
    color: #0e1a4a !important;
    border: 1px solid #fce695 !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-radius: 3px !important;
}
#ibtnOrderTickets:hover,
.btn-purchase-action:hover { filter: brightness(1.08); }

/* === Bootstrap modal-content default override (no more pure-black modals) === */
.modal.purchase-themed .modal-content,
.age-warn-modal .modal-content,
.confirm-modal .modal-content {
    background-color: #0b173d !important;
    border: 1px solid #1f2c63 !important;
    border-radius: 8px !important;
    color: #fff !important;
}

/* === Age-warning modal header + close button ===
   Bootstrap 3's .modal-header is not flex and .close floats right, so the X
   sits in the top-right corner instead of centered against the title. Make the
   header a flex row and reset the close button so the X is centered. */
.age-warn-modal .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.age-warn-modal .modal-header .modal-title { flex: 1 1 auto; }
.age-warn-modal .modal-header .close {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    opacity: .85 !important;
    text-shadow: none !important;
    flex: 0 0 auto;
}
.age-warn-modal .modal-header .close:hover { opacity: 1 !important; color: #fff !important; }

/* === Age-warning modal buttons ===
   Marked !important so the ticket CSS files loaded after purchase-theme.css
   (MasterPage / SelectTickets etc.) can't strip them back to the default grey
   <button>. Cancel is brightened so it reads as clickable, not disabled. */
.age-warn-modal .btn-age-cancel {
    background: transparent !important;
    color: #cdd8f0 !important;
    border: 1px solid #3a4a85 !important;
    padding: 9px 22px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transition: all .15s;
}
.age-warn-modal .btn-age-cancel:hover { color: #fff !important; border-color: #9fb0d9 !important; background: rgba(159,176,217,.08) !important; }
.age-warn-modal .btn-age-continue {
    background: linear-gradient(to right, #c39330, #fce695, #c39330) !important;
    color: #0e1a4a !important;
    border: 1px solid #fce695 !important;
    padding: 9px 22px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    opacity: 1 !important;
    transition: filter .15s;
}
.age-warn-modal .btn-age-continue:hover { filter: brightness(1.08); }

/* === Anchor color in purchase pages === */
.purchase-page-wrap a { color: #fce695; }
.purchase-page-wrap { color: #fff; }

/* === Plus / Minus quantity buttons (Adult, Senior, FnB qty etc.) === */
.purchase-page-wrap button[name*="btn_minus"],
.purchase-page-wrap button[name*="btn_plus"] {
    background: transparent !important;
    background-image: none !important;
    border: 1px solid #fce695 !important;
    border-radius: 3px !important;
    color: #fce695 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all .15s;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.purchase-page-wrap button[name*="btn_minus"]:hover,
.purchase-page-wrap button[name*="btn_plus"]:hover {
    background: linear-gradient(to right,#c39330,#fce695,#c39330) !important;
    color: #0e1a4a !important;
}
.purchase-page-wrap button[name*="btn_minus"]::before { content: '\2212'; }
.purchase-page-wrap button[name*="btn_plus"]::before { content: '+'; }

.purchase-page-wrap input.quantity {
    background: #0b173d !important;
    border: 1px solid #1f2c63 !important;
    color: #fff !important;
    border-radius: 3px !important;
    width: 44px !important;
    height: 32px !important;
    margin: 0 4px !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0 !important;
    vertical-align: middle;
    cursor: default !important;
    -webkit-user-select: none;
    user-select: none;
    caret-color: transparent;
}
.purchase-page-wrap input.quantity:focus { outline: none !important; }

/* === FnB food/beverage item cards === */
.purchase-page-wrap [name="btn_plus"] {
    background: #0b173d !important;
    border: 1px solid #1f2c63 !important;
    border-radius: 8px !important;
    transition: border-color .15s, transform .15s;
    overflow: hidden;
}
.purchase-page-wrap [name="btn_plus"]:hover {
    border-color: #fce695 !important;
    transform: translateY(-2px);
}
.purchase-page-wrap [name="btn_plus"] img {
    border-radius: 6px !important;
    object-fit: contain !important;
    max-width: 100% !important;
    width: auto !important;
    height: 150px !important;
    background: #04102f;
    display: inline-block;
}
.purchase-page-wrap [name="btn_plus"] b {
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
}
.purchase-page-wrap [name="btn_plus"] > center > div:nth-child(3) {
    color: #fce695 !important;
    font-size: 16px;
    font-weight: 700;
    margin-top: 4px;
}

/* === FnB category tabs (jQuery UI tabs reskin) === */
.purchase-page-wrap .tabs.movies > ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 24px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #1f2c63;
    background: transparent !important;
}
.purchase-page-wrap .tabs.movies > ul li {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}
.purchase-page-wrap .tabs.movies > ul li a {
    display: block !important;
    padding: 12px 22px !important;
    color: #9fb0d9 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -1px !important;
    background: transparent !important;
    transition: color .15s, border-color .15s;
}
.purchase-page-wrap .tabs.movies > ul li a:hover {
    color: #fff !important;
}
.purchase-page-wrap .tabs.movies > ul li.ui-tabs-active a,
.purchase-page-wrap .tabs.movies > ul li.ui-state-active a {
    color: #fce695 !important;
    border-bottom-color: #fce695 !important;
}

/* === Countdown timer === */
.purchase-page-wrap .countdown {
    background: #0b173d !important;
    border: 1px solid #1f2c63 !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    text-align: center !important;
    margin: 0 0 16px !important;
    box-shadow: none !important;
}
.purchase-page-wrap .countdown > span:first-child {
    display: block;
    color: #9fb0d9;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.purchase-page-wrap .countdown em {
    color: #9fb0d9;
    font-style: normal;
    font-weight: 700;
    margin-left: 4px;
}
.purchase-page-wrap .countdown .time {
    display: block !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #fce695 !important;
    letter-spacing: 3px !important;
    background: transparent !important;
}

/* === Generic ghost button (Continue, Back to home, etc.) === */
.purchase-page-wrap .btn-ghost {
    background: linear-gradient(to right,#c39330,#fce695,#c39330) !important;
    color: #0e1a4a !important;
    border: 1px solid #fce695 !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-radius: 3px !important;
}
.purchase-page-wrap .btn-ghost:hover {
    filter: brightness(1.08);
}

/* === Terms / agreement labels — site default uppercases all form labels === */
.purchase-page-wrap .terms-conditions-line label,
.purchase-page-wrap form .terms-conditions-line label {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #9fb0d9 !important;
    line-height: 1.6;
}
.purchase-page-wrap .terms-conditions-line label a,
.purchase-page-wrap .terms-conditions-line a {
    color: #fce695 !important;
    text-decoration: underline !important;
    font-weight: 700;
}
.purchase-page-wrap .terms-conditions-line label a:hover,
.purchase-page-wrap .terms-conditions-line a:hover {
    color: #fff !important;
}

/* === Seat map: the layout is a fixed 475px pixel grid. On narrow screens
   make .Seating-Control scroll horizontally instead of the right-side seat
   columns being clipped by #select-seats-container's overflow:hidden.
   The inner wrapper must size to its content (max-content) so the scroll
   container actually sees the 475px width. === */
.purchase-page-wrap .Seating-Control {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.purchase-page-wrap .Seating-Control > div {
    width: -webkit-max-content !important;
    width: max-content !important;
    min-width: 100%;
    margin: 0 auto !important;
}
.purchase-page-wrap .Seating-Control::-webkit-scrollbar { height: 6px; }
.purchase-page-wrap .Seating-Control::-webkit-scrollbar-thumb { background: #fce695; border-radius: 3px; }
.purchase-page-wrap .Seating-Control::-webkit-scrollbar-track { background: #0b173d; }

/* === Mobile (<=600px) === */
@media (max-width: 600px) {
    /* Card panels: trim the heavy padding */
    .div_ineer_box,
    .div_bs_wrapper,
    #SelectTicketsPanel,
    .purchase-card {
        padding: 16px !important;
    }
    #div_no_sales .box,
    .purchase-card.empty-state {
        padding: 40px 18px !important;
    }

    /* Select Tickets: stack the 4-column grid into a 2x2 per row */
    #SelectTicketsPanel ul .item:first-child {
        display: none !important; /* hide "Tickets / Cost / Quantity / Price" header labels */
    }
    #SelectTicketsPanel ul .item {
        grid-template-columns: 1fr auto !important;
        gap: 8px 12px !important;
        padding: 14px 6px !important;
        border-bottom: 1px solid #1f2c63 !important;
    }
    #SelectTicketsPanel .desc {
        grid-column: 1; grid-row: 1; align-self: center;
    }
    #SelectTicketsPanel .price {
        grid-column: 2; grid-row: 1; align-self: center;
        text-align: right !important; white-space: nowrap;
    }
    #SelectTicketsPanel .ticket-quantity {
        grid-column: 1; grid-row: 2; justify-content: flex-start !important;
    }
    #SelectTicketsPanel .sub-total {
        grid-column: 2; grid-row: 2; align-self: center;
    }

    /* CTA full width on mobile. Note: do NOT force display:block here —
       SelectSeats.js uses $('#ibtnOrderTickets').hide()/.show() to gate the
       button on seat selection, and display:block !important would override
       the inline display:none and leave it always visible. */
    #ibtnOrderTickets,
    .purchase-page-wrap .btn-ghost {
        float: none !important; width: 100%;
    }
    .div_sb_h2 h5 #span_total_cost { font-size: 20px; }
}
