/* ==========================================================================
   Miss Spelts — Site-wide chrome (top bar + shared modals)
   ========================================================================== */
:root {
  --mso-g: #0a472e;
  --mso-gl: #e8f4ee;
  --mso-gm: #4a7c59;
  --mso-gold: #f0c84a;
  --mso-serif: 'Playfair Display', Georgia, serif;
  --mso-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* TOP UTILITY BAR — centred message, buttons right */
.mso-topbar {
  background: var(--mso-g);
  color: rgba(255,255,255,0.9);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 9px 24px;
  font-family: var(--mso-sans);
}
.mso-topbar-msg {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  text-align: center;
}
.mso-topbar-msg i { font-size: 16px; color: var(--mso-gold); }
.mso-topbar-msg strong { color: var(--mso-gold); font-weight: 600; }
.mso-topbar-actions {
  grid-column: 3;
  display: flex;
  gap: 8px;
  justify-self: end;
}

@media (max-width: 900px) {
  .mso-topbar { grid-template-columns: 1fr; }
  .mso-topbar-msg { grid-column: 1; }
  .mso-topbar-actions { grid-column: 1; justify-self: center; }
}
/* Top bar buttons — pill style */
.mso-topbar-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-family: var(--mso-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s;
}
.mso-topbar-btn:hover { background: rgba(255,255,255,0.2); }
.mso-topbar-btn i { font-size: 14px; }
/* MODALS */
.mso-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mso-overlay.open { display: flex; }
.mso-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  font-family: var(--mso-sans);
}
.mso-modal-head {
  background: var(--mso-g);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mso-modal-title { font-family: var(--mso-serif); font-size: 20px; font-weight: 700; color: #fff; line-height: 1.2; }
.mso-modal-sub { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 5px; font-weight: 300; }
.mso-modal-close {
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 17px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mso-modal-close:hover { background: rgba(255,255,255,0.22); }
.mso-modal-body { padding: 28px; }
.mso-pc-form { display: flex; gap: 10px; }
.mso-pc-input {
  flex: 1; border: 1px solid rgba(0,0,0,0.14); border-radius: 8px;
  padding: 12px 16px; font-size: 15px; font-family: var(--mso-sans);
  outline: none; color: #1a1a1a; letter-spacing: 0.08em;
}
.mso-pc-input:focus { border-color: var(--mso-g); }
.mso-pc-submit {
  background: var(--mso-g); color: #fff; border: none;
  padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: var(--mso-sans); white-space: nowrap;
}
.mso-pc-submit:hover { background: var(--mso-gm); }
.mso-pc-result { margin-top: 20px; display: none; border-radius: 10px; padding: 18px 20px; font-size: 14px; line-height: 1.65; }
.mso-pc-result.yes  { background: var(--mso-gl); border: 1px solid rgba(10,71,46,0.15); color: var(--mso-g); }
.mso-pc-result.no   { background: #fae8e8; border: 1px solid rgba(200,48,48,0.15); color: #8a2020; }
.mso-pc-result.warn { background: #faf4e0; border: 1px solid rgba(180,130,20,0.18); color: #7a5a10; }
.mso-pc-result strong { font-weight: 600; }
.mso-pc-result a { color: inherit; }
.mso-pc-result-head { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.mso-pc-result-head i { font-size: 18px; }
.mso-day-badge { display: inline-block; background: var(--mso-g); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 20px; }
.mso-pc-details { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-direction: column; gap: 9px; }
.mso-pc-details li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.4; }
.mso-pc-details li a { word-break: break-word; overflow-wrap: anywhere; }
.mso-pc-details li i { font-size: 15px; flex-shrink: 0; margin-top: 1px; opacity: 0.8; }
.mso-pc-result a.order-link { display: inline-block; background: var(--mso-g); color: #fff; padding: 10px 22px; margin-top: 14px; text-decoration: none; border-radius: 6px; font-weight: 500; font-size: 13px; }
.mso-pc-note { margin-top: 20px; font-size: 12px; color: #aaa; text-align: center; }

/* Store modal */
.mso-store-card { max-width: 560px; }
.mso-store-body { padding: 28px; max-height: 70vh; overflow-y: auto; }
.mso-store-list { list-style: none; padding: 0; margin: 0; counter-reset: store; display: flex; flex-direction: column; gap: 18px; }
.mso-store-list li { counter-increment: store; display: flex; gap: 14px; align-items: flex-start; }
.mso-store-list li::before {
  content: counter(store); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--mso-gl); color: var(--mso-g); font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.mso-store-li-body { font-size: 13.5px; line-height: 1.6; color: #333; }
.mso-store-li-body strong { color: var(--mso-g); font-weight: 600; }
.mso-store-cta-row { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.08); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mso-store-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--mso-g); color: #fff; padding: 11px 20px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; }
.mso-store-btn:hover { background: var(--mso-gm); }
.mso-store-cta-note { font-size: 12px; color: #888; }
/* Kill boxed layout — full width site-wide */
body,
#page,
.site,
.site-content,
#content,
.freshio-boxed,
.boxed {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}
/* ===== Header 1 — targeted polish ===== */

/* 1. Hide nav menu on HOMEPAGE only */
#masthead .header-center {
  display: none !important;
}

/* 2. Logo — ensure it isn't clipped */
#masthead .site-branding {
  min-width: 150px;
  overflow: visible;
}
#masthead .site-branding img.logo-light {
  max-height: 46px;
  width: auto;
}

/* 3. Search (FiboSearch) — bigger, mockup-style */
#masthead .dgwt-wcas-search-wrapp {
  max-width: 480px;
  width: 100%;
}
#masthead .dgwt-wcas-sf-wrapp input.dgwt-wcas-search-input,
#dgwt-wcas-search-input-1 {
  background: #f4f4f2 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 8px !important;
  height: 42px !important;
  font-size: 13.5px !important;
}
/* ===== Header 1 polish ===== */

/* Give the logo room so it isn't clipped */
.header-1 .site-branding,
.site-header .site-logo,
.site-header .logo {
  min-width: 140px;
  overflow: visible;
}
.site-header .site-logo img,
.site-header .logo img {
  max-height: 48px;
  width: auto;
}

/* Stop the top bar buttons running off the right edge */
.mso-topbar { padding-right: 32px; padding-left: 32px; }

/* Tidy the search bar so it doesn't overlap the menu */
.header-1 .header-search,
.site-header .header-search {
  margin: 0 20px;
}

/* Logo left, proper size */
.home #masthead .site-branding { flex: 0 0 auto; }
.home #masthead .site-branding img.logo-light {
  max-height: 52px;
  width: auto;
}

/* Icons/cart pushed to the far right */
.home #masthead .header-right,
.home #masthead .header-main .right {
  margin-left: auto;
  flex: 0 0 auto;
}

/* FiboSearch: kill the old absolute positioning, sit inline in the row */
.home #fibosearch-freshio {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 480px;
  flex: 1 1 auto;
}
/* ===== Header row: logo | search | icons, evenly distributed ===== */
#masthead .header-main > .container,
#masthead .header-main > div {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
  width: 100%;
}

/* Logo: natural width, left */
#masthead .site-branding {
  flex: 0 0 auto !important;
  max-width: none !important;
  width: auto !important;
}

/* Search: flexible middle, capped */
#fibosearch-freshio {
  position: static !important;
  flex: 1 1 auto;
  max-width: 500px;
  margin: 0 auto;
  align-self: center;
}

/* Icons/cart: pinned right */
#masthead .header-right,
#masthead .header-main .right {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  max-width: none !important;
  width: auto !important;
}

/* Menu stays hidden — must be LAST and most specific */
#masthead .header-main .header-center,
#masthead div.header-center.d-flex,
#masthead .header-center {
  display: none !important;
}