/* VÉRA Consent Banner & Settings Modal
   Palette borrowed from style.css (lavender / dark plum / cream).
   No CSS variable dependency — works on every page even before site CSS loads. */

.vc-banner,
.vc-overlay,
.vc-footer-mini {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.vc-banner *,
.vc-overlay * { box-sizing: border-box; }

/* ── Bottom banner ──────────────────────────────────────────────────────── */

.vc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  /* Frosted-glass: page content shows through, blurred for readability. */
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: #2d1b4e;
  border: 1px solid rgba(140, 108, 164, 0.28);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(45, 27, 78, 0.18);
  padding: 20px 24px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
}
/* Fallback for browsers without backdrop-filter (older Firefox): keep it
   semi-transparent but bump opacity for legibility. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vc-banner { background: rgba(255, 255, 255, 0.96); }
}
.vc-banner--show {
  transform: translateY(0);
  opacity: 1;
}
.vc-banner__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.vc-banner__text { flex: 1 1 380px; min-width: 0; }
.vc-banner__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #2d1b4e;
}
.vc-banner__body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a3a6a;
}
.vc-banner__link {
  color: #8c6ca4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vc-banner__link:hover { color: #6b4fa0; }

.vc-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ── Buttons (shared) ───────────────────────────────────────────────────── */

.vc-btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
}
.vc-btn:active { transform: translateY(1px); }
.vc-btn:focus-visible { outline: 2px solid #8c6ca4; outline-offset: 2px; }

.vc-btn--primary {
  background: #2D1340;
  color: #ffffff;
  border-color: #2D1340;
}
.vc-btn--primary:hover { background: #1a0a28; border-color: #1a0a28; }

.vc-btn--ghost {
  background: #ffffff;
  color: #2D1340;
  border-color: rgba(45, 19, 64, 0.35);
}
.vc-btn--ghost:hover { background: rgba(45, 19, 64, 0.06); color: #1a0a28; }

/* ── Overlay + modal ────────────────────────────────────────────────────── */

.vc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(45, 27, 78, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.vc-overlay--show { opacity: 1; }

.vc-modal {
  background: #ffffff;
  color: #2d1b4e;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(45, 27, 78, 0.35);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 24px;
  position: relative;
}
.vc-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #8c6ca4;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
}
.vc-modal__close:hover { background: rgba(140, 108, 164, 0.12); color: #2d1b4e; }
.vc-modal__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #2d1b4e;
}
.vc-modal__intro {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a3a6a;
  margin: 0 0 18px;
}

.vc-cat {
  border: 1px solid rgba(140, 108, 164, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: rgba(140, 108, 164, 0.04);
}
.vc-cat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.vc-cat__name { font-size: 14.5px; color: #2d1b4e; }
.vc-cat__lock {
  font-size: 11.5px;
  font-weight: 600;
  color: #8c6ca4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vc-cat__desc {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #5b4a78;
}

/* iOS-style toggle */
.vc-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}
.vc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.vc-toggle__slider {
  position: absolute;
  inset: 0;
  background: #d4cce0;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.vc-toggle__slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.vc-toggle input:checked + .vc-toggle__slider { background: #6b4fa0; }
.vc-toggle input:checked + .vc-toggle__slider::before { transform: translateX(18px); }
.vc-toggle input:focus-visible + .vc-toggle__slider { outline: 2px solid #8c6ca4; outline-offset: 2px; }

.vc-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(140, 108, 164, 0.18);
}

/* ── Social icons (injected into every page footer via js/social.js) ────── */

.social-icons{display:flex;justify-content:center;gap:12px;margin-bottom:12px}
.social-icon{display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  border:1px solid rgba(45,19,64,.22);color:#5b4a78;
  transition:border-color .18s ease,color .18s ease}
.social-icon:hover{border-color:#7A5C96;color:#7A5C96}
.social-icon svg{width:18px;height:18px}
/* Dark footer variant (index page .footer) */
.footer .social-icon{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.55)}
.footer .social-icon:hover{border-color:rgba(255,255,255,.7);color:#fff}

/* ── Shared minimal page footer ─────────────────────────────────────────── */
/* Visually consistent with the rich .footer on index.html — dark plum
   background, muted white text. Used on pages without a rich footer
   (checkout, thankyou, privacy, terms, delivery). */

.site-footer-line {
  background: #41193F; /* --clr-dark-plum */
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 28px 20px 32px;
  margin-top: 48px;
  font-size: 13px;
  line-height: 1.8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.site-footer-line a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.18s ease, color 0.18s ease;
}
.site-footer-line a:hover { opacity: 1; color: rgba(255, 255, 255, 0.9); }
.site-footer-line a:focus-visible { outline: 2px solid #DEC6AE; outline-offset: 2px; border-radius: 2px; }
.site-footer-line__sep { opacity: 0.35; margin: 0 4px; }

/* Avoid the mobile sticky checkout bar covering the footer */
@media (max-width: 720px) {
  .site-footer-line { padding-bottom: 104px; }
}

/* ── Footer rows (.pg-footer / .ftr) — links row, then copyright row ───── */
.pg-footer__links,
.ftr__links {
  display: block;
  margin-bottom: 12px;
}
.pg-footer__copy,
.ftr__copy {
  display: block;
}

/* ── Mobile tweaks ──────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .vc-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 18px 18px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .vc-banner__inner { gap: 14px; }
  .vc-banner__actions {
    width: 100%;
    justify-content: stretch;
  }
  .vc-banner__actions .vc-btn { flex: 1 1 0; }
  .vc-banner__actions .vc-btn--ghost[data-vc-action="settings"] {
    flex-basis: 100%;
    order: 3;
  }

  .vc-modal {
    padding: 28px 18px 18px;
    max-height: 92vh;
  }
  .vc-modal__title { font-size: 19px; }
  .vc-modal__actions .vc-btn { flex: 1 1 0; }
}
