/* These additions are shared by the LP and the original theme's public pages. */
body.beep-sticky-booking-enabled {
    --beep-booking-width: 168px;
    --beep-booking-height: 56px;
    --beep-booking-edge: 24px;
}

#beep-sticky-booking {
    position: fixed;
    z-index: 10000;
    right: calc(var(--beep-booking-edge) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--beep-booking-edge) + env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
    width: var(--beep-booking-width);
    max-width: calc(100vw - 2 * var(--beep-booking-edge) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    min-height: var(--beep-booking-height);
    margin: 0;
    padding: 12px 22px;
    border: 1px solid #485749;
    border-radius: 2px;
    background: #485749;
    color: #fff;
    box-shadow: 0 4px 18px rgb(48 56 50 / 20%);
    font: 600 16px/1.5 "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    letter-spacing: .06em;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, box-shadow .15s ease;
}

#beep-sticky-booking:visited {
    color: #fff;
}

#beep-sticky-booking:hover {
    background: #334436;
    border-color: #334436;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 22px rgb(48 56 50 / 25%);
}

#beep-sticky-booking:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 7px #303832;
}

/* A flow element preserves existing body/footer padding and flex layouts. */
body.beep-sticky-booking-enabled .beep-sticky-booking-clearance {
    display: block;
    flex: 0 0 auto;
    clear: both;
    width: 100%;
    height: calc(var(--beep-booking-height) + var(--beep-booking-edge) + 16px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

/* Replace only the legacy duplicate reservation control with the shared link. */
body.beep-sticky-booking-enabled .follow-cta.js-follow-cta {
    display: none;
}

/* Keep the existing page-up control alongside the reservation link. */
body.beep-sticky-booking-enabled .back-to-top {
    right: calc(var(--beep-booking-edge) + var(--beep-booking-width) + 12px + env(safe-area-inset-right, 0px));
    bottom: calc(var(--beep-booking-edge) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 760px) {
    body.beep-sticky-booking-enabled {
        --beep-booking-width: 148px;
        --beep-booking-height: 52px;
        --beep-booking-edge: 16px;
    }

    #beep-sticky-booking {
        padding-inline: 18px;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #beep-sticky-booking {
        transition: none;
    }
}

@media print {
    #beep-sticky-booking,
    body.beep-sticky-booking-enabled .beep-sticky-booking-clearance {
        display: none;
    }
}
