/*!
 * UI Design & Front-End Architecture by Woomark Studio
 * Exclusive theme developed for synergyo2.com
 */
/* ==================================================================
 * consent.css — cookie banner + "Cookie settings" panel
 * Markup is injected by wmkore/js/consent.js (no HTML needed in the pages).
 * Load after styles.css. Prefix: .wc- (Woomark consent).
 * Layers: banner 90 (under the bag drawer 100+), panel 130–131.
 * ================================================================== */

/* ============ BANNER (first layer) ============ */
.wc-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  width: min(440px, calc(100vw - 48px));
  padding: 22px 22px 20px;
  border-radius: var(--r);
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -18px rgba(6, 23, 51, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.55s var(--ease),
    visibility 0.45s,
    bottom 0.5s var(--ease);
}
.wc-banner.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
/* Product pages: stay above the sticky buy bar (same offset as the help button) */
body.has-sticky-buy .wc-banner {
  bottom: 108px;
}
.wc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font: 700 1.08rem/1.25 var(--head);
  color: var(--navy);
}
.wc-title i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue2);
  font-size: 0.95rem;
}
.wc-title em,
.wc-panel h2 em {
  font: italic 400 1.22em/1 var(--serif);
  color: var(--blue2);
  letter-spacing: 0;
}
.wc-text {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: none;
}
.wc-text a,
.wc-links a {
  color: var(--blue2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wc-text a:hover,
.wc-links a:hover {
  color: var(--blue);
}
.wc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wc-btn-wide {
  grid-column: 1 / -1;
}

/* Compact version of the site buttons (.btn) */
.wc-banner .wc-btn,
.wc-panel .wc-btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.72rem;
  gap: 8px;
  white-space: nowrap;
}
.wc-btn:hover {
  transform: translateY(-2px);
}
.wc-btn:focus-visible,
.wc-switch:focus-visible,
.wc-x:focus-visible,
.wc-panel:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.wc-panel:focus-visible {
  outline: none;
}

/* ============ PANEL (Customize / Cookie settings / Your Privacy Choices) ============ */
.wc-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(3, 16, 35, 0.55);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s;
}
.wc-overlay.show {
  opacity: 1;
  visibility: visible;
}
.wc-panel {
  position: fixed;
  z-index: 131;
  left: 50%;
  top: 50%;
  width: min(580px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 90px -20px rgba(3, 16, 35, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -46%);
  transition:
    opacity 0.35s var(--ease),
    transform 0.5s var(--ease),
    visibility 0.35s;
}
.wc-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}
body.wc-panel-on {
  overflow: hidden;
}
.wc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.wc-panel h2 {
  margin: 0;
  font: 700 1.3rem/1.2 var(--head);
  color: var(--navy);
}
.wc-x {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.05rem;
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.wc-x:hover {
  background: var(--mist);
  border-color: #b3c6dc;
}
.wc-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 24px 8px;
}
.wc-intro {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: none;
}
.wc-gpc {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f1f8e3;
  border: 1px solid #d5e8a8;
  color: #3f5600;
  font: 600 0.82rem/1.45 var(--body);
  max-width: none;
}
.wc-gpc i {
  margin-top: 2px;
  color: var(--green-h);
}
.wc-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wc-cat {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.wc-cat:first-child {
  border-top: 0;
}
.wc-cat-text {
  flex: 1;
  min-width: 0;
}
.wc-cat h3 {
  margin: 0 0 4px;
  font: 700 0.95rem/1.3 var(--head);
  color: var(--navy);
}
.wc-cat p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: none;
}
.wc-always {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--ice);
  color: var(--blue);
  font: 700 0.68rem/1 var(--head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Switch (same look as the Preferred switch of the bag drawer) */
.wc-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: -8px 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 24px;
}
.wc-knob {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 20px;
  background: #c9d6e4;
  transition: background 0.25s var(--ease);
}
.wc-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(6, 23, 51, 0.25);
  transition: transform 0.25s var(--ease);
}
.wc-switch[aria-checked="true"] .wc-knob {
  background: var(--blue2);
}
.wc-switch[aria-checked="true"] .wc-knob::after {
  transform: translateX(20px);
}
.wc-switch:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.wc-state {
  min-width: 24px;
  font: 700 0.72rem/1 var(--head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}
.wc-switch[aria-checked="true"] .wc-state {
  color: var(--blue2);
}
.wc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 6px 0 12px;
  font-size: 0.8rem;
}
.wc-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--mist);
  border-radius: 0 0 var(--r) var(--r);
}
.wc-toast:empty {
  display: none;
}

/* ============ FOOTER LINKS ============ */
/* "Cookie settings" and "Your Privacy Choices" (US only) live in .footer-bottom next to the policies */
/* The policy links are written without spaces (</a><a); inline-block lets the longer row wrap on small phones */
.footer-bottom a {
  display: inline-block;
}
.footer-bottom [data-consent-open] {
  cursor: pointer;
}
.footer-bottom [data-consent-open="dns"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-bottom [data-consent-open="dns"][hidden] {
  display: none;
}
/* Small opt-out icon next to the link (common US "privacy choices" pattern) */
.footer-bottom [data-consent-open="dns"]::before {
  content: "";
  width: 26px;
  height: 12px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 20px 6px, #fff 3.2px, transparent 3.6px),
    linear-gradient(90deg, var(--blue2) 50%, #fff 50%);
  border: 1px solid var(--blue2);
}
.footer-bottom [data-consent-open="dns"].is-honored::after {
  content: "Opt-out honored";
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(133, 178, 0, 0.18);
  color: #c9e57a;
  font-size: 0.68rem;
  font-weight: 600;
}

/* ============ HELP BUTTON vs BANNER (mobile) ============ */
@media (max-width: 620px) {
  body.wc-banner-on .help {
    bottom: calc(var(--wc-h, 0px) + 14px);
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 620px) {
  /* Banner = compact bar along the bottom, full width */
  .wc-banner,
  body.has-sticky-buy .wc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 16px 16px calc(14px + env(safe-area-inset-bottom));
    border-radius: var(--r) var(--r) 0 0;
    border-width: 1px 0 0;
  }
  .wc-title {
    font-size: 0.98rem;
    margin-bottom: 6px;
  }
  .wc-title i {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .wc-text {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .wc-actions {
    gap: 8px;
  }
  .wc-banner .wc-btn,
  .wc-panel .wc-btn {
    padding: 13px 10px;
  }
  /* Panel = bottom sheet */
  .wc-panel {
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: calc(100dvh - 40px);
    border-radius: var(--r) var(--r) 0 0;
    transform: translateY(40px);
  }
  .wc-panel.show {
    transform: none;
  }
  .wc-head {
    padding: 16px 16px 12px;
  }
  .wc-panel h2 {
    font-size: 1.12rem;
  }
  .wc-content {
    padding: 14px 16px 4px;
  }
  .wc-cat {
    gap: 12px;
  }
  .wc-state {
    display: none;
  }
  .wc-foot {
    grid-template-columns: 1fr 1fr;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    border-radius: 0;
  }
  .wc-save {
    grid-column: 1 / -1;
    order: -1;
  }
}
@media (max-width: 360px) {
  .wc-banner .wc-btn,
  .wc-panel .wc-btn {
    font-size: 0.66rem;
    letter-spacing: 0.03em;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .wc-banner,
  .wc-panel,
  .wc-overlay,
  .wc-knob,
  .wc-knob::after,
  .wc-btn {
    transition: none !important;
  }
  .wc-btn:hover {
    transform: none;
  }
}
