/*
 * Availability checker - the complete stylesheet for the iframed pages under /availability.
 *
 * Assembled by hand from V1, where these pages loaded the whole site's CSS (normalize,
 * bootstrap-grid, hamburgers, slick, fancybox, bannatyne_spa.css, app.css) and then
 * availability_iframe.css on top of it. Only the rules below actually reach this DOM.
 * They are kept in V1's cascade order and grouped by the file they came from, so the two
 * can still be compared rule for rule.
 *
 * The set was found by matching every selector in those files against every element the
 * checker can render, not by reading, which is how the .date_box block below came to
 * light: it was written for the rebooking date carousel, was never scoped to it, and has
 * been silently restyling this page ever since.
 *
 * Served flat, outside Vite and outside the design system, so that restyling the rest of
 * the site cannot change what a third party's visitors see. Nothing here may be swapped
 * for a design-system token or a Tailwind class. See docs/availability-checker.md.
 */

/* ==========================================================================
   normalize.css v2.1.1
   ========================================================================== */

* {
    outline: none;
}

[hidden] {
    display: none;
}

html {
    background: #fff;
    color: #000;
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

select {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    text-transform: none;
}

/* ==========================================================================
   bannatyne_spa.css
   ========================================================================== */

@font-face {
    font-family: 'Roboto';
    src: url('/assets/availability/fonts/roboto/Roboto-Thin-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/availability/fonts/roboto/Roboto-Regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/availability/fonts/roboto/Roboto-Medium-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/availability/fonts/roboto/Roboto-Bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

* {
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

html, body {
    font-family: "Roboto";
    color: #2d2d2d;
}

html, body {
    font-size: 10px;
    background-color: #2d2d2d;
}

h2 {
    font-weight: 600;
    font-size: 1.8rem;
}

h4 {
    font-size: 1.6rem;
    font-weight: normal;
    text-align: center;
}

ul, p {
    font-size: 1.4rem;
}

p {
    line-height: 1.5em;
}

li {
    font-size: inherit;
}

.text-center {
    text-align: center;
}

@media (min-width: 700px) {
    ul, p {
        font-size: 1.6rem;
        margin: 20px 0;
    }
}

.form_style p {
    font-size: 1.4rem;
}

.form_style select {
    display: block;
    width: 100%;
    -webkit-appearance: none;
    border-radius: 0;
    font-size: 1.6rem;
    border: 1px solid #CCC;
    margin-top: 15px;
    padding: 6px 8px;
    height: 36px;
    background-color: white;
}

.form_style select {
    padding-right: 2em;
    background-image: url('/assets/availability/images/bg-select.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
}

/* Written for the rebooking date carousel and never scoped to it, so it styles this
   page's date tiles as well. Reproduced deliberately: this is what the checker looks
   like today, whatever the intent was. Two rules from the same block are left out
   because they cannot match here - the checker renders no .day or .month inside a tile. */
.date_box .date_box_date {
    text-align: center;
    border: 1px solid #CECECE;
    border-radius: 8px;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.05);
    padding: 10px;
    width: 100px;
    transition: 0.3s;
    background-color: white;
    color: #777;
    cursor: pointer;
    aspect-ratio: 139 / 111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.date_box .date_box_date .day_of_month {
    font-size: 26px;
}

@media (min-width: 600px) {
    .date_box .date_box_date .day_of_month {
        font-size: 32px;
    }
}

@media (min-width: 700px) {
    .date_box .date_box_date .day_of_month {
        font-size: 36px;
    }
}

@media (min-width: 900px) {
    .date_box .date_box_date .day_of_month {
        font-size: 40px;
    }
}

.date_box.active .date_box_date {
    border-color: #005D5C;
    color: #005D5C;
}

.date_box {
    padding: 0 10px;
}

/* ==========================================================================
   app.css
   ========================================================================== */

#ajax-spinner-overlay {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.6);
}

#ajax-spinner-overlay .ajax-spinner {
    height: 100%;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
            align-items: center;
}

#ajax-spinner-overlay .ajax-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    -webkit-animation: ajax-animation 0.8s infinite linear;
            animation: ajax-animation 0.8s infinite linear;
}

@-webkit-keyframes ajax-animation {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
                transform: rotate(359deg);
    }
}

@keyframes ajax-animation {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
                transform: rotate(359deg);
    }
}

/* ==========================================================================
   availability_iframe.css - verbatim, bar the one image path
   ========================================================================== */

html, body {
    background-color: transparent;
}

.month_options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.month_options .next_month,
.month_options .previous_month {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.month_options .inactive {
    cursor: auto;
    opacity: 0.5;
}

.month_options .next_month p,
.month_options .previous_month p {
    margin: 1em;
}

.month_options .arrow_icon {
    width: 20px;
    height: 20px;
    background-image: url('/assets/availability/images/arrow-down-dark.svg');
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(90deg);
}

.month_options .next_month .arrow_icon {
    transform: rotate(270deg);
}

.date_options {
    margin-top: 1em;
}

.date_options,
.time_options .timeslots ul {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.time_options .timeslots ul {
    grid-template-columns: repeat(5, 1fr);
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.date_options .date_box,
.time_options .timeslots ul li {
    border: 1px solid #CCC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time_options .timeslots ul li {
    padding: 1em;
}

.date_options .date_box.unavailable {
    opacity: 0.4;
}

.date_options .date_box.available {
    cursor: pointer;
    font-weight: bold;
}

.date_options .date_box.active {
    background-color: #000;
    border-color: #000;
    color: white;
}

#ajax-spinner-overlay {
    background-color: rgb(255 255 255 / 60%);
}

@media only screen and (max-width: 400px) {
    .date_options {
        grid-template-columns: repeat(5, 1fr);
    }

    .time_options .timeslots ul {
        grid-template-columns: repeat(3, 1fr);
    }
}
