/* Closed store header — lightweight gradient + smooth splash collapse */
.mb-store-status-mount {
  width: 100%;
  contain: layout style;
}

.mb-store-status-mount--hidden-when-open {
  display: none !important;
}

.mb-store-status {
  width: 100%;
  position: relative;
  z-index: 1040;
}

html.mb-store-closed:not(.mb-store-paused) {
  --mb-store-gold-top: #fffef8;
  --mb-store-gold-mid: #fef9e8;
  --mb-store-gold-soft: #fef3c7;
  --mb-store-sky-light: #f7fee7;
  --mb-store-sky-mid: #ecfdf5;
  --mb-store-sky-deep: #f0f9ff;
  --mb-store-sky-base: #fafafa;
}

html.mb-store-paused {
  --mb-store-gold-top: #fff1f2;
  --mb-store-gold-mid: #fecdd3;
  --mb-store-gold-soft: #fda4af;
  --mb-store-sky-light: #fecaca;
  --mb-store-sky-mid: #fca5a5;
  --mb-store-sky-deep: #f87171;
  --mb-store-sky-base: #ef4444;
}

@media (max-width: 991.98px) {
  html.mb-store-closed .mb-store-status-mount,
  html.mb-store-closed .mb-store-status,
  html.mb-store-closed .mb-store-hero {
    border: none !important;
    box-shadow: none !important;
  }

  html.mb-store-closed .mb-site-header .operational-notice {
    background: transparent;
    border: none !important;
    color: #64748b;
  }

  html.mb-store-closed .mb-site-header.desktop-nav {
    position: relative;
    isolation: isolate;
    background: var(--mb-store-sky-base);
    border: none !important;
    box-shadow: none !important;
  }

  html.mb-store-closed .mb-site-header.desktop-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      var(--mb-store-gold-top) 0%,
      var(--mb-store-gold-mid) 10%,
      var(--mb-store-sky-mid) 28%,
      var(--mb-store-sky-base) 72%
    );
  }

  html.mb-store-closed .mb-site-header.desktop-nav > * {
    position: relative;
    z-index: 1;
  }

  html.mb-store-closed .mb-site-header .navbar.sticky-top,
  html.mb-store-closed .mb-site-header nav.navbar.navbar-expand-lg,
  html.mb-store-closed .mb-site-header .navbar .container-fluid,
  html.mb-store-closed .mb-site-header .header,
  html.mb-store-closed .mb-site-header .search.mx-auto,
  html.mb-store-closed .mb-site-header #search-form,
  html.mb-store-closed .mb-site-header #search-form.d-flex {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }
}

/* ── Golden splash — height clip dismiss (WAAPI in JS) ── */
.mb-store-splash-wrap {
  overflow: hidden;
}

.mb-store-splash {
  background: linear-gradient(
    180deg,
    var(--mb-store-gold-top, #fffef8) 0%,
    var(--mb-store-gold-mid, #fef9e8) 70%,
    transparent 100%
  );
  padding: 8px 14px 10px;
  text-align: center;
  border: none;
}

.mb-store-splash__title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  line-height: 1.3;
}

.mb-store-splash__sub {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.3;
}

/* ── Closed hero ── */
.mb-store-hero {
  background: transparent;
  padding: 7px 14px 8px;
  border: none;
  box-shadow: none;
  contain: layout style;
}

.mb-store-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.mb-store-hero__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.15;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-store-hero__tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 185, 129, 0.22);
  white-space: nowrap;
}

.mb-store-hero__promo {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}

.mb-store-hero__promo-text strong {
  font-weight: 800;
  color: #334155;
}

.mb-store-hero--paused .mb-store-hero__title {
  color: #7f1d1d;
}

.mb-store-hero--paused .mb-store-hero__promo-text {
  color: #991b1b;
}

html.mb-store-closed form[action*="add_to_cart"] button[type="submit"],
html.mb-store-closed .carousel-form-compact button[type="submit"] {
  opacity: 0.55;
  pointer-events: none;
}

html.mb-store-paused form[action*="add_to_cart"] button[type="submit"],
html.mb-store-paused .carousel-form-compact button[type="submit"] {
  opacity: 0.55;
  pointer-events: none;
}

html.mb-store-advance.mb-store-paused form[action*="add_to_cart"] button[type="submit"],
html.mb-store-advance.mb-store-paused .carousel-form-compact button[type="submit"] {
  opacity: 0.55;
  pointer-events: none;
}

html.mb-store-advance:not(.mb-store-paused) form[action*="add_to_cart"] button[type="submit"],
html.mb-store-advance:not(.mb-store-paused) .carousel-form-compact button[type="submit"] {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 360px) {
  .mb-store-hero__title {
    font-size: 17px;
  }

  .mb-store-hero__tag {
    padding: 3px 8px;
    font-size: 9px;
  }

  .mb-store-hero__promo {
    font-size: 11px;
  }

  .mb-store-splash__title {
    font-size: 12px;
  }

  .mb-store-splash__sub {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-store-splash-wrap {
    animation: none;
  }
}

@media (min-width: 992px) {
  .mb-store-status-mount {
    display: none !important;
  }
}
