/* ===================================================
   STORE NOTICE (shipping banner)

   store-notice.js moves the <p class="woocommerce-store-notice">
   to be the very first element in <body>, on every device. This
   file restyles it once it's there: a plain cream/amber top bar,
   instead of WooCommerce's default dark bottom-pinned bar.

   FIXED, not just relative: the previous version used
   position:relative, which only places the bar in its normal spot
   in the page — it still scrolls away with the rest of the content.
   position:fixed pins it to the viewport itself, so it stays on
   screen the whole time the page is scrolled, on every device.

   No dismiss/close button anymore — the notice stays visible, it's
   not meant to be closable. The dismiss link is hidden rather than
   removed from the markup, so nothing breaks if WooCommerce still
   prints it.
   =================================================== */
body > .woocommerce-store-notice.demo_store {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    box-sizing: border-box !important;
    background: var(--mc-primary-soft, #fdf1d6) !important;
    color: var(--mc-ink, #46485f) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mc-line, #e9e3da) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    z-index: 99999 !important; /* above Enfold's own sticky header, which the fixed bar now sits in front of */
}

/* No close button — hide WooCommerce's own dismiss link instead of
   styling it as an ×. */
body > .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
    display: none !important;
}

/* A little more breathing room once there's room for it. */
@media (min-width: 769px) {
    body > .woocommerce-store-notice.demo_store {
        padding: 12px 16px !important;
        font-size: 13.5px !important;
    }
}

/* Taking the bar out of normal flow (position:fixed) means the page's
   own content — the header included — would otherwise render right
   underneath it, with the bar overlapping the first ~40–50px of the
   page. store-notice.js measures the bar's real rendered height (it
   changes when the text wraps to 2 lines on a narrow screen vs. 1
   line on desktop) and writes it into this variable, on load and on
   resize, so the page is always pushed down by exactly the bar's
   actual height — never a guessed fixed number. */
body {
    padding-top: var(--mc-notice-height, 40px) !important;
}