/*
 * Stylesheet for the online booking page.
 *
 * Deliberately does NOT reuse sub.css: that file styles `body *` and bare `p` / `h1`
 * elements globally, which would override the typography the booking widget ships for
 * its own inputs, buttons and date picker. Header and footer rules are duplicated here
 * so the page still matches the rest of the site.
 *
 * The booking widget (React) brings its own component CSS, but expects the host page to
 * provide design tokens and a handful of global helper classes - both are defined below.
 */

@font-face {
    font-family: 'MessinaSans-Regular';
    src: url('../fonts/MessinaSans-Regular.eot');
    src: url('../fonts/MessinaSans-Regular.eot#iefix') format('embedded-opentype'),
    url('../fonts/MessinaSans-Regular.ttf') format('truetype'),
    url('../fonts/MessinaSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MessinaSerif-Regular';
    src: url('../fonts/MessinaSerif-Regular.eot');
    src: url('../fonts/MessinaSerif-Regular.eot#iefix') format('embedded-opentype'),
    url('../fonts/MessinaSerif-Regular.ttf') format('truetype'),
    url('../fonts/MessinaSerif-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------------------------------------------- design tokens
 * The booking widget references these via var(). FALCON has no Garnett/Mondia fonts
 * and no grey scale, so they are mapped onto the Messina fonts and the brand palette:
 * dark blue #15375D as the base, gold #C29345 as the accent.
 *
 * Note the widget was designed for a LIGHT page (central-soelden), where --black and
 * --colorGrey are text colours on a bright background. FALCON's page is dark blue, so
 * those text tokens are white here and the surface tokens (--grey, --beige) are the
 * lighter blues - otherwise the select and date field render blue on blue.
 */
:root {
    --orange: #C29345;
    --light-orange: #D4A95C;
    --error-red: #E4808B;

    /* text */
    --black: #FFFFFF;
    --colorGrey: #FFFFFF;
    --white: #FFFFFF;
    --colorWhite: #FFFFFF;
    --greyLight: #FFFFFF;

    /* surfaces (lighter than the #15375D page background) */
    --grey: #1E4372;
    --beige: #24507F;
    --light-beige: #2C5C8F;
    --colorBeige: #24507F;
    --offWhite: #24507F;

    --transition3s: ease-in-out .3s;
    --transition8s: ease-in-out .8s;

    --garnettLight: 'MessinaSans-Regular';
    --garnettMedium: 'MessinaSans-Regular';
    --mondiaBold: 'MessinaSerif-Regular';
    --mondiaThin: 'MessinaSerif-Regular';
    --rollerscript-smooth: 'MessinaSerif-Regular';
}

/* The select and date field inherit the page background (transparent) and would be
   invisible without an explicit surface.
   Everything the Hobex/OPPWA payment widget renders is excluded: its form is a descendant
   of this panel, but it ships its own light styling, so the white text set here landed on
   its white fields and the card number became invisible. :where() keeps the specificity
   at (1,0,1), so the rule still wins where it should. */
#onlineBookingPanel select:not(:where([class*="wpwl-"])),
#onlineBookingPanel input:not(:where([class*="wpwl-"])) {
    background-color: var(--grey);
    color: #FFFFFF;
    border-color: var(--orange);
}

#onlineBookingPanel select:not(:where([class*="wpwl-"])) option {
    background-color: #15375D;
    color: #FFFFFF;
}

/* Links inside the widget (phone, mail, terms, privacy) would otherwise render in the
   browser's default blue, which is unreadable on the dark blue page. Gold by default,
   underlined on hover. */
#onlineBookingPanel a {
    color: var(--orange);
    text-decoration: none;
}

#onlineBookingPanel a:hover,
#onlineBookingPanel a:focus {
    color: var(--orange);
    text-decoration: underline;
}

/* The slot buttons are anchors too - they keep their white label and must not pick up
   the underline. */
#onlineBookingPanel a[role="button"],
#onlineBookingPanel a[role="button"]:hover,
#onlineBookingPanel a[role="button"]:focus {
    color: #FFFFFF;
    text-decoration: none;
}

/* The gold surface sits on the wrapper div (a generated CSS-modules class, so it cannot
   be targeted by name) - drive the hover from there via :has().
   Bookable slots only: a slot that is greyed out must not look clickable. */
#onlineBookingPanel div:has(> a[role="button"]) {
    transition: background-color .25s ease;
}

#onlineBookingPanel div:has(> a[role="button"]:not([aria-disabled="true"])):hover {
    background-color: var(--light-orange);
    cursor: pointer;
}

body {
    background: #15375D;
    font-family: 'MessinaSans-Regular', sans-serif;
    color: #FFFFFF;
}

/* ---------------------------------------------------------------- header / footer */
header {
    height: 230px;
}

header .logo {
    width: 191px;
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    top: 45px;
}

/* Language switch, top right next to the centred logo. Same gold frame and 8px radius
   as the content buttons on the start page. Only the booking page carries it: on the
   follow-up pages a language change would drop the guest back into an empty flow. */
.langSwitch {
    position: absolute;
    top: 50px;
    right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    background: #15375D;
    border: 1px solid #C29345;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: .06em;
}

.langSwitch a {
    color: #C29345;
    text-decoration: none;
    padding: 7px 15px;
    line-height: 1;
    transition: background-color .25s ease, color .25s ease;
}

.langSwitch a:hover,
.langSwitch a:focus {
    background: rgba(194, 147, 69, .22);
    color: #C29345;
    text-decoration: none;
}

.langSwitch a.active,
.langSwitch a.active:hover,
.langSwitch a.active:focus {
    background: #C29345;
    color: #15375D;
    text-decoration: none;
}

footer {
    position: relative;
    margin: 60px 0;
}

footer .footerContent {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

footer p {
    color: #C29345;
    font-size: 20px;
    margin-bottom: 0;
    line-height: unset;
}

footer a {
    font-size: 20px;
    color: #C29345;
    margin-left: 0;
    text-decoration: none !important;
}

footer a:hover {
    color: #ffffff;
}

.bottomArea {
    display: flex;
    align-items: center;
}

.bottomLeft {
    margin-top: 60px;
}

.bottomLeft img {
    margin-right: 60px;
    height: 47px;
}

.bottomLeft a:last-of-type img {
    margin-right: 0;
}

.bottomLeft a {
    text-decoration: none;
    font-size: 0;
}

.bottomRight {
    margin-top: 60px;
    margin-left: 120px;
}

.bottomRight .socialMedia img {
    width: 20px;
}

.bottomRight .socialMedia img:first-of-type {
    margin-right: 15px;
}

.bottomRight .privacy a {
    color: white;
    font-size: 10px;
    line-height: 23px;
}

.bottomRight .privacy a:first-of-type {
    margin-right: 20px;
}

#goToTop {
    display: none;
}

.mobileBorder {
    display: none;
}

/* ------------------------------------------------- helper classes for the widget
 * The widget renders <h2 class="variantScriptFont"> and <h1 class="default"> in its
 * header, plus Bootstrap-style spacing utilities. Scoped to the booking section so
 * they cannot leak into header/footer.
 */
#onlineBookingPanel h1,
#onlineBookingPanel .h1 {
    font-family: var(--mondiaBold), serif;
    font-size: 48px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 8px;
}

#onlineBookingPanel h2,
#onlineBookingPanel .h2 {
    font-family: var(--garnettMedium), sans-serif;
    font-size: 24px;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0 0 12px;
}

#onlineBookingPanel h3,
#onlineBookingPanel .h3 {
    font-family: var(--garnettMedium), sans-serif;
    font-size: 20px;
    line-height: 1.3;
    color: #FFFFFF;
}

#onlineBookingPanel .variantScriptFont {
    font-family: var(--rollerscript-smooth), serif;
    color: var(--orange);
    font-size: 32px;
    line-height: 1.2;
    font-weight: normal;
}

#onlineBookingPanel .default {
    font-family: var(--mondiaBold), serif;
}

#onlineBookingPanel .thin {
    font-weight: 300;
}

#onlineBookingPanel .overrideMobileFont {
    font-size: inherit;
}

#onlineBookingPanel .singleColumnText {
    column-count: 1;
}

.mb-16 {
    margin-bottom: 16px;
}

/* ------------------------------------------------- Hobex/OPPWA payment mask
 * The widget renders its own form into .paymentWidgets, inside the white modal the
 * booking widget puts around it. Card number and CVV are hosted in iframes on oppwa.com:
 * their frame can be styled from here, the text inside them only through wpwlOptions.
 * The mask therefore stays deliberately light - dark text on white fields - and only the
 * frame is pulled towards the palette. Nothing in here may set a white text colour or a
 * dark field background, or the card number turns invisible again.
 */
.paymentWidgets {
    max-width: 100%;
}

#onlineBookingPanel .wpwl-form-card {
    background: transparent;
    box-shadow: none;
    padding-bottom: 0;
}

#onlineBookingPanel .wpwl-label {
    color: #15375D;
}

/* 16px on the merchant-side fields keeps iOS Safari from zooming in on focus. The two
   iframe fields keep OPPWA's own size - a font-size set here cannot reach into them. */
#onlineBookingPanel .wpwl-wrapper {
    font-size: 16px;
}

/* .wpwl-control covers every real input plus the brand select, .wpwl-control-iframe is the
   iframe element of card number and CVV. :not(.wpwl-has-error) is load bearing: OPPWA's
   error state is only (0,2,0) and would otherwise lose to the id here, and an invalid card
   would stop turning red. */
#onlineBookingPanel .wpwl-control:not(.wpwl-has-error),
#onlineBookingPanel .wpwl-control-iframe:not(.wpwl-has-error) {
    background-color: #FFFFFF;
    color: #15375D;
    font-size: 16px;
    border: 1px solid #B9C4D1 !important;
    border-radius: 4px;
    box-shadow: none !important;
}

#onlineBookingPanel .wpwl-control:not(.wpwl-has-error):focus,
#onlineBookingPanel .wpwl-control-iframe:not(.wpwl-has-error):focus,
#onlineBookingPanel .wpwl-control-iframe:not(.wpwl-has-error):focus-within {
    border-color: var(--orange) !important;
    outline: none;
}

#onlineBookingPanel .wpwl-button-pay {
    background: var(--orange) !important;
    border: 0 !important;
    border-radius: 4px;
    color: #15375D !important;
    text-transform: uppercase;
    outline: none !important;
}

@media screen and (max-width: 1025px) {
    header .logo {
        width: 201px;
        top: 30px;
    }

    .langSwitch {
        top: 30px;
        right: 20px;
        font-size: 13px;
    }

    .langSwitch a {
        padding: 6px 13px;
    }

    .mobileBorder {
        width: 100%;
        margin: 60px auto 0;
        height: .8px;
        background: white;
        display: block;
    }

    #goToTop {
        display: block;
        margin: 0 0 40px;
    }

    #goToTop img {
        border-radius: 50%;
        border: 1px solid white;
        padding: 15px;
        width: 54px;
        height: 54px;
    }

    #onlineBookingPanel h1,
    #onlineBookingPanel .h1 {
        font-size: 30px;
    }

    #onlineBookingPanel .variantScriptFont {
        font-size: 24px;
    }

    footer .footerContent {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .bottomArea,
    .bottomLeft {
        flex-direction: column;
        text-align: center;
    }

    /* .bottomLeft is a plain block on desktop, so the flex-direction above had nothing
       to act on and the three partner logos stayed on one line and overlapped. Same
       rule main.css already applies on the start page. */
    .bottomLeft {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bottomLeft img {
        margin-right: 0;
        margin-bottom: 50px;
    }

    .bottomRight {
        margin-top: 0;
        margin-left: 0;
    }
}
