.cookie-bar{position:fixed;left:0;right:0;bottom:0;z-index:1000;max-width:none;margin:0;display:flex;flex-wrap:wrap;gap:.35rem .75rem;align-items:center;justify-content:center;padding:.4rem 1rem calc(.4rem + env(safe-area-inset-bottom,0px));background:var(--3c-night,#0b1728);color:#fff;border-radius:0;box-shadow:0 -6px 20px #0b172840;font-size:.82rem;line-height:1.3}
.cookie-bar__text{margin:0;flex:1 1 16rem;max-width:42rem}
.cookie-bar__text a{color:#fff;text-decoration:underline}
.cookie-bar__actions{display:flex;gap:.5rem}
.cookie-bar__btn{min-height:2.15rem;padding:.25rem .85rem;border:2px solid #fff;border-radius:var(--3c-radius-ui,4px);background:transparent;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.cookie-bar__btn--primary{background:var(--3c-commerce-orange,#f9a462);border-color:var(--3c-commerce-orange,#f9a462);color:var(--3c-night,#0b1728)}
.cookie-bar__btn:focus-visible,.cookie-bar__text a:focus-visible{outline:3px solid var(--3c-commerce-orange,#f9a462);outline-offset:2px}
@media (max-width:560px){.cookie-bar{left:0;right:0;bottom:0;padding:.35rem .7rem calc(.35rem + env(safe-area-inset-bottom,0px));gap:.3rem .5rem}.cookie-bar__text{flex:1 1 12rem;font-size:.8rem;line-height:1.3}.cookie-bar__actions{width:auto;flex:0 0 auto}.cookie-bar__btn{flex:0 0 auto;min-height:2.1rem;padding:.25rem .75rem}}
/* Keep page content, including form fields, clear of the fixed bar. */
html.has-cookie-bar{padding-bottom:var(--cookie-bar-space,5.5rem);scroll-padding-bottom:var(--cookie-bar-space,5.5rem)}
html.has-cookie-bar body{padding-bottom:0}
html.has-cookie-bar {
  --cookie-clear: calc(var(--cookie-bar-space, 5.5rem) + 0.5rem);
  --cookie-first-screen: calc(100svh - var(--cookie-clear));
}
/* Site-wide: while the cookie bar is visible, keep first-screen content
   above it, and reserve bar-height space after the first screen so the
   next section starts below the bar (the reserved space sits behind the bar). */

html.has-cookie-bar .hero,
html.has-cookie-bar [class*="hero-grid"] {
  min-height: 0;
  padding-bottom: calc(1.25rem + var(--cookie-bar-space, 5.5rem));
  align-items: start;
}
html.has-cookie-bar [class*="hero-copy"] { padding-bottom: 1.25rem; }
@media (min-width: 701px) {
  html.has-cookie-bar [class*="hero-copy"] { padding-top: 2.5rem; }
}
html.has-cookie-bar .fu2-featured {
  margin-top: 0.85rem;
  scroll-margin-bottom: var(--cookie-bar-space, 5.5rem);
}
html.has-cookie-bar .gg-slot {
  scroll-margin-top: calc(var(--cookie-bar-space, 5.5rem) + 1rem);
  scroll-margin-bottom: var(--cookie-bar-space, 5.5rem);
}

/* Contact: tighten the heading block and card min-heights so the cards
   (and their bottom edges) sit above the bar. */
html.has-cookie-bar .contact-hero {
  padding-top: calc(var(--header-height, 5.75rem) + 0.4rem);
  padding-bottom: calc(1.25rem + var(--cookie-bar-space, 5.5rem));
}
html.has-cookie-bar .contact-hero .org-section-head {
  margin-bottom: 1.1rem;
}
html.has-cookie-bar .contact-hero .org-section-head h1 {
  margin-top: 0.2rem;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
}
html.has-cookie-bar .contact-hero .breadcrumb { margin-bottom: 0.55rem; }
html.has-cookie-bar .contact-hero .intent-card h2 { margin-top: 0.9rem; }
html.has-cookie-bar .intent-card {
  min-height: 0;
  padding: 1.15rem 1.4rem;
}
html.has-cookie-bar .contact-channel {
  min-height: 0;
  padding: 1.15rem 1.4rem;
}
html.has-cookie-bar .contact-channel,
html.has-cookie-bar .intent-card,
html.has-cookie-bar .contact-channels,
html.has-cookie-bar .intent-grid {
  scroll-margin-bottom: calc(var(--cookie-bar-space, 5.5rem) + 0.5rem);
}

/* Gift-guide hero: reserve bar-height space at the bottom of the first
   screen so the next section starts at the fold. A helper sizes the hero
   to the remaining viewport (it starts below the header, so 100svh would
   overshoot). */
html.has-cookie-bar .gg .hero {
  box-sizing: border-box;
  padding-bottom: var(--cookie-clear, calc(var(--cookie-bar-space, 5.5rem) + 0.5rem));
}
@media (max-width: 979px) {
  .gg .hero { display: flex; flex-direction: column; }
  .gg .snowtoggle {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    margin: 0.25rem max(4vw, 1rem) 0 auto;
  }
  html.has-cookie-bar .gg .hero { padding-top: 1.05rem; }
  html.has-cookie-bar .gg .hero__lede { margin: 0.8rem 0 1rem; font-size: 1.02rem; }
  html.has-cookie-bar .gg .hero__stats { margin-bottom: 0.9rem; }
  html.has-cookie-bar .gg .topbar__in { min-height: 50px; }
}
@media (max-width: 600px) {
  html.has-cookie-bar .gg .chips {
    padding-top: calc(1.8rem + var(--cookie-bar-space, 5.5rem) + 2.5rem);
  }
}
html.has-cookie-bar .gg .chips,
html.has-cookie-bar .gg .chip,
html.has-cookie-bar .gg .list__head,
html.has-cookie-bar #list-title,
html.has-cookie-bar #gifts {
  scroll-margin-bottom: calc(var(--cookie-bar-space, 5.5rem) + 0.5rem);
}

@media (max-width: 700px) {
  html.has-cookie-bar .contact-channel:nth-child(2) {
    margin-bottom: var(--cookie-bar-space, 5.5rem);
  }
}
@media (max-width: 330px) {
  html.has-cookie-bar .gg .hero {
    padding-bottom: calc(1.25rem + var(--cookie-bar-space, 5.5rem));
  }
}

@media (min-width: 331px) and (max-width: 389px) {
  html.has-cookie-bar .gg .hero { padding-top: 0.3rem; }
}
html.has-cookie-bar .filterbar .field,html.has-cookie-bar .filterbar select,html.has-cookie-bar .filterbar input{scroll-margin-bottom:calc(var(--cookie-bar-space,5.5rem) + 4.5rem)}

/* r4o: keep the homepage 3C Network badge and the /stories/ featured
   photo clear of the cookie bar on first paint. Bar look/copy unchanged. */

/* --- Homepage hero visual + badge ---
   The badge sits at bottom: 0 of .hero-visual, which is taller than the
   first screen. Cap the visual so its bottom (and the badge) stay above the bar. */
html.has-cookie-bar .hero .hero-visual {
  min-height: 0;
  max-height: calc(100svh - clamp(7.25rem, 13svh, 9rem) - var(--cookie-bar-space, 5.5rem) - 0.75rem);
}

/* Desktop: pull the copy down a little less so the featured chip stays
   above the bar on short first screens (1280x800). */
@media (min-width: 701px) {
  html.has-cookie-bar .hero .hero-copy {
    padding-top: 0;
    padding-bottom: 0.5rem;
  }
  html.has-cookie-bar .hero .fu2-featured {
    margin-top: 0.5rem;
  }
}

/* Phone: the featured chip was just barely under the bar at 360x800. */
@media (max-width: 700px) {
  html.has-cookie-bar .hero .fu2-featured {
    margin-top: 0;
  }
  html.has-cookie-bar .hero .hero-actions {
    margin-top: 0.5rem;
  }
}

/* --- /stories/ featured photo on stacked (phone/tablet) layout ---
   Tighten the heading block a bit, then cap the photo so its bottom edge
   sits above the bar. The quote under the photo stays in flow below. */
@media (max-width: 960px) {
  html.has-cookie-bar .stories-hero-grid {
    padding-top: 0.85rem;
    padding-bottom: calc(var(--cookie-bar-space, 5.5rem) + 0.75rem);
    gap: 0.85rem;
  }
  html.has-cookie-bar .stories-hero-copy {
    padding-bottom: 0;
  }
  html.has-cookie-bar .stories-hero-copy .eyebrow {
    margin-bottom: 0.45rem;
  }
  html.has-cookie-bar .stories-hero-copy .display-title {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }
  html.has-cookie-bar .stories-hero-copy .hero-deck {
    margin-top: 0.6rem;
    font-size: 1.02rem;
  }
  html.has-cookie-bar .stories-hero .hero-actions {
    margin-top: 0.7rem;
    gap: 0.5rem;
  }
  html.has-cookie-bar .stories-hero .hero-actions .button {
    min-height: 2.85rem;
    padding-block: 0.5rem;
  }
  html.has-cookie-bar .stories-hero-feature {
    grid-template-rows: minmax(0, auto) auto;
  }
  html.has-cookie-bar .stories-hero-feature figure,
  html.has-cookie-bar .stories-hero-feature figure img {
    min-height: 0;
  }
  /* header + bar + copy/padding budget after tightening */
  html.has-cookie-bar .stories-hero-feature figure {
    max-height: calc(100svh - var(--header-height, 5.2rem) - var(--cookie-bar-space, 5.5rem) - 24.2rem);
  }
}

/* r4p: desktop gift-guide CTA/toggle clearance. Shop-by-state is in flow;
   a little less top padding keeps it above the bar on short desktops.
   The snow toggle is absolutely placed just above the reserved space. */
@media (min-width: 980px) {
  html.has-cookie-bar .gg .hero {
    padding-top: calc(clamp(4.5rem, 7vw, 6rem) - 1.25rem);
  }
  html.has-cookie-bar .gg .snowtoggle {
    bottom: var(--cookie-clear, calc(var(--cookie-bar-space, 5.5rem) + 0.5rem));
  }
}
@media print{.cookie-bar{display:none}html.has-cookie-bar{padding-bottom:0;scroll-padding-bottom:0}}
.footer-legal{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem}
.footer-legal a,.footer-legal__btn{color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-decoration:underline;text-underline-offset:2px;background:none;border:0;padding:.35rem 0;min-height:24px;cursor:pointer}
.footer-legal a:hover,.footer-legal__btn:hover{color:#fff}
.footer-legal a:focus-visible,.footer-legal__btn:focus-visible{outline:2px solid var(--3c-commerce-orange,#f9a462);outline-offset:2px;color:#fff}
.cookie-bar__status{margin:0;flex-basis:100%;font-size:.88rem;opacity:.9}
.cookie-policy-btn{display:inline-block;margin:.25rem 0 1rem;padding:.55rem 1.1rem;border:2px solid currentColor;border-radius:4px;background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer}
html:not(.has-consent-js) [data-cookie-settings],html:not(.has-consent-js) [data-cookie-optout]{display:none!important}
