/* ==========================================================================
   design-polish.css — DESIGN-REVIEW FIX R1#5 + R1#10 (2026-07-28)
   Loaded via theme.yml at priority 260. Sitewide trust/polish fixes.
   ========================================================================== */

/* --- R1#5 Cookie banner (module poscookielaw, #poscookielaw, fixed bottom).
       Colours come from BO config (now #253237/#fff via r1-fixes.sql); this
       polishes layout so it reads as a designed bar, not a grey slab. --- */
#poscookielaw {
  padding: 12px 24px;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
  gap: 16px;
}
#poscookielaw a,
#poscookielaw button,
#poscookielaw .btn {
  background: #80b435;
  color: #ffffff;
  border: 0;
  border-radius: 3px;
  padding: 8px 20px;
  min-height: 40px;
  font-weight: 600;
  white-space: nowrap;
}

/* --- R1#10 Footer: hide dead placeholder social icons (href="#") until real
       profiles are configured in the CE footer editor. --- */
#footer li:has(> a[href="#"]),
.elementor-widget-pos_social li:has(> a[href="#"]) {
  display: none;
}

/* --- R1#6 search empty-state links (see search.tpl override) --- */
.search-empty-retry {
  max-width: 420px;
  margin: 1rem auto 0;
}
.search-empty-browse {
  margin-top: 1.25rem;
}
.search-empty-links,
.page-not-found-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.page-not-found-links {
  justify-content: flex-start;
}
.page-not-found-links li a {
  text-decoration: underline;
}

/* --- R1#9 announcement bar (see _partials/header.tpl) --- */
.nn-announce {
  background: #253237;
  color: #ffffff;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 7px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.nn-announce-sep {
  opacity: 0.5;
}
@media (max-width: 575px) {
  .nn-announce-sep,
  .nn-announce span:last-child {
    display: none; /* one concise line on small screens */
  }
}

/* --- R1#10 keyboard focus visibility (rubric #10) --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #80b435;
  outline-offset: 2px;
}

/* ==========================================================================
   R2 (2026-09-10) — homepage/CMS polish pass
   ========================================================================== */

/* --- R2#1 Top announcement/account bar: the CE header's only stretched
       full-width section (data-id hctgrcr) has an unpadded container, so the
       delivery copy sat hard against the viewport edge. The nav row below it is
       `elementor-section-boxed`, so it is untouched by this.
       theme.css also gives that container `margin: 0 -10px` via
       `.elementor-section-full_width .elementor-column-gap-default`, which would
       eat most of the padding, so the negative margin is zeroed here too. --- */
#header .elementor-top-section.elementor-section-stretched.elementor-section-full_width > .elementor-container,
#header .elementor-top-section.elementor-section-stretched.elementor-section-full_width > .elementor-container.elementor-column-gap-default {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- R2#2 CMS pages (About us, Delivery, Terms...): `.page-content.page-cms`
       had `background: #fff` and nothing else (theme.css:8834), so the copy ran
       edge-to-edge on a white page with no card, no padding and no end. Give it
       the same card treatment the homepage sections use, on a tinted page. --- */
body.page-cms #wrapper {
  background-color: #f5f7fa;
}
body.page-cms #content.page-content.page-cms {
  background: #ffffff;
  padding: 32px 36px 36px;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}
/* No dead space above the first heading inside the card */
body.page-cms #content.page-content.page-cms > *:first-child {
  margin-top: 0;
}
/* Readable measure + rhythm for long-form CMS copy */
body.page-cms #content.page-content.page-cms p,
body.page-cms #content.page-content.page-cms ul,
body.page-cms #content.page-content.page-cms ol {
  margin-bottom: 1rem;
}
body.page-cms #content.page-content.page-cms h2,
body.page-cms #content.page-content.page-cms h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
body.page-cms #content.page-content.page-cms ul {
  padding-left: 1.25rem;
  list-style: disc outside none;
}
@media (max-width: 767px) {
  body.page-cms #content.page-content.page-cms {
    padding: 20px 18px 24px;
    border-radius: 8px;
  }
}

/* --- R2#2b theme.css:11478 pins `.container { width: 1440px }` (a hard width,
       not a max-width) above 1200px. On any viewport between 1200px and ~1470px
       that overflows the window: the page gains a horizontal scrollbar and every
       container — CMS copy included — is pushed flush against the left edge.
       Cap it instead; at >=1470px the rendered width is unchanged. --- */
@media (min-width: 1200px) {
  .container {
    width: 100%;
    max-width: 1440px;
  }
}
