/* =========================================================================
   House of Cookie — site styles
   Layered on top of Web Awesome theme tokens.
   ========================================================================= */

:root {
  --site-max-width: 1200px;
  --site-section-pad-y: calc(var(--wa-space-3xl) * 0.7);
  --site-radius: var(--wa-border-radius-l);

  /* Brand typography */
  --wa-font-family-heading: "Fraunces", "Playfair Display", Georgia, serif;
  --wa-font-family-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Fallback before scheme class (default Pink/Rosa) */
html:not([class*='site-scheme-']) {
  --site-cookie-cream: #fff7ef;
  --site-cookie-cocoa: #4a2f24;
  --site-cookie-rose: #f6d2cf;
  --site-surface-muted: #fff7ef;
  --site-brand-soft: var(--wa-color-brand);
  --site-shadow-rgb: 74 47 36;
  --site-body-gradient: linear-gradient(
    135deg,
    #fff5ec 0%,
    #fbe4d8 40%,
    #f6d4ca 75%,
    #f0c4be 100%
  );
}

html, body {
  min-height: 100%;
  padding: 0;
  margin: 0;
  color: var(--wa-color-text-normal);
  font-family: var(--wa-font-family-body);
}

body {
  background: var(--site-body-gradient);
  background-attachment: fixed;
  background-size: cover;
}

/* wa-page paints itself + every slotted child with --wa-color-surface-default
   (white) by default. Make it transparent so the body gradient shows through. */
wa-page {
  background-color: transparent !important;
}

wa-page::part(main-content),
wa-page::part(main-header),
wa-page::part(main-footer),
wa-page::part(body) {
  background-color: transparent;
}

/* Slotted regions (header / footer / main) — neutralise the slotted background
   and default padding, then re-apply our own where needed. */
.site-header:not(.is-stuck),
.site-header-placeholder,
.site-footer,
wa-page > main {
  background-color: transparent !important;
}

wa-page > main {
  padding: 0 !important;
  display: block !important;
}

.site-footer { background: var(--site-cookie-cocoa) !important; }

img { max-width: 100%; display: block; }

/* ---- Header --------------------------------------------------------- */

.site-header {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-max-width);
  margin-inline: auto;
  padding: var(--wa-space-2xl) var(--wa-space-xl) calc(var(--wa-space-m) + 26px);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  min-height: clamp(4.5rem, 12vw, 5.5rem);
}

.site-header-bar {
  width: auto;
  max-width: calc(100% - 7rem);
  margin-inline: 0 0;
  margin-inline-start: auto;
  background: white;
  border-radius: 9999px;
  padding-block: var(--wa-space-m);
  padding-inline: var(--wa-space-2xl);
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--wa-space-l);
  overflow: visible;
  box-shadow: 0 10px 30px rgb(var(--site-shadow-rgb) / 0.10),
              0 2px 6px rgb(var(--site-shadow-rgb) / 0.06);
}

.site-header .site-brand {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 10px;
  background: white;
  border-radius: 0;
  box-shadow: 0 10px 30px rgb(var(--site-shadow-rgb) / 0.10),
              0 2px 6px rgb(var(--site-shadow-rgb) / 0.06);
  text-decoration: none;
  color: var(--site-cookie-cocoa);
}

.site-brand-logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: clamp(3.71rem, 9.45vw, 5.74rem);
  max-width: min(24.3rem, 74vw);
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.site-logo-footer {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 0;
  background: white;
  object-fit: contain;
  padding: 0.6rem;
  display: block;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .site-header {
    padding-block: calc(var(--wa-space-m) * 1.613) calc(var(--wa-space-s) * 1.613);
    padding-inline: var(--wa-space-m);
    min-height: 0;
    max-width: var(--site-max-width);
  }

  .site-header .site-brand {
    left: var(--wa-space-m);
    padding: 9px;
  }

  .site-header-bar {
    max-width: calc(100% - 7.5rem);
  }

  .site-brand-logo {
    height: 3.85rem;
    max-width: 11.45rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-block: calc(var(--wa-space-s) * 1.613);
    padding-inline: var(--wa-space-s);
    max-width: var(--site-max-width);
  }

  .site-header .site-brand {
    left: var(--wa-space-s);
    padding: 8px;
  }

  .site-header-bar {
    max-width: calc(100% - 6.5rem);
  }

  .site-brand-logo {
    height: 3.43rem;
    max-width: 9.9rem;
  }
}

.site-nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--wa-space-l);
  margin-inline-start: auto;
}

.site-nav-link {
  color: var(--site-cookie-cocoa);
  text-decoration: none;
  font-weight: var(--wa-font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--wa-font-size-s);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
  color: var(--site-accent, var(--wa-color-brand));
  border-bottom-color: var(--site-accent, var(--wa-color-brand));
}

.site-nav-mobile-delivery {
  display: none;
}

.site-nav-toggle {
  display: none;
  margin-inline-start: auto;
}

@media (max-width: 900px) {
  .site-nav-desktop { display: none; }

  .site-header-bar {
    padding: 0.5rem 0.55rem 0.5rem 1.15rem;
    min-height: 0;
    gap: 0.65rem;
    align-items: center;
    box-shadow: 0 6px 18px rgb(var(--site-shadow-rgb) / 0.08),
                0 1px 4px rgb(var(--site-shadow-rgb) / 0.05);
  }

  .site-nav-mobile-delivery {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-size: 0.75rem;
    line-height: 1;
    letter-spacing: 0.06em;
    padding: 0;
    margin: 0;
    white-space: nowrap;
  }

  .site-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
    height: 1.9rem;
    width: 1.9rem;
  }

  .site-nav-toggle::part(base) {
    height: 1.9rem;
    min-height: 1.9rem;
    max-height: 1.9rem;
    width: 1.9rem;
    min-width: 1.9rem;
    padding: 0.1rem;
    line-height: 1;
  }

  .site-nav-toggle wa-icon { font-size: 1.2rem; }
}

@media (max-width: 520px) {
  .site-header-bar {
    padding: 0.45rem 0.5rem 0.45rem 1rem;
    gap: 0.55rem;
  }

  .site-nav-mobile-delivery {
    font-size: 0.7rem;
  }

  .site-nav-toggle {
    height: 1.75rem;
    width: 1.75rem;
  }

  .site-nav-toggle::part(base) {
    height: 1.75rem;
    min-height: 1.75rem;
    max-height: 1.75rem;
    width: 1.75rem;
    min-width: 1.75rem;
  }

  .site-nav-toggle wa-icon { font-size: 1.1rem; }
}

/* Sticky compact header (wa-page header sticky disabled via disable-sticky="header") */
.site-header-placeholder {
  display: block;
  width: 100%;
  height: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

wa-page.site-header-stuck::part(header) {
  overflow: visible;
}

.site-header.is-stuck {
  --site-header-stuck-pad-y: var(--wa-space-s);
  --site-header-stuck-pad-x: max(
    var(--wa-space-xl),
    calc((100% - var(--site-max-width)) / 2 + var(--wa-space-xl))
  );
  --site-header-stuck-min-h: 3.25rem;
  --site-header-stuck-logo-h: 2.6rem;
  --site-header-stuck-logo-max-w: 8rem;
  --site-header-stuck-brand-pad: 6px;
  --site-header-stuck-bar-pad: var(--wa-space-2xs) var(--wa-space-l);

  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: var(--site-header-stuck-min-h);
  box-sizing: border-box;
  overflow: visible;
  padding: max(var(--site-header-stuck-pad-y), env(safe-area-inset-top, 0px))
           var(--site-header-stuck-pad-x)
           var(--site-header-stuck-pad-y);
  background-color: #fff !important;
  box-shadow: 0 6px 18px rgb(var(--site-shadow-rgb) / 0.08),
              0 1px 4px rgb(var(--site-shadow-rgb) / 0.05);
  justify-content: space-between;
  align-items: center;
  gap: var(--wa-space-m);
}

@media (prefers-reduced-motion: no-preference) {
  .site-header.is-stuck {
    animation: site-header-stuck-in 0.22s ease both;
  }

  @keyframes site-header-stuck-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

.site-header.is-stuck .site-brand {
  position: static;
  transform: none;
  padding: var(--site-header-stuck-brand-pad);
  background: transparent;
  box-shadow: none;
}

.site-header.is-stuck .site-brand-logo {
  height: var(--site-header-stuck-logo-h);
  max-width: var(--site-header-stuck-logo-max-w);
}

.site-header.is-stuck .site-header-bar {
  max-width: none;
  margin-inline-start: auto;
  background: transparent;
  box-shadow: none;
  padding: var(--site-header-stuck-bar-pad);
  min-height: 0;
}

@media (max-width: 900px) {
  .site-header.is-stuck {
    --site-header-stuck-pad-y: var(--wa-space-m);
    --site-header-stuck-pad-x: max(
      var(--wa-space-m),
      calc((100% - var(--site-max-width)) / 2 + var(--wa-space-m))
    );
    --site-header-stuck-min-h: 3.5rem;
    --site-header-stuck-logo-h: 2.7rem;
    --site-header-stuck-logo-max-w: 7.5rem;
    --site-header-stuck-brand-pad: 5px;
    --site-header-stuck-bar-pad: 0.35rem 0.45rem 0.35rem 1rem;
  }
}

@media (max-width: 520px) {
  .site-header.is-stuck {
    --site-header-stuck-pad-x: max(
      var(--wa-space-s),
      calc((100% - var(--site-max-width)) / 2 + var(--wa-space-s))
    );
    --site-header-stuck-min-h: 3.35rem;
    --site-header-stuck-logo-h: 2.4rem;
    --site-header-stuck-logo-max-w: 6.5rem;
    --site-header-stuck-brand-pad: 4px;
    --site-header-stuck-bar-pad: 0.3rem 0.4rem 0.3rem 0.85rem;
  }
}

/* ---- Sections + containers ----------------------------------------- */

.site-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-inline: auto;
  padding-inline: var(--wa-space-xl);
}

.site-section {
  padding-block: var(--site-section-pad-y);
}

.site-section + .site-section { border-top: 1px solid rgb(var(--site-shadow-rgb) / 0.06); }

.site-section-tinted {
  background: rgba(200, 200, 200, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
}

/* Cream, floating "card" section — used to break the gradient and let
   editorial content (bestsellers etc.) sit on a clean surface. */
.site-section-card {
  background: var(--site-cookie-cream);
  margin-top: 20px;
  margin-bottom: 20px;
  margin-inline: var(--wa-space-xl);
  border-radius: var(--site-radius, 1.5rem);
  box-shadow: 0 18px 40px rgb(var(--site-shadow-rgb) / 0.08);
}

.site-section-card + .site-section { border-top: 0; }

@media (max-width: 720px) {
  .site-section-card {
    margin-inline: var(--wa-space-m);
    border-radius: 1rem;
  }
}

.site-section-title {
  font-family: var(--wa-font-family-heading);
  font-size: var(--wa-font-size-2xl);
  margin: 0 0 var(--wa-space-l);
  color: var(--site-cookie-cocoa);
  letter-spacing: -0.01em;
}

.site-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--wa-font-size-s);
  color: var(--wa-color-brand);
  font-weight: var(--wa-font-weight-bold);
  margin: 0 0 var(--wa-space-2xs);
}

/* ---- Hero ----------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(17rem, 59.5vh, 34rem);
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--wa-color-brand) 30%, transparent) 0%,
    color-mix(in oklab, var(--site-cookie-rose) 80%, transparent) 100%),
    var(--site-cookie-cream);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero[data-image] {
  background-image:
    linear-gradient(135deg, rgba(40, 20, 12, 0.55) 0%, rgba(40, 20, 12, 0.7) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
  color: white;
}

.hero--video {
  color: white;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(40, 20, 12, 0.55) 0%, rgba(40, 20, 12, 0.7) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--site-max-width);
  margin-inline: auto;
  padding: var(--wa-space-3xl) var(--wa-space-xl);
}

@media (prefers-reduced-motion: reduce) {
  .hero--video .hero__video {
    display: none;
  }

  .hero--video .hero__media {
    background-image:
      linear-gradient(135deg, rgba(40, 20, 12, 0.55) 0%, rgba(40, 20, 12, 0.7) 100%),
      var(--hero-poster, none);
    background-size: cover;
    background-position: center;
  }
}

.hero-title {
  font-family: var(--wa-font-family-heading);
  font-size: clamp(1.6rem, 4.8vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 var(--wa-space-m);
  letter-spacing: -0.02em;
  color: #fff8ee;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, var(--wa-font-size-l));
  max-width: 38rem;
  margin: 0 0 var(--wa-space-xl);
}

.hero-actions {
  --hero-btn-scale: 0.8;
  display: flex;
  gap: var(--wa-space-s);
  flex-wrap: wrap;
}

.hero-actions wa-button {
  height: calc(70px * var(--hero-btn-scale));
}

.hero-actions wa-button::part(base) {
  font-size: calc(1rem * var(--hero-btn-scale));
  padding-inline: calc(var(--wa-space-xl) * var(--hero-btn-scale));
}

.hero-actions wa-button wa-icon {
  font-size: calc(1.125rem * var(--hero-btn-scale));
}

.hero-cta-secondary { width: calc(220px * var(--hero-btn-scale)); }

@media (max-width: 720px) {
  /* Hero */
  .hero {
    min-height: clamp(calc(17rem * 0.765), calc(59.5vh * 0.765), calc(34rem * 0.765));
  }

  .hero-inner { padding: var(--wa-space-xl) var(--wa-space-l); }
  .hero-title { font-size: clamp(1.35rem, 6vw, 1.8rem); line-height: 1.1; }
  .hero-lead  { font-size: 0.875rem; line-height: 1.5; }
  .hero-actions { gap: var(--wa-space-xs); }
  .hero-actions wa-button { height: calc(44px * var(--hero-btn-scale)); }
  .hero-actions wa-button::part(base) {
    font-size: calc(0.8125rem * var(--hero-btn-scale));
    padding-inline: calc(var(--wa-space-m) * var(--hero-btn-scale));
  }
  .hero-cta-secondary { width: auto; }

  /* Section titles + eyebrows */
  .site-section-title { font-size: 1.5rem; margin-bottom: var(--wa-space-m); }
  .site-eyebrow { font-size: 0.7rem; letter-spacing: 0.16em; }

  /* Bestsellers */
  .bestseller-list { gap: var(--wa-space-2xl); }
  .bestseller-item-name { font-size: 1.25rem; }
  .bestseller-item-desc { font-size: 0.9rem; line-height: 1.35; }

  /* Generic outlined / default wa-buttons in body content */
  .site-section wa-button:not([size])::part(base) {
    font-size: 0.8125rem;
    padding-inline: var(--wa-space-m);
  }

  /* Section padding tighter on mobile so content fits above-the-fold */
  .site-section { padding-block: calc(var(--wa-space-2xl) * 0.7); }
}

.hero-cta-secondary::part(base) {
  background: var(--site-cookie-cream);
  color: var(--site-cookie-cocoa);
  border-color: transparent;
  box-shadow: 0 10px 24px rgb(var(--site-shadow-rgb) / 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-cta-secondary:hover::part(base),
.hero-cta-secondary:focus-visible::part(base) {
  background: white;
  box-shadow: 0 14px 30px rgb(var(--site-shadow-rgb) / 0.32);
  transform: translateY(-1px);
}

.hero-cta-secondary::part(start) { color: var(--wa-color-brand); }

/* ---- Bestseller list (editorial zig-zag) --------------------------- */

.bestseller-list {
  display: flex;
  flex-direction: column;
  gap: var(--wa-space-3xl);
}

.bestseller-item {
  display: flex;
  align-items: center;
  gap: var(--wa-space-3xl);
}

.bestseller-item.is-reversed { flex-direction: row-reverse; }

.bestseller-item-image,
.bestseller-item-body { flex: 1 1 0; min-width: 0; }

.bestseller-item-image {
  display: flex;
  justify-content: center;
}

.bestseller-item-image img {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  /* Photos shot on near-white backgrounds blend into the page */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 12px rgb(var(--site-shadow-rgb) / 0.45));
  transition: transform 0.4s ease;
  transform-origin: center;
  will-change: transform;
}

.bestseller-item-image img:hover {
  transform: rotate(-30deg);
}

@media (prefers-reduced-motion: reduce) {
  .bestseller-item-image img,
  .bestseller-item-image img:hover {
    transition: none;
    transform: none;
  }
}

.bestseller-item-body {
  max-width: 32rem;
}

.bestseller-item-name {
  font-family: var(--wa-font-family-heading);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: var(--site-cookie-cocoa);
  margin: 0 0 var(--wa-space-s);
  display: flex;
  align-items: baseline;
  gap: var(--wa-space-2xs);
  flex-wrap: wrap;
  line-height: 1.15;
}

.bestseller-vegan-icon {
  color: var(--wa-color-success);
  font-size: 1.05em;
  flex-shrink: 0;
  transform: translateY(0.1em);
}

.bestseller-vegan-label {
  font-weight: 400;
  color: var(--wa-color-text-quiet);
  font-size: 0.75em;
  font-style: italic;
}

.bestseller-item-desc {
  margin: 0;
  color: var(--site-cookie-cocoa);
  line-height: 1.65;
  font-size: var(--wa-font-size-m);
}

@media (max-width: 760px) {
  .bestseller-item,
  .bestseller-item.is-reversed {
    flex-direction: column;
    gap: var(--wa-space-m);
    text-align: center;
  }
  .bestseller-item-name { justify-content: center; }
  .bestseller-item-image img { max-width: 11rem; }
}

/* ---- Cards / Grids -------------------------------------------------- */

.cookie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wa-space-l);
}

@media (min-width: 640px) {
  .cookie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cookie-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

wa-card.cookie-card {
  --inner-padding: var(--wa-space-l);
  background: white;
  height: 100%;
}

/* ~30% smaller than full card width; centered in media slot */
.cookie-card-media {
  position: relative;
  width: 70%;
  max-width: 100%;
  margin-inline: auto;
}

.cookie-card-media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  display: block;
  border-radius: var(--site-radius);
}

.cookie-card-info {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--site-cookie-cocoa);
  box-shadow: 0 2px 8px rgb(var(--site-shadow-rgb) / 0.18);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cookie-card-info wa-icon {
  font-size: 0.85rem;
}

.cookie-card-info:hover,
.cookie-card-info:focus-visible {
  background: white;
  color: var(--wa-color-brand);
  transform: scale(1.05);
  outline: none;
}

.cookie-card-tooltip::part(body),
.delivery-pick-tooltip::part(body) {
  max-width: 16rem;
  line-height: 1.45;
  font-size: 0.82rem;
}

.cookie-card-title {
  font-family: var(--wa-font-family-heading);
  font-size: var(--wa-font-size-l);
  margin: 0 0 var(--wa-space-2xs);
  color: var(--site-cookie-cocoa);
}

.cookie-card-desc {
  margin: 0 0 var(--wa-space-s);
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-s);
  line-height: 1.55;
}

.cookie-card-price {
  font-size: var(--wa-font-size-l);
  font-weight: var(--wa-font-weight-bold);
  color: var(--wa-color-brand);
  letter-spacing: 0.02em;
}

/* ---- Category nav (menu page) -------------------------------------- */

.menu-sticky-nav {
  background: rgba(255, 247, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(var(--site-shadow-rgb) / 0.08);
  padding-block: var(--wa-space-s);
}

.menu-sticky-nav .wa-cluster {
  max-width: var(--site-max-width);
  margin-inline: auto;
  padding-inline: var(--wa-space-xl);
  justify-content: center;
}

/* ---- Split (story / catering) -------------------------------------- */

.feature-split {
  display: grid;
  gap: var(--wa-space-2xl);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .feature-split { grid-template-columns: 1fr 1fr; }
  .feature-split.is-reversed > :first-child { order: 2; }
}

.feature-split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--site-radius);
}

/* ---- Footer --------------------------------------------------------- */

.site-footer {
  background: var(--site-cookie-cocoa);
  color: white;
  padding: var(--wa-space-2xl) var(--wa-space-xl) var(--wa-space-m);
}

.site-footer a { color: white; text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer h4 {
  margin: 0 0 var(--wa-space-s);
  font-family: var(--wa-font-family-heading);
  font-size: var(--wa-font-size-m);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer-grid {
  width: 100%;
  max-width: var(--site-max-width);
  margin-inline: auto;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: var(--wa-space-2xl);
}

.site-footer-bottom {
  max-width: var(--site-max-width);
  margin: var(--wa-space-2xl) auto 0;
  padding-top: var(--wa-space-m);
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  opacity: 0.7;
}

.site-footer .site-brand,
.site-footer .site-brand wa-icon { color: white; }

/* Footer brand column */
.site-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--wa-space-2xs);
}

.site-footer-title {
  font-family: "Pacifico", "Caveat Brush", "Brush Script MT", cursive;
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0;
  margin-top: var(--wa-space-s);
  color: white;
  line-height: 1;
}

.site-footer-tagline {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--wa-space-m);
}

/* Footer social buttons — circular outline icon buttons */
.site-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wa-space-2xs);
}

.site-footer-social {
  --size: 2.5rem;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white !important;
  opacity: 1 !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer-social wa-icon {
  font-size: 1.05rem;
  color: white;
}

.site-footer-social:hover,
.site-footer-social:focus-visible {
  background: white;
  border-color: white;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.site-footer-social:hover wa-icon,
.site-footer-social:focus-visible wa-icon {
  color: var(--site-cookie-cocoa);
}

/* ---- Locations ------------------------------------------------------ */

.location-card { background: white; }
.location-card h3 {
  margin: 0 0 var(--wa-space-2xs);
  font-family: var(--wa-font-family-heading);
  color: var(--site-cookie-cocoa);
}
.location-hours { font-size: var(--wa-font-size-s); }
.location-hours dt { font-weight: var(--wa-font-weight-semibold); float: left; clear: both; min-width: 7rem; }
.location-hours dd { margin: 0 0 0 7rem; color: var(--wa-color-text-quiet); }

/* ---- Press ---------------------------------------------------------- */

.press-card {
  background: white;
  height: 100%;
}
.press-card blockquote {
  margin: 0;
  font-family: var(--wa-font-family-heading);
  font-size: var(--wa-font-size-m);
  color: var(--site-cookie-cocoa);
  line-height: 1.45;
}
.press-card cite {
  display: block;
  margin-top: var(--wa-space-s);
  color: var(--wa-color-text-quiet);
  font-style: normal;
  font-size: var(--wa-font-size-s);
}

/* ---- Forms ---------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: var(--wa-space-2xl);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 2fr 1fr; }
}

.contact-info dt { font-weight: var(--wa-font-weight-bold); margin-top: var(--wa-space-m); }
.contact-info dd { margin: 0; color: var(--wa-color-text-quiet); }

/* ---- Investor page (direct-link only) ----------------------------- */

.investor-opportunities.wa-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: var(--wa-space-l);
  align-items: stretch;
}

.investor-opportunities wa-card h3 {
  margin-block: var(--wa-space-s) var(--wa-space-2xs);
}

.investor-opportunities wa-card p {
  margin: 0;
  color: var(--wa-color-text-quiet);
  line-height: 1.6;
}

/* ---- Misc ----------------------------------------------------------- */

a { color: var(--wa-color-brand); }
h1, h2, h3, h4 { font-family: var(--wa-font-family-heading); color: var(--site-cookie-cocoa); }

/* Delivery hours callout (shop + cart) */
.delivery-hours-callout {
  --wa-color-brand-fill-quiet: color-mix(in srgb, var(--site-cookie-cream) 88%, white);
  --wa-color-brand-border-quiet: color-mix(in srgb, var(--wa-color-brand) 28%, transparent);
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  border-radius: var(--wa-border-radius-l);
  box-shadow: 0 2px 14px rgb(var(--site-shadow-rgb) / 0.08);
}

.delivery-hours-callout::part(icon) {
  color: var(--wa-color-brand);
  font-size: 1.15em;
}

.delivery-hours-callout::part(message) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--wa-font-size-s);
  line-height: 1.45;
  color: var(--site-cookie-cocoa);
  white-space: nowrap;
}

.delivery-hours-callout strong {
  font-family: var(--wa-font-family-heading);
  font-weight: var(--wa-font-weight-semibold);
}

.delivery-hours-callout__time {
  font-weight: var(--wa-font-weight-bold);
  color: var(--wa-color-brand);
  letter-spacing: 0.02em;
}

.delivery-hours-callout--closed {
  --wa-color-warning-fill-quiet: color-mix(in srgb, var(--site-cookie-rose) 70%, white);
  --wa-color-warning-border-quiet: color-mix(in srgb, var(--site-cookie-cocoa) 15%, transparent);
}

.delivery-hours-callout--closed::part(icon) {
  color: var(--site-cookie-cocoa);
}

.delivery-hours-callout--closed .delivery-hours-callout__time {
  color: var(--site-cookie-cocoa);
}

/* Hide tooltip copy until Web Awesome hydrates (loader delay on production). */
wa-tooltip:not(:defined) {
  display: none !important;
}

/* ---- Delivery shop --------------------------------------------------- */

/* ~40% less button padding across delivery shop */
.delivery-shop wa-button::part(base) {
  min-height: 2rem;
  padding-block: 0.35rem;
  padding-inline: 0.7rem;
  font-size: 0.82rem;
}

.delivery-shop wa-button[size="s"]::part(base) {
  min-height: 1.85rem;
  padding-block: 0.28rem;
  padding-inline: 0.55rem;
  font-size: 0.78rem;
}

/* Attached card tabs (Cookies / Cookie Boxes) */
.delivery-shop-tabs {
  --indicator-color: transparent;
  --track-color: transparent;
  --track-width: 0;
  display: block;
  min-width: 0;
}

.delivery-shop-tabs::part(nav) {
  margin-bottom: 0;
}

.delivery-shop-tabs::part(tabs) {
  border-bottom: none;
  gap: var(--wa-space-s);
  padding-inline: 0;
  align-items: flex-end;
}

.delivery-shop-tabs::part(body) {
  padding: 0;
}

.delivery-shop-tabs wa-tab-panel {
  --padding: 0;
}

.delivery-shop-tabs wa-tab::part(base) {
  min-height: 2.85rem;
  padding: 0.85rem 1.9rem;
  border: 2px solid color-mix(in srgb, var(--site-cookie-cocoa) 18%, transparent);
  border-bottom: none;
  border-radius: var(--wa-border-radius-l) var(--wa-border-radius-l) 0 0;
  background: var(--site-surface-muted);
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-m);
  font-weight: var(--wa-font-weight-semibold);
  font-family: var(--wa-font-family-heading);
  letter-spacing: 0.03em;
  line-height: 1.15;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) {
  .delivery-shop-tabs wa-tab:not([active]):not([disabled])::part(base):hover {
    background: color-mix(in srgb, var(--site-surface-muted) 85%, white);
    color: var(--site-cookie-cocoa);
    border-color: color-mix(in srgb, var(--wa-color-brand) 35%, transparent);
  }
}

.delivery-shop-tabs wa-tab[active]::part(base) {
  min-height: 3.1rem;
  padding: 0.95rem 2.15rem;
  padding-bottom: calc(0.95rem + 2px);
  margin-bottom: -2px;
  border: 2px solid color-mix(in srgb, var(--wa-color-brand) 45%, transparent);
  border-bottom: none;
  background: var(--site-cookie-cream, #fff);
  color: var(--site-cookie-cocoa);
  font-size: var(--wa-font-size-l);
  font-weight: var(--wa-font-weight-bold);
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.delivery-shop-tabs wa-tab:focus-visible::part(base) {
  outline: var(--wa-focus-ring);
  outline-offset: 2px;
}

.delivery-shop-tabs .delivery-card--tabbed {
  border-top: none;
  border-radius: 0 var(--wa-panel-border-radius) var(--wa-panel-border-radius) var(--wa-panel-border-radius);
  margin-top: 0;
  box-shadow: var(--wa-shadow-s);
}

.delivery-shop-tabs .delivery-card--tabbed .delivery-card-title {
  margin-top: 0;
}

.delivery-shop-main {
  min-width: 0;
  padding-inline: 0;
}

.delivery-shop--browse.has-cart-bar {
  padding-bottom: 5.5rem;
}

.delivery-box-added-dialog {
  --width: min(22rem, 92vw);
}

.delivery-box-added-dialog__text .delivery-box-added-total {
  display: block;
  margin-top: 0.35rem;
  font-weight: var(--wa-font-weight-bold);
  color: var(--site-cookie-cocoa);
}

.delivery-box-full-tooltip {
  --max-width: 11rem;
  font-size: 0.72rem;
}

.delivery-box-added-dialog__text {
  margin: 0;
  color: var(--wa-color-text-quiet);
  line-height: 1.5;
  font-size: var(--wa-font-size-m);
}

.delivery-cart-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: var(--wa-space-s) var(--wa-space-m);
  padding-bottom: max(var(--wa-space-s), env(safe-area-inset-bottom));
  pointer-events: none;
}

.delivery-cart-bar__link {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--wa-space-m);
  max-width: 28rem;
  margin-inline: auto;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--site-cart-bar-bg, var(--wa-color-brand));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgb(var(--site-shadow-rgb) / 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.delivery-cart-bar__link:hover,
.delivery-cart-bar__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgb(var(--site-shadow-rgb) / 0.32);
  outline: none;
}

.delivery-cart-bar__icon-wrap {
  position: relative;
  display: inline-flex;
  font-size: 1.35rem;
  line-height: 1;
}

.delivery-cart-bar__badge {
  position: absolute;
  top: -0.4rem;
  right: -0.55rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.25rem;
  border-radius: 999px;
  background: var(--site-cart-badge-bg, var(--site-cookie-cocoa));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delivery-cart-bar__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.delivery-cart-bar__label {
  font-weight: var(--wa-font-weight-bold);
  font-size: var(--wa-font-size-m);
}

.delivery-cart-bar__sub {
  font-size: 0.68rem;
  color: rgb(255 255 255 / 0.92);
  font-weight: var(--wa-font-weight-normal);
  line-height: 1.25;
}

.delivery-cart-bar__total {
  font-size: var(--wa-font-size-m);
  font-weight: var(--wa-font-weight-bold);
}

.delivery-cart-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wa-space-l);
  align-items: start;
}

@media (min-width: 900px) {
  .delivery-cart-page-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  }
}

.delivery-card {
  --inner-padding: var(--wa-space-l);
  --wa-color-surface-default: var(--site-cookie-cream, #fff);
  background-color: var(--site-cookie-cream, #fff);
}

.delivery-card-title {
  margin: 0;
  font-family: var(--wa-font-family-heading);
}

.delivery-card-lead {
  margin-top: var(--wa-space-2xs);
  color: var(--wa-color-text-quiet);
}

.delivery-cookie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: var(--wa-space-m);
  align-items: stretch;
}

.delivery-card .delivery-cookie-card {
  --inner-padding: var(--wa-space-m);
  --spacing: var(--wa-space-m);
  --delivery-cookie-header-h: clamp(7.7rem, 41.8vw, 10.2rem);
  --delivery-cookie-img-scale: 150%;
  --delivery-cookie-img-lift: 40%;
  --delivery-cookie-img-max-h: 16rem;
  --delivery-cookie-surface: var(--site-cookie-cream, #fff);
  --wa-color-surface-default: var(--delivery-cookie-surface);
  --wa-color-surface-border: color-mix(in srgb, var(--site-cookie-cocoa, #4a2f24) 12%, transparent);
  --wa-panel-border-width: 1px;
  --wa-shadow-s: none;
  height: 100%;
  background-color: var(--delivery-cookie-surface);
  border: 1px solid var(--wa-color-surface-border);
  border-radius: var(--wa-panel-border-radius);
  overflow: hidden;
}

/* Card header: cookie integrated at top, upper half clipped by card edge */
.delivery-cookie-card::part(header) {
  position: relative;
  z-index: 0;
  padding: 0;
  margin: 0;
  border: none;
  background-color: var(--delivery-cookie-surface);
  overflow: hidden;
  min-height: var(--delivery-cookie-header-h);
  max-height: var(--delivery-cookie-header-h);
}

.delivery-cookie-header {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--delivery-cookie-surface);
}

/* Hero cookie: wide, lifted into top edge, lower portion visible in header */
.delivery-cookie-header img {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--delivery-cookie-img-scale);
  max-width: none;
  height: auto;
  max-height: var(--delivery-cookie-img-max-h);
  object-fit: contain;
  object-position: center top;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 18px rgb(var(--site-shadow-rgb) / 0.12));
  transform: translateX(-50%) translateY(calc(-1 * var(--delivery-cookie-img-lift)));
  pointer-events: none;
}

.delivery-cookie-card::part(body) {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  margin-top: 0;
  padding-top: var(--wa-space-2xs);
  background-color: var(--delivery-cookie-surface);
}

.delivery-cookie-card::part(footer) {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding-block: var(--wa-space-s);
  padding-inline: var(--wa-space-m);
  border-block-start: none;
  background-color: var(--delivery-cookie-surface);
}

.delivery-cookie-card h3 {
  margin: 0 0 var(--wa-space-2xs);
  font-family: var(--wa-font-family-heading);
  font-size: var(--wa-font-size-m);
  font-weight: var(--wa-font-weight-bold);
  text-align: center;
  color: var(--site-cookie-cocoa);
}

.delivery-cookie-desc {
  margin: 0 0 var(--wa-space-s);
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--wa-color-text-quiet);
  text-align: center;
}

.delivery-cookie-price {
  display: flex;
  justify-content: center;
  margin: var(--wa-space-xs) 0 var(--wa-space-s);
}

.delivery-cookie-card .js-add-cookie::part(base) {
  min-height: 1.35rem;
  padding-block: 0.1rem;
  padding-inline: 0.45rem;
  font-size: 0.65rem;
  line-height: 1.1;
  gap: 0.2rem;
}

.delivery-cookie-card .js-add-cookie wa-icon {
  font-size: 0.6rem;
}

.delivery-box-size-row {
  margin-bottom: var(--wa-space-m);
  flex-wrap: wrap;
}

.delivery-box-size-wrap {
  position: relative;
  display: inline-block;
  padding-top: 0.4rem;
  padding-inline-end: 0.5rem;
}

.delivery-box-size-btn::part(base) {
  min-width: 11rem;
  padding-inline: 0.75rem 1.35rem;
  white-space: nowrap;
  overflow: visible;
}

.delivery-box-size-btn::part(label) {
  overflow: visible;
  text-overflow: clip;
}

.delivery-box-size-label {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .delivery-box-size-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--wa-space-s);
  }

  .delivery-box-size-wrap {
    display: block;
    min-width: 0;
    padding-top: 0.35rem;
    padding-inline-end: 0.5rem;
  }

  .delivery-box-size-btn {
    width: 100%;
    max-width: 100%;
  }

  .delivery-box-size-btn::part(base) {
    width: 100%;
    min-width: 0;
    min-height: 2rem;
    padding-block: 0.28rem;
    padding-inline: 0.45rem;
    font-size: 0.78rem;
    justify-content: center;
    overflow: visible;
  }

  .delivery-box-size-btn::part(label) {
    overflow: visible;
    max-width: 100%;
  }

  .delivery-box-disc-badge {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.52rem;
  }
}

.delivery-box-disc-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--site-brand-soft, var(--wa-color-brand));
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgb(var(--site-shadow-rgb) / 0.2);
  pointer-events: none;
  z-index: 2;
}

.delivery-box-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wa-space-l);
}

@media (min-width: 900px) {
  .delivery-box-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.95fr);
    align-items: start;
  }

  .delivery-box-pick,
  .delivery-box-preview {
    min-width: 0;
  }
}

.delivery-mini-title {
  font-size: var(--wa-font-size-s);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--wa-font-weight-semibold);
  margin: 0 0 var(--wa-space-s);
}

.delivery-box-pick {
  min-width: 0;
}

.delivery-box-pick-grid {
  --delivery-pick-slot-min: 8rem;
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(var(--delivery-pick-slot-min), calc((100% - 3 * var(--wa-space-s)) / 4)), 1fr)
  );
  gap: var(--wa-space-s);
  max-height: 24rem;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0.15rem;
  align-items: stretch;
}

.delivery-pick-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
}

.delivery-pick-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) min-content;
  align-items: stretch;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 0.35rem;
  border: 1px solid rgb(var(--site-shadow-rgb) / 0.14);
  border-radius: var(--wa-border-radius-m);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.delivery-pick-card:hover,
.delivery-pick-card:focus-visible {
  border-color: var(--wa-color-brand);
  box-shadow: 0 4px 12px rgb(var(--site-shadow-rgb) / 0.1);
  outline: none;
}

.delivery-pick-card__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--wa-border-radius-m) - 3px);
}

/* Corner badge: flush with card top-right, radius merges into card */
.delivery-pick-card > .cookie-card-info {
  top: 0;
  right: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0;
  border-top-right-radius: var(--wa-border-radius-m);
  border-bottom-left-radius: 999px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.9);
}

.delivery-pick-card .cookie-card-info wa-icon {
  font-size: 0.72rem;
}

.delivery-pick-card > .cookie-card-info:hover,
.delivery-pick-card > .cookie-card-info:focus-visible {
  transform: none;
  background: rgba(255, 255, 255, 0.98);
}

.delivery-pick-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.delivery-pick-card__title {
  margin-top: 0.3rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgb(var(--site-shadow-rgb) / 0.08);
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--site-cookie-cocoa, #4a2f24);
  font-weight: 600;
  display: block;
  min-height: 1.35rem;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-box-visual {
  position: relative;
  width: min(100%, 20rem);
  margin: 0 auto var(--wa-space-s);
  aspect-ratio: var(--box-aspect, 1);
}

@media (max-width: 520px) {
  .delivery-box-visual {
    width: min(85%, calc(20rem * 0.85));
  }
}

.delivery-box-visual__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.delivery-box-slots {
  position: absolute;
  inset: var(--slot-inset-top, 14%) var(--slot-inset-x, 11%) var(--slot-inset-bottom, 12%) var(--slot-inset-x, 11%);
  display: grid;
  grid-template-columns: repeat(var(--slot-cols, 2), minmax(0, 1fr));
  grid-template-rows: repeat(var(--slot-rows, 2), minmax(0, 1fr));
  gap: var(--slot-gap-y, var(--slot-gap, 5%)) var(--slot-gap-x, var(--slot-gap, 5%));
  margin: 0;
}

.delivery-box-visual--4 {
  --box-aspect: 1 / 1;
  --slot-cols: 2;
  --slot-rows: 2;
  --slot-inset-top: 9%;
  --slot-inset-x: 10%;
  --slot-inset-bottom: 9%;
  --slot-gap: 3%;
}

.delivery-box-visual--6 {
  --box-aspect: 500 / 708;
  --slot-cols: 2;
  --slot-rows: 3;
  --slot-inset-top: 11%;
  --slot-inset-x: 12%;
  --slot-inset-bottom: 11%;
  --slot-gap-y: 11.1%;
  --slot-gap-x: 6.5%;
  --slot-cookie-size: 123%;
}

.delivery-box-visual--6 .delivery-box-slot img {
  object-fit: contain;
}

.delivery-box-visual--6 .delivery-box-slot.is-filled:hover,
.delivery-box-visual--6 .delivery-box-slot.is-filled:focus-visible {
  transform: scale(1.03);
}

.delivery-box-visual--9 {
  --box-aspect: 4 / 5;
  --slot-cols: 3;
  --slot-rows: 3;
  --slot-inset-top: 19%;
  --slot-inset-x: 9%;
  --slot-inset-bottom: 17%;
  --slot-gap: 3%;
}

.delivery-box-visual--12 {
  --box-aspect: 500 / 667;
  --slot-cols: 3;
  --slot-rows: 4;
  --slot-inset-top: 7%;
  --slot-inset-x: 7%;
  --slot-inset-bottom: 8%;
  --slot-gap-y: 1.8%;
  --slot-gap-x: 1%;
}

.delivery-box-visual--12 .delivery-box-slot img {
  object-fit: contain;
}

.delivery-box-visual--12 .delivery-box-slot.is-filled:hover,
.delivery-box-visual--12 .delivery-box-slot.is-filled:focus-visible {
  transform: scale(1.03);
}

.delivery-box-slot {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: default;
  font: inherit;
  overflow: hidden;
  pointer-events: none;
}

.delivery-box-slot.is-empty {
  pointer-events: auto;
  cursor: pointer;
}

.delivery-cookie-fly {
  position: fixed;
  z-index: 200;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 10px 28px rgb(var(--site-shadow-rgb) / 0.28);
  transition:
    left 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.12s ease;
}

.delivery-cookie-fly img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.delivery-pick-card.is-picking {
  opacity: 0.55;
  transform: scale(0.96);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.delivery-box-slot.is-filled.is-removing {
  opacity: 0;
  pointer-events: none;
}

.delivery-cookie-puff {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  border-radius: 50%;
}

.delivery-cookie-puff img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  transform-origin: center center;
}

.delivery-cookie-puff.is-active img {
  animation: delivery-cookie-puff-img 0.48s ease-out forwards;
}

.delivery-cookie-puff.is-active::before,
.delivery-cookie-puff.is-active::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--site-cookie-cream) 55%, white);
  animation: delivery-cookie-puff-ring 0.5s ease-out forwards;
}

.delivery-cookie-puff.is-active::after {
  inset: 0;
  background: color-mix(in srgb, var(--wa-color-brand) 18%, transparent);
  animation-duration: 0.42s;
}

@keyframes delivery-cookie-puff-img {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
    filter: blur(5px);
  }
}

@keyframes delivery-cookie-puff-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.65;
  }

  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-cookie-puff.is-active img,
  .delivery-cookie-puff.is-active::before,
  .delivery-cookie-puff.is-active::after {
    animation: none;
  }
}

.delivery-box-slot.is-filled {
  width: var(--slot-cookie-size, 92%);
  height: var(--slot-cookie-size, 92%);
  place-self: center;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}

.delivery-box-slot.is-filled:hover,
.delivery-box-slot.is-filled:focus-visible {
  outline: none;
  box-shadow: none;
  transform: scale(1.03);
}

.delivery-box-slot img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.delivery-box-visual--fallback .delivery-box-slots {
  position: static;
  inset: auto;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: var(--wa-space-xs);
  margin-bottom: var(--wa-space-s);
}

.delivery-box-visual--fallback.delivery-box-visual--9 .delivery-box-slots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.delivery-box-visual--fallback.delivery-box-visual--6 .delivery-box-slots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.delivery-box-visual--fallback.delivery-box-visual--12 .delivery-box-slots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

.delivery-box-visual--fallback {
  aspect-ratio: auto;
  width: 100%;
  max-width: none;
}

.delivery-box-visual--fallback .delivery-box-visual__bg {
  display: none;
}

.delivery-box-visual--fallback .delivery-box-slot {
  min-height: 5.3rem;
  border: 1px dashed rgb(var(--site-shadow-rgb) / 0.22);
  border-radius: var(--wa-border-radius-m);
  background: rgba(255, 255, 255, 0.9);
}

.delivery-box-visual--fallback .delivery-box-slot.is-filled {
  border-style: solid;
  border-color: color-mix(in oklab, var(--wa-color-brand) 35%, transparent);
  box-shadow: none;
  outline: none;
  transform: none;
}

.delivery-box-visual--fallback .delivery-box-slot img {
  width: 2.1rem;
  height: 2.1rem;
  margin: auto;
}

.delivery-box-summary {
  margin-bottom: var(--wa-space-s);
  color: var(--wa-color-text-quiet);
  text-align: center;
}

.delivery-box-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--wa-space-s);
}

.delivery-box-actions #add-box-to-cart {
  width: fit-content;
}

.delivery-box-price-badge {
  font-size: var(--wa-font-size-m);
  font-weight: var(--wa-font-weight-bold);
}

.delivery-box-price-badge::part(base) {
  padding: 0.4rem 0.85rem;
  min-height: 2.1rem;
}

.delivery-cart-empty {
  color: var(--wa-color-text-quiet);
}

.delivery-cart-lines {
  display: grid;
  gap: var(--wa-space-s);
}

.delivery-cart-line {
  display: flex;
  align-items: flex-start;
  gap: var(--wa-space-s);
  border: 1px solid rgb(var(--site-shadow-rgb) / 0.14);
  border-radius: var(--wa-border-radius-m);
  padding: 0.65rem;
}

.delivery-cart-line__thumb {
  position: relative;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--wa-border-radius-m);
  overflow: hidden;
  background: var(--site-cookie-cream);
  border: 1px solid rgb(var(--site-shadow-rgb) / 0.1);
}

.delivery-cart-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.delivery-cart-line__thumb--zoomable {
  cursor: zoom-in;
}

.delivery-cart-line__thumb--zoomable:focus-visible {
  outline: 2px solid var(--wa-color-brand);
  outline-offset: 2px;
}

.delivery-cart-line__zoom-icon {
  position: absolute;
  right: 0.18rem;
  bottom: 0.18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgb(var(--site-shadow-rgb) / 0.82);
  color: #fff;
  pointer-events: none;
  line-height: 0;
}

.delivery-cart-line__zoom-icon wa-icon {
  font-size: 0.58rem;
}

.delivery-image-lightbox {
  --width: min(92vw, 40rem);
}

.delivery-image-lightbox__figure {
  margin: 0;
  text-align: center;
}

.delivery-image-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 36rem);
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: var(--wa-border-radius-m);
}

.delivery-image-lightbox__caption {
  margin-top: var(--wa-space-s);
  font-size: var(--wa-font-size-m);
  font-weight: var(--wa-font-weight-semibold);
  color: var(--site-cookie-cocoa);
}

.delivery-cart-line__body {
  flex: 1;
  min-width: 0;
}

.delivery-cart-line h4 {
  margin: 0;
  font-size: 0.95rem;
}

.delivery-cart-line p {
  margin: 0.25rem 0 0;
  color: var(--wa-color-text-quiet);
  font-size: 0.85rem;
}

.delivery-cart-line__cookies {
  font-size: 0.8rem;
  line-height: 1.35;
}

.delivery-cart-line__price {
  font-weight: var(--wa-font-weight-semibold);
  color: var(--site-cookie-cocoa);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.delivery-cart-line__price-was {
  text-decoration: line-through;
  color: var(--wa-color-text-quiet);
  font-weight: var(--wa-font-weight-normal);
  font-size: 0.8rem;
}

.delivery-cart-line__price-now {
  color: var(--site-cookie-cocoa);
}

.delivery-cart-line-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  align-self: center;
}

.delivery-cart-line-actions > span {
  min-width: 0.9rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--wa-color-text-quiet);
}

.delivery-shop--cart .delivery-cart-line-actions wa-button::part(base) {
  min-height: 1.25rem;
  padding-block: 0.06rem;
  padding-inline: 0.32rem;
  font-size: 0.68rem;
  line-height: 1.1;
}

.delivery-shop--cart .delivery-cart-line-actions wa-button[data-act="dec"]::part(base),
.delivery-shop--cart .delivery-cart-line-actions wa-button[data-act="inc"]::part(base) {
  min-width: 1.4rem;
  padding-inline: 0.22rem;
}

.delivery-shop--cart .delivery-cart-line-actions wa-button[data-act="rm"]::part(base) {
  padding-inline: 0.38rem;
  font-size: 0.65rem;
}

.delivery-shop--cart .delivery-cart-line-actions wa-button[size="xs"]::part(base) {
  min-height: 1.2rem;
  padding-block: 0.05rem;
}

.delivery-cart-totals {
  margin-top: var(--wa-space-m);
  display: grid;
  gap: 0.35rem;
}

.delivery-cart-totals > div {
  display: flex;
  justify-content: space-between;
  color: var(--wa-color-text-quiet);
}

.delivery-cart-totals .is-total {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgb(var(--site-shadow-rgb) / 0.14);
  color: var(--site-cookie-cocoa);
  font-weight: var(--wa-font-weight-bold);
}

.delivery-card--compact {
  --inner-padding: var(--wa-space-m);
}

.delivery-card--compact .delivery-card-title {
  font-size: 1.1rem;
}

.delivery-checkout-form {
  display: grid;
  gap: var(--wa-space-s);
}

.delivery-checkout-form wa-input,
.delivery-checkout-form wa-textarea {
  --wa-form-control-padding-block: 0.55em;
  --wa-form-control-padding-inline: 0.75em;
  --wa-form-control-value-line-height: 1.35;
  --wa-form-control-height: round(
    calc(2 * var(--wa-form-control-padding-block) + 1em * var(--wa-form-control-value-line-height)),
    1px
  );
}

.delivery-checkout-form wa-textarea {
  --wa-form-control-height: 2.75rem;
}

.delivery-checkout-form wa-textarea.delivery-checkout-notes {
  --wa-form-control-height: 5.5rem;
}

.delivery-checkout-form wa-input::part(label),
.delivery-checkout-form wa-textarea::part(label) {
  font-size: var(--wa-font-size-s);
  margin-block-end: 0.35em;
}

.delivery-checkout-form wa-callout {
  font-size: var(--wa-font-size-s);
}

.delivery-checkout-location {
  display: flex;
  align-items: center;
  gap: var(--wa-space-2xs);
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-radius: var(--wa-border-radius-s);
  background: var(--wa-color-neutral-fill-quiet);
  font-size: var(--wa-font-size-xs);
  color: var(--wa-color-text-quiet);
  line-height: 1.35;
}

.delivery-checkout-location__icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--wa-color-brand);
}

.delivery-checkout-location__text {
  flex: 1;
  min-width: 0;
}

.delivery-checkout-location__label {
  font-weight: var(--wa-font-weight-semibold);
  color: var(--wa-color-text-normal);
  margin-inline-end: 0.35rem;
}

.delivery-checkout-location-map {
  margin-inline-start: 0.35rem;
  font-size: inherit;
  font-weight: var(--wa-font-weight-semibold);
}

.delivery-checkout-location #gps-clear-btn {
  flex-shrink: 0;
  margin: 0;
}

.delivery-shop--cart .delivery-cart-empty a {
  color: var(--wa-color-brand);
  font-weight: 600;
}

/* ---- Order confirmation ------------------------------------------------ */

.order-confirmation-page {
  display: grid;
  gap: var(--wa-space-l);
  max-width: 42rem;
}

.order-confirmation-card + .order-confirmation-card {
  margin-top: 0;
}

.order-confirmation-contact {
  flex-wrap: wrap;
  margin-top: var(--wa-space-s);
}

.order-confirmation-whatsapp::part(base) {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.order-confirmation-meta {
  margin: var(--wa-space-s) 0 0;
}

.order-confirmation-meta > div {
  display: grid;
  grid-template-columns: minmax(7rem, 34%) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgb(var(--site-shadow-rgb) / 0.14);
}

.order-confirmation-meta > div:last-child {
  border-bottom: 0;
}

.order-confirmation-meta dt {
  margin: 0;
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-s);
}

.order-confirmation-meta dd {
  margin: 0;
  font-size: var(--wa-font-size-s);
}

.order-confirmation-meta a {
  color: var(--wa-color-brand);
  font-weight: var(--wa-font-weight-semibold);
}

.order-confirmation-items {
  width: 100%;
  margin-top: var(--wa-space-s);
  border-collapse: collapse;
  font-size: var(--wa-font-size-s);
}

.order-confirmation-items th,
.order-confirmation-items td {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgb(var(--site-shadow-rgb) / 0.14);
  vertical-align: top;
}

.order-confirmation-items th {
  color: var(--wa-color-text-quiet);
  font-weight: var(--wa-font-weight-semibold);
  text-align: left;
}

.order-confirmation-items th.is-num,
.order-confirmation-items td.is-num {
  text-align: right;
  white-space: nowrap;
}

.order-confirmation-items strong {
  color: var(--site-cookie-cocoa);
}

.order-confirmation-item-detail {
  margin: 0.25rem 0 0;
  color: var(--wa-color-text-quiet);
  font-size: 0.8rem;
  line-height: 1.35;
}
