/*
 * CHS Hero Booking Widget V1.0
 * Desktop preview styling.
 */

@media (min-width: 861px) {

    .hero {
        position: relative;
    }

    .chs-hbw {
        position: absolute;
        z-index: 5;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 125px 32px 55px;
        color: #fff;
        text-align: center;
        pointer-events: none;
    }

    .chs-hbw-heading {
        width: 100%;
        margin-bottom: 32px;
        text-shadow: 0 3px 20px rgba(0,0,0,.45);
    }

    .chs-hbw-eyebrow {
        display: block;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: .4em;
        margin-bottom: 12px;
    }

    .chs-hbw-title {
        margin: 0;
        font-size: clamp(36px, 5vw, 74px);
        line-height: 1.12;
        font-weight: 500;
        letter-spacing: .035em;
        color: #fff;
    }

    .chs-hbw-subtitle {
        margin-top: 7px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(27px, 3.5vw, 49px);
        font-style: italic;
        line-height: 1.3;
    }

    .chs-hbw-booking {
        display: flex;
        align-items: stretch;
        width: min(1100px, 100%);
        min-height: 84px;
        padding: 9px;
        border: 1px solid rgba(255,255,255,.55);
        border-radius: 15px;
        background: rgba(255,255,255,.93);
        box-shadow: 0 14px 45px rgba(0,0,0,.18);
        text-align: left;
        pointer-events: auto;
    }

    .chs-hbw-field {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 10px 20px;
        border-right: 1px solid #e6e0d5;
        color: #342f28;
    }

    .chs-hbw-field > span {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .12em;
        color: #8b795e;
    }

    .chs-hbw-field input,
    .chs-hbw-field button {
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        outline-offset: 4px;
        background: transparent;
        color: #342f28;
        font-family: inherit;
        font-size: 14px;
        text-align: left;
    }

    .chs-hbw-field button {
        cursor: pointer;
    }

    .chs-hbw-submit {
        flex: 0 0 190px;
        border: 0;
        border-radius: 10px;
        background: #ac9156;
        color: #fff;
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .1em;
        cursor: pointer;
        transition: background .2s ease;
    }

    .chs-hbw-submit:hover {
        background: #947943;
    }

    .chs-hbw-bottom {
        margin-top: 42px;
        text-shadow: 0 2px 12px rgba(0,0,0,.5);
    }

    .chs-hbw-bottom p {
        margin: 0 0 18px;
        font-size: 12px;
        letter-spacing: .3em;
    }

    .chs-hbw-bottom a {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        color: #fff;
        font-size: 11px;
        letter-spacing: .2em;
        pointer-events: auto;
    }

    .chs-hbw-bottom a span {
        font-size: 22px;
        line-height: 1;
    }
}


/* CHS_HBW_MOBILE_PREVIEW_V1 */
@media (max-width: 860px) {

    .hero {
        position: relative;
        overflow: hidden;
    }

    .chs-hbw {
        position: absolute;
        z-index: 5;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 100px 16px 45px;
        color: #fff;
        text-align: center;
        pointer-events: none;
    }

    .chs-hbw-heading {
        width: 100%;
        margin-bottom: 24px;
        text-shadow: 0 3px 15px rgba(0,0,0,.45);
    }

    .chs-hbw-eyebrow {
        display: block;
        font-size: 10px;
        letter-spacing: .25em;
        margin-bottom: 10px;
    }

    .chs-hbw-title {
        margin: 0;
        color: #fff;
        font-size: clamp(25px, 7vw, 38px);
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: .02em;
    }

    .chs-hbw-subtitle {
        margin-top: 8px;
        font-family: Georgia, serif;
        font-size: clamp(22px, 6vw, 30px);
        font-style: italic;
        line-height: 1.3;
    }

    .chs-hbw-booking {
        position: relative;
        display: flex;
        flex-direction: column;
        width: min(360px, 100%);
        margin-left: auto;
        margin-right: 0;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255,255,255,.97);
        box-shadow: 0 14px 40px rgba(0,0,0,.22);
        color: #342f28;
        text-align: left;
        pointer-events: auto;
        overflow: visible;
    }

    .chs-hbw-field {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 11px 6px;
        min-width: 0;
        border-bottom: 1px solid #eee8dc;
    }

    .chs-hbw-field > span {
        color: #8b795e;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .1em;
    }

    .chs-hbw-field > input,
    .chs-hbw-field > button {
        width: 100%;
        min-height: 30px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #342f28;
        font: inherit;
        font-size: 14px;
        text-align: left;
    }

    .chs-hbw-submit {
        width: 100%;
        min-height: 48px;
        margin-top: 12px;
        border: 0;
        border-radius: 11px;
        background: #ac9156;
        color: #fff;
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .08em;
        cursor: pointer;
    }

    .chs-hbw-bottom {
        margin-top: 20px;
        text-shadow: 0 2px 10px rgba(0,0,0,.5);
    }

    .chs-hbw-bottom p {
        margin: 0 0 8px;
        font-size: 9px;
        letter-spacing: .12em;
    }

    .chs-hbw-bottom a {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        color: #fff;
        font-size: 10px;
        pointer-events: auto;
    }

    .chs-hbw-guest-panel {
        position: absolute;
        z-index: 100;
        top: calc(100% + 8px);
        left: 0;
        width: 100%;
        max-height: min(55vh, 380px);
        overflow-y: auto;
        padding: 18px;
        border: 1px solid #e8dfcd;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(0,0,0,.22);
        color: #342f28;
        text-align: left;
    }

    .chs-hbw-guest-panel[hidden],
    .chs-hbw-child-dates[hidden],
    .chs-hbw-child-date[hidden] {
        display: none !important;
    }

    .chs-hbw-guest-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
    }

    .chs-hbw-guest-row > span {
        font-size: 13px;
    }

    .chs-hbw-counter {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .chs-hbw-counter button {
        width: 34px;
        height: 34px;
        border: 1px solid #ac9156;
        border-radius: 50%;
        background: #fff;
        color: #ac9156;
        font-size: 20px;
    }

    .chs-hbw-counter output {
        min-width: 18px;
        text-align: center;
        font-weight: 600;
    }

    .chs-hbw-child-dates {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #eee8dc;
    }

    .chs-hbw-child-date {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 12px;
    }

    .chs-hbw-child-date > span {
        font-size: 12px;
        color: #6e5a35;
    }

    .chs-hbw-child-date input {
        width: 100%;
        min-height: 42px;
        padding: 8px 10px;
        border: 1px solid #e3d9c7;
        border-radius: 8px;
        background: #fff;
        color: #342f28;
        font-size: 14px;
        color-scheme: light;
    }

    .chs-hbw-guest-done {
        width: 100%;
        min-height: 42px;
        margin-top: 10px;
        border: 0;
        border-radius: 9px;
        background: #ac9156;
        color: #fff;
        font-weight: 600;
    }
}

@media (max-width: 360px) {
    .chs-hbw {
        padding-inline: 12px;
    }

    .chs-hbw-title {
        font-size: 24px;
    }

    .chs-hbw-booking {
        padding: 11px;
    }
}


@media (min-width: 861px) and (max-height: 750px) {
    .chs-hbw {
        padding-top: 105px;
        padding-bottom: 25px;
    }

    .chs-hbw-heading {
        margin-bottom: 18px;
    }

    .chs-hbw-bottom {
        margin-top: 22px;
    }

    .chs-hbw-title {
        font-size: clamp(30px, 4vw, 56px);
    }
}


/* CHS_HBW_GUEST_PANEL_V1 */

@media (min-width: 861px) {

    .chs-hbw-booking {
        overflow: visible;
    }

    .chs-hbw-field:has(.chs-hbw-guest-panel) {
        position: relative;
    }

    .chs-hbw-guest-panel {
        position: absolute;
        top: calc(100% + 16px);
        left: 0;
        width: 300px;
        max-width: calc(100vw - 40px);
        padding: 22px;
        background: #fff;
        border: 1px solid #e8dfcd;
        border-radius: 16px;
        box-shadow: 0 18px 50px rgba(0,0,0,.2);
        color: #342f28;
        z-index: 30;
        text-align: left;
    }

    .chs-hbw-guest-panel[hidden] {
        display: none !important;
    }

    .chs-hbw-guest-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 0;
    }

    .chs-hbw-guest-row + .chs-hbw-guest-row {
        border-top: 1px solid #eee8dc;
    }

    .chs-hbw-guest-row > span {
        font-size: 14px;
        font-weight: 500;
    }

    .chs-hbw-counter {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .chs-hbw-counter button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: 1px solid #ac9156;
        border-radius: 50%;
        background: #fff;
        color: #ac9156;
        font-size: 20px;
        cursor: pointer;
    }

    .chs-hbw-counter button:hover {
        background: #ac9156;
        color: #fff;
    }

    .chs-hbw-counter output {
        min-width: 20px;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
    }

    .chs-hbw-guest-done {
        width: 100%;
        margin-top: 16px;
        padding: 12px;
        border: 0;
        border-radius: 9px;
        background: #ac9156;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
}


/* CHS_HBW_GUEST_VISIBILITY_FIX_V1 */

@media (min-width: 861px) {

    .chs-hbw-booking {
        position: relative;
        overflow: visible !important;
        isolation: isolate;
    }

    .chs-hbw-field:has(.chs-hbw-guest-panel) {
        position: relative;
        overflow: visible !important;
        z-index: 20;
    }

    .chs-hbw-guest-panel:not([hidden]) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 100;
        pointer-events: auto;
    }

    .chs-hbw-guest-panel[hidden] {
        display: none !important;
    }
}


/* CHS_HBW_CHILD_BIRTHDATES_CSS_V1 */

@media (min-width: 861px) {

    .chs-hbw-child-dates {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #eee8dc;
    }

    .chs-hbw-child-dates[hidden],
    .chs-hbw-child-date[hidden] {
        display: none !important;
    }

    .chs-hbw-child-date {
        display: flex;
        flex-direction: column;
        gap: 7px;
        margin-bottom: 12px;
        text-align: left;
    }

    .chs-hbw-child-date > span {
        font-size: 12px;
        font-weight: 600;
        color: #6e5a35;
    }

    .chs-hbw-child-date input {
        display: block;
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        border: 1px solid #e3d9c7;
        border-radius: 8px;
        background: #fff;
        color: #342f28;
        font-size: 13px;
        box-sizing: border-box;
        color-scheme: light;
    }

    .chs-hbw-child-date input:focus {
        outline: 2px solid #ac9156;
        outline-offset: 1px;
    }
}


/* CHS_HBW_MOBILE_CENTER_FIX_V1 */

@media (max-width: 860px) {

    .chs-hbw-booking {
        margin-left: auto;
        margin-right: auto;
    }

    .chs-hbw-field:has(.chs-hbw-guest-panel) {
        position: static;
    }

    .chs-hbw-guest-panel {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 28px);
        max-width: 360px;
        box-sizing: border-box;
    }

    html[dir="rtl"] .chs-hbw-guest-panel {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}


/* CHS_HBW_MOBILE_PANEL_HEIGHT_FIX_V1 */

@media (max-width: 860px) {

    .chs-hbw-guest-panel {
        position: absolute;
        top: auto;
        bottom: calc(100% + 10px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 28px);
        max-width: 360px;
        max-height: min(55dvh, 430px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        z-index: 100;
    }

    .chs-hbw-guest-done {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin-top: 14px;
        min-height: 44px;
    }

    .chs-hbw-child-date input {
        min-height: 44px;
    }
}
