:root {
    color-scheme: light only;
    --bg-cream: #FAF7F2;
    --bg-card: #F3EDE2;
    --text-charcoal: #2C2926;
    --text-muted: #6E675F;
    --accent-gold: #9E8253;
    --border-subtle: #E4DDD0;
}

html {
    scroll-behavior: smooth;
    color-scheme: light only;
}

/* Match outer site canvas and Kubio containers to Cream & Beige palette */
html:has(#hsf-app),
body.hsf-active-page,
body:has(#hsf-app),
.wp-site-blocks:has(#hsf-app),
.wp-block-kubio-section:has(#hsf-app),
main:has(#hsf-app) {
    background-color: var(--bg-cream) !important;
    color-scheme: light only;
}

/* Hide Kubio's wavy bottom separator and top-right social icons */
body.hsf-active-page #hero .h-separator--bottom,
body:has(#hsf-app) #hero .h-separator--bottom,
body.hsf-active-page .wp-block-kubio-hero .h-separator,
body:has(#hsf-app) .wp-block-kubio-hero .h-separator,
body.hsf-active-page .wp-block-kubio-navigation-top-bar,
body:has(#hsf-app) .wp-block-kubio-navigation-top-bar,
body.hsf-active-page .h-social-icons,
body:has(#hsf-app) .h-social-icons,
body.hsf-active-page .wp-block-kubio-social-icons,
body:has(#hsf-app) .wp-block-kubio-social-icons,
body.hsf-active-page [class*="social-icons"],
body:has(#hsf-app) [class*="social-icons"] {
    display: none !important;
}

/* Hide extra Kubio location icons & mailto email links on the Events page to avoid spam */
body:has(.hsf-events-page) a[href^="mailto:"],
body:has(.hsf-events-page) .wp-block-kubio-icon,
body:has(.hsf-events-page) .wp-block-kubio-iconlist,
body:has(.hsf-events-page) .h-icon,
body:has(.hsf-events-page) [class*="map-marker"],
body:has(.hsf-events-page) [class*="location-pin"] {
    display: none !important;
}

/* Keep #hero compact while leaving clear clearance below Kubio's overlapping top bar */
html#kubio body.hsf-active-page #hero,
html#kubio body:has(#hsf-app) #hero,
body.hsf-active-page #hero.wp-block-kubio-hero,
body:has(#hsf-app) #hero.wp-block-kubio-hero,
body:has(#hsf-app) .wp-block-kubio-hero {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding-top: 0 !important;
    padding-bottom: 1.5rem !important;
}

html#kubio body.hsf-active-page #hero .h-section-grid-container,
html#kubio body:has(#hsf-app) #hero .h-section-grid-container,
html#kubio body.hsf-active-page #hero .wp-block-kubio-row,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-row,
html#kubio body.hsf-active-page #hero .wp-block-kubio-row__inner,
html#kubio body.hsf-active-page #hero .wp-block-kubio-column,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-column,
html#kubio body.hsf-active-page #hero .wp-block-kubio-column__inner,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-column__inner {
    min-height: 0 !important;
    height: auto !important;
}

/* Generous top padding clears Kubio's top bar (Plentiful Baskets + Menu) so nothing overlaps */
html#kubio body.hsf-active-page #hero .wp-block-kubio-hero__inner,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-hero__inner,
body.hsf-active-page #hero.wp-block-kubio-hero .wp-block-kubio-hero__inner,
body:has(#hsf-app) #hero.wp-block-kubio-hero .wp-block-kubio-hero__inner {
    position: relative !important;
    z-index: 5 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.4rem !important;
    padding-top: 88px !important;
    padding-bottom: 1.1rem !important;
    margin-top: 0 !important;
}

/* Prevent Kubio inner blocks from overlapping each other */
#hero .wp-block-kubio-hero__inner > *,
#hero .wp-block-kubio-hero__inner .wp-block-kubio-heading,
#hero .wp-block-kubio-hero__inner .wp-block-kubio-text {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Crisp, un-zoomed Cream Gift Background on .background-wrapper only */
#hero.hsf-custom-bg .background-wrapper {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#hero.hsf-custom-bg .background-layer {
    opacity: 0 !important;
}

#hero.hsf-custom-bg .background-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

/* Hide Kubio's nested row/column background boxes and block Windows Chrome dark-mode text highlighting */
#hero .wp-block-kubio-hero__inner .background-wrapper,
#hero .wp-block-kubio-hero__inner .background-layer,
#hero .wp-block-kubio-hero__inner .overlay-layer {
    display: none !important;
}

#hero .wp-block-kubio-hero__inner,
#hero .wp-block-kubio-hero__inner * {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    forced-color-adjust: none;
}

#hero .wp-block-kubio-hero__inner h1,
#hero .wp-block-kubio-hero__inner .wp-block-kubio-page-title {
    color: #FFFFFF !important;
    background: transparent !important;
    margin: 0 !important;
    line-height: 1.18 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45) !important;
}

#hero .wp-block-kubio-hero__inner p,
#hero .wp-block-kubio-hero__inner .wp-block-kubio-text,
.hsf-hero-contact-line {
    color: #FAF7F2 !important;
    background: transparent !important;
    margin: 0.7rem auto 0 !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55) !important;
}

.hsf-hero-contact-line {
    font-size: 0.96rem;
    letter-spacing: 0.02em;
}

/* Remove vertical gap between #hero and the storefront */
body.hsf-active-page .wp-block-post-content,
body:has(#hsf-app) .wp-block-post-content,
body.hsf-active-page .entry-content,
body:has(#hsf-app) .entry-content,
body:has(#hsf-app) .wp-block-kubio-section:has(#hsf-app),
.entry-content:has(#hsf-app),
.wp-block-post-content:has(#hsf-app),
.is-layout-constrained:has(#hsf-app) {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hsf-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    background: var(--bg-cream);
    color: var(--text-charcoal);
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding-bottom: 110px;
    box-sizing: border-box;
    overflow-x: clip;
    color-scheme: light only;
    forced-color-adjust: none;
}

.hsf-wrap *, .hsf-wrap *::before, .hsf-wrap *::after {
    box-sizing: border-box;
    forced-color-adjust: none;
}

/* --- SUBTLE SIDE SCROLL RAIL (INCLUDES EVENTS ON BOTH PAGES) --- */
.hsf-side-rail {
    position: fixed;
    top: 54%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.32rem;
    border-radius: 12px;
    background: rgba(250, 247, 242, 0.88);
    border: 1px solid rgba(228, 221, 208, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 3px 12px rgba(44, 41, 38, 0.08);
    z-index: 99960;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.hsf-side-rail.is-visible {
    opacity: 0.92;
    pointer-events: auto;
}

.hsf-side-rail:hover {
    opacity: 1;
}

.hsf-side-rail a {
    display: block;
    padding: 0.36rem 0.52rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    color: var(--text-muted) !important;
    background: transparent !important;
    transition: background 0.16s ease, color 0.16s ease;
}

.hsf-side-rail a:hover,
.hsf-side-rail a.is-active {
    background: var(--accent-gold) !important;
    color: #FFFFFF !important;
}

.hsf-script {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.35rem;
    color: var(--accent-gold);
    display: block;
    line-height: 1.1;
}

.hsf-wrap h2, .hsf-wrap h3, .hsf-wrap h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--text-charcoal);
    margin: 0 0 0.5rem;
}

#hsf-baskets,
#hsf-addons,
#hsf-contact {
    scroll-margin-top: 64px;
}

.hsf-section { max-width: 1440px; margin: 2.15rem auto; padding: 0 3rem; }
.hsf-section-head { text-align: center; margin-bottom: 1.9rem; }
.hsf-section-head h2 { font-size: 2.3rem; }
.hsf-section-sub {
    max-width: 650px;
    margin: 0.45rem auto 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* Unified Balanced Flex-Wrap Grid for Main Gifts AND Equal-Sized Standalone Add-Ons */
.hsf-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.hsf-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    min-width: 420px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hsf-card-featured {
    flex: 1 1 100%;
    max-width: 100%;
    border-color: var(--accent-gold);
}

.hsf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(44, 41, 38, 0.06);
}

.hsf-card-media {
    width: 42%;
    min-width: 210px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
    flex-shrink: 0;
    contain: layout paint;
}

.hsf-card-featured .hsf-card-media {
    width: 34%;
    aspect-ratio: 16 / 10;
}

.hsf-card-media img {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 4px;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
}

.hsf-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    padding: 1rem;
    text-align: center;
}

.hsf-card-body { padding: 1.6rem 1.85rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.hsf-badge { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-gold); margin-bottom: 0.35rem; font-weight: 600; display: inline-block; }
.hsf-card-body h3 { font-size: 1.55rem; }
.hsf-card-body p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.55; margin-bottom: 1rem; }

.hsf-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 960px) {
    .hsf-card { flex: 1 1 100%; max-width: 100%; min-width: 0; }
    .hsf-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 600px) {
    .hsf-card { flex-direction: column; }
    .hsf-card-media, .hsf-card-featured .hsf-card-media { width: 100%; aspect-ratio: 4 / 3; }
    .hsf-side-rail { right: 4px; padding: 0.25rem; }
    .hsf-side-rail a { font-size: 0.68rem; padding: 0.3rem 0.42rem; }
}

.hsf-price { font-weight: 600; color: var(--text-charcoal); font-size: 1.02rem; }
.hsf-btn { background: var(--accent-gold) !important; color: #FFFFFF !important; border: none !important; padding: 0.65rem 1.3rem !important; border-radius: 4px !important; cursor: pointer; font-size: 0.88rem !important; letter-spacing: 0.03em; transition: opacity 0.15s; white-space: nowrap; text-decoration: none !important; display: inline-block; }
.hsf-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.hsf-btn-outline { background: transparent !important; color: var(--accent-gold) !important; border: 1px solid var(--accent-gold) !important; padding: 0.55rem 1.05rem !important; border-radius: 4px !important; cursor: pointer; font-size: 0.85rem !important; white-space: nowrap; }

/* --- SEPARATE EVENTS PAGE (SIDE-BY-SIDE IMAGE + DETAILS TO PREVENT SCROLLING) --- */
.hsf-events-list {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.hsf-ev-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hsf-ev-card.is-open {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(44, 41, 38, 0.07);
}

.hsf-ev-summary {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.35rem;
    cursor: pointer;
}

.hsf-ev-thumb {
    width: 96px;
    height: 96px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hsf-ev-thumb:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(44, 41, 38, 0.15);
}

.hsf-ev-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.hsf-ev-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--accent-gold);
    background: var(--bg-cream);
}

.hsf-ev-head {
    flex: 1;
    min-width: 0;
}

.hsf-ev-date {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.hsf-ev-head h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.hsf-ev-tagline {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.hsf-ev-toggle {
    background: var(--bg-cream) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-charcoal) !important;
    padding: 0.45rem 0.8rem !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.hsf-ev-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 0.72rem;
}

.hsf-ev-card.is-open .hsf-ev-arrow {
    transform: rotate(180deg);
}

.hsf-ev-body {
    padding: 1.15rem 1.35rem 1.3rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(250, 247, 242, 0.72);
}

.hsf-ev-body[hidden] {
    display: none;
}

.hsf-ev-body-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.35rem;
}

.hsf-ev-banner-col {
    flex: 0 0 265px;
    max-width: 42%;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.5rem;
}

.hsf-ev-banner-expanded {
    width: 100%;
    max-height: 290px;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
}

.hsf-ev-zoom-hint {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hsf-ev-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hsf-ev-meta-row {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    color: var(--text-charcoal);
}

.hsf-ev-notes {
    margin: 0.45rem 0 1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.52;
}

.hsf-ev-empty {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2.25rem;
    text-align: center;
}

/* Lightbox Popup for Full-Screen Event Flyer Viewing */
.hsf-lightbox-dialog {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    max-width: 92vw;
    max-height: 92vh;
    padding: 1.5rem 1.5rem 1rem;
    z-index: 1;
    text-align: center;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.hsf-lightbox-dialog img {
    max-width: 86vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.hsf-lightbox-caption {
    margin: 0.65rem 0 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-charcoal);
}

@media (max-width: 640px) {
    .hsf-ev-summary {
        flex-wrap: wrap;
        gap: 0.85rem;
    }
    .hsf-ev-thumb {
        width: 72px;
        height: 72px;
    }
    .hsf-ev-toggle {
        margin-left: auto;
    }
    .hsf-ev-body-layout {
        flex-direction: column;
    }
    .hsf-ev-banner-col {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .hsf-ev-banner-expanded {
        max-height: 240px;
    }
}

/* --- MODALS --- */
.hsf-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.hsf-modal[hidden] { display: none; }
.hsf-modal-backdrop { position: absolute; inset: 0; background: rgba(25, 22, 18, 0.55); backdrop-filter: blur(4px); }
.hsf-modal-dialog { position: relative; background: var(--bg-cream); border: 1px solid var(--border-subtle); border-radius: 8px; max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 2.25rem; z-index: 1; scroll-behavior: smooth; }
.hsf-reminder-dialog { max-width: 520px; }
.hsf-modal-close { position: absolute; top: 10px; right: 14px; background: none !important; border: none !important; font-size: 1.85rem; line-height: 1; cursor: pointer; color: var(--text-muted) !important; }
.hsf-modal-img { width: 100%; max-height: 195px; object-fit: cover; object-position: center; border-radius: 6px; margin-bottom: 0.9rem; display: block; }

.hsf-sizes { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 0.65rem 0 1.35rem; }
.hsf-size-pill {
    border: 1.5px solid var(--border-subtle) !important;
    background: var(--bg-card) !important;
    color: var(--text-charcoal) !important;
    padding: 0.55rem 1.2rem !important;
    border-radius: 999px !important;
    cursor: pointer;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: transform 0.08s, background 0.12s, color 0.12s;
}
.hsf-size-pill:active { transform: scale(0.96); }
.hsf-size-pill.active {
    background: var(--accent-gold) !important;
    color: #FFFFFF !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(158, 130, 83, 0.25);
}

.hsf-basket-note-input {
    width: 100%;
    margin: 0.5rem 0 1.35rem;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-charcoal);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    resize: vertical;
}

.hsf-step-advance-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -1rem;
    margin-bottom: 1.1rem;
}

.hsf-step-advance-btn {
    background: none !important;
    border: none !important;
    color: var(--accent-gold) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    padding: 0.2rem 0 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hsf-req-badge { font-size: 11px; color: var(--accent-gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-left: 6px; }
.hsf-opt-badge { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-left: 6px; }
.hsf-addon-check { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 4px; margin-bottom: 0.5rem; cursor: pointer; }
.hsf-addon-check-left { display: flex; align-items: center; gap: 0.7rem; }
.hsf-addon-mini { width: 42px; height: 42px; border-radius: 4px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-subtle); }

/* Visual Diagram inside Form-Click Reminder Modal */
.hsf-btn-diagram {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    background: #EFE9DD;
    border: 1px dashed var(--accent-gold);
}

.hsf-diag-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
}

.hsf-diag-left {
    font-size: 0.82rem;
    color: var(--text-charcoal);
    font-weight: 600;
}

.hsf-diag-pointer {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hsf-diag-arrow {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8B2635;
}

.hsf-diag-btn {
    background: var(--accent-gold);
    color: #FFFFFF;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.25);
}

/* --- STICKY BOTTOM SELECTION TRAY, DRAWER & FLASH HANDOFF (COMPLETE ORDER <-> SEND) --- */
@keyframes hsf-gentle-pill-flash {
    0%, 82%, 100% {
        box-shadow: 0 0 0 0 rgba(158, 130, 83, 0);
        background-color: #FFFFFF;
    }
    90% {
        box-shadow: 0 0 0 3px rgba(158, 130, 83, 0.24);
        background-color: #FCF9F2;
    }
}

@keyframes hsf-attn-flash {
    0%, 68%, 100% {
        box-shadow: 0 0 0 0 rgba(158, 130, 83, 0);
        filter: brightness(1);
    }
    76% {
        box-shadow: 0 0 0 6px rgba(158, 130, 83, 0.52);
        filter: brightness(1.18);
    }
    83% {
        box-shadow: 0 0 0 2px rgba(158, 130, 83, 0.18);
        filter: brightness(1);
    }
    90% {
        box-shadow: 0 0 0 6px rgba(158, 130, 83, 0.52);
        filter: brightness(1.18);
    }
}

@keyframes hsf-send-attn-flash {
    0%, 68%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 38, 53, 0);
        filter: brightness(1);
    }
    76% {
        box-shadow: 0 0 0 7px rgba(139, 38, 53, 0.52);
        filter: brightness(1.16);
    }
    83% {
        box-shadow: 0 0 0 2px rgba(139, 38, 53, 0.18);
        filter: brightness(1);
    }
    90% {
        box-shadow: 0 0 0 7px rgba(139, 38, 53, 0.52);
        filter: brightness(1.16);
    }
}

.hsf-tray { position: fixed; bottom: 0; left: 0; right: 0; z-index: 99990; background: var(--bg-card); border-top: 1px solid var(--accent-gold); box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08); }
.hsf-tray[hidden] { display: none; }
.hsf-tray-bar { max-width: 1440px; margin: 0 auto; padding: 0.9rem 3rem; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.hsf-tray-summary { background: none !important; border: none !important; color: var(--text-charcoal) !important; font-size: 0.95rem; cursor: pointer; }

.hsf-drawer-action {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1.5px solid var(--accent-gold);
    background: #FFFFFF;
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.hsf-drawer-action.hsf-flash-active {
    animation: hsf-gentle-pill-flash 7.5s ease-in-out 1.5s infinite;
}

#hsf-complete-order {
    font-weight: 700 !important;
}

#hsf-complete-order.hsf-flash-active {
    animation: hsf-attn-flash 3.8s ease-in-out 0.35s infinite;
}

.hsf-send-flash {
    animation: hsf-attn-flash 3.4s ease-in-out infinite !important;
}

.hsf-tray-summary:hover .hsf-drawer-action,
#hsf-complete-order:hover,
.hsf-send-flash:hover {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .hsf-drawer-action.hsf-flash-active,
    #hsf-complete-order.hsf-flash-active,
    .hsf-send-flash {
        animation: none !important;
    }
}

.hsf-drawer { max-width: 1440px; margin: 0 auto; padding: 1rem 3rem 0.5rem; max-height: 45vh; overflow-y: auto; border-bottom: 1px solid var(--border-subtle); }
.hsf-drawer-note {
    background: var(--bg-cream);
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    padding: 0.65rem 0.95rem;
    margin-bottom: 0.75rem;
    font-size: 0.86rem;
    color: var(--text-charcoal);
}
.hsf-drawer-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.65rem 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.92rem; }
.hsf-remove-btn { background: none !important; border: none !important; color: var(--text-muted) !important; text-decoration: underline; cursor: pointer; font-size: 0.82rem; }

@media (max-width: 768px) {
    .hsf-tray-bar, .hsf-drawer { padding-left: 1.25rem; padding-right: 1.25rem; }
}

textarea[name*="order_selections"][readonly],
.frm-fluent-form textarea[readonly] {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-charcoal) !important;
    cursor: default;
}

.hsf-form-reminder {
    background: #8B2635;
    border: 1px solid #6E1B28;
    color: #FFFFFF;
    padding: 1.1rem 1.4rem;
    border-radius: 6px;
    margin-top: 1rem;
    margin-bottom: 1.85rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.96rem;
    line-height: 1.55;
    box-shadow: 0 6px 18px rgba(139, 38, 53, 0.22);
}

.hsf-form-reminder strong {
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Keep "Elevate Your Gift" on a single line across desktop and mobile */
html#kubio body.hsf-active-page #hero .wp-block-kubio-hero__inner,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-hero__inner,
html#kubio body.hsf-active-page #hero .wp-block-kubio-row,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-row,
html#kubio body.hsf-active-page #hero .wp-block-kubio-column,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-column,
html#kubio body.hsf-active-page #hero .wp-block-kubio-column__inner,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-column__inner,
html#kubio body.hsf-active-page #hero .wp-block-kubio-heading,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-heading {
    width: 100% !important;
    max-width: 1140px !important;
}

html#kubio body.hsf-active-page #hero .wp-block-kubio-hero__inner h1,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-hero__inner h1,
html#kubio body.hsf-active-page #hero .wp-block-kubio-hero__inner .wp-block-kubio-page-title,
html#kubio body:has(#hsf-app) #hero .wp-block-kubio-hero__inner .wp-block-kubio-page-title {
    white-space: nowrap !important;
    font-size: clamp(1.5rem, 3.8vw, 3rem) !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Compact closed-tray next-step pill + Events page 35s gentle order reminder toast */
.hsf-tray-right {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.hsf-closed-hint {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8B2635;
    background: #FFFFFF;
    border: 1px solid rgba(158, 130, 83, 0.55);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.hsf-closed-hint[hidden] {
    display: none !important;
}

@media (max-width: 540px) {
    .hsf-closed-hint {
        display: none !important;
    }
}

.hsf-events-nudge,
.hsf-events-nudge * {
    box-sizing: border-box !important;
}

.hsf-events-nudge {
    position: fixed;
    bottom: 20px;
    right: 16px;
    width: min(340px, calc(100vw - 32px));
    background: var(--bg-cream);
    border: 1.5px solid var(--accent-gold);
    border-left: 5px solid #8B2635;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 32px rgba(44, 41, 38, 0.18);
    z-index: 99995;
    font-family: 'Plus Jakarta Sans', sans-serif;
    animation: hsf-nudge-slide 0.35s ease-out;
}

.hsf-events-nudge-eyebrow,
.hsf-events-nudge p {
    padding-right: 1.35rem;
}

.hsf-events-nudge .hsf-btn {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
}

@keyframes hsf-nudge-slide {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hsf-events-nudge-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none !important;
    border: none !important;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--text-muted) !important;
    cursor: pointer;
}

.hsf-events-nudge-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #8B2635;
    margin-bottom: 0.25rem;
}

.hsf-events-nudge p {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-charcoal);
}

.hsf-section-ornament {
    color: var(--accent-gold);
    font-size: 0.95rem;
    letter-spacing: 0.55em;
    padding: 0.35rem 0;
    opacity: 0.75;
}

.hsf-closed-banner {
    background: rgba(250, 247, 242, 0.96);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.42rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-charcoal);
}

.hsf-closed-banner[hidden] {
    display: none !important;
}

.hsf-closed-banner-close {
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px !important;
}

@media (max-width: 768px) {
    .hsf-closed-banner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* --- SITE-WIDE DEFAULT: DOT-AND-LABEL SIDE RAIL (COMPACT SCALE ON DESKTOP & MOBILE) --- */
body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail {
    right: 10px !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a {
    position: relative !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(44, 41, 38, 0.45);
    border: 1.5px solid #FAF7F2;
    box-shadow: 0 1px 4px rgba(44, 41, 38, 0.22);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a.is-active::after,
body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a:hover::after {
    background: #9E8253;
    border-color: #FFFFFF;
    transform: scale(1.3);
    box-shadow: 0 0 0 2.5px rgba(158, 130, 83, 0.24), 0 2px 6px rgba(44, 41, 38, 0.22);
}

body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a::before {
    content: attr(data-label);
    position: absolute;
    right: 32px;
    background: #FAF7F2;
    color: #2C2926;
    border: 1px solid rgba(158, 130, 83, 0.55);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(44, 41, 38, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a.is-active::before,
body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Compact Mobile Dots (<=768px or when Preview Mobile Mode is checked) */
@media (max-width: 768px) {
    body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail {
        right: 10px !important;
        gap: 8px !important;
    }
    body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a {
        width: 32px !important;
        height: 32px !important;
    }
    body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a::after {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
    body:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a::before {
        right: 32px;
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    body.hsf-mode-hybrid-jump #hsf-side-rail {
        display: none !important;
    }
}

body.hsf-sim-mobile:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail {
    right: 10px !important;
    gap: 8px !important;
}
body.hsf-sim-mobile:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a {
    width: 32px !important;
    height: 32px !important;
}
body.hsf-sim-mobile:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a::after {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
}
body.hsf-sim-mobile:not(.hsf-mode-classic-pills):not(.hsf-mode-progress) #hsf-side-rail a::before {
    right: 32px;
    padding: 4px 10px;
    font-size: 0.75rem;
}

/* Preview Option 2: Original Labeled Pill Rail */
body.hsf-mode-classic-pills #hsf-side-rail a::before,
body.hsf-mode-classic-pills #hsf-side-rail a::after {
    display: none !important;
}

/* Preview Option 3: Compact Floating "Jump to" Pill */
#hsf-jump-pill-wrap {
    position: fixed;
    top: 84px;
    right: 14px;
    z-index: 99985;
    display: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
@media (max-width: 768px) {
    body.hsf-mode-hybrid-jump #hsf-jump-pill-wrap {
        display: block;
    }
}
body.hsf-sim-mobile.hsf-mode-hybrid-jump #hsf-side-rail {
    display: none !important;
}
body.hsf-sim-mobile.hsf-mode-hybrid-jump #hsf-jump-pill-wrap {
    display: block;
}
#hsf-jump-trigger {
    background: rgba(250, 247, 242, 0.96);
    color: #2C2926;
    border: 1.5px solid #9E8253;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(44, 41, 38, 0.15);
    cursor: pointer;
}
#hsf-jump-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #FAF7F2;
    border: 1px solid rgba(158, 130, 83, 0.55);
    border-radius: 10px;
    padding: 6px;
    min-width: 155px;
    box-shadow: 0 10px 24px rgba(44, 41, 38, 0.18);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
#hsf-jump-menu[hidden] {
    display: none !important;
}
#hsf-jump-menu a {
    padding: 7px 11px;
    border-radius: 6px;
    color: #2C2926;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
}
#hsf-jump-menu a:hover,
#hsf-jump-menu a.is-active {
    background: #EFE8DC;
    color: #8B2635;
    font-weight: 700;
}

/* Preview Option 4: Vertical Gold Progress-Line Rail */
body.hsf-mode-progress #hsf-side-rail {
    right: 14px !important;
    padding: 8px 10px 8px 16px !important;
    background: rgba(250, 247, 242, 0.92) !important;
    border: 1px solid rgba(158, 130, 83, 0.35) !important;
    border-radius: 12px !important;
    gap: 10px !important;
}
body.hsf-mode-progress #hsf-side-rail::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: rgba(158, 130, 83, 0.25);
    border-radius: 2px;
}
body.hsf-mode-progress #hsf-side-rail::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 14px;
    width: 2px;
    height: var(--hsf-scroll-pct, 15%);
    max-height: calc(100% - 28px);
    background: #9E8253;
    border-radius: 2px;
    transition: height 0.12s linear;
}
body.hsf-mode-progress #hsf-side-rail a {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 4px !important;
    font-size: 0.76rem !important;
    color: #6E6862 !important;
    text-align: left !important;
}
body.hsf-mode-progress #hsf-side-rail a.is-active {
    color: #8B2635 !important;
    font-weight: 700 !important;
}


/* --- TOP BAR WHITE CONTRAST OVER HERO & MOBILE OFF-CANVAS DRAWER --- */
html#kubio body.hsf-active-page .wp-block-kubio-navigation-section:not(.h-navigation_sticky) .wp-block-kubio-navigation-items .wp-block-kubio-logo,
html#kubio body.hsf-active-page .wp-block-kubio-navigation-section:not(.h-navigation_sticky) .wp-block-kubio-navigation-items .wp-block-kubio-logo__text,
html#kubio body.hsf-active-page .wp-block-kubio-navigation-section:not(.h-navigation_sticky) .wp-block-kubio-dropdown-menu > .kubio-menu > ul > li > a {
    color: #FFFFFF !important;
    background: transparent !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55) !important;
}

html#kubio body.hsf-active-page .wp-block-kubio-navigation-section:not(.h-navigation_sticky) .wp-block-kubio-dropdown-menu > .kubio-menu > ul > li > a:hover {
    color: #FAF7F2 !important;
    opacity: 0.92;
}

/* Mobile Off-Canvas Slide-Out Drawer (never override Kubio's .hide state) */
html#kubio body.hsf-active-page .wp-block-kubio-menu-offscreen__offscreen {
    background-color: #FAF7F2 !important;
    color: #2C2926 !important;
}

html#kubio body.hsf-active-page .wp-block-kubio-menu-offscreen__offscreen .wp-block-kubio-logo__text,
html#kubio body.hsf-active-page .wp-block-kubio-menu-offscreen__offscreen .kubio-menu ul li a {
    color: #2C2926 !important;
    background: transparent !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

/* Prevent Windows High Contrast / Edge Force-Dark highlight boxes behind hero & section headings */
html#kubio body.hsf-active-page,
html#kubio body:has(#hsf-app) {
    color-scheme: light only !important;
    forced-color-adjust: none !important;
}

html#kubio body.hsf-active-page #hero h1,
html#kubio body.hsf-active-page #hero h2,
html#kubio body.hsf-active-page #hero p,
html#kubio body.hsf-active-page .hsf-section-head h2,
html#kubio body.hsf-active-page .hsf-section-head .hsf-script {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    forced-color-adjust: none !important;
}


/* Higher-contrast dark charcoal placeholder text for the selections order field */
#hsf-contact textarea::placeholder,
#hsf-contact input::placeholder,
.frm-fluent-form textarea::placeholder,
.frm-fluent-form input::placeholder {
    color: #2C2926 !important;
    opacity: 0.86 !important;
    font-weight: 500 !important;
}

/* --- CENTER HERO HEADING & SUBTITLE ACROSS FULL VIEWPORT WIDTH --- */
html#kubio body.hsf-active-page #hero .wp-block-kubio-column__align {
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
}

html#kubio body.hsf-active-page #hero h1.wp-block-kubio-heading,
html#kubio body.hsf-active-page #hero .wp-block-kubio-heading,
html#kubio body.hsf-active-page #hero p.wp-block-kubio-text,
html#kubio body.hsf-active-page #hero .wp-block-kubio-text,
html#kubio body.hsf-active-page #hero h1[class*="style-"],
html#kubio body.hsf-active-page #hero p[class*="style-"] {
    display: block !important;
    width: 100% !important;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* --- HIGH-CONTRAST MOBILE HAMBURGER TOGGLE BUTTON --- */
@media (max-width: 1023px) {
    html#kubio body.hsf-active-page .wp-block-kubio-menu-offscreen__iconWrapper,
    html#kubio body.hsf-active-page .kubio-offscreen-icon-wrapper {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 252, 247, 0.95) !important;
        background-color: rgba(255, 252, 247, 0.95) !important;
        color: #2C2926 !important;
        border: 1.5px solid rgba(44, 41, 38, 0.34) !important;
        border-radius: 8px !important;
        padding: 7px 10px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        box-shadow: 0 2px 10px rgba(25, 22, 18, 0.22) !important;
        opacity: 1 !important;
    }
    html#kubio body.hsf-active-page .wp-block-kubio-menu-offscreen__iconWrapper svg,
    html#kubio body.hsf-active-page .kubio-offscreen-icon-wrapper svg {
        fill: #2C2926 !important;
        stroke: #2C2926 !important;
        color: #2C2926 !important;
        width: 22px !important;
        height: 22px !important;
    }
}



@media (max-width: 767px) {
    html#kubio body.hsf-active-page #hero .wp-block-kubio-hero__inner,
    body.hsf-active-page #hero .wp-block-kubio-hero__inner { padding-top: 140px !important; padding-bottom: 36px !important; }
}
.hsf-btn.is-added { background: #2E6B4E !important; color: #FFFFFF !important; transform: scale(1.03); transition: background 0.18s ease, transform 0.18s ease; }
.hsf-in-inquiry-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(158, 130, 83, 0.14); border: 1px solid rgba(158, 130, 83, 0.45); color: #5E4B2A; font-size: 0.78rem; font-weight: 600; }
.frm-fluent-form, #hsf-contact { scroll-margin-top: 90px; }
#hsf-almost-done-toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.96); z-index: 100001; width: min(92vw, 440px); background: #FAF7F2; color: #2C2926; border: 1.5px solid #9E8253; border-radius: 12px; padding: 20px 42px 20px 22px; box-shadow: 0 20px 50px rgba(25, 22, 18, 0.28); font-size: 0.96rem; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity 0.28s ease, transform 0.28s ease; }
#hsf-almost-done-toast.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
#hsf-almost-done-toast .hsf-toast-close { position: absolute; top: 10px; right: 12px; background: transparent; border: none; color: #6E655B; font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 4px 6px; }


#hsf-idle-modal { position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center; padding: 16px; }
#hsf-idle-modal[hidden] { display: none; }
#hsf-idle-modal .hsf-idle-backdrop { position: absolute; inset: 0; background: rgba(25, 22, 18, 0.5); backdrop-filter: blur(3px); }
#hsf-idle-modal .hsf-idle-box { position: relative; z-index: 1; width: min(92vw, 420px); background: #FAF7F2; color: #2C2926; border: 1.5px solid #9E8253; border-radius: 12px; padding: 24px 22px 20px; box-shadow: 0 20px 50px rgba(25, 22, 18, 0.28); text-align: center; }
#hsf-idle-modal h3 { margin: 0 0 8px; font-size: 1.2rem; color: #2C2926; }
#hsf-idle-modal p { mar#hsf-idle-modal ont-size: 0.94rem; line-height: 1.5; color: #4A443E; }
#hsf-#hsf-#hsf-#hsf-#hsf-#ac#hsf-#hsf-#hsf-#hflex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#hsf-idle-modal .hsf-idle-dismiss { background: transparent !im#hsf-idle-modal .hsf-id !important; border: 1px solid #C8BEB0 !important; }


@media (max-width: 767px) {
    html#kubio body.hsf-active-page:not(.hsf-events-page) #hero,
    body.hsf-active-page:not(.hsf-events-page) #hero {
        padding-top: 96px !important;
        padding-bottom: 2.2rem !important;
    }
}


        /* Match Home & Events hero height + mobile breathing room */
        html#kubio body.hsf-active-page #hero,
        body.hsf-active-page #hero {
            height: 295px !important; min-height: 295px !important;
        }
        @media (max-width: 767px) {
            html#kubio body.hsf-active-page #hero,
            body.hsf-active-page #hero {
                height: 265px !important; min-height: 265px !important;
                padding-top: 0 !important;
                padding-bottom: 1.75rem !important;
            }
            html#kubio body.hsf-active-page:not(.hsf-events-page) #hero h1,
            body.hsf-active-page:not(.hsf-events-page) #hero h1 {
                margin-top: 2.2rem !important;
            }
        }


/* --- STICKY MODAL FOOTER & CONFIRM BUTTON PULSE --- */
#hsf-modal-footer {
    position: sticky;
    bottom: -1px;
    background: var(--bg-card, #FAF7F2);
    padding-bottom: 0.75rem;
    margin-bottom: -0.5rem;
    z-index: 5;
}
@keyframes hsf-confirm-pulse {
    0% { box-shadow: 0 0 0 0 rgba(158, 130, 83, 0.55); transform: scale(1); }
    50% { box-shadow: 0 0 0 9px rgba(158, 130, 83, 0); transform: scale(1.03); }
    100% { box-shadow: 0 0 0 0 rgba(158, 130, 83, 0); transform: scale(1); }
}
#hsf-confirm-item:not(:disabled) {
    animation: hsf-confirm-pulse 0.75s ease-out 1;
}


/* --- EXACT HOME & EVENTS HERO HEIGHT LOCK --- */
html#kubio body.hsf-active-page #hero,
body.hsf-active-page #hero {
    height: 295px !important;
    min-height: 295px !important;
    max-height: 295px !important;
    box-sizing: border-box !important;
}
html#kubio body.hsf-active-page #hero > .background-wrapper,
body.hsf-active-page #hero > .background-wrapper {
    height: 100% !important;
}
@media (max-width: 767px) {
    html#kubio body.hsf-active-page #hero,
    body.hsf-active-page #hero {
        height: 265px !important;
        min-height: 265px !important;
        max-height: 265px !important;
    }
}


/* --- NORMALIZE HERO BACKGROUND CROP ACROSS HOME & EVENTS --- */
html#kubio body.hsf-active-page #hero,
body.hsf-active-page #hero,
html#kubio body.hsf-active-page #hero > .background-wrapper,
body.hsf-active-page #hero > .background-wrapper {
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: scroll !important;
}
