/* ==========================================================================
   ANAM TNEW branding
   Loads after TNEW's CSS and anam-header-footer.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme variables
   -------------------------------------------------------------------------- */
:root {
    /* ANAM colours: the single source for everything below */
    --anam-teal: #005F5A;
    --anam-teal-dark: #00423F;

    /* TNEW v16 theme: replace Bootstrap blue with ANAM teal.
       TNEW's buttons, links, calendar and tabs all read these. */
    --tn-brand-primary:            var(--anam-teal);
    --tn-brand-primary-darken-5:   #00524D;
    --tn-brand-primary-darken-10:  #004743;
    --tn-brand-primary-darken-15:  #003D3A;
    --tn-brand-primary-darken-17:  #003936;
    --tn-brand-primary-darken-30:  #002422;
    --tn-brand-primary-lighten-40: #99BFBD;

    --tn-link-color:       var(--anam-teal);
    --tn-link-color-hover: var(--anam-teal-dark);

    --anam-teal-tint:   #DDEBE9;   /* pale teal: selected cards, hover fills */
    --anam-teal-border: #B3CFCC;   /* soft teal border to go with it */
    --anam-black: #1a1a1a;         /* site header (.header-wrap): calendar weekday headers */

    /* Body text: ANAM's near-black instead of TNEW's grey #333 */
    --tn-text-color: #1a1a1a;

    /* TNEW ships this as lime; use Bootstrap's darker grey */
    --tn-label-default-bg-focus: #5e5e5e;

    /* Button shape: ANAM pill buttons */
    --tn-btn-border-radius-base:  26px;
    --tn-btn-border-radius-large: 26px;
    --tn-btn-border-radius-small: 26px;
    --tn-btn-font-weight: 700;

        /* Small pill size (utility bar, BOOK, date filters).
       Change these to resize every small pill at once. */
    --anam-pill-height:    36px;
    --anam-pill-padding-x: 24px;
    --anam-pill-gap:       10px;   /* space between text and an icon */
}

/* --------------------------------------------------------------------------
   2. Fonts
   One family, two weights, so bold text uses the real bold file
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "FF Mark";
    src: url("/webfonts/2CBD4F_0_0.woff2") format("woff2"),
         url("/webfonts/2CBD4F_0_0.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FF Mark";
    src: url("/webfonts/2CBD4F_1_0.woff2") format("woff2"),
         url("/webfonts/2CBD4F_1_0.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */


   /* Space between the TNEW content and the footer, on every page */
#tnew-content {
    padding-bottom: 60px;
}

/* Whole page, including TNEW pop-ups.
   The header and footer set their own fonts, so they're unaffected. */
body {
    font-family: "FF Mark", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Browser form controls (radio buttons, checkboxes, sliders) in ANAM teal.
   These are drawn by the browser, not TNEW, so no TNEW variable covers them. */
body {
    accent-color: var(--anam-teal);
}

/* Headings in the TNEW content use the real bold. Includes Bootstrap's
   .h1–.h4 classes and the event title (which TNEW marks up as a <p>). */
:where(#tnew-content) h1,
:where(#tnew-content) h2,
:where(#tnew-content) h3,
:where(#tnew-content) h4,
:where(#tnew-content) .h1,
:where(#tnew-content) .h2,
:where(#tnew-content) .h3,
:where(#tnew-content) .h4,
:where(#tnew-content) .tn-event-detail__title {
    font-weight: 700;
}

/* Page titles in capitals, like the headings on anam.com.au.
   .tn-header-component__heading is the main title TNEW puts on every page
   (Shopping Cart, Account Details, etc.); .tn-event-detail__title is the
   visible event title on event pages. Event names within the cart and
   confirmation keep normal case. */
.tn-header-component .tn-header-component__heading,
.tn-event-detail .tn-event-detail__title {
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* --------------------------------------------------------------------------
   4. Buttons
   Shape and weight come from the variables in section 1.
   Scoped to the TNEW content and pop-ups (.modal), so the footer's buttons
   aren't affected. Excluded: buttons TNEW sizes itself (calendar events,
   month picker, cart button, list view arrow buttons).
   -------------------------------------------------------------------------- */

/* ANAM-style button text */
:where(#tnew-content, .modal) .btn:not(.tn-events-calendar__event, .tn-btn-datepicker__btn, .tn-utility-nav-cart-link, .tn-prod-list-item__button) {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Standard buttons (e.g. Add to Cart) */
:where(#tnew-content, .modal) .btn:not(.tn-events-calendar__event, .tn-btn-datepicker__btn, .tn-utility-nav-cart-link, .tn-prod-list-item__button) {
    padding: 10px 24px;
}

/* Large icon buttons (the month picker's arrows): keep Bootstrap's size */
:where(#tnew-content, .modal) .btn-lg.tn-btn-datepicker__btn-period-prev-next {
    padding: 10px 16px;
}

/* --- Small pills: all sized from the --anam-pill variables ------------- */

/* Small buttons (utility bar, pop-ups).
   No "display" here: TNEW shows and hides some of these by screen size
   (e.g. the phone-only Promo Code button), and setting display would
   override that. Line height = pill height minus the 2px border
   centres the single line of text vertically. */
:where(#tnew-content, .modal) .btn-sm:not(.tn-events-calendar__event, .tn-btn-datepicker__btn, .tn-utility-nav-cart-link) {
    height: var(--anam-pill-height);
    padding: 0 var(--anam-pill-padding-x);
    font-size: 13px;
    line-height: calc(var(--anam-pill-height) - 2px);
}

/* View Cart: icon, label and item badge in a row.
   Excluded from the general button rules (its padding is special),
   so it sets its own uppercase text here. */
:where(#tnew-content) .tn-utility-nav-cart-link {
    display: inline-flex;
    align-items: center;
    gap: var(--anam-pill-gap);
    padding: 0 9px 0 var(--anam-pill-padding-x);
    font-size: 13px;
    line-height: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Log In (shown when logged out): icon and label in a centred row,
   same technique as View Cart */
.tn-utility-nav .tn-utility-nav-account-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 18px;
}

/* Clear TNEW's own nudges on the icon so the row controls its position */
.tn-utility-nav-account-login-link .tn-utility-nav-account-login-link__user-icon {
    position: static;
    margin: 0;
    top: auto;
    vertical-align: middle;
}

.tn-utility-nav-cart-link .tn-utility-nav-cart-link__quantity-badge {
    position: static;
    margin: 0;
    transform: none;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 18px;
    letter-spacing: 0;
    text-align: center;
    color: var(--anam-teal);
    background-color: #fff;
}

/* --- Events list view ------------------------------------------------- */

/* "Book" as a single pill; the separate arrow button is hidden
   (the whole row is the link, so it was only decoration) */
.tn-prod-list-item__perf-anchor .tn-prod-list-item__button {
    display: none;
}

.tn-prod-list-item__perf-anchor .tn-prod-list-item__perf-action {
    display: inline-flex;
    align-items: center;
    height: var(--anam-pill-height);
    padding: 0 var(--anam-pill-padding-x);
    border-radius: 26px;
    background-color: var(--anam-teal);
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: background-color .2s;
}

.tn-prod-list-item__perf-anchor:hover .tn-prod-list-item__perf-action,
.tn-prod-list-item__perf-anchor:focus .tn-prod-list-item__perf-action {
    background-color: var(--anam-teal-dark);
}

/* Date filter buttons and Reset Date Range: TNEW's default-button
   variables, set on this container only, turn just these teal */
.tn-events-list-view__controls {
    --tn-btn-default-color:            #fff;
    --tn-btn-default-color-hover:      #fff;
    --tn-btn-default-bg:               var(--anam-teal);
    --tn-btn-default-bg-hover:         var(--anam-teal-dark);
    --tn-btn-default-bg-focus:         var(--anam-teal-dark);
    --tn-btn-default-bg-active:        var(--anam-teal-dark);
    --tn-btn-default-bg-active-focus:  var(--anam-teal-dark);
    --tn-btn-default-border:           var(--anam-teal);
    --tn-btn-default-border-hover:     var(--anam-teal-dark);
    --tn-btn-default-border-focus:     var(--anam-teal-dark);
    --tn-btn-default-border-active:    var(--anam-teal-dark);
}

.tn-events-list-view__controls .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--anam-pill-gap);
    height: var(--anam-pill-height);
    padding: 0 var(--anam-pill-padding-x);
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.tn-events-list-view__controls .tn-btn-datepicker__icon-calendar {
    color: #fff;
    fill: #fff;
}



/* Event rows: more space above and below, now that the pills are taller.
   Padding goes on each part of the row (not the row itself) so the grey
   date/time strip still fills its full height. */
.tn-prod-list-item__perf-anchor .tn-prod-list-item__perf-property {
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
}

/* Event rows: time straight after the date ("Tuesday 27 October 2026,
   10:30 am") instead of pushed to the far right. TNEW spaces the two
   apart with justify-content: space-between. */
.tn-prod-list-item__perf-anchor .tn-prod-list-item__perf-property--datetime {
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* The comma is visual only: TNEW already has a hidden ", " for screen
   readers, and the "/ ''" stops it being read twice. Browsers that don't
   understand the second line use the first. */
.tn-prod-list-item__perf-anchor .tn-prod-list-item__perf-date::after {
    content: ",";
    content: "," / "";
    margin-right: .3em;
}

/* Utility bar: full-width background band.
   The bar sits inside the page container. border-image paints its
   background colour outwards 100vmax to the left and right, without
   changing the layout and without clipping anything inside the bar
   (so the account dropdown can still open below it). */
.tn-utility-nav {
    background-color: #f5f5f5;
    border-image: conic-gradient(#f5f5f5 0 0) fill 0 / / 0 100vmax;
}

/* Utility bar: every control the same height, labels on one line */
.tn-utility-nav .tn-utility-nav-account-menu-btn,
.tn-utility-nav .tn-utility-nav-account-login-link,
.tn-utility-nav .tn-utility-nav-inline-promo-code-form__input,
.tn-utility-nav .tn-utility-nav-inline-promo-code-form__btn-submit,
.tn-utility-nav .tn-utility-nav-modal-promo-code-form__btn-open-modal,
.tn-utility-nav .tn-utility-nav-cart-link {
    height: var(--anam-pill-height);
    white-space: nowrap;
}

/* Cart countdown timer.
   Styled as an outlined pill: sized like the other pills, but white with a
   grey outline, because it's information, not a button.
   No "display" here: TNEW hides the timer when the cart is empty. */
.tn-utility-nav .tn-utility-nav-cart-timer {
    width: auto;
    min-width: 0;
    height: var(--anam-pill-height);
    line-height: calc(var(--anam-pill-height) - 2px);
    padding: 0 20px 0 16px;
    border: 1px solid #c8c8c8;
    border-radius: 26px;
    background-color: #fff;
    color: var(--tn-text-color);
    font-size: 13px;
    white-space: nowrap;
    z-index: auto;
    align-items: center;     
    margin-right: 12px;      
}



.tn-utility-nav .tn-utility-nav-cart-timer .tn-utility-nav-cart-timer__icon {
    position: static;
    top: auto;
    left: auto;
    align-self: center;
    width: 16px;
    height: 16px;
    margin: 0 6px 0 0;
    vertical-align: middle;
    color: var(--tn-text-color);
    fill: currentColor;
    flex-shrink: 0;
    min-width: 16px;
}

/* The time itself: bold, and with even-width digits so the text
   doesn't shuffle sideways as the seconds tick down */
.tn-utility-nav-cart-timer .tn-utility-nav-cart-timer__time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
        flex-shrink: 0;
}

/* Cart timer when time is running low: TNEW adds the --urgent class.
   Red text and outline bring back TNEW's warning, which our white pill
   styling had overridden. */
.tn-utility-nav .tn-utility-nav-cart-timer.tn-utility-nav-cart-timer--urgent {
    color: var(--tn-state-danger-text);
    border-color: var(--tn-state-danger-text);
}

/* The clock icon is set to the text colour in its own rule,
   so it needs its own red here too */
.tn-utility-nav .tn-utility-nav-cart-timer--urgent .tn-utility-nav-cart-timer__icon {
    color: var(--tn-state-danger-text);
}

/* Account menu: membership status block in black */
.tn-utility-nav-account-menu .tn-utility-nav-account-menu__section--membership-status {
    background-color: #000;
    color: #fff;
}

/* Every piece of text inside it in white. Headings are listed separately
   because TNEW gives them their own colour, which wouldn't inherit. */
.tn-utility-nav-account-menu__section--membership-status .tn-utility-nav-account-menu__section-heading,
.tn-utility-nav-account-menu__section--membership-status .tn-utility-nav-account-membership-status__name,
.tn-utility-nav-account-menu__section--membership-status .tn-utility-nav-account-membership-status__expiration {
    color: #fff;
}

/* Section headings ("MEMBERSHIPS", "ACCOUNT") and the membership name: bold capitals */
.tn-utility-nav-account-menu .tn-utility-nav-account-menu__section-heading,
.tn-utility-nav-account-menu__section--membership-status .tn-utility-nav-account-membership-status__name {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Continue Browsing: a white "secondary" pill, so it's clearly available
   but doesn't compete with the teal main action.
   TNEW gives this link no class, and its wrapper varies by page, so it's
   matched by where it goes: any plain link in the TNEW content whose
   address ends in "/events". Links in the page intro text
   (.tn-header-component__sub-text) are left as normal text links. */
:where(#tnew-content) a[href$="/events"]:not(.btn):not(:where(.tn-header-component__sub-text *)) {
    display: inline-flex;
    align-items: center;
    height: var(--anam-pill-height);
    padding: 0 var(--anam-pill-padding-x);
    border: 1px solid var(--anam-teal);
    border-radius: 26px;
    background-color: #fff;
    color: var(--anam-teal);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color .2s;
}

:where(#tnew-content) a[href$="/events"]:not(.btn):not(:where(.tn-header-component__sub-text *)):hover,
:where(#tnew-content) a[href$="/events"]:not(.btn):not(:where(.tn-header-component__sub-text *)):focus {
    background-color: #EAF2F1;
    color: var(--anam-teal-dark);
    text-decoration: none;
}
.tn-btn-wrapper > a:not(.btn):hover,
.tn-btn-wrapper > a:not(.btn):focus {
    background-color: #EAF2F1;
    color: var(--anam-teal-dark);
    text-decoration: none;
}

/* --- Tablets and phones (under 992px) --------------------------------- */
@media (max-width: 991px) {
    /* TNEW pins the cart timer to the top of the screen below 992px,
       where it covers the header. Keep it in the utility bar instead. */
    .tn-utility-nav .tn-utility-nav-cart-timer {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        transform: none;
    }

        /* When the cart has items, TNEW adds --timer-active to the bar and
       pads its top to make room for a pinned timer. The timer isn't
       pinned any more, so take that space back. */
    .tn-utility-nav.tn-utility-nav--timer-active {
        padding-top: 8px;
    }
}

/* --- Phones (under 768px, Bootstrap's small-screen breakpoint) -------- */
@media (max-width: 767px) {
    /* Utility bar: slightly tighter so everything fits on one row */
    .tn-utility-nav .btn {
        letter-spacing: 0.5px;
    }

    .tn-utility-nav .btn-sm:not(.tn-utility-nav-cart-link) {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tn-utility-nav .tn-utility-nav-cart-link {
        padding-left: 14px;
    }

    /* View Cart shows just the icon and count. Screen readers still
       announce "View Cart, 0 items" from the link's aria-label. */
    .tn-utility-nav .tn-utility-nav-cart-link__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    /* List view: the row wraps, so the grey date/time strip gets its own
       full-width line and the title shares the next line with Book.
       Flex items ignore TNEW's display: table-cell, and flex-basis
       overrides TNEW's column widths. */
    .tn-prod-list-item__perf-anchor {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        /* Fill the row; otherwise the row shrinks to fit its longest
           date/time line and the grey strip stops short */
        width: 100%;
    }

    /* TNEW leaves 30px on the right of each row for its arrow button,
       which we hide, so the grey strip stopped short of the border */
    .tn-prod-list-item__perf-list-item .tn-prod-list-item__perf-anchor {
        padding-right: 0;
    }

    .tn-prod-list-item__perf-anchor .tn-prod-list-item__perf-property--datetime {
        flex: 0 0 100%;
    }

    /* Title takes all the space Book doesn't need */
    .tn-prod-list-item__perf-anchor .tn-prod-list-item__perf-property--title {
        flex: 1 1 0;
        min-width: 0;
    }

    /* Book takes only the width of its pill. TNEW gives each part of the
       row a percentage width, which "auto" here would otherwise pick up. */
    .tn-prod-list-item__perf-anchor .tn-prod-list-item__perf-property--action {
        flex: 0 0 auto;
        width: auto;
    }

    /* Utility bar on phones: Log In on the left, Promo Code and View Cart
       on the right, and the cart timer centred on its own line below. */
    .tn-utility-nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    /* Let the right-hand group's contents join the bar's own row,
       so the timer can be positioned across the whole bar */
    .tn-utility-nav .tn-utility-nav-cart-controls-section {
        display: contents;
    }

    /* Keep Promo Code and View Cart together on the right */
    .tn-utility-nav .tn-utility-nav-promo-code-section {
        margin-left: auto;
    }

    /* An invisible full-width item that starts a new line before the timer
       (only when the timer is showing) */
    .tn-utility-nav--timer-active::after {
        content: "";
        order: 98;
        flex-basis: 100%;
        height: 0;
    }

    /* The timer: last, on its own line, centred at its natural size */
    .tn-utility-nav .tn-utility-nav-cart-timer {
        order: 99;
        margin: 0 auto;
    }
    .tn-utility-nav .tn-utility-nav-cart-controls-section {
        flex-wrap: wrap;
    }

        /* Don't let the Log In / account side of the bar be squeezed */
    .tn-utility-nav .tn-utility-nav-account-section__container {
        flex-shrink: 0;
    }

        /* Very narrow phones (under 400px): trim the utility bar so
       Log In, Promo Code and View Cart all fit on one row */
    @media (max-width: 399px) {
        /* Smaller gaps between the buttons */
        .tn-utility-nav {
            gap: 6px;
        }

        /* Tighter pills and slightly smaller text */
        .tn-utility-nav .btn-sm:not(.tn-utility-nav-cart-link) {
            padding-left: 10px;
            padding-right: 10px;
            font-size: 12px;
        }

        .tn-utility-nav .tn-utility-nav-cart-link {
            padding-left: 10px;
            gap: 6px;
        }

        /* Log In: hide the person icon (the words say it all) */
        .tn-utility-nav .tn-utility-nav-account-login-link__user-icon {
            display: none;
        }
    }
    
}

/* --------------------------------------------------------------------------
   5. Event listing: tabs and calendar
   Modern tab styling: unselected tabs filled with the brand colour,
   the selected tab white, thin 1px lines, sharp corners.
   -------------------------------------------------------------------------- */

/* The line under each row of tabs: thin and light */
.tn-event-listing-mode-tab-nav__list {
    border-bottom: 1px solid #ddd;
}

/* Unselected tabs: filled teal, white text */
.tn-event-listing-mode-tab-nav__list .tn-event-listing-mode-tab-nav__list-item {
    font-weight: 700;              /* bold like the event names */
    border: 1px solid var(--anam-teal);
    border-radius: 0;
    background-color: var(--anam-teal);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s;
}

.tn-event-listing-mode-tab-nav__list .tn-event-listing-mode-tab-nav__list-item:hover {
    background-color: var(--anam-teal-dark);
    border-color: var(--anam-teal-dark);
}

/* Selected tab: white, thin grey border, open at the bottom
   so it joins the content below */
.tn-event-listing-mode-tab-nav__list .tn-event-listing-mode-tab-nav__list-item.active,
.tn-event-listing-mode-tab-nav__list .tn-event-listing-mode-tab-nav__list-item.active:hover {
    background-color: #fff;
    color: var(--tn-text-color);
    border-color: #ddd;
    border-bottom-color: #fff;
    cursor: default;
}

/* Weekday headers (Sunday, Monday...): black like the site header,
   instead of TNEW's dark grey */
.tn-events-calendar-view .tn-events-calendar__table th {
    background-color: var(--anam-black);
    color: #fff;
    font-weight: 700;
}

/* Month heading above the calendar ("October 2026"): black instead of
   grey. It's most likely the table's <caption>, which Bootstrap colours
   #777; the h2/h3 cover TNEW drawing it as a heading instead. */
.tn-events-calendar-view .tn-events-calendar__table caption,
.tn-events-calendar-view h2,
.tn-events-calendar-view h3 {
    color: var(--anam-black);
}

/* Phone calendar (a list of days): date headings in bold black with a
   thin line underneath, instead of TNEW's grey shaded bar. Left edge
   lines up with the event blocks below. */
.tn-events-calendar-view .tn-events-calendar__list-day-heading {
    background: transparent;
    color: var(--anam-black);
    font-weight: 700;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;   /* same line as the tabs */
}

/* "October 2026": bold month, regular-weight year, like Apple Calendar.
   js/anam-calendar.js wraps the year in this span (month heading and
   the month button). */
.anam-year {
    font-weight: 400;
}

/* Calendar events: gently rounded. */
.tn-events-calendar-view .tn-events-calendar__event {
    border-radius: 6px;
}

/* Date picker pop-up (the mini calendar under "Filter by Date Range" and
   the month button), styled to match the main month calendar.
   TNEW builds it with the AccDC calendar script, whose wrapper id starts
   "AccDC" and changes on every page load. Inside it:
   - the arrows are td.nav cells that also carry .btn and .year/.month,
     so our button rules (section 4) reach them, and td.month alone
     matches the arrows too: use td.month:not(.nav) for the heading.
   - TNEW draws each day's box (teal when selected) on the span inside
     the cell, not on the cell itself. */
[id^="AccDC"][role="application"] table.calendar {
    width: 268px;                       /* 7 columns x 36px, plus the gaps */
    table-layout: fixed;                /* seven equal columns */
    border-collapse: separate;
    border-spacing: 2px;                /* white gaps, like the main grid */
    font-family: "FF Mark", "Helvetica Neue", Helvetica, Arial, sans-serif; /* TNEW sets Helvetica here */
}

/* --- Year and month rows: [ < ][ October ][ > ], like the main
       calendar's month control. TNEW gives the month row itself (the
       tr) a grey background, so clear the rows as well as the cells. --- */
[id^="AccDC"][role="application"] .calendar .yearSelector,
[id^="AccDC"][role="application"] .calendar .monthSelector {
    background: transparent;
}

[id^="AccDC"][role="application"] .calendar .yearSelector td,
[id^="AccDC"][role="application"] .calendar .monthSelector td {
    padding: 0 0 6px;                   /* undo our .btn padding */
    background: transparent;
    border: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 16px;
    font-weight: 700;
    color: var(--tn-text-color);
}

/* Heading: white box with a thin grey border top and bottom, joining
   the teal arrow buttons either side */
[id^="AccDC"][role="application"] .calendar td.year:not(.nav) > span,
[id^="AccDC"][role="application"] .calendar td.month:not(.nav) > span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    font-family: inherit;
}

/* Year row a little smaller than the month row */
[id^="AccDC"][role="application"] .calendar td.year:not(.nav) > span {
    height: 30px;
    font-size: 14px;
}

/* Arrows: teal buttons with white chevrons, rounded on the outer side */
[id^="AccDC"][role="application"] .calendar td.nav {
    cursor: pointer;
    outline: none;                      /* focus ring goes on the span */
}

[id^="AccDC"][role="application"] .calendar td.nav > span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    background-color: var(--anam-teal);
    border: 1px solid var(--tn-brand-primary-darken-5);
    color: #fff;
    fill: #fff;
    transition: background-color .2s;
}

[id^="AccDC"][role="application"] .calendar td.nav.year > span {
    height: 30px;
}

[id^="AccDC"][role="application"] .calendar td.nav.prev > span {
    border-radius: 5px 0 0 5px;
}

[id^="AccDC"][role="application"] .calendar td.nav.next > span {
    border-radius: 0 5px 5px 0;
}

[id^="AccDC"][role="application"] .calendar td.nav:hover > span {
    background-color: var(--anam-teal-dark);
}

[id^="AccDC"][role="application"] .calendar td.nav:focus-visible > span {
    outline: 2px solid var(--anam-teal);
    outline-offset: 2px;
}

/* --- Weekday letters: black header row, like the main calendar --- */
[id^="AccDC"][role="application"] .calendar th.week {
    height: 26px;
    padding: 0;
    background-color: var(--anam-black);  /* matches the main calendar */
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 26px;
}

/* TNEW sizes the letter's span too, which kept the row 50px tall */
[id^="AccDC"][role="application"] .calendar th.week > span {
    display: block;
    height: auto;
    padding: 0;
    line-height: 26px;
}

/* --- Days: light grey boxes with white gaps, like the main grid --- */
[id^="AccDC"][role="application"] .calendar td.day {
    padding: 0;
    background: transparent;
    border: 0;
}

[id^="AccDC"][role="application"] .calendar td.day > span {
    display: block;
    width: auto;
    height: 32px;
    line-height: 32px;
    background-color: #f7f7f7;
    border: 0;
    border-radius: 0;
    color: var(--tn-text-color);
    font-size: 15px;
}

/* Past and unavailable days: same box, faded number */
[id^="AccDC"][role="application"] .calendar td.day.disabled > span {
    color: #b3b3b3;
}

/* Days you can pick: pale teal on hover */
[id^="AccDC"][role="application"] .calendar td.day:not(.disabled, .selected):hover > span {
    background-color: var(--anam-teal-tint);
    cursor: pointer;
}

/* Selected day: teal, gently rounded like the event blocks */
[id^="AccDC"][role="application"] .calendar td.day.selected > span {
    background-color: var(--anam-teal);
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
}

/* Keyboard focus on a day (arrow keys move it) */
[id^="AccDC"][role="application"] .calendar td.day:focus-visible > span {
    outline: 2px solid var(--anam-teal);
    outline-offset: 1px;
}

/* --------------------------------------------------------------------------
   6. Account pages
   -------------------------------------------------------------------------- */

/* Communication preferences: descriptions in full text colour for easier
   reading; the "Last updated" date stays grey as secondary information */
.tn-component-contact-permissions .help-block {
    color: var(--tn-text-color);
}

.tn-component-contact-permissions .help-block .small {
    color: #737373;
}

/* --------------------------------------------------------------------------
   7. Event detail page
   ANAM events are all one-off performances, so TNEW's "additional events"
   area (for choosing another date of the same event) is never needed.
   If ANAM ever runs multiple performances of one event, remove this section.
   -------------------------------------------------------------------------- */

/* Hide the left-hand sidebar at every screen size */
.tn-event-detail .tn-event-detail__additional-events-container--desktop {
    display: none;
}

/* Let the main content (date, title, tickets) use the full width */
.tn-event-detail {
    flex-wrap: wrap;
}

.tn-event-detail .tn-event-detail__main-container {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
    float: none;
    margin-left: 0;
}

/* TNEW's phone version sits below Add to Cart. Show it at every size,
   so Continue Browsing always appears there. */
.tn-event-detail .tn-event-detail__additional-events-container--mobile {
    display: block;
    width: 100%;
    margin-top: 16px;
      background-color: transparent;
    padding: 0;
}

/* ...but hide its "Select Another Event" dropdown, which only ever
   lists the one event you're already on */
.tn-event-detail__additional-events-container--mobile .tn-additional-events {
    display: none;
}

/* Ticket quantity dropdowns: drawn by us rather than the browser,
   so they look the same everywhere (Chrome's default looked cramped). */
.tn-ticket-selector__pricetype-select.form-control {
    -webkit-appearance: none;
    appearance: none;
    min-width: 80px;
    height: 40px;
    padding: 0 36px 0 14px;
    font-size: 16px;
    color: var(--tn-text-color);
    background-color: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 4px;

    /* Our own down arrow, drawn as a small inline SVG image */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a1a1a' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
}

/* Keyboard focus: a clear teal outline instead of Bootstrap's blue glow */
.tn-ticket-selector__pricetype-select.form-control:focus {
    border-color: var(--anam-teal);
    outline: 2px solid var(--anam-teal);
    outline-offset: 1px;
    box-shadow: none;
}

/* Ticket selector: show "Price" and "Quantity" once on the first row,
   like column headings. Later rows keep their labels for screen readers
   (visually hidden, not removed), so every field is still named.
   Desktop and tablet only: on phones the rows stack, so every row keeps
   its visible labels. */
@media (min-width: 768px) {
    .tn-ticket-selector__pricetype-list-item:not(:first-child) .tn-ticket-selector__amount-input-container .control-label,
    .tn-ticket-selector__pricetype-list-item:not(:first-child) .tn-ticket-selector__pricetype-select-wrapper .control-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* Rows 2 onwards: with the labels hidden, centre the name, price
       and quantity against each other, and remove the spacing that
       was only there to line the name up under the labels */
    .tn-ticket-selector__pricetype-list-item:not(:first-child) .tn-ticket-selector__pricetype {
        align-items: center;
    }

    .tn-ticket-selector__pricetype-list-item:not(:first-child) .tn-ticket-selector__pricetype-label-container,
    .tn-ticket-selector__pricetype-list-item:not(:first-child) .tn-ticket-selector__pricetype-name,
    .tn-ticket-selector__pricetype-list-item:not(:first-child) .tn-ticket-selector__amount-input-container .form-group,
    .tn-ticket-selector__pricetype-list-item:not(:first-child) .tn-ticket-selector__pricetype-select-wrapper {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
    }

}

/* Ticket selector on phones: one compact row per ticket type.
   Name with the price underneath on the left, quantity on the right.
   Labels are visually hidden (still read by screen readers). */
@media (max-width: 767px) {
    .tn-ticket-selector__pricetype-list-item .tn-ticket-selector__pricetype {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name   select"
            "price  select";
        column-gap: 16px;
        align-items: center;
    }

    /* Place each part in its area, and clear TNEW's column widths */
    .tn-ticket-selector__pricetype .tn-ticket-selector__pricetype-label-container,
    .tn-ticket-selector__pricetype .tn-ticket-selector__amount-input-container,
    .tn-ticket-selector__pricetype .tn-ticket-selector__pricetype-select-wrapper {
        width: auto;
        float: none;
        margin: 0;
        padding: 0;
    }

    .tn-ticket-selector__pricetype .tn-ticket-selector__pricetype-label-container {
        grid-area: name;
    }

    .tn-ticket-selector__pricetype .tn-ticket-selector__amount-input-container {
        grid-area: price;
    }

    .tn-ticket-selector__pricetype .tn-ticket-selector__pricetype-select-wrapper {
        grid-area: select;
    }

    /* Tidy spacing around the name and the price, so both line up
    exactly with the left edge of the page text */
    .tn-ticket-selector__pricetype .tn-ticket-selector__pricetype-label-heading,
    .tn-ticket-selector__pricetype .tn-ticket-selector__pricetype-name,
    .tn-ticket-selector__pricetype .tn-ticket-selector__amount-input-container .form-group {
        margin: 0;
        padding: 0;
        text-indent: 0;
    }

    /* Price shown as quieter secondary text under the name */
    .tn-ticket-selector__pricetype .tn-ticket-selector__fixed-amount-input {
        height: auto;
        min-height: 0;
        margin-left: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        color: #595959;
    }

    /* Labels: visually hidden on every row, kept for screen readers */
    .tn-ticket-selector__pricetype .control-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* --------------------------------------------------------------------------
   8. Cart
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    /* Phones: each part of a cart item (name, price, date, location, image)
       on its own line, instead of running together like a sentence */
    .tn-cart-item-summary .tn-cart-item-summary__property {
        display: block;
    }

    /* Reserve space on the right of the name for the remove (×) button,
       so long titles wrap before reaching it */
    .tn-cart-item-summary .tn-cart-item-summary__property--name {
        padding-right: 36px;
    }

    /* Price: bold, with a little space above and below */
    .tn-cart-item-summary .tn-cart-item-summary__property--price-total {
        font-weight: 700;
        margin: 4px 0;
    }

    /* Event image: a modest thumbnail with space above it */
    .tn-cart-item-summary .tn-cart-item-summary__property--image {
        margin-top: 8px;
    }

    .tn-cart-item-summary .tn-cart-item-summary__property--image img {
        max-width: 120px;
        height: auto;
    }
}

/* --------------------------------------------------------------------------
   9. Donations (one-page giving)
   -------------------------------------------------------------------------- */

/* Remove the two boxes around the amount buttons */
.tn-opg-form fieldset.tn-has-button-selected.form-control,
.tn-opg-form .tn-opg-form__amount-input-panel {
    height: auto;
    padding: 0;
    margin-bottom: 0;
    border: 0;
    box-shadow: none;
    background: none;
}

.tn-opg-form__amount-input-panel .panel-heading,
.tn-opg-form__amount-input-panel .panel-body {
    padding: 0;
    border: 0;
    background: none;
}

/* "CHOOSE YOUR DONATION AMOUNT" as a normal section heading, in capitals */
.tn-opg-form__amount-input-panel .panel-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: var(--tn-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Amount buttons: teal pills. These are Bootstrap "default" (white) buttons,
   so TNEW's default-button variables are switched to teal on this list only
   (the same technique as the events list date filters). */
.tn-opg-form__suggested-amount-list {
    --tn-btn-default-color:            #fff;
    --tn-btn-default-color-hover:      #fff;
    --tn-btn-default-bg:               var(--anam-teal);
    --tn-btn-default-bg-hover:         var(--anam-teal-dark);
    --tn-btn-default-bg-focus:         var(--anam-teal-dark);
    --tn-btn-default-bg-active:        var(--anam-teal-dark);
    --tn-btn-default-bg-active-focus:  var(--anam-teal-dark);
    --tn-btn-default-border:           var(--anam-teal);
    --tn-btn-default-border-hover:     var(--anam-teal-dark);
    --tn-btn-default-border-focus:     var(--anam-teal-dark);
    --tn-btn-default-border-active:    var(--anam-teal-dark);
}

/* The selected amount: darker teal plus a ring around it, so the choice
   is shown by shape as well as colour (WCAG 1.4.1) */
.tn-opg-form__suggested-amount-list .tn-opg-form__suggested-amount-list-item[aria-checked="true"] {
    background-color: var(--anam-teal-dark);
    border-color: var(--anam-teal-dark);
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--anam-teal-dark);
}

/* Keyboard focus: a clear outline (these are operated with the arrow keys) */
.tn-opg-form__suggested-amount-list .tn-opg-form__suggested-amount-list-item:focus-visible {
    outline: 2px solid var(--anam-teal);
    outline-offset: 5px;
}
/* "Other" amount field: made to look like TNEW's standard amount field
   (as on the gift voucher page), with a grey "$" box on the left.
   The donation page has no "$" element, so it's drawn with ::before.
   The group is a grid so the $ box can share the field's cell:
   row 1 = the "Amount" label, row 2 = the field; errors go below. */
.tn-opg-form__custom-amount-input-content .form-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.tn-opg-form__custom-amount-input-content .tn-amount-label {
    grid-row: 1;
    grid-column: 1;
}

/* The field keeps TNEW's standard styling; only room for the $ box is added */
.tn-opg-form__custom-amount-input-content .tn-amount {
    grid-row: 2;
    grid-column: 1;
    padding-left: 48px;
}

/* The $ box, copying Bootstrap's standard "add-on" look */
.tn-opg-form__custom-amount-input-content .form-group::before {
    content: "$";
    content: "$" / "";          /* hidden from screen readers */
    grid-row: 2;
    grid-column: 1;
    align-self: stretch;
    justify-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    font-size: 14px;
    color: #555;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    pointer-events: none;
    z-index: 5;
}

/* "Other" amount with thousands separators (see anam-donation.js).
   While the field isn't being edited, a formatted copy ("30,000") sits
   in the same grid cell as the field, and the field's own text is made
   invisible underneath it. Clicks pass straight through to the field. */
.tn-opg-form__custom-amount-input-content .anam-amount-display {
    grid-row: 2;
    grid-column: 1;
    align-self: center;
    padding-left: 49px;         /* the field's 48px padding + its 1px border */
    font-size: 14px;            /* match the field's text */
    color: #555;
    white-space: nowrap;
    pointer-events: none;
    z-index: 4;
}

.tn-opg-form__custom-amount-input-content .anam-amount--formatted .tn-amount {
    color: transparent;
}


/* --------------------------------------------------------------------------
   10. Packages
   -------------------------------------------------------------------------- */

/* Selected performance cards: pale teal instead of TNEW's pale blue.
   Covers the main list, the Ticket Summary, and the "remove this item"
   pop-up. Element names (ul, li, div) add strength to beat TNEW's own rule. */
ul.tn-flex-selection__list li.tn-flex-selection,
.tn-remove-item__summary div.tn-flex-selection {
    background-color: var(--anam-teal-tint);
    background-image: none;
    border-color: var(--anam-teal-border);
}

/* Date and time selector ("Show dates & seating options"):
   the outer box keeps a white inside, with the soft teal border... */
div.tn-flex-performance-selector__border {
    border-color: var(--anam-teal-border);
}

/* ...and the "Available Dates & Times" strip is pale teal, matching the
   selected performance cards. Only the strip itself (the form group) is
   coloured: its parent section also wraps the grey "Select a date…" box,
   and colouring the section painted the gap between them. */
div.tn-flex-performance-selector__form-group {
    background-color: var(--anam-teal-tint);
    background-image: none;
}

/* Date list (built by anam-packages.js): every date visible at once,
   in place of TNEW's dropdown */
.anam-date-list {
    margin: 0;
    padding: 0;
    border: 0;
}

.anam-date-list__legend {
    margin-bottom: 8px;
    padding: 0;
    border: 0;
    font-size: 16px;
    font-weight: 700;
}

.anam-date-list__option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
    padding: 12px 16px;
    font-weight: 400;
    background-color: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    cursor: pointer;
}

.anam-date-list__option input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

/* The chosen date: teal border and a thicker edge, not just colour */
.anam-date-list__option:has(input:checked) {
    border-color: var(--anam-teal);
    box-shadow: inset 0 0 0 1px var(--anam-teal);
}

/* Keyboard focus */
.anam-date-list__option:has(input:focus-visible) {
    outline: 2px solid var(--anam-teal);
    outline-offset: 2px;
}

/* In package / unavailable: shown, but clearly not choosable */
.anam-date-list__option:has(input:disabled) {
    color: #595959;
    background-color: #f5f5f5;
    cursor: default;
}

.anam-date-list__status {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hides the original dropdown and label from sight. The script also
   hides the dropdown from screen readers. */
.anam-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Seating and prices area (below the date list, once a date is chosen):
   tighter spacing. TNEW pads this area generously and may give it a
   minimum height for its loading spinner. */
.tn-flex-performance-selector__border .tn-flex-performance__container {
    margin: 0;
    padding: 0;
    min-height: 0;
}

.tn-flex-performance-selector__border .tn-flex-performance {
    margin: 0;
    padding: 16px;
    min-height: 0;
}

/* Inside the seating area: remove spacing from parts TNEW includes but
   doesn't need for a general admission package (an empty seating-section
   legend, heading and list margins, an empty error box) */
.tn-flex-performance .tn-ticket-selector,
.tn-flex-performance .tn-ticket-selector__controls-container,
.tn-flex-performance .tn-ticket-selector__zone-selector-container,
.tn-flex-performance .tn-ticket-selector__zone-selector,
.tn-flex-performance .tn-ticket-selector__legend,
.tn-flex-performance .tn-ticket-selector__pricetype-list,
.tn-flex-performance .tn-ticket-selector__pricetype-name {
    margin: 0;
    padding: 0;
    border: 0;
}

/* The error box only takes space when there's an error to show */
.tn-flex-performance .tn-flex-performance__error-message-container:empty {
    display: none;
}

/* A set gap between the price row and Add to Package */
.tn-flex-performance #tn-add-to-cart-button {
    margin-top: 16px;
}

/* While the seating is loading (TNEW sets aria-busy="true"):
   give the area room, and centre TNEW's loading spinner within it */
.tn-flex-performance[aria-busy="true"] {
    min-height: 160px;
}

/* The loading layer covers the whole area and centres its contents.
   Only while busy, so TNEW still hides it normally once loaded. */
.tn-flex-performance[aria-busy="true"] .tn-flex-performance__busy-indicator {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The spinner box itself: clear TNEW's own positioning so the flex
   centring above decides where it sits */
.tn-flex-performance[aria-busy="true"] .tn-flex-performance__busy-indicator__content {
    position: static;
    top: auto;
    left: auto;
    margin: 0;
    transform: none;
}

/* Date list collapsed to the chosen date (after choosing one): the other
   dates are hidden until "Show all dates" is pressed */
.anam-date-list--collapsed .anam-date-list__option:not(:has(input:checked)) {
    display: none;
}

.anam-date-list__show-all {
    margin-top: 4px;
}

/* Bootstrap's .btn rule would otherwise override the hidden attribute */
.anam-date-list__show-all[hidden] {
    display: none;
}