/*
 * Booking Engine 5.3.113 — Discount banner hard override.
 * Intentionally isolated and enqueued after the plugin/theme styles.
 * IDs provide enough specificity to defeat legacy .be-wrapper resets.
 */

/* Reserve the final banner footprint before AJAX or fonts load. */
#booking-discount-banner.be-discount-slot,
.be-wrapper #booking-discount-banner.be-discount-slot {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* One horizontal banner row, regardless of theme span/div defaults. */
#booking-discount-banner #discount-global,
.be-wrapper #booking-discount-banner #discount-global {
    position: relative !important;
    isolation: isolate !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;

    border: 1px solid #e8b83f !important;
    border-radius: 11px !important;
    background: linear-gradient(105deg, #fff0b8 0%, #fff8df 55%, #ffe7a4 100%) !important;
    color: #704300 !important;

    text-align: left !important;
    white-space: nowrap !important;
    line-height: 1.25 !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform-origin: center !important;
    box-shadow: 0 4px 14px rgba(183,119,0,.16) !important;
    animation: be113-pulse 2.2s ease-in-out infinite !important;
    transition: background-color .28s ease, border-color .28s ease, color .28s ease, box-shadow .28s ease !important;
}

/* Icon wrapper must never become a full-width block. */
#booking-discount-banner #discount-global .be-discount-icon,
.be-wrapper #booking-discount-banner #discount-global .be-discount-icon {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 26px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Both SVGs are in the HTML from first paint; exactly one is visible. */
#booking-discount-banner #discount-global .be-discount-icon > svg,
.be-wrapper #booking-discount-banner #discount-global .be-discount-icon > svg {
    position: absolute !important;
    display: block !important;
    inset: 1px !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(.75) !important;
    pointer-events: none !important;
    animation: none !important;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease !important;
}

#booking-discount-banner #discount-global .be-discount-icon > svg.be-icon-gift,
.be-wrapper #booking-discount-banner #discount-global .be-discount-icon > svg.be-icon-gift {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

/* Text always occupies the remaining single-line space. */
#booking-discount-banner #discount-global .be-discount-text,
.be-wrapper #booking-discount-banner #discount-global .be-discount-text {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#booking-discount-banner #discount-global .be-discount-text strong {
    display: inline !important;
    color: inherit !important;
    font-weight: 800 !important;
}

/* Idle state: explicit class wins over all legacy rules. */
#booking-discount-banner #discount-global.be-discount-idle:not(.discount-applied):not(.applied),
.be-wrapper #booking-discount-banner #discount-global.be-discount-idle:not(.discount-applied):not(.applied) {
    background: linear-gradient(105deg, #fff0b8 0%, #fff8df 55%, #ffe7a4 100%) !important;
    border-color: #e8b83f !important;
    color: #704300 !important;
    animation: be113-pulse 2.2s ease-in-out infinite !important;
}

#booking-discount-banner #discount-global.be-discount-idle:not(.discount-applied):not(.applied)::after,
.be-wrapper #booking-discount-banner #discount-global.be-discount-idle:not(.discount-applied):not(.applied)::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    border-radius: inherit !important;
    pointer-events: none !important;
    background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.65) 48%, transparent 72%) !important;
    transform: translateX(-120%);
    animation: be113-shimmer 4s ease-in-out infinite !important;
}

/* Success state: green theme, check icon and one-shot bounce. */
#booking-discount-banner #discount-global.discount-applied,
#booking-discount-banner #discount-global.applied,
.be-wrapper #booking-discount-banner #discount-global.discount-applied,
.be-wrapper #booking-discount-banner #discount-global.applied {
    background: linear-gradient(105deg, #c9f7d8 0%, #edfff2 55%, #b9efcb 100%) !important;
    border-color: #32ad62 !important;
    color: #075b2d !important;
    box-shadow: 0 5px 19px rgba(22,163,74,.22) !important;
    animation: be113-success .82s cubic-bezier(.18,.89,.32,1.25) both !important;
}

#booking-discount-banner #discount-global.discount-applied .be-icon-gift,
#booking-discount-banner #discount-global.applied .be-icon-gift,
.be-wrapper #booking-discount-banner #discount-global.discount-applied .be-icon-gift,
.be-wrapper #booking-discount-banner #discount-global.applied .be-icon-gift {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(.7) !important;
}

#booking-discount-banner #discount-global.discount-applied .be-icon-success,
#booking-discount-banner #discount-global.applied .be-icon-success,
.be-wrapper #booking-discount-banner #discount-global.discount-applied .be-icon-success,
.be-wrapper #booking-discount-banner #discount-global.applied .be-icon-success {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

/* Small screens: keep a single line and fixed icon dimensions. */
@media (max-width: 420px) {
    #booking-discount-banner #discount-global,
    .be-wrapper #booking-discount-banner #discount-global {
        gap: 8px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 12.5px !important;
    }
    #booking-discount-banner #discount-global .be-discount-text,
    .be-wrapper #booking-discount-banner #discount-global .be-discount-text {
        font-size: 12.5px !important;
    }
}

/* Only animate compositor-friendly properties for the banner. */
@keyframes be113-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(183,119,0,.16); }
    50% { transform: scale(1.012); box-shadow: 0 7px 20px rgba(183,119,0,.25), 0 0 0 4px rgba(239,181,47,.12); }
}
@keyframes be113-shimmer {
    0%, 68%, 100% { transform: translateX(-120%); }
    88% { transform: translateX(120%); }
}
@keyframes be113-success {
    0% { transform: scale(.94); }
    38% { transform: scale(1.045); }
    65% { transform: scale(.985); }
    82% { transform: scale(1.012); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    #booking-discount-banner #discount-global,
    #booking-discount-banner #discount-global::after,
    .be-wrapper #booking-discount-banner #discount-global,
    .be-wrapper #booking-discount-banner #discount-global::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}


/* v5.3.114 emergency compatibility: some themes globally hide nested spans/SVGs. */
#booking-discount-banner #discount-global .be-discount-text,
#booking-discount-banner #discount-global .be-discount-text *,
.be-wrapper #booking-discount-banner #discount-global .be-discount-text,
.be-wrapper #booking-discount-banner #discount-global .be-discount-text * {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

#booking-discount-banner #discount-global .be-discount-text,
.be-wrapper #booking-discount-banner #discount-global .be-discount-text {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

#booking-discount-banner #discount-global .be-icon-gift {
    display: block !important;
}
#booking-discount-banner #discount-global.discount-applied .be-icon-gift,
#booking-discount-banner #discount-global.applied .be-icon-gift {
    display: none !important;
}
#booking-discount-banner #discount-global.discount-applied .be-icon-success,
#booking-discount-banner #discount-global.applied .be-icon-success {
    display: block !important;
}


/* v5.3.116 — visible message label, isolated from theme span resets */
#booking-discount-banner #discount-global .be-discount-text,
.be-wrapper #booking-discount-banner #discount-global .be-discount-text {
    display: block !important;
    position: relative !important;
    z-index: 20 !important;
    flex: 1 1 0% !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 20px !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #075b2d !important;
    -webkit-text-fill-color: #075b2d !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-indent: 0 !important;
    white-space: normal !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
}
#booking-discount-banner #discount-global.be-discount-idle .be-discount-text,
.be-wrapper #booking-discount-banner #discount-global.be-discount-idle .be-discount-text {
    color: #704300 !important;
    -webkit-text-fill-color: #704300 !important;
}
#booking-discount-banner #discount-global .be-discount-message-label,
.be-wrapper #booking-discount-banner #discount-global .be-discount-message-label {
    display: inline-block !important;
    position: relative !important;
    z-index: 21 !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #075b2d !important;
    -webkit-text-fill-color: #075b2d !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-indent: 0 !important;
    white-space: normal !important;
    transform: none !important;
}
#booking-discount-banner #discount-global.be-discount-idle .be-discount-message-label,
.be-wrapper #booking-discount-banner #discount-global.be-discount-idle .be-discount-message-label {
    color: #704300 !important;
    -webkit-text-fill-color: #704300 !important;
}
#booking-discount-banner #discount-global .be-celebration-confetti,
.be-wrapper #booking-discount-banner #discount-global .be-celebration-confetti {
    z-index: 3 !important;
    pointer-events: none !important;
}


/* v5.3.117 — single-line success message; prevent vertical wrapping/clipping */
#booking-discount-banner #discount-global,
.be-wrapper #booking-discount-banner #discount-global {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

#booking-discount-banner #discount-global .be-discount-icon,
.be-wrapper #booking-discount-banner #discount-global .be-discount-icon {
    display: inline-flex !important;
    flex: 0 0 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    align-items: center !important;
    justify-content: center !important;
}

#booking-discount-banner #discount-global .be-discount-text,
.be-wrapper #booking-discount-banner #discount-global .be-discount-text {
    display: block !important;
    position: relative !important;
    z-index: 20 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 36px) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    transform: none !important;
}

#booking-discount-banner #discount-global .be-discount-message-label,
.be-wrapper #booking-discount-banner #discount-global .be-discount-message-label {
    display: block !important;
    position: relative !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    transform: none !important;
}

#booking-discount-banner #discount-global.discount-applied .be-discount-text,
.be-wrapper #booking-discount-banner #discount-global.discount-applied .be-discount-text,
#booking-discount-banner #discount-global.applied .be-discount-text,
.be-wrapper #booking-discount-banner #discount-global.applied .be-discount-text {
    color: #075b2d !important;
    -webkit-text-fill-color: #075b2d !important;
}

@media (max-width: 420px) {
    #booking-discount-banner #discount-global .be-discount-text,
    .be-wrapper #booking-discount-banner #discount-global .be-discount-text,
    #booking-discount-banner #discount-global .be-discount-message-label,
    .be-wrapper #booking-discount-banner #discount-global .be-discount-message-label {
        font-size: 13px !important;
    }
}


/* =========================================================
   v5.3.118 — FINAL MESSAGE LAYOUT
   Use a DIV text node (not nested spans) and a true flex row.
   ========================================================= */

#booking-discount-banner #discount-global,
.be-wrapper #booking-discount-banner #discount-global {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

#booking-discount-banner #discount-global .be-discount-icon,
.be-wrapper #booking-discount-banner #discount-global .be-discount-icon {
    display: inline-flex !important;
    flex: 0 0 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

#booking-discount-banner #discount-global div.be-discount-text,
.be-wrapper #booking-discount-banner #discount-global div.be-discount-text {
    all: unset !important;
    display: block !important;
    position: relative !important;
    z-index: 20 !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #075b2d !important;
    -webkit-text-fill-color: #075b2d !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-overflow: ellipsis !important;
    transform: none !important;
}

#booking-discount-banner #discount-global.be-discount-idle div.be-discount-text,
.be-wrapper #booking-discount-banner #discount-global.be-discount-idle div.be-discount-text {
    color: #704300 !important;
    -webkit-text-fill-color: #704300 !important;
}

#booking-discount-banner #discount-global.discount-applied div.be-discount-text,
#booking-discount-banner #discount-global.applied div.be-discount-text,
.be-wrapper #booking-discount-banner #discount-global.discount-applied div.be-discount-text,
.be-wrapper #booking-discount-banner #discount-global.applied div.be-discount-text {
    color: #075b2d !important;
    -webkit-text-fill-color: #075b2d !important;
}

@media (max-width: 420px) {
    #booking-discount-banner #discount-global div.be-discount-text,
    .be-wrapper #booking-discount-banner #discount-global div.be-discount-text {
        font-size: 14px !important;
    }
}


/* v5.3.120 — compact banner sizing; matches inline styles in script.js */
#booking-discount-banner #discount-global,
.be-wrapper #booking-discount-banner #discount-global {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
#booking-discount-banner #discount-global .be-discount-icon,
.be-wrapper #booking-discount-banner #discount-global .be-discount-icon {
    display: inline-flex !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}
#booking-discount-banner #discount-global .be-discount-icon > svg,
.be-wrapper #booking-discount-banner #discount-global .be-discount-icon > svg {
    position: absolute !important;
    inset: 1px !important;
    display: block !important;
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}
#booking-discount-banner #discount-global div.be-discount-text,
.be-wrapper #booking-discount-banner #discount-global div.be-discount-text {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
#booking-discount-banner #discount-global div.be-discount-text *,
.be-wrapper #booking-discount-banner #discount-global div.be-discount-text * {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
}
@media (max-width: 420px) {
    #booking-discount-banner #discount-global,
    .be-wrapper #booking-discount-banner #discount-global {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        gap: 6px !important;
        padding: 0 8px !important;
    }
    #booking-discount-banner #discount-global .be-discount-icon,
    .be-wrapper #booking-discount-banner #discount-global .be-discount-icon {
        flex-basis: 17px !important;
        width: 17px !important;
        min-width: 17px !important;
        max-width: 17px !important;
        height: 17px !important;
        min-height: 17px !important;
        max-height: 17px !important;
    }
    #booking-discount-banner #discount-global .be-discount-icon > svg,
    .be-wrapper #booking-discount-banner #discount-global .be-discount-icon > svg {
        width: 15px !important;
        min-width: 15px !important;
        max-width: 15px !important;
        height: 15px !important;
        min-height: 15px !important;
        max-height: 15px !important;
    }
}
