/* ===== WDS Cookie Consent Banner ===== */
:root {
  /* Match contact page: --dark (#231F20) + form column treatment */
  --wds-cc-accent: #C0392B;
  --wds-cc-bg: #231F20;
  --wds-cc-bg-light: rgba(255, 255, 255, 0.08);
  --wds-cc-text: #ffffff;
  --wds-cc-text-muted: rgba(255, 255, 255, 0.55);
  --wds-cc-border: rgba(255, 255, 255, 0.12);
  --wds-cc-radius: 10px;
}

/* ── Banner ── */
.wds-cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999990;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12)),
    var(--wds-cc-bg);
  color: var(--wds-cc-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  display: none;
}

.wds-cc-banner--visible {
  display: block;
}

.wds-cc-banner--bottom { bottom: 0; }
.wds-cc-banner--top    { top: 0; box-shadow: 0 4px 24px rgba(0,0,0,.3); }

.wds-cc-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.wds-cc-banner__text {
  flex: 1 1 500px;
  font-size: 13px;
  color: var(--wds-cc-text-muted);
}

.wds-cc-banner__text a {
  color: var(--wds-cc-accent);
  text-decoration: underline;
}

.wds-cc-banner__text a:hover {
  color: #fff;
}

.wds-cc-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.wds-cc-btn {
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}

.wds-cc-btn:focus-visible {
  outline: 2px solid var(--wds-cc-accent);
  outline-offset: 2px;
}

.wds-cc-btn--accept {
  background: var(--wds-cc-accent);
  color: #fff;
}

.wds-cc-btn--accept:hover {
  background: #A93226;
}

.wds-cc-btn--reject {
  background: transparent;
  border: 1px solid var(--wds-cc-border);
  color: var(--wds-cc-text);
}

.wds-cc-btn--reject:hover {
  border-color: var(--wds-cc-text);
}

.wds-cc-btn--manage {
  background: transparent;
  border: 1px solid var(--wds-cc-border);
  color: var(--wds-cc-text-muted);
}

.wds-cc-btn--manage:hover {
  color: var(--wds-cc-text);
  border-color: var(--wds-cc-text);
}

/* ── Preferences Modal Overlay ── */
.wds-cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999995;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wds-cc-modal-overlay--visible {
  display: flex;
}

/* ── Modal ── */
.wds-cc-modal {
  background:
    radial-gradient(circle at top left, rgba(192, 57, 43, 0.1), transparent 42%),
    var(--wds-cc-bg);
  border-radius: var(--wds-cc-radius);
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--wds-cc-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}

.wds-cc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--wds-cc-border);
  flex-shrink: 0;
}

.wds-cc-modal__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.wds-cc-modal__close {
  background: none;
  border: none;
  color: var(--wds-cc-text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
}

.wds-cc-modal__close:hover,
.wds-cc-modal__close:focus-visible {
  color: var(--wds-cc-text);
  background: var(--wds-cc-bg-light);
}

.wds-cc-modal__close:focus-visible {
  outline: 2px solid var(--wds-cc-accent);
  outline-offset: 2px;
}

.wds-cc-modal__body {
  overflow-y: auto;
  padding: 18px 22px;
  flex: 1 1 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--wds-cc-border) transparent;
}

/* ── Category Card ── */
.wds-cc-category {
  border: 1px solid var(--wds-cc-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.wds-cc-category:last-child {
  margin-bottom: 0;
}

.wds-cc-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wds-cc-category__name {
  font-size: 14px;
  font-weight: 700;
}

.wds-cc-category__badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--wds-cc-accent);
  background: rgba(192, 57, 43, .12);
  padding: 2px 8px;
  border-radius: 4px;
}

.wds-cc-category__desc {
  font-size: 12px;
  color: var(--wds-cc-text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Toggle (reused pattern) ── */
.wds-cc-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.wds-cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
  z-index: 1;
}

.wds-cc-toggle input:disabled {
  cursor: not-allowed;
}

.wds-cc-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--wds-cc-border);
  border-radius: 11px;
  transition: background .2s;
  pointer-events: none;
}

.wds-cc-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}

.wds-cc-toggle input:checked + .wds-cc-toggle__track {
  background: var(--wds-cc-accent);
}

.wds-cc-toggle input:checked + .wds-cc-toggle__track::after {
  transform: translateX(18px);
}

.wds-cc-toggle input:focus-visible + .wds-cc-toggle__track {
  outline: 2px solid var(--wds-cc-accent);
  outline-offset: 2px;
}

/* ── Modal Footer ── */
.wds-cc-modal__footer {
  padding: 14px 22px;
  border-top: 1px solid var(--wds-cc-border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.wds-cc-modal__footer .wds-cc-btn {
  flex: 1 1 0;
  text-align: center;
}

/* ── Floating Trigger Button ── */
.wds-cc-trigger {
  position: fixed;
  right: 20px;
  z-index: 999989;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--wds-cc-accent);
  background: var(--wds-cc-bg);
  color: var(--wds-cc-accent);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 0;
  line-height: 1;
}

.wds-cc-trigger--visible {
  display: flex;
}

.wds-cc-trigger--bottom { bottom: 80px; }
.wds-cc-trigger--top    { top: 80px; }

.wds-cc-trigger:hover,
.wds-cc-trigger:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}

.wds-cc-trigger:focus-visible {
  outline: 3px solid var(--wds-cc-accent);
  outline-offset: 3px;
}

.wds-cc-trigger svg {
  width: 22px;
  height: 22px;
}

/* ── Reopener link (footer / inline) ── */
.wds-cc-reopen {
  cursor: pointer;
  color: var(--wds-cc-accent);
  background: none;
  border: none;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
}

.wds-cc-reopen:hover {
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .wds-cc-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .wds-cc-banner__actions {
    justify-content: stretch;
  }

  .wds-cc-banner__actions .wds-cc-btn {
    flex: 1;
    text-align: center;
  }

  .wds-cc-modal {
    max-width: 100%;
  }

  .wds-cc-modal__footer {
    flex-direction: column;
  }
}
