/* ═══════════ Shared Site Chrome — Footer ═══════════
   Single source of truth for the footer, loaded on EVERY page.
   The footer markup in includes/footer.php is identical on all pages, so the
   styling lives here once rather than being duplicated per page stylesheet.
   Do not re-add footer rules to homepage-v3.css / pages-v2.css / product-v2.css.

   These selectors are intentionally unscoped (no .page-* body class) and use
   `footer.footer ...` where they need to out-specify style.css's
   `footer .footer-section.footer-section-links { ... !important }` rules. */

/* Own tokens: homepage-v3.css only loads on the homepage, so its :root vars
   are unavailable elsewhere. Values mirror it so the chrome is identical. */
:root {
  --sc-brand:      #ff6600;
  --sc-dark:       #111111;
  --sc-text-mid:   #444444;
  --sc-text-soft:  #777777;
  --sc-bg:         #ffffff;
  --sc-bg-muted:   #f7f5f2;
  --sc-line:       #e8e4de;
  --sc-line-light: #f2efeb;
  --sc-container:  1180px;
  --sc-px:         clamp(1rem, 4vw, 2rem);
  --sc-font:       'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --sc-ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* JavaScript switched off (header.php <noscript>). */
.noscript-note { padding: 10px 16px; background: #fff4eb; color: #7a3600; font: 600 13px/1.4 var(--sc-font); text-align: center; }

/* ═══════════ ANNOUNCEMENT BAR (above the header) ═══════════ */
.ann-bar {
  background: var(--sc-dark);
  color: #fff;
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  overflow: hidden;
  font-family: var(--sc-font);
}
.ann-bar .ann-inner {
  display: inline-flex;
  gap: 2rem;
  animation: ann-scroll 20s linear infinite;
}
.ann-bar[hidden] { display: none !important; }
.ann-bar .ann-item { white-space: nowrap; opacity: 0.85; }
.ann-bar .ann-sep { opacity: 0.3; }
@keyframes ann-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Phones set to "Reduce Motion" (iPhone: Settings > Accessibility > Motion):
   no scrolling text. One offer at a time, changing every few seconds with a
   soft fade (header.php), so every customer still sees all the offers. */
@media (prefers-reduced-motion: reduce) {
  .ann-bar .ann-inner { animation: none; display: block; }
  /* Only the first offer is shown (header.php cycles its text); the rest of
     the marquee copy stays hidden, so the bar keeps one line. */
  .ann-bar .ann-sep, .ann-bar .ann-item ~ .ann-item { display: none; }
  .ann-bar .ann-item { display: block; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.4s ease; }
  .ann-bar .ann-item.is-out { opacity: 0; }
}

/* style.css sets overflow-x:hidden on BOTH html and body. That turns body into
   its own scroll box, and iPhone Safari then has nothing for the sticky header
   to stick to (it scrolls away; desktop Chrome hides the problem). `clip` cuts
   sideways overflow the same way without making a scroll box. Browsers without
   `clip` ignore this line and keep `hidden`. */
html, body { overflow-x: clip !important; }

/* ═══════════ HEADER ═══════════ */
header {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  z-index: 1000 !important;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--sc-line-light) !important;
  transition: box-shadow 0.3s var(--sc-ease), background 0.3s var(--sc-ease) !important;
}
header, header * { font-family: var(--sc-font) !important; }

/* style.css turns the scrolled header orange and inverts the logo white to
   suit it. Every page keeps a white scrolled header, so that inversion would
   render a white logo on white — reset it once, here, for all pages. */
header.scrolled {
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05) !important;
  border-bottom: 1px solid var(--sc-line-light) !important;
  border-top: none !important;
}
header.scrolled .logo-img { filter: none !important; }
header.scrolled .brand { color: var(--sc-brand) !important; }
header.scrolled .nav-links a { color: var(--sc-text-mid) !important; }
header.scrolled .nav-links a:hover { color: var(--sc-brand) !important; }

header .nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: var(--sc-container) !important;
  margin: 0 auto !important;
  padding: 0 var(--sc-px) !important;
  height: 64px !important;
  min-height: unset !important;
}
header .brand { font-size: inherit !important; gap: 8px !important; display: flex !important; align-items: center !important; }
header .logo-img { height: 40px !important; width: auto !important; margin: 0 !important; }

/* style.css hides .nav-links and makes it a fixed fullscreen overlay */
header .nav-links {
  display: flex !important;
  position: static !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  gap: 1.75rem !important;
  z-index: auto !important;
  width: auto !important;
  height: auto !important;
  inset: auto !important;
}
header .nav-links .nav-close { display: none !important; }
header .nav-links a {
  padding: 0.5rem 0 !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--sc-text-mid) !important;
  border-bottom: none !important;
  border-left: none !important;
  min-height: auto !important;
  background: transparent !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
header .nav-links a:hover,
header .nav-links a.active { color: var(--sc-brand) !important; background: transparent !important; }

/* ── Header actions (WhatsApp, hamburger) ─────────────────────────── */
header .hdr-actions { display: flex !important; gap: 0.375rem !important; align-items: center !important; }
header .hdr-btn {
  width: 38px !important; height: 38px !important; border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: var(--sc-text-mid) !important; background: transparent !important; border: none !important;
  cursor: pointer !important; transition: all 0.2s !important; text-decoration: none !important;
  padding: 0 !important;
}
header .hdr-btn:hover { background: var(--sc-bg-muted) !important; color: var(--sc-brand) !important; }
header .hdr-btn svg { width: 20px !important; height: 20px !important; }
/* WhatsApp: real logo, WhatsApp green on hover so it reads as a chat link. */
header .hdr-btn.hdr-wa:hover { color: #1fa855 !important; }
/* ── Cart icon + badge (header) ────────────────────────────────────────
   The cart is the only header action that must survive the 1024px rule
   below, which hides .hdr-btn. Between 769px and 1024px the bottom nav is
   also hidden, so without this the cart would be unreachable. */
header .hdr-btn.hdr-cart { position: relative !important; overflow: visible !important; }
header .hdr-btn.hdr-cart .cart-badge {
  position: absolute !important;
  top: 1px !important;
  right: 1px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  background: var(--sc-brand) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 16px !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  pointer-events: none !important;
  box-shadow: 0 0 0 2px #fff !important;
}
header .hdr-btn.hdr-cart .cart-badge[hidden] { display: none !important; }

header .hamburger {
  display: none; flex-direction: column; gap: 4.5px;
  width: 38px; height: 38px; align-items: center; justify-content: center;
  background: transparent !important; border: none !important; cursor: pointer; padding: 0 !important;
}
header .hamburger span {
  width: 18px; height: 1.5px; background: var(--sc-dark);
  border-radius: 1px; transition: all 0.3s var(--sc-ease);
}

/* ═══════════ MOBILE NAV (right-slide panel) ═══════════ */
.mob-nav { display: none; position: fixed; inset: 0; z-index: 9999; }
.mob-nav.open { display: block; }
.mob-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  animation: scFadeIn 0.2s;
}
.mob-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(300px, 82vw); background: var(--sc-bg);
  animation: scSlideR 0.3s var(--sc-ease);
  display: flex; flex-direction: column;
}
/* Selectors are prefixed with .mob-nav so they outrank page resets such as
   `.page-homepage * { padding: 0 }`, which used to strip the panel spacing. */
.mob-nav .mob-panel-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--sc-line-light);
}
.mob-nav .mob-panel-top img { height: 34px !important; width: auto; display: block; }
.mob-nav .mob-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: transparent; border: none; cursor: pointer; color: var(--sc-dark);
}
.mob-nav .mob-close:hover { background: var(--sc-bg-muted); }
.mob-nav .mob-links { padding: 6px 0; flex: 1; overflow-y: auto; }
.mob-nav .mob-links a {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 20px;
  font-size: 16px; font-weight: 500; color: var(--sc-dark);
  border-bottom: 1px solid var(--sc-line-light);
  transition: background 0.2s; text-decoration: none;
}
.mob-nav .mob-links a:hover, .mob-nav .mob-links a:active { background: var(--sc-bg-muted); }
.mob-nav .mob-links a svg { width: 20px; height: 20px; color: var(--sc-text-soft); flex-shrink: 0; }
.mob-nav .mob-cta {
  display: grid; gap: 10px;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sc-line-light); background: var(--sc-bg);
}
.mob-nav .mob-cta-cart {
  display: flex; align-items: center; justify-content: center; height: 48px;
  border-radius: 8px; background: #ff6600; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none;
}
.mob-nav .mob-cta-cart:hover, .mob-nav .mob-cta-cart:active { background: #e65c00; color: #fff; }
.mob-nav .mob-cta-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px;
  border-radius: 8px; border: 1px solid #d6ead9; background: #f3faf4; color: #146c37;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.mob-nav .mob-cta-wa svg { width: 18px; height: 18px; color: #1fa855; flex-shrink: 0; }
.mob-nav .mob-cta-wa:hover, .mob-nav .mob-cta-wa:active { border-color: #1fa855; }

@keyframes scFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scSlideR { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ── Header responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  header .nav-links { display: none !important; }
  header .hamburger { display: flex !important; }
  header .hdr-actions .hdr-btn { display: none !important; }
  /* …except the cart, which is the primary cart entry point on mobile. */
  header .hdr-actions .hdr-btn.hdr-cart { display: flex !important; }
}
@media (max-width: 768px) {
  header .logo-img { height: 32px !important; }
}

footer.footer {
  background: #111111 !important;
  color: rgba(255,255,255,0.65) !important;
  padding: 3.5rem 0 1.5rem !important;
  margin-top: 0 !important;
  border-top: none !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
footer.footer * {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

footer.footer .footer-content {
  display: grid !important;
  grid-template-columns: 1.75fr repeat(3, 1fr) !important;
  max-width: 1180px !important;
  margin: 0 auto 2.5rem !important;
  padding: 0 clamp(1rem, 4vw, 2rem) !important;
  gap: 2rem !important;
  align-items: start !important;
}

/* ── Column headings ──────────────────────────────────────────────── */
footer.footer .footer-section h4 {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 0.875rem !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  text-align: left !important;
}

footer.footer .footer-section p {
  font-size: 0.8125rem !important;
  color: rgba(255,255,255,0.45) !important;
  line-height: 1.6 !important;
  max-width: 240px !important;
  margin-bottom: 1em !important;
  text-align: left !important;
}

/* ── Links ────────────────────────────────────────────────────────── */
footer.footer .footer-section a {
  display: block !important;
  font-size: 0.8125rem !important;
  color: rgba(255,255,255,0.45) !important;
  padding: 0.25rem 0 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
footer.footer .footer-section a:hover {
  color: #ff6600 !important;
  transform: none !important;
}

/* style.css centers these columns with !important — override all of them. */
footer.footer .footer-section.footer-section-links,
footer.footer .footer-section.footer-section-links h4,
footer.footer .footer-section.footer-section-contact,
footer.footer .footer-section.footer-section-contact h4,
footer.footer .footer-section.footer-section-brand {
  text-align: left !important;
}
footer.footer .footer-section.footer-section-links .footer-links,
footer.footer .footer-section.footer-section-contact .footer-links {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
  align-items: flex-start !important;
  gap: 0 !important;
}
footer.footer .footer-section.footer-section-links .footer-links a,
footer.footer .footer-section.footer-section-contact .footer-links a {
  text-align: left !important;
  display: block !important;
}

/* ── Brand logo ───────────────────────────────────────────────────── */
footer.footer .footer-logo {
  display: block !important;
  text-align: left !important;
  margin-bottom: 0.75rem !important;
}
footer.footer .footer-logo-img {
  height: 34px !important;
  width: auto !important;
  filter: brightness(0) invert(1) !important;
}
footer.footer .footer-logo:hover .footer-logo-img {
  transform: none !important;
}

/* ── Newsletter ───────────────────────────────────────────────────── */
footer.footer .footer-section-newsletter h4 { margin-bottom: 0.5rem !important; }
footer.footer .footer-section-newsletter p {
  color: rgba(255,255,255,0.4) !important;
  margin-bottom: 0.75rem !important;
  max-width: none !important;
}
footer.footer .ft-form { display: flex !important; gap: 0.375rem !important; }
footer.footer .ft-form input {
  flex: 1 !important;
  padding: 0.6rem 0.875rem !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-size: 0.8125rem !important;
  outline: none !important;
  min-width: 0 !important;
}
footer.footer .ft-form input::placeholder { color: rgba(255,255,255,0.3) !important; }
footer.footer .ft-form input:focus { border-color: #ff6600 !important; }
footer.footer .ft-form button {
  padding: 0.6rem 1rem !important;
  background: #ff6600 !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background 0.2s !important;
}
footer.footer .ft-form button:hover { background: #e55a00 !important; }

/* ── Bottom bar ───────────────────────────────────────────────────── */
footer.footer .footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1180px !important;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 0 !important;
  margin: 0 auto !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 0.6875rem !important;
  color: rgba(255,255,255,0.3) !important;
  text-align: left !important;
}
footer.footer .ft-socials { display: flex !important; gap: 0.5rem !important; }
footer.footer .ft-socials a {
  width: 30px !important; height: 30px !important;
  border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: rgba(255,255,255,0.4) !important;
  padding: 0 !important;
  transition: all 0.2s !important;
}
footer.footer .ft-socials a:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #ff6600 !important;
}
footer.footer .ft-socials a svg { width: 14px !important; height: 14px !important; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  footer.footer .footer-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
  footer.footer { padding: 2.5rem 0 1rem !important; }
  /* style.css force-centers every footer column at 768px — undo it. */
  footer.footer .footer-section.footer-section-brand,
  footer.footer .footer-section.footer-section-links,
  footer.footer .footer-section.footer-section-contact,
  footer.footer .footer-section.footer-section-newsletter,
  footer.footer .footer-section h4,
  footer.footer .footer-section p,
  footer.footer .footer-section .footer-links,
  footer.footer .footer-section .footer-links a,
  footer.footer .footer-logo {
    text-align: left !important;
    align-items: flex-start !important;
  }
  footer.footer .footer-logo { margin: 0 0 0.75rem 0 !important; }
  footer.footer .footer-logo-img { margin: 0 !important; }
  footer.footer .footer-section p { margin-left: 0 !important; margin-right: 0 !important; }
}

@media (max-width: 560px) {
  footer.footer .footer-content { grid-template-columns: 1fr !important; gap: 1.75rem !important; }
  footer.footer .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
}

/* Phones: no big footer (the bottom bar and menu cover navigation). Only a
   slim line stays: policy links (payment gateway requirement), copyright and
   social icons. .ft-legal is hidden on larger screens, where the Help column
   already lists the policies. */
footer.footer .ft-legal { display: none !important; }
@media (max-width: 640px) {
  footer.footer { padding: 1rem 0 0.75rem !important; }
  footer.footer .footer-content { display: none !important; }
  footer.footer .footer-bottom {
    flex-direction: column !important; align-items: center !important;
    gap: 0.5rem !important; padding-top: 0 !important; border-top: 0 !important;
    text-align: center !important;
  }
  footer.footer .ft-legal {
    display: flex !important; flex-wrap: wrap !important; justify-content: center !important;
    gap: 0.25rem 1rem !important; order: -1 !important;
  }
  footer.footer .ft-legal a {
    font-size: 0.75rem !important; color: rgba(255,255,255,0.6) !important;
    text-decoration: none !important; padding: 4px 0 !important;
  }
  footer.footer .ft-legal a:hover { color: #ff6600 !important; }
}

/* ═══════════ PHONES: SLIM TOP BAR + TAP FEEDBACK ═══════════ */
@media (max-width: 640px) {
  header .nav { height: 56px !important; }
  header .logo-img { height: 30px !important; }
  .ann-bar { padding: 0.3rem 1rem; font-size: 0.65625rem; }
}
/* Touch screens: no grey flash on tap, cards and buttons press in slightly. */
@media (hover: none) {
  a, button { -webkit-tap-highlight-color: transparent; }
  .sk-card:active, .fb:active, .reel:active, .cat-item:active, .budget-tile:active, .m-ban:active,
  .occ-card:active, .bulk-btn:active, .btn-v3:active, .bot-item:active, .hdr-btn:active { transform: scale(0.97) !important; }
}

/* ═══════════ MOBILE BOTTOM BAR (all pages; see includes/footer.php) ═══════════
   Flat bar: five equal tabs, nothing raised above the bar edge. */
.bot-nav, .bot-nav-spacer { display: none; }
@media (max-width: 640px) {
  .bot-nav {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: #fff; border-top: 1px solid #ece4dc;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 12px rgba(26,22,18,0.06);
  }
  /* Keeps page content (and the footer) clear of the fixed bar. */
  .bot-nav-spacer { display: block; height: calc(60px + env(safe-area-inset-bottom, 0px)); }
}
.bot-nav-inner { display: grid; grid-template-columns: repeat(5, 1fr); height: 60px; }
.bot-nav .bot-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; font-size: 11px; font-weight: 500; line-height: 1.1;
  color: #6b6259; text-decoration: none; transition: color 0.2s;
}
.bot-nav .bot-item > span:last-child { white-space: nowrap; }
.bot-nav .bot-item svg { width: 22px; height: 22px; display: block; }
.bot-nav .bot-item.active { color: #e65c00; font-weight: 700; }
/* Active tab marker on the top edge of the bar. */
.bot-nav .bot-item.active::before {
  content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px;
  background: #ff6600; border-radius: 0 0 3px 3px;
}
.bot-nav .bot-item:focus-visible { outline: 2px solid #ff6600; outline-offset: -4px; }
.bot-nav .bot-icon { position: relative; display: block; }
.bot-nav .cart-badge {
  position: absolute; top: -6px; right: -10px;
  min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box;
  border-radius: 9px; background: #ff6600; color: #fff; border: 2px solid #fff;
  font-size: 10px; font-weight: 700; line-height: 13px; text-align: center; pointer-events: none;
}
.bot-nav .cart-badge[hidden] { display: none; }

/* ═══════════ BULK ORDER POPUP (#bulkOrderModal, includes/header.php) ═══════════
   Fully defined here under the #id so page resets (e.g. `.page-homepage *`
   { padding:0; margin:0 } and the homepage button reset) can never break it.
   Centred card on desktop, bottom sheet on phones. */
#bulkOrderModal { display: none; position: fixed; inset: 0; z-index: 10000; }
#bulkOrderModal.active { display: flex; align-items: center; justify-content: center; padding: 16px; }
#bulkOrderModal .modal-overlay { position: absolute; inset: 0; background: rgba(26,22,18,0.45); backdrop-filter: blur(3px); }
#bulkOrderModal .modal-content {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  margin: 0; padding: 0; background: #fff; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(26,22,18,0.25); font-family: 'DM Sans', system-ui, sans-serif; color: #1a1612;
}
#bulkOrderModal .modal-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin: 0; padding: 20px 20px 14px; background: #fff; border-bottom: 1px solid #f0ebe6; color: #1a1612;
}
#bulkOrderModal .modal-header h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; color: #1a1612; }
#bulkOrderModal .bo-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: #6b6259; }
#bulkOrderModal .modal-close {
  flex: 0 0 36px; width: 36px; height: 36px; margin: -4px -6px 0 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 8px; color: #1a1612; cursor: pointer;
}
#bulkOrderModal .modal-close:hover { background: #f5f0eb; }
#bulkOrderModal .bulk-order-form { margin: 0; padding: 16px 20px 20px; }
#bulkOrderModal .form-group { margin: 0 0 14px; padding: 0; }
#bulkOrderModal .form-group label { display: block; margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 600; color: #1a1612; }
#bulkOrderModal .form-group input,
#bulkOrderModal .form-group textarea {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 11px 12px;
  font: inherit; font-size: 15px; line-height: 1.4; color: #1a1612;
  background: #fff; border: 1px solid #ddd3c9; border-radius: 8px; outline: none;
}
#bulkOrderModal .form-group textarea { min-height: 96px; resize: vertical; }
#bulkOrderModal .form-group input:focus,
#bulkOrderModal .form-group textarea:focus { border-color: #ff6600; box-shadow: 0 0 0 3px rgba(255,102,0,0.12); }
#bulkOrderModal .bo-error {
  margin: 0 0 12px; padding: 10px 12px; font-size: 13px; color: #b42318;
  background: #fdecea; border-radius: 8px;
}
#bulkOrderModal .bo-error[hidden] { display: none; }
#bulkOrderModal .bo-field-err { margin: 6px 0 0; font-size: 12px; color: #b42318; }
#bulkOrderModal .bo-field-err[hidden] { display: none; }
#bulkOrderModal .form-group [aria-invalid="true"] { border-color: #b42318; }
#bulkOrderModal .form-actions { display: flex; flex-direction: row; gap: 10px; margin: 6px 0 0; padding: 0; border: 0; }
#bulkOrderModal .bulk-order-btn-primary,
#bulkOrderModal .bulk-order-btn-secondary {
  height: 48px; margin: 0; padding: 0 16px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
#bulkOrderModal .bulk-order-btn-primary { flex: 2; background: #ff6600; color: #fff; border: 1px solid #ff6600; }
#bulkOrderModal .bulk-order-btn-primary:hover { background: #e65c00; border-color: #e65c00; }
#bulkOrderModal .bulk-order-btn-primary:disabled { opacity: 0.7; cursor: wait; }
#bulkOrderModal .bulk-order-btn-secondary { flex: 1; background: #fff; color: #1a1612; border: 1px solid #ddd3c9; }
#bulkOrderModal .bulk-order-btn-secondary:hover { border-color: #1a1612; }
#bulkOrderModal .success-message { margin: 0; padding: 28px 20px 24px; text-align: center; }
#bulkOrderModal .success-message .success-icon { margin: 0 auto 10px; }
#bulkOrderModal .success-message h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
#bulkOrderModal .success-message p { margin: 0 0 18px; font-size: 14px; color: #6b6259; }
#bulkOrderModal .success-message .bulk-order-btn-primary { width: 100%; }
@media (max-width: 640px) {
  /* Bottom sheet on phones: thumb-friendly, never stuck in a corner. */
  #bulkOrderModal.active { align-items: flex-end; padding: 0; }
  #bulkOrderModal .modal-content {
    max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  /* 16px: below that, iPhones zoom the page in when a box is tapped. */
  #bulkOrderModal .form-group input,
  #bulkOrderModal .form-group textarea { font-size: 16px; }
}
#bulkOrderModal .bo-count { margin: 6px 0 0; font-size: 12px; color: #8f857b; }
#bulkOrderModal .bo-count.is-ok { color: #0b6e3a; }
#bulkOrderModal .bo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
