/* 360 Dublin checkout. Consumes the site's design tokens from the child
   theme (--d360-display, --d360-body etc.) with plain fallbacks so the
   component still renders sanely if the theme changes. */

/* Inside a flex container (an Elementor flexbox parent), the widget
   wrapper shrink-fits and pins the checkout left; force the wrapper to
   take the row so the component's own max-width + margin:auto centring
   works wherever the shortcode is embedded. */
.elementor-widget-shortcode:has(> .elementor-widget-container .d360-checkout),
.elementor-widget-shortcode:has(.d360-checkout) {
    width: 100%;
    flex-grow: 1;
}

/* One grey for text (4.5:1 on white) and one for 1px rules, per
   DESIGN.md. Disabled controls fade ink to 30% instead of adding a grey. */
.d360-checkout,
.d360-bar,
.d360-gate {
    --d360c-display: var(--d360-display, "field-gothic", sans-serif);
    --d360c-cond: var(--d360-f-display, "field-gothic-condensed", "Arial Narrow", sans-serif);
    --d360c-button: var(--d360-f-button, "field-gothic-xcondensed", "Arial Narrow", sans-serif);
    --d360c-body: var(--d360-body, "itc-avant-garde-gothic-pro", sans-serif);
    --d360c-black: var(--d360-black, #000);
    --d360c-white: var(--d360-white, #fff);
    --d360c-glass: var(--d360-ink-glass, rgba(0, 0, 0, 0.8));
    --d360c-grey: var(--d360-grey, #767676);
    --d360c-line: var(--d360-rule, #d2d2d2);
    --d360c-disabled: rgba(0, 0, 0, 0.3);
}

/* On the site grid (DESIGN.md Layout), as the Standard page is: heading
   and rail start on the content edge, max(60px, (100vw - 1300px) / 2), and
   the main column on the prose line, 31.5% of the 1300px row plus a 21px
   gutter (x=500 at 1440). The margins pull the component out to the
   viewport edge and back in, whatever padding its container carries.
   Large screens (0.5.26): the edge comes from the theme's --d360-edge and
   sizes grow with its --d360-g, as the rest of the site does above 1440px;
   without the theme both fall back to the 1440 values. */
.d360-checkout {
    font-family: var(--d360c-body);
    color: var(--d360c-black);
    max-width: none;
    margin-left: calc(50% - 50vw + var(--d360-edge, max(60px, (100vw - 1300px) / 2)));
    margin-right: calc(50% - 50vw + var(--d360-edge, max(60px, (100vw - 1300px) / 2)));
    display: grid;
    grid-template-columns: 31.5% minmax(0, calc(720px + 720 * var(--d360-g, 0px)));
    column-gap: 1.62%;
    justify-content: start;
    align-items: start;
}

.d360-main { min-width: 0; }

/* ------------------------------------------------------------------
 * Page heading: Headline style, across both columns. The theme's prose
 * rules for p and headings outrank a single class, hence the extra one.
 * ---------------------------------------------------------------- */

.d360-checkout .d360-head {
    grid-column: 1 / -1;
    margin: 40px 0 8px;
}

.d360-checkout .d360-head .d360-title {
    font-family: var(--d360c-cond);
    font-weight: 700;
    font-size: calc(48px + 48 * var(--d360-g, 0px));
    line-height: calc(48px + 48 * var(--d360-g, 0px));
    letter-spacing: 0;
    color: var(--d360c-black);
    text-transform: none;
    margin: 0;
}

.d360-checkout .d360-head .d360-visit-note {
    font-family: var(--d360c-body);
    font-weight: 300;
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    text-align: left;
    margin: 8px 0 0;
}

.d360-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------
 * Step rail and its order summary: stick while the page scrolls (the
 * 140px offset clears the site header, 110px once it has shrunk; content
 * added under the checkout later scrolls past it, which is the point).
 * The grid keeps it inside the checkout, so it never rides over the
 * footer. It scrolls on its own only if a very short window cannot hold
 * it; the 4px of padding keeps focus rings inside that scroll box, and
 * the negative margin keeps the text on the content edge.
 * ---------------------------------------------------------------- */

.d360-checkout .d360-side {
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 164px);
    overflow-y: auto;
    /* Top-aligns the first link's text with the first group heading in
       the main column. Margin rather than padding so the rail still pins
       at top:140 when stuck, instead of carrying the offset with it. */
    margin: 18px 0 0 -4px;
    padding: 0 0 4px 4px;
}

.d360-checkout .d360-steps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* 44px rows give each link a full-size target without overlapping its
   neighbours (the gap they replace was 16px). */
.d360-checkout .d360-step-link {
    appearance: none;
    background: none;
    border: 0;
    border-radius: 0;
    min-height: 44px;
    padding: 0 0 0 32px;
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
    white-space: nowrap;
    font-family: var(--d360c-display);
    font-weight: 400;
    font-size: calc(18px + 18 * var(--d360-g, 0px));
    letter-spacing: 0.01em;
    color: var(--d360c-grey);
    transition: none;
    cursor: pointer;
}

.d360-checkout .d360-step-link:hover,
.d360-checkout .d360-step-link:focus {
    background: none;
    color: var(--d360c-grey);
}

.d360-checkout .d360-step-link:disabled { cursor: default; }

.d360-checkout .d360-step-link.is-done,
.d360-checkout .d360-step-link.is-current {
    color: var(--d360c-black);
}

.d360-checkout .d360-step-link.is-current::before {
    content: "\2192";
    position: absolute;
    left: 0;
}

/* The order summary under the steps: a 1px ink rule, a line per ticket
   in the body face with the price ranged right, the total in Field Gothic
   700 over a rule, and the pill. Until a ticket is chosen, one muted line. */
.d360-checkout .d360-summary {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--d360c-black);
}

.d360-checkout .d360-summary .d360-summary-empty {
    margin: 0;
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    color: var(--d360c-grey);
}

.d360-checkout .d360-summary .d360-summary-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.d360-checkout .d360-summary .d360-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 0 0 8px;
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    font-weight: 300;
}

.d360-checkout .d360-summary .d360-summary-price {
    flex-shrink: 0;
    text-align: right;
}

.d360-checkout .d360-summary .d360-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 8px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--d360c-line);
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(19px + 19 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
}

.d360-checkout .d360-summary .d360-summary-note {
    margin: 8px 0 0;
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    line-height: calc(18px + 18 * var(--d360-g, 0px));
    color: var(--d360c-grey);
}

.d360-checkout .d360-summary .d360-rail-go { margin-top: 24px; }

/* ------------------------------------------------------------------
 * "Two ways to see Dublin's story" (0.5.29). Wide screens: cards in the
 * rail under the steps and summary. Only the steps and summary pin; the
 * cards fade out as they rise towards the pinned summary (checkout.js)
 * and pass beneath it, so the summary can grow without the rail needing
 * a scrollbar of its own. Below 1025px a compact pair sits above the
 * tickets instead (see Mobile).
 * ---------------------------------------------------------------- */

/* The full height of the row, so the steps stay pinned all the way down
   beside the tickets. 320px wide (the mock's cards) rather than the whole
   31.5% column, which opens the gutter to the tickets to about 110px at
   1440 without moving the main column off the prose line; never less than
   40px of gutter on narrow desktops. */
.d360-checkout .d360-left {
    align-self: stretch;
    min-width: 0;
    width: min(calc(320px + 320 * var(--d360-g, 0px)), calc(100% - 40px));
}

/* The bottom padding leaves white space between the summary and the edge
   the cards disappear under. */
.d360-checkout .d360-left > .d360-side {
    z-index: 1;
    background: var(--d360c-white);
    padding-bottom: calc(28px + 28 * var(--d360-g, 0px));
}

.d360-checkout .d360-ways--compact { display: none; }

.d360-checkout .d360-ways--rail {
    margin-top: calc(36px + 36 * var(--d360-g, 0px));
    padding-bottom: 4px;
}

/* Two classes and the parent: the theme's prose rules for headings, p and
   lists outrank a single class. */
.d360-checkout .d360-ways .d360-ways-title {
    font-family: var(--d360c-cond);
    font-weight: 700;
    font-size: calc(36px + 36 * var(--d360-g, 0px));
    line-height: calc(40px + 40 * var(--d360-g, 0px));
    letter-spacing: 0;
    text-transform: none;
    color: var(--d360c-black);
    margin: 0 0 calc(24px + 24 * var(--d360-g, 0px));
}

.d360-checkout .d360-ways .d360-ways-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: calc(32px + 32 * var(--d360-g, 0px));
}

.d360-checkout .d360-ways .d360-way {
    margin: 0;
    padding: 0;
}

.d360-checkout .d360-ways--rail .d360-way {
    border: 1px solid var(--d360c-black);
}

.d360-checkout .d360-ways--rail .d360-way-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

/* The couple's faces sit above the middle of the frame. */
.d360-checkout .d360-ways .d360-way-photo--smart-glasses { object-position: 50% 35%; }

.d360-checkout .d360-ways--rail .d360-way-body {
    padding: calc(20px + 20 * var(--d360-g, 0px)) calc(22px + 22 * var(--d360-g, 0px)) calc(22px + 22 * var(--d360-g, 0px));
}

.d360-checkout .d360-ways .d360-way-lead,
.d360-checkout .d360-ways .d360-way-points li {
    font-family: var(--d360c-body);
    font-weight: 300;
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    line-height: calc(22px + 22 * var(--d360-g, 0px));
    color: var(--d360c-black);
    text-align: left;
    margin: 0;
}

.d360-checkout .d360-ways .d360-way-lead strong { font-weight: 700; }

.d360-checkout .d360-ways .d360-way-points {
    list-style: disc;
    margin: calc(10px + 10 * var(--d360-g, 0px)) 0 0;
    padding: 0 0 0 18px;
}

.d360-checkout .d360-ways .d360-way-points li { margin-top: 4px; }

.d360-checkout .d360-ways .d360-ways-more {
    display: inline-block;
    margin-top: calc(18px + 18 * var(--d360-g, 0px));
    font-family: var(--d360c-body);
    font-size: calc(15px + 15 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    color: var(--d360c-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.d360-checkout .d360-ways .d360-ways-more:focus-visible {
    outline: 2px solid var(--d360c-black);
    outline-offset: 2px;
}

.d360-checkout > .d360-loading,
.d360-checkout > .d360-error {
    grid-column: 1 / -1;
}

.d360-loading,
.d360-error p {
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    text-align: center;
    padding: 40px 0;
}

.d360-error .d360-fallback-offer {
    padding: 16px 0 0;
}

.d360-error .d360-fallback-offer a {
    color: var(--d360c-black);
    text-decoration: underline;
}

/* Centred under the error message; two classes so the pill's own
   inline-flex below does not undo it. */
.d360-checkout .d360-retry.d360-cta {
    display: flex;
    width: fit-content;
    margin: 0 auto;
}

/* ------------------------------------------------------------------
 * The pill (DESIGN.md Buttons), one spec for every action in the flow:
 * Select Date and Select Time, Pay Now, the rail's and the bar's Continue,
 * and the payment and confirmation buttons. Field Gothic XCondensed 700,
 * 24px on 50px (20px on 44px on a phone), Ink Glass with a white label,
 * solid ink on hover. Disabled is the muted grey with the white label
 * (4.5:1), so the label stays readable. Two classes beat the kit's and the
 * parent theme's global button rules (the theme turns a hovered or
 * focused button pink).
 * ---------------------------------------------------------------- */

.d360-checkout .d360-cta,
.d360-bar .d360-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    height: calc(50px + 50 * var(--d360-g, 0px));
    padding: 0 24px;
    border: 0;
    border-radius: 25px;
    background: var(--d360c-glass);
    color: var(--d360c-white);
    font-family: var(--d360c-button);
    font-weight: 700;
    font-size: calc(24px + 24 * var(--d360-g, 0px));
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms ease-out;
}

@media (hover: hover) {
    .d360-checkout .d360-cta:hover:not(:disabled),
    .d360-bar .d360-cta:hover:not(:disabled) {
        background: var(--d360c-black);
        color: var(--d360c-white);
    }
}

.d360-checkout .d360-cta:disabled,
.d360-bar .d360-cta:disabled {
    background: var(--d360c-grey);
    color: var(--d360c-white);
    opacity: 1;
    cursor: default;
}

.d360-checkout .d360-cta:focus-visible,
.d360-bar .d360-cta:focus-visible {
    outline: 2px solid var(--d360c-black);
    outline-offset: 3px;
    box-shadow: none;
}

@media (max-width: 767px) {
    .d360-checkout .d360-cta,
    .d360-bar .d360-cta {
        height: 44px;
        padding: 0 20px;
        font-size: 20px;
    }
}

/* ------------------------------------------------------------------
 * Actions: the Select Date / Select Time split pill, the open picker
 * directly under it at the full column width, then Pay Now. With no picker
 * open, Pay Now shares the pills' row on the right; a picker wraps it onto
 * its own row, still on the right.
 * ---------------------------------------------------------------- */

.d360-checkout .d360-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px 18px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Full width, so they take a row of their own. A width rather than a
   100% flex-basis: on a phone the row turns into a column, where a
   percentage basis would resolve against the height and crop the picker. */
.d360-checkout .d360-actions > .d360-panels,
.d360-checkout .d360-actions > .d360-lunch,
.d360-checkout .d360-actions > .d360-discount,
.d360-checkout .d360-actions > .d360-reserve-error {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}

/* The split pill: two halves 1px apart, rounded on the outer corners. */
.d360-checkout .d360-pills {
    display: flex;
    gap: 1px;
}

.d360-checkout .d360-pills .d360-cta:first-child { border-radius: 25px 0 0 25px; }
.d360-checkout .d360-pills .d360-cta:last-child { border-radius: 0 25px 25px 0; }

.d360-checkout .d360-pill svg {
    width: calc(20px + 20 * var(--d360-g, 0px));
    height: calc(20px + 20 * var(--d360-g, 0px));
    flex-shrink: 0;
}

/* The pill whose picker is open stays solid ink. */
.d360-checkout .d360-pill.is-active { background: var(--d360c-black); }

/* ------------------------------------------------------------------
 * Calendar
 * ---------------------------------------------------------------- */

/* Flat and square like every other surface (The Flat Poster Rule): a 1px
   rule, no shadow, no radius, on the main column's left edge. */
.d360-checkout .d360-calendar {
    background: var(--d360c-white);
    border: 1px solid var(--d360c-line);
    border-radius: 0;
    box-shadow: none;
    padding: 20px 24px 26px;
    margin: 0;
}

/* The arrows frame the months, so a single month in a wide panel keeps
   them beside it rather than at the panel's far edges. */
.d360-cal-body {
    position: relative;
    width: fit-content;
    max-width: 100%;
}

.d360-cal-nav {
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.d360-checkout .d360-cal-arrow {
    pointer-events: auto;
    background: none;
    border: 0;
    font-size: calc(22px + 22 * var(--d360-g, 0px));
    line-height: 1;
    color: var(--d360c-grey);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    margin: -11px -10px 0;
    padding: 0;
    border-radius: 0;
    transition: none;
}

.d360-checkout .d360-cal-arrow:hover:not(:disabled),
.d360-checkout .d360-cal-arrow:focus {
    background: none;
    color: var(--d360c-black);
}

.d360-checkout .d360-cal-arrow:disabled { color: var(--d360c-disabled); }

.d360-cal-months {
    display: flex;
    gap: 40px;
}

/* 308px gives seven 44px day cells. */
.d360-cal-month { flex: 0 1 auto; width: calc(308px + 308 * var(--d360-g, 0px)); }

.d360-cal-title {
    text-align: center;
    margin-bottom: 14px;
    font-family: var(--d360c-display);
}

.d360-cal-month-name {
    font-weight: 700;
    font-size: calc(22px + 22 * var(--d360-g, 0px));
    letter-spacing: 0.04em;
}

.d360-cal-year {
    margin-left: 10px;
    font-size: calc(18px + 18 * var(--d360-g, 0px));
    color: var(--d360c-grey);
}

.d360-cal-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    margin-bottom: 6px;
}

.d360-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid var(--d360c-line);
    border-top: 1px solid var(--d360c-line);
}

.d360-checkout .d360-cal-cell {
    appearance: none;
    background: var(--d360c-white);
    border: 0;
    border-right: 1px solid var(--d360c-line);
    border-bottom: 1px solid var(--d360c-line);
    aspect-ratio: 1;
    /* Radius and weight are pinned because the Elementor kit styles every
       button as a 25px-radius bold pill. */
    border-radius: 0;
    font-family: var(--d360c-body);
    font-weight: 300;
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    color: var(--d360c-black);
    cursor: pointer;
    padding: 0;
}

.d360-checkout .d360-cal-cell.is-blank { cursor: default; }

.d360-checkout .d360-cal-cell.is-closed {
    color: var(--d360c-disabled);
    cursor: default;
}

.d360-checkout .d360-cal-cell:not(.is-closed):not(.is-blank):hover {
    background: #f2f2f2;
}

.d360-checkout .d360-cal-cell.is-selected {
    background: var(--d360c-black);
    color: var(--d360c-white);
}

/* ------------------------------------------------------------------
 * Time chooser: the whole day at once as square 44px chips sharing 1px
 * rules, as the calendar's days do; four across, three on a phone. The
 * panel matches the calendar's: flat, square, full column width.
 * ---------------------------------------------------------------- */

.d360-checkout .d360-times {
    background: var(--d360c-white);
    border: 1px solid var(--d360c-line);
    border-radius: 0;
    box-shadow: none;
    padding: 20px 24px 24px;
    margin: 0;
}

.d360-checkout .d360-times .d360-times-note {
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    line-height: calc(18px + 18 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    margin: 0 0 16px;
}

.d360-checkout .d360-times-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 1px solid var(--d360c-line);
    border-top: 1px solid var(--d360c-line);
}

.d360-checkout .d360-time {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 4px 6px;
    margin: 0;
    background: var(--d360c-white);
    border: 0;
    border-right: 1px solid var(--d360c-line);
    border-bottom: 1px solid var(--d360c-line);
    /* Radius and weight are pinned against the kit's global button style,
       as on the calendar cells. */
    border-radius: 0;
    font-family: var(--d360c-body);
    font-weight: 300;
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(20px + 20 * var(--d360-g, 0px));
    color: var(--d360c-black);
    text-transform: none;
    letter-spacing: 0;
    transition: none;
    cursor: pointer;
}

.d360-checkout .d360-time:hover:not(:disabled):not(.is-selected),
.d360-checkout .d360-time:focus:not(.is-selected) {
    background: #f2f2f2;
    color: var(--d360c-black);
}

.d360-checkout .d360-time:focus-visible {
    outline: 2px solid var(--d360c-black);
    outline-offset: -2px;
    box-shadow: none;
}

.d360-checkout .d360-time.is-full {
    background: var(--d360c-white);
    color: var(--d360c-disabled);
    cursor: default;
}

.d360-checkout .d360-time.is-selected,
.d360-checkout .d360-time.is-selected:hover,
.d360-checkout .d360-time.is-selected:focus {
    background: var(--d360c-black);
    color: var(--d360c-white);
}

.d360-checkout .d360-time-remaining {
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    line-height: calc(16px + 16 * var(--d360-g, 0px));
    color: var(--d360c-grey);
}

.d360-checkout .d360-time.is-selected .d360-time-remaining { color: var(--d360c-white); }

.d360-checkout .d360-times-empty {
    color: var(--d360c-grey);
    margin: 0;
}

@media (max-width: 767px) {
    .d360-checkout .d360-times { padding: 16px 12px 20px; }
    .d360-checkout .d360-times-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------
 * Tickets
 * ---------------------------------------------------------------- */

.d360-tickets { margin-top: 10px; }

.d360-cat-title {
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(24px + 24 * var(--d360-g, 0px));
    letter-spacing: 0.01em;
    margin: 30px 0 4px;
}

.d360-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--d360c-line);
    padding: 13px 0;
}

/* Desktop puts the price beside the stepper; mobile stacks it under the
   name (see the media query). */
.d360-ticket-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    flex: 1;
    padding-right: 28px;
}

.d360-ticket-name {
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(19px + 19 * var(--d360-g, 0px));
}

.d360-ticket-price {
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    color: var(--d360c-black);
}

/* Layout option D (30 Sep 2026): a block per visitor type, a line per
   experience inside it. The block carries the row rule; lines inside are
   closer together than blocks are to each other, so the two prices read
   as one visitor's choice. */
.d360-tickets-note {
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    margin: 0 0 2px;
}

.d360-group {
    border-bottom: 1px solid var(--d360c-line);
    padding: 14px 0 8px;
}

.d360-group-name {
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(19px + 19 * var(--d360-g, 0px));
    margin: 0 0 2px;
}

.d360-tier {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

/* Centred, as the stepper beside it is: when the label wraps on a phone
   (the "Child (under 5)" line, whose FREE is wider than a price), the
   price sits on the line's middle with the stepper, not on its first line. */
.d360-tier-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
    padding-right: 28px;
}

.d360-tier-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.d360-tier-label { font-size: calc(16px + 16 * var(--d360-g, 0px)); line-height: calc(24px + 24 * var(--d360-g, 0px)); }

.d360-tier-price {
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    color: var(--d360c-black);
}

.d360-tier-none {
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    margin: 2px 0 8px;
}

/* Smart glasses on hold (0.8.7). The line and the card are shaded with
   the grey text colour, not opacity, so the words keep a 4.5:1 contrast;
   only the photo is faded. The badge sits where the stepper would. */
.d360-checkout .d360-soon-badge {
    display: inline-block;
    margin: 0;
    padding: 2px 8px;
    border: 1px solid var(--d360c-grey);
    font-family: var(--d360c-body);
    font-size: calc(12px + 12 * var(--d360-g, 0px));
    line-height: calc(18px + 18 * var(--d360-g, 0px));
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--d360c-grey);
    white-space: nowrap;
}

.d360-tier.is-soon .d360-tier-label { color: var(--d360c-grey); }
.d360-tier.is-soon { min-height: 44px; }

.d360-checkout .d360-ways .d360-way.is-soon .d360-way-photo { filter: grayscale(1); opacity: 0.55; }
.d360-checkout .d360-ways .d360-way.is-soon .d360-way-lead,
.d360-checkout .d360-ways .d360-way.is-soon .d360-way-points li,
.d360-checkout .d360-ways .d360-way.is-soon .d360-way-name,
.d360-checkout .d360-ways .d360-way.is-soon .d360-way-short { color: var(--d360c-grey); }
.d360-checkout .d360-ways .d360-way.is-soon .d360-soon-badge { margin-bottom: 8px; }
.d360-checkout .d360-ways--compact .d360-way.is-soon .d360-soon-badge { margin-bottom: 4px; padding: 0 6px; }

/* The (i) control: a 22px ring, grey until it is open or hovered, with a
   44px target from its padding box (22px plus 11px each side). */
.d360-checkout .d360-info {
    appearance: none;
    box-sizing: content-box;
    width: calc(22px + 22 * var(--d360-g, 0px));
    height: calc(22px + 22 * var(--d360-g, 0px));
    padding: 0;
    border-radius: 50%;
    border: 1.4px solid var(--d360c-grey);
    background: var(--d360c-white);
    color: var(--d360c-grey);
    font: italic 600 13px/1 Georgia, "Times New Roman", serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.d360-checkout .d360-info::after {
    content: '';
    position: absolute;
    inset: -11px;
}

.d360-checkout .d360-info:hover,
.d360-checkout .d360-info.is-open {
    border-color: var(--d360c-black);
    color: var(--d360c-black);
}

.d360-checkout .d360-info:focus-visible {
    outline: 2px solid var(--d360c-black);
    outline-offset: 2px;
}

.d360-tier-detail {
    flex-basis: 100%;
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    line-height: 1.45;
    color: var(--d360c-grey);
    margin: 6px 0 4px;
    padding-left: 14px;
    border-left: 2px solid var(--d360c-line);
}

.d360-tier-detail p { margin: 0 0 6px; }
.d360-tier-detail p:last-child { margin-bottom: 0; }

/* Upgrades are a different kind of thing from the tiers above them, so the
   group gets clearly more separation (48px) than one tier from the next
   (30px). The note only appears while the party is empty. */
.d360-upgrades .d360-upgrades-title { margin-top: 48px; }

.d360-upgrades-note {
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    margin: 0 0 6px;
}

/* Díon set lunch (0.5.25): its own section between the date and time
   pickers and Pay Now, set like the upgrades (category title, plain rows,
   muted notes). It only appears once a date is chosen, so nothing moves
   under the visitor while they choose tickets. */
.d360-checkout .d360-lunch { margin-top: 8px; }
.d360-checkout .d360-lunch .d360-lunch-title { margin-top: 16px; }

.d360-lunch-note,
.d360-lunch-allergens {
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    margin: 0 0 6px;
}

/* Lunch was just taken off for a weekend or closed date: ink, with the
   same left rule as the ticket detail panel, so it reads as news rather
   than as the standing note. */
.d360-lunch-note.is-notice {
    color: var(--d360c-black);
    padding-left: 14px;
    border-left: 2px solid var(--d360c-black);
}

/* Díon's logo (the table item's back-office image), under the heading. */
.d360-checkout .d360-lunch-logo {
    display: block;
    width: auto;
    height: calc(64px + 64 * var(--d360-g, 0px));
    max-width: 100%;
    margin: 4px 0 14px;
}

.d360-lunch-allergens { margin-top: 12px; font-size: calc(14px + 14 * var(--d360-g, 0px)); line-height: calc(20px + 20 * var(--d360-g, 0px)); }

.d360-checkout .d360-lunch-link {
    color: var(--d360c-black);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.d360-checkout .d360-lunch-link:focus-visible {
    outline: 2px solid var(--d360c-black);
    outline-offset: 2px;
}

.d360-checkout .d360-stepper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.d360-checkout .d360-step {
    appearance: none;
    width: calc(34px + 34 * var(--d360-g, 0px));
    height: calc(34px + 34 * var(--d360-g, 0px));
    border-radius: 50%;
    border: 1.6px solid var(--d360c-black);
    background: var(--d360c-white);
    color: var(--d360c-black);
    /* The body face, at its light weight: the kit's global button style
       would set the extra-condensed cut, whose + is half the width of its −. */
    font-family: var(--d360c-body);
    font-weight: 300;
    font-size: calc(20px + 20 * var(--d360-g, 0px));
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

/* The circle stays 34px; the target is 44px. Absolute insets measure from
   the padding box, inside the 1.6px border, so -7px gives 44.8px. Minus
   and plus sit 50px apart, so the targets never meet. */
.d360-checkout .d360-step::after {
    content: '';
    position: absolute;
    inset: -7px;
}

.d360-checkout .d360-step:disabled {
    border-color: var(--d360c-disabled);
    color: var(--d360c-disabled);
    background: var(--d360c-white);
    cursor: default;
}

.d360-qty {
    font-family: var(--d360c-display);
    font-size: calc(24px + 24 * var(--d360-g, 0px));
    min-width: calc(22px + 22 * var(--d360-g, 0px));
    text-align: center;
    color: var(--d360c-grey);
}

.d360-qty.is-set { color: var(--d360c-black); }

.d360-total-row {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 26px;
    border-top: 2px solid var(--d360c-black);
    margin-top: 26px;
    padding-top: 14px;
}

.d360-total-label {
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(19px + 19 * var(--d360-g, 0px));
}

.d360-total-value {
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(30px + 30 * var(--d360-g, 0px));
}

.d360-checkout .d360-pay {
    margin-left: auto;
    padding: 0 32px;
}

.d360-checkout .d360-pay-note {
    text-align: right;
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    margin-top: 8px;
}

.d360-checkout .d360-pay-note.is-warning {
    color: #b32d2e;
}

.d360-hold {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 12px;
    margin-top: 16px;
}

.d360-hold-label {
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.d360-hold-clock {
    font-family: var(--d360c-body);
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    font-variant-numeric: tabular-nums;
}

.d360-checkout .d360-reserve-error {
    color: #b32d2e;
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    line-height: calc(20px + 20 * var(--d360-g, 0px));
    margin: 0;
}

/* ------------------------------------------------------------------
 * Discount code (0.7.0): "Have a discount code?" with an arrow, on the
 * right above Pay Now like the rest of the action row; the field and its
 * Apply button open beneath it. A struck-through list price sits before a
 * discounted one.
 * ---------------------------------------------------------------- */

.d360-checkout .d360-discount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.d360-checkout .d360-discount-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--d360c-black);
    font-family: var(--d360c-body);
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.d360-checkout .d360-discount-toggle:hover,
.d360-checkout .d360-discount-toggle:focus {
    background: none;
    color: var(--d360c-black);
}

.d360-checkout .d360-discount-toggle:focus-visible,
.d360-checkout .d360-discount-remove:focus-visible,
.d360-checkout .d360-discount-apply:focus-visible {
    outline: 2px solid var(--d360c-black);
    outline-offset: 3px;
}

/* A chevron that points down when closed and up when open. */
.d360-checkout .d360-discount-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease-out;
}

.d360-checkout .d360-discount-toggle[aria-expanded="true"] .d360-discount-arrow {
    transform: translateY(2px) rotate(-135deg);
}

@media (prefers-reduced-motion: reduce) {
    .d360-checkout .d360-discount-arrow { transition: none; }
}

.d360-checkout .d360-discount-form:not([hidden]) {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 380px;
}

.d360-checkout .d360-discount-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    box-sizing: border-box;
    border: 1px solid var(--d360c-line);
    border-radius: 2px;
    padding: 0 14px;
    font-family: var(--d360c-body);
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--d360c-black);
    background: var(--d360c-white);
}

.d360-checkout .d360-discount-input::placeholder {
    text-transform: none;
    letter-spacing: 0;
    color: var(--d360c-grey);
}

.d360-checkout .d360-discount-input:focus {
    outline: 2px solid var(--d360c-black);
    outline-offset: -1px;
}

.d360-checkout .d360-discount-input[aria-invalid="true"] { border-color: #b32d2e; }

.d360-checkout .d360-discount-apply,
.d360-checkout .d360-discount-remove {
    flex-shrink: 0;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--d360c-black);
    border-radius: 22px;
    background: var(--d360c-white);
    color: var(--d360c-black);
    font-family: var(--d360c-button);
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

@media (hover: hover) {
    .d360-checkout .d360-discount-apply:hover:not(:disabled),
    .d360-checkout .d360-discount-remove:hover {
        background: var(--d360c-black);
        color: var(--d360c-white);
    }
}

.d360-checkout .d360-discount-apply:disabled {
    border-color: var(--d360c-grey);
    color: var(--d360c-grey);
    cursor: default;
}

.d360-checkout .d360-discount-applied {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    color: var(--d360c-black);
}

.d360-checkout .d360-discount-error,
.d360-checkout .d360-discount-reason {
    margin: 0;
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    line-height: calc(20px + 20 * var(--d360-g, 0px));
}

/* A code that books only some slots says which (0.7.6). */
.d360-checkout .d360-discount-visit {
    margin: 0;
    text-align: right;
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    line-height: calc(20px + 20 * var(--d360-g, 0px));
    color: var(--d360c-black);
}

.d360-checkout .d360-discount-error { color: #b32d2e; }
.d360-checkout .d360-discount-reason { color: var(--d360c-black); font-weight: 700; }

.d360-checkout .d360-was {
    color: var(--d360c-grey);
    font-weight: 400;
    font-size: 0.75em;
}

.d360-checkout .d360-pay-discount {
    margin: 8px 0 0;
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    color: var(--d360c-grey);
}

/* ------------------------------------------------------------------
 * Mobile
 * ---------------------------------------------------------------- */

/* Beside the rail the main column is 605px wide at 1025px, room enough
   for the ticket lines (the calendar drops to one month there; see
   twoMonthQuery in checkout.js). Below the site's tablet breakpoint the
   checkout runs single-column, the compact step line stands in for the
   rail and its summary, and the sticky bar carries the total. */
.d360-checkout .d360-progress { display: none; }

@media (max-width: 1024px) {
    .d360-checkout {
        display: block;
        max-width: 720px;
        margin-right: auto;
    }

    .d360-checkout .d360-side { display: none; }

    /* The two ways, compact, above the tickets: a small photo beside each
       name and one line, about 100px a row. */
    .d360-checkout .d360-ways--rail { display: none; }
    .d360-checkout .d360-ways--compact {
        display: block;
        margin: 24px 0 0;
    }

    .d360-checkout .d360-ways--compact .d360-ways-title {
        font-size: 24px;
        line-height: 28px;
        margin: 0 0 8px;
    }

    .d360-checkout .d360-ways--compact .d360-ways-list { gap: 0; }

    .d360-checkout .d360-ways--compact .d360-way {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 0;
        border-bottom: 1px solid var(--d360c-line);
    }

    .d360-checkout .d360-ways--compact .d360-way-photo {
        flex: none;
        width: 80px;
        height: 80px;
        object-fit: cover;
    }

    .d360-checkout .d360-ways--compact .d360-way-body { min-width: 0; }

    .d360-checkout .d360-ways--compact .d360-way-name {
        font-family: var(--d360c-display);
        font-weight: 700;
        font-size: 17px;
        line-height: 22px;
        color: var(--d360c-black);
        text-align: left;
        margin: 0;
    }

    .d360-checkout .d360-ways--compact .d360-way-short {
        font-family: var(--d360c-body);
        font-weight: 300;
        font-size: 14px;
        line-height: 20px;
        color: var(--d360c-black);
        text-align: left;
        margin: 2px 0 0;
    }

    .d360-checkout .d360-ways--compact .d360-ways-more {
        margin-top: 10px;
        font-size: 14px;
        line-height: 20px;
    }

    .d360-checkout .d360-progress {
        display: block;
        margin: 16px 0 0;
    }

    /* "Step 1 of 3 · Tickets": the count muted, the step's name in ink. */
    .d360-checkout .d360-progress .d360-progress-now {
        margin: 0;
        font-family: var(--d360c-display);
        font-weight: 400;
        font-size: 16px;
        line-height: 24px;
        color: var(--d360c-grey);
    }

    .d360-checkout .d360-progress .d360-progress-name {
        color: var(--d360c-black);
        font-weight: 700;
    }

    .d360-checkout .d360-progress .d360-progress-hint {
        font-size: 13px;
        line-height: 18px;
        color: var(--d360c-grey);
        margin: 4px 0 0;
    }

    /* While the bar is up, focus scrolling (Tab through the steppers)
       stops short of it instead of parking a control underneath. */
    html:has(.d360-bar:not([hidden])) { scroll-padding-bottom: 80px; }
}

/* Phone gutters are 20px whatever padding the page builder's container
   carries: the margins pull the component out to the viewport edge and
   back in by 20px. */
@media (max-width: 767px) {
    .d360-checkout {
        margin-left: calc(50% - 50vw + 20px);
        margin-right: calc(50% - 50vw + 20px);
    }

    .d360-checkout .d360-head { margin-top: 24px; }

    .d360-checkout .d360-head .d360-title {
        font-size: 36px;
        line-height: 37px;
    }
}

@media (max-width: 700px) {
    .d360-checkout .d360-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .d360-checkout .d360-pills .d360-pill { flex: 1; }

    .d360-ticket-info {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 12px;
    }

    /* The experience lines keep the price beside the stepper on a phone:
       label, price and stepper fit in 343px, so nothing needs to wrap.
       The label may break onto two lines before the price ever does. */
    .d360-tier-info {
        gap: 10px;
        padding-right: 12px;
    }

    .d360-tier-head { flex: 1; min-width: 0; }
    .d360-tier-price { flex-shrink: 0; }

    .d360-group-name { font-size: 17px; }

    .d360-checkout .d360-calendar { padding: 16px 12px 20px; }
    .d360-cal-body { width: auto; }
    .d360-cal-months { gap: 0; }
    .d360-cal-month { flex: 1; width: auto; }

    .d360-cat-title { font-size: 21px; }
    .d360-upgrades .d360-upgrades-title { margin-top: 40px; }
    .d360-ticket-name { font-size: 17px; }
    .d360-total-value { font-size: 26px; }

    .d360-checkout .d360-pay {
        width: 100%;
        margin-left: 0;
    }

    .d360-pay-note { text-align: center; }

    .d360-checkout .d360-discount { align-items: stretch; text-align: left; }
    .d360-checkout .d360-discount-toggle { align-self: flex-start; }
    .d360-checkout .d360-discount-form:not([hidden]) { max-width: none; }
    .d360-checkout .d360-discount-applied { justify-content: space-between; }
    .d360-checkout .d360-discount-visit { text-align: left; }
}

/* ------------------------------------------------------------------
 * Sticky total bar (narrow screens only; checkout.js decides when it
 * shows). Flat, like the rest of the system: a rule, no shadow.
 * ---------------------------------------------------------------- */

.d360-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--d360c-white);
    border-top: 1px solid var(--d360c-line);
    font-family: var(--d360c-body);
    color: var(--d360c-black);
}

.d360-bar[hidden] { display: none; }

@media (min-width: 1025px) {
    .d360-bar { display: none; }
}

.d360-bar .d360-bar-sum {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.d360-bar .d360-bar-total {
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(24px + 24 * var(--d360-g, 0px));
    line-height: calc(26px + 26 * var(--d360-g, 0px));
}

.d360-bar .d360-bar-count {
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    line-height: calc(18px + 18 * var(--d360-g, 0px));
    color: var(--d360c-grey);
}

/* The site's pill (.d360-cta above), held at its phone size on tablets
   too so the bar keeps its 70px height. */
.d360-bar .d360-bar-go {
    flex-shrink: 0;
    height: 44px;
    padding: 0 24px;
    font-size: calc(20px + 20 * var(--d360-g, 0px));
}

/* ------------------------------------------------------------------
 * Payment panel
 * ---------------------------------------------------------------- */

.d360-checkout .d360-pay-panel {
    max-width: calc(560px + 560 * var(--d360-g, 0px));
    margin: 0 auto;
    padding: 8px 0 40px;
}

.d360-checkout .d360-pay-back {
    background: none;
    border: 0;
    min-height: 44px;
    padding: 0;
    color: var(--d360c-grey);
    font-family: var(--d360c-body);
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    cursor: pointer;
    text-decoration: underline;
}

.d360-checkout .d360-pay-back:hover { color: var(--d360c-black); }

.d360-checkout .d360-pay-title {
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(32px + 32 * var(--d360-g, 0px));
    margin: 16px 0 20px;
}

.d360-checkout .d360-pay-summary {
    border: 1px solid var(--d360c-line);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.d360-checkout .d360-pay-when {
    font-weight: 700;
    margin: 0 0 10px;
}

.d360-checkout .d360-pay-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.d360-checkout .d360-pay-lines li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: calc(15px + 15 * var(--d360-g, 0px));
}

.d360-checkout .d360-pay-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--d360c-line);
    margin: 10px 0 0;
    padding-top: 10px;
    font-weight: 700;
}

.d360-checkout .d360-pay-hold {
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    margin: 0 0 16px;
}

.d360-checkout .d360-pay-hold .d360-hold-clock {
    font-weight: 700;
    color: var(--d360c-black);
}

.d360-checkout .d360-pay-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.d360-checkout .d360-pay-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.d360-checkout .d360-pay-label {
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    color: var(--d360c-grey);
}

.d360-checkout .d360-pay-input {
    border: 1px solid var(--d360c-line);
    border-radius: 2px;
    padding: 12px 14px;
    font-family: var(--d360c-body);
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    color: var(--d360c-black);
    background: var(--d360c-white);
}

.d360-checkout .d360-pay-input:focus {
    outline: 2px solid var(--d360c-black);
    outline-offset: -1px;
}

.d360-checkout .d360-pay-continue,
.d360-checkout .d360-pay-submit {
    margin-top: 8px;
    align-self: flex-start;
}

.d360-checkout .d360-pay-area { margin-top: 8px; }

.d360-checkout .d360-pay-element { margin-bottom: 16px; }


.d360-checkout .d360-pay-small {
    font-size: calc(12px + 12 * var(--d360-g, 0px));
    color: var(--d360c-grey);
    margin: 10px 0 0;
    text-align: center;
}

.d360-checkout .d360-pay-error {
    color: #b32d2e;
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    margin: 12px 0 0;
    min-height: 1em;
}

/* Confirmation */

.d360-checkout .d360-confirm {
    max-width: calc(560px + 560 * var(--d360-g, 0px));
    margin: 0 auto;
    padding: 24px 0 48px;
    text-align: center;
}

.d360-checkout .d360-confirm-title {
    font-family: var(--d360c-display);
    font-weight: 700;
    font-size: calc(34px + 34 * var(--d360-g, 0px));
    margin: 0 0 16px;
}

.d360-checkout .d360-confirm-ref {
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    margin: 0 0 8px;
}

.d360-checkout .d360-confirm-ref strong {
    display: block;
    font-size: calc(26px + 26 * var(--d360-g, 0px));
    letter-spacing: 0.08em;
}

.d360-checkout .d360-confirm-when {
    font-weight: 700;
    margin: 0 0 12px;
}

.d360-checkout .d360-confirm-note {
    color: var(--d360c-grey);
    font-size: calc(15px + 15 * var(--d360-g, 0px));
    margin: 0 0 20px;
}


/* My Booking page */

/* The page's own heading and body, on the site's content edge
   (DESIGN.md Layout): the margins pull the block out to the viewport edge
   and back in to the content edge (the theme's --d360-edge, else
   max(60px, (100vw - 1300px) / 2)), 20px on a phone, whatever
   padding the page builder's container carries. */
.d360-booking {
    max-width: calc(760px + 760 * var(--d360-g, 0px));
    margin: 40px auto 0 calc(50% - 50vw + var(--d360-edge, max(60px, (100vw - 1300px) / 2)));
    padding: 0;
    font-family: var(--d360-body, sans-serif);
}

.d360-booking .d360-booking__title {
    margin: 0 0 24px;
    font-family: var(--d360-f-display, "field-gothic-condensed", "Arial Narrow", sans-serif);
    font-weight: 700;
    font-size: calc(48px + 48 * var(--d360-g, 0px));
    line-height: calc(48px + 48 * var(--d360-g, 0px));
    letter-spacing: 0;
}

@media (max-width: 767px) {
    .d360-booking { margin: 24px 20px 0 calc(50% - 50vw + 20px); }
    .d360-booking .d360-booking__title { font-size: 36px; line-height: 37px; }
}

.d360-booking__ref strong {
    font-size: calc(24px + 24 * var(--d360-g, 0px));
    letter-spacing: 0.08em;
}

.d360-booking__meta dt {
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    color: var(--d360-grey, #767676);
    margin-top: 10px;
}

.d360-booking__meta dd { margin: 0; font-size: calc(16px + 16 * var(--d360-g, 0px)); }

.d360-booking__lines {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.d360-booking__lines td {
    padding: 6px 0;
    border-bottom: 1px solid var(--d360-rule, #d2d2d2);
}

.d360-booking__lines td:last-child { text-align: right; }

.d360-booking__total td { font-weight: 700; border-bottom: 0; }

/* Only on a booking whose tickets sit on more than one slot. */
.d360-booking__lines .d360-booking__visit td { padding-top: 16px; font-weight: 700; text-align: left; }

.d360-booking__note { color: var(--d360-grey, #767676); font-size: calc(14px + 14 * var(--d360-g, 0px)); }

/* display:flex on the form and on the pay area beats the hidden
   attribute; restore it, or the PAY button shows under the details form
   before any details are given. */
.d360-checkout .d360-pay-form[hidden] { display: none; }
.d360-checkout .d360-pay-area[hidden] { display: none; }

/* Step headings and the payment group take programmatic focus on a
   step change (the page heading after the code gate, 0.7.2); they are not
   in the tab order, so no ring. */
.d360-checkout .d360-pay-title:focus,
.d360-checkout .d360-confirm-title:focus,
.d360-checkout .d360-head .d360-title:focus,
.d360-checkout .d360-pay-area:focus { outline: none; }

/* Payment panel alignment with the Tickets/Pay design frame:
   two-column field grid, right-aligned pill CTAs. */

@media (min-width: 701px) {
    .d360-checkout .d360-pay-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 24px;
    }
    .d360-checkout .d360-pay-form .d360-pay-continue {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

.d360-checkout .d360-pay-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: calc(12px + 12 * var(--d360-g, 0px));
}

.d360-checkout .d360-pay-submit { align-self: flex-end; }

.d360-checkout .d360-pay-area {
    display: flex;
    flex-direction: column;
}

.d360-checkout .d360-pay-small { text-align: right; }

.d360-checkout .d360-confirm-lead {
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    margin: 0 0 16px;
}

.d360-booking__actions { margin-top: 24px; }

.d360-booking__cta {
    display: inline-block;
    background: #000;
    color: #fff;
    border-radius: 999px;
    padding: 12px 32px;
    font-family: var(--d360-display, sans-serif);
    font-weight: 700;
    font-size: calc(15px + 15 * var(--d360-g, 0px));
    letter-spacing: 0.05em;
    text-decoration: none;
}

/* With the step rail restored through checkout and confirmation, both
   views left-align to the main column start (per the Pay and Complete
   design frames), not to the viewport centre. */
.d360-checkout .d360-pay-panel {
    margin: 0;
    padding-top: 14px;
}

.d360-checkout .d360-confirm {
    margin: 0;
    padding: 14px 0 48px;
    text-align: left;
    max-width: calc(560px + 560 * var(--d360-g, 0px));
}

.d360-checkout .d360-confirm-ref strong { letter-spacing: 0.08em; }

/* Ticket QR */

.d360-qr {
    width: calc(180px + 180 * var(--d360-g, 0px));
    margin: 16px 0 4px;
}

.d360-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.d360-qr-note,
.d360-qr .d360-qr-note {
    font-size: calc(12px + 12 * var(--d360-g, 0px));
    color: var(--d360-grey, #767676);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 8px 0 0;
}

.d360-confirm .d360-qr { margin: 20px 0 8px; }

/* The email's longer note ("Scan at check-in on the 9th floor", 0.6.1)
   may run wider than the code rather than wrap under it. */
.d360-confirm .d360-qr .d360-qr-note {
    width: max-content;
    max-width: min(560px, calc(100vw - 32px));
    line-height: 1.5;
}

/* The rest of the email's ticket under the confirmation (0.6.1): lines
   and total ruled like the order summary, then the visit notes and the
   change policy as the email's ruled sections. */
.d360-checkout .d360-confirm-lines {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0 0;
    font-size: calc(15px + 15 * var(--d360-g, 0px));
    line-height: 1.45;
}

.d360-checkout .d360-confirm-lines td {
    padding: 8px 12px 8px 0;
    border: 0;
    border-bottom: 1px solid var(--d360c-line);
    background: none;
    text-align: left;
    vertical-align: top;
}

.d360-checkout .d360-confirm-lines .d360-confirm-amount {
    padding-right: 0;
    text-align: right;
    white-space: nowrap;
}

.d360-checkout .d360-confirm-lines .d360-confirm-total td {
    padding-top: 12px;
    border-bottom: 0;
    font-weight: 700;
}

.d360-checkout .d360-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 12px;
}

/* The second pill: outlined ink, filled on hover. Two classes beat the
   theme's button rules, as on .d360-cta. */
.d360-checkout .d360-confirm-print.d360-cta {
    background: transparent;
    color: var(--d360c-black);
    box-shadow: inset 0 0 0 2px var(--d360c-black);
}

@media (hover: hover) {
    .d360-checkout .d360-confirm-print.d360-cta:hover {
        background: var(--d360c-black);
        color: var(--d360c-white);
    }
}

.d360-checkout .d360-confirm-section {
    margin: 28px 0 0;
    padding: 16px 0 0;
    border-top: 2px solid var(--d360c-black);
}

.d360-checkout .d360-confirm-section-title {
    font-family: var(--d360c-body);
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.d360-checkout .d360-confirm-section p {
    font-size: calc(15px + 15 * var(--d360-g, 0px));
    line-height: 1.45;
    margin: 0 0 12px;
}

.d360-checkout .d360-confirm-section a {
    color: var(--d360c-black);
    text-decoration: underline;
}

/* The printed ticket (0.6.1): checkout.js copies the confirmation into
   .d360-print-sheet at the end of body; on paper it is the only thing
   shown, so the site's header, footer, cookie banner and the checkout's
   rail never print. On screen it is never shown. */
.d360-print-sheet { display: none; }

@media print {
    body.d360-print-ready > *:not(.d360-print-sheet) { display: none !important; }

    body.d360-print-ready {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .d360-checkout.d360-print-sheet {
        --d360-g: 0px;
        display: block;
        max-width: 170mm;
        margin: 0 auto;
        color: #000;
        font-size: 10.5pt;
    }

    .d360-print-sheet .d360-no-print { display: none !important; }

    .d360-print-sheet .d360-print-logo {
        display: block;
        width: 18mm;
        height: auto;
        margin: 0 0 4mm;
    }

    .d360-print-sheet .d360-print-title {
        font-family: var(--d360c-display);
        font-size: 20pt;
        font-weight: 700;
        line-height: 1.1;
        margin: 0 0 3mm;
    }

    .d360-print-sheet .d360-confirm {
        max-width: none;
        padding: 0;
    }

    .d360-print-sheet .d360-confirm-ref { font-size: 10.5pt; margin: 0 0 2mm; }
    .d360-print-sheet .d360-confirm-ref strong { font-size: 20pt; }
    .d360-print-sheet .d360-qr { width: 32mm; margin: 2mm 0 1mm; }
    .d360-print-sheet .d360-qr .d360-qr-note { font-size: 8pt; color: #000; max-width: none; }
    .d360-print-sheet .d360-confirm-when { font-size: 12pt; margin: 3mm 0 0; }
    .d360-print-sheet .d360-confirm-note { color: #000; font-size: 10pt; }
    .d360-print-sheet .d360-confirm-lines { font-size: 10pt; margin: 4mm 0 0; }
    .d360-print-sheet .d360-confirm-lines td { padding: 1.5mm 3mm 1.5mm 0; }
    .d360-print-sheet .d360-confirm-lines .d360-confirm-amount { padding-right: 0; }
    .d360-print-sheet .d360-confirm-section { margin: 4mm 0 0; padding: 3mm 0 0; break-inside: avoid; }
    .d360-print-sheet .d360-confirm-section-title { font-size: 9.5pt; margin: 0 0 2mm; }
    .d360-print-sheet .d360-confirm-section p { font-size: 9.5pt; line-height: 1.35; margin: 0 0 1.6mm; }
    .d360-print-sheet .d360-confirm-ref,
    .d360-print-sheet .d360-qr { break-inside: avoid; }

    @page { margin: 12mm 14mm; }
}

/* Find-your-booking recovery form */

/* Field and button follow the site's form system (DESIGN.md Inputs):
   label 8px above a 53px square field with a #767676 edge, pill 24px below. */
.d360-booking__recover {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: calc(380px + 380 * var(--d360-g, 0px));
    margin-top: 24px;
}

.d360-booking__recover label { display: flex; flex-direction: column; gap: 8px; }

.d360-booking__recover span {
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    line-height: calc(18px + 18 * var(--d360-g, 0px));
    color: var(--d360-ink, #000);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.d360-booking__recover input {
    min-height: calc(53px + 53 * var(--d360-g, 0px));
    border: 1px solid var(--d360-field-border, #767676);
    border-radius: 0;
    padding: 14px 16px;
    font-size: calc(16px + 16 * var(--d360-g, 0px));
}

.d360-booking__recover input:focus { outline: 2px solid var(--d360-ink, #000); outline-offset: 0; border-color: var(--d360-ink, #000); }

.d360-booking__recover button {
    min-height: calc(50px + 50 * var(--d360-g, 0px));
    background: var(--d360-ink-glass, rgba(0, 0, 0, 0.8));
    color: #fff;
    border: 0;
    border-radius: 25px;
    padding: 0 24px;
    font-family: var(--d360c-button, var(--d360-f-button, "field-gothic-xcondensed", "Arial Narrow", sans-serif));
    font-weight: 700;
    font-size: calc(24px + 24 * var(--d360-g, 0px));
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    align-self: flex-start;
}

@media (hover: hover) {
    .d360-booking__recover button:hover:not(:disabled) { background: #000; }
}

.d360-booking__recover button:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

@media (max-width: 767px) {
    .d360-booking__recover button { min-height: 44px; font-size: 20px; padding: 0 20px; }
}

.d360-booking__recover button:disabled { background: var(--d360-grey, #767676); }

.d360-booking__recover-done { margin-top: 16px; }

.d360-checkout .d360-email-hint {
    background: none;
    border: 0;
    padding: 0;
    margin-top: 4px;
    align-self: flex-start;
    color: #996800;
    font-family: var(--d360c-body);
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    text-decoration: underline;
    cursor: pointer;
}

/* Heading levels run h1 (page), h2 (ticket category, time list), h3
   (visitor group, time of day). The kit styles h2 and h3 globally at
   Headline and Title sizes, which outrank a single class, so the rendered
   type is pinned here at element weight: the category title in the
   condensed face at 23/24 (what showed when it was an h3), the group name
   in wide Field Gothic. */
.d360-checkout h2.d360-cat-title {
    font-family: var(--d360c-cond);
    font-size: calc(23px + 23 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    letter-spacing: 0.01em;
}

.d360-checkout h3.d360-group-name {
    font-family: var(--d360c-display);
    font-size: calc(19px + 19 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    letter-spacing: normal;
}

/* Morning and Afternoon: small uppercase labels (DESIGN.md Small, as
   form labels are set), in ink so they read as headings, not notes. */
.d360-checkout h3.d360-times-group-title {
    font-family: var(--d360c-body);
    font-weight: 300;
    font-size: calc(13px + 13 * var(--d360-g, 0px));
    line-height: calc(18px + 18 * var(--d360-g, 0px));
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--d360c-black);
    margin: 20px 0 8px;
}

.d360-checkout .d360-times-note + h3.d360-times-group-title { margin-top: 0; }

@media (max-width: 767px) {
    .d360-checkout h3.d360-group-name { font-size: 17px; }
}

/* Code gate (0.7.2): while codes are required the page opens behind a
   blurred backdrop with a dialog asking for one. It sits on <body>,
   outside the component, and under the cookie banner (Complianz uses
   z-index 99999), which must stay answerable. */
html.d360-gate-open {
    overflow: hidden;
}

.d360-gate {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-family: var(--d360c-body);
}

.d360-gate-dialog {
    width: 100%;
    max-width: 460px;
    margin: auto;
    box-sizing: border-box;
    padding: 36px 32px 28px;
    background: var(--d360c-white);
    color: var(--d360c-black);
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.d360-gate .d360-gate-title {
    margin: 0 0 12px;
    font-family: var(--d360c-cond);
    font-weight: 700;
    font-size: 36px;
    line-height: 38px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--d360c-black);
}

.d360-gate .d360-gate-text {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 24px;
    color: var(--d360c-black);
}

.d360-gate .d360-gate-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.d360-gate .d360-gate-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: var(--d360c-black);
}

.d360-gate .d360-gate-input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid var(--d360c-grey);
    border-radius: 2px;
    padding: 0 14px;
    font-family: var(--d360c-body);
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--d360c-black);
    background: var(--d360c-white);
}

.d360-gate .d360-gate-input:focus {
    outline: 2px solid var(--d360c-black);
    outline-offset: -1px;
}

.d360-gate .d360-gate-input[aria-invalid="true"] { border-color: #b32d2e; }

.d360-gate .d360-gate-error {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #b32d2e;
}

.d360-gate .d360-gate-error:empty { display: none; }

.d360-gate .d360-gate-go {
    margin-top: 8px;
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 25px;
    background: var(--d360c-glass);
    color: var(--d360c-white);
    font-family: var(--d360c-button);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background-color 160ms ease-out;
}

@media (hover: hover) {
    .d360-gate .d360-gate-go:hover:not(:disabled) { background: var(--d360c-black); }
}

.d360-gate .d360-gate-go:focus-visible {
    outline: 2px solid var(--d360c-black);
    outline-offset: 2px;
}

.d360-gate .d360-gate-go:disabled {
    background: var(--d360c-grey);
    cursor: default;
}

.d360-gate .d360-gate-home {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    line-height: 20px;
    color: var(--d360c-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.d360-gate .d360-gate-home:focus-visible {
    outline: 2px solid var(--d360c-black);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .d360-gate-dialog { padding: 28px 20px 22px; }
    .d360-gate .d360-gate-title { font-size: 30px; line-height: 32px; }
}

@media (prefers-reduced-transparency: reduce) {
    .d360-gate {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.6);
    }
}

/* ------------------------------------------------------------------
 * Public sale by visit date (0.8.0): the calendar marks the days the
 * public offer prices and says which days need a code; the code dialog
 * gets a second way on, for visits that need none.
 * ---------------------------------------------------------------- */

.d360-checkout .d360-cal-cell.is-offer { position: relative; }

.d360-checkout .d360-cal-cell.is-offer::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14%;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--d360c-black);
}

.d360-checkout .d360-cal-cell.is-offer.is-selected::after { background: var(--d360c-white); }

.d360-checkout .d360-cal-note {
    margin: 14px 0 0;
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    line-height: calc(20px + 20 * var(--d360-g, 0px));
    color: var(--d360c-black);
}

.d360-checkout .d360-cal-note + .d360-cal-note { margin-top: 4px; }

.d360-checkout .d360-cal-mark {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--d360c-black);
    vertical-align: middle;
}

.d360-gate .d360-gate-public {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--d360c-line);
}

.d360-gate .d360-gate-public-text {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 24px;
    color: var(--d360c-black);
}

.d360-gate .d360-gate-open-sale {
    height: 50px;
    padding: 0 24px;
    border: 2px solid var(--d360c-black);
    border-radius: 25px;
    background: var(--d360c-white);
    color: var(--d360c-black);
    font-family: var(--d360c-button);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background-color 160ms ease-out, color 160ms ease-out;
}

@media (hover: hover) {
    .d360-gate .d360-gate-open-sale:hover {
        background: var(--d360c-black);
        color: var(--d360c-white);
    }
}

.d360-gate .d360-gate-open-sale:focus-visible {
    outline: 2px solid var(--d360c-black);
    outline-offset: 2px;
}

/* The public offer, named under the date and time once it applies. */
.d360-checkout .d360-offer-note {
    margin: 0;
    font-size: calc(14px + 14 * var(--d360-g, 0px));
    line-height: calc(20px + 20 * var(--d360-g, 0px));
    color: var(--d360c-black);
}

/* The public offer in one line (0.8.4): above the ticket list until a
   date is picked, and in the code dialog above "Book without a code". */
.d360-checkout .d360-offer-line {
    margin: 8px 0 0;
    font-size: calc(16px + 16 * var(--d360-g, 0px));
    line-height: calc(24px + 24 * var(--d360-g, 0px));
    font-weight: 700;
    color: var(--d360c-black);
}

.d360-gate .d360-gate-public-text:has(+ .d360-gate-offer) { margin-bottom: 4px; }

.d360-gate .d360-gate-offer {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--d360c-black);
}

/* On a very short screen (320x568) the longer translations pushed "Book
   without a code" below the fold. The button matters more there; the
   offer is still stated above the tickets once the dialog closes. */
@media (max-height: 620px) {
    .d360-gate .d360-gate-offer { display: none; }
    .d360-gate .d360-gate-public-text:has(+ .d360-gate-offer) { margin-bottom: 12px; }
}
