/* All selectors are scoped so theme and WooCommerce controls stay unchanged. */
#fcc-root { display: none; }
#fcc-root, #fcc-root *, #fcc-manage-toggle { box-sizing: border-box; }
#fcc-root, #fcc-manage-toggle {
  --fcc-surface: linear-gradient(135deg, #11152c 0%, #393276 55%, #6267d8 100%);
  --fcc-ink: #fff;
  --fcc-muted: #f0f0fa;
  --fcc-border: #b1b4e0;
  --fcc-button: #69d3ff;
  --fcc-button-ink: #11152c;
  --fcc-hover: #dff6ff;
  --fcc-hover-ink: #11152c;
  --fcc-focus: #69d3ff;
  --fcc-shadow: rgba(17, 21, 44, .20);
  font-family: inherit;
}
#fcc-root[data-fcc-palette="forest"], #fcc-manage-toggle[data-fcc-palette="forest"] {
  --fcc-surface: linear-gradient(120deg, #f7f6f1 0%, #edf3e9 100%);
  --fcc-ink: #22372b;
  --fcc-muted: #425248;
  --fcc-border: #c6d6be;
  --fcc-button: #40664c;
  --fcc-button-ink: #fff;
  --fcc-hover: #b7bf1c;
  --fcc-hover-ink: #22372b;
  --fcc-focus: #40664c;
  --fcc-shadow: rgba(34, 55, 43, .18);
}
#fcc-root .fcc-banner {
  position: fixed;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: var(--theme-container-width, calc(100% - 32px));
  max-width: var(--theme-normal-container-max-width, 1320px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 24px 28px;
  color: var(--fcc-ink);
  background: var(--fcc-surface);
  border: 1px solid var(--fcc-border);
  border-radius: 18px;
  box-shadow: 0 14px 44px var(--fcc-shadow);
  font-family: inherit;
  text-align: start;
}
#fcc-root .fcc-bottom { bottom: max(18px, env(safe-area-inset-bottom)); }
#fcc-root .fcc-top { top: max(18px, env(safe-area-inset-top)); }
#fcc-root .fcc-content { flex: 1 1 0; min-width: 0; }
#fcc-root .fcc-title {
  color: var(--fcc-ink);
  margin: 0 0 9px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
}
#fcc-root .fcc-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 9px;
  border-radius: 50%;
  background: var(--fcc-button);
  vertical-align: 2px;
}
#fcc-root .fcc-text { color: var(--fcc-muted); font-size: 14px; line-height: 1.65; }
#fcc-root .fcc-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; }
#fcc-root .fcc-link {
  color: var(--fcc-ink);
  font-size: 13px;
  font-weight: 600;
  padding-block: 5px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#fcc-root .fcc-link:hover { text-decoration-thickness: 2px; }
#fcc-root .fcc-actions { display: flex; flex: 0 0 264px; flex-direction: column; gap: 10px; }
/* Accept and reject have identical weight, colour, dimensions and visibility. */
#fcc-root button.fcc-btn, #fcc-manage-toggle {
  appearance: none;
  background: var(--fcc-button) !important;
  color: var(--fcc-button-ink) !important;
  border: 1px solid var(--fcc-button) !important;
  box-shadow: none;
  min-height: 46px;
  padding: 12px 17px;
  margin: 0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
#fcc-root button.fcc-btn { width: 100%; }
#fcc-root button.fcc-btn:hover, #fcc-manage-toggle:hover {
  background: var(--fcc-hover) !important;
  color: var(--fcc-hover-ink) !important;
  border-color: var(--fcc-hover) !important;
}
#fcc-root :focus-visible, #fcc-manage-toggle:focus-visible, .fcc-manage-link:focus-visible {
  outline: 3px solid var(--fcc-focus, #40664c);
  outline-offset: 3px;
}
#fcc-root .fcc-banner:focus { outline: none; }
#fcc-root .fcc-choices { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 12px; }
#fcc-root .fcc-choices label { display: flex; align-items: center; gap: 8px; color: var(--fcc-ink); font-size: 14px; cursor: pointer; }
#fcc-root .fcc-choices input { width: 20px; height: 20px; margin: 0; accent-color: var(--fcc-button); }
#fcc-manage-toggle {
  position: fixed;
  z-index: 99998;
  left: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: calc(100% - 24px);
  min-height: 40px;
  padding: 9px 13px;
  font-size: 12px;
  box-shadow: 0 3px 15px var(--fcc-shadow);
}
#fcc-manage-toggle[hidden] { display: none !important; }
@media (max-width: 820px) {
  #fcc-root .fcc-banner { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px; }
  #fcc-root .fcc-actions { flex-basis: auto; flex-direction: row; flex-wrap: wrap; }
  #fcc-root button.fcc-btn { flex: 1 1 180px; width: auto; }
}
@media (max-width: 520px) {
  #fcc-root .fcc-banner { width: calc(100% - 20px); padding: 19px; border-radius: 14px; gap: 15px; }
  #fcc-root .fcc-bottom { bottom: max(10px, env(safe-area-inset-bottom)); }
  #fcc-root .fcc-top { top: max(10px, env(safe-area-inset-top)); }
  #fcc-root .fcc-title { font-size: 17px; }
  #fcc-root .fcc-text { font-size: 13px; line-height: 1.55; }
  #fcc-root .fcc-actions { flex-direction: column; }
  #fcc-root button.fcc-btn { flex-basis: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { #fcc-root button.fcc-btn, #fcc-manage-toggle { transition: none; } }
