/* Cookie banner + preference tool (marketing pages only) */
.wf-cookie-banner-on { padding-bottom: 7.5rem; }

.wf-cookie-banner[hidden],
.wf-cookie-scrim[hidden],
.wf-cookie-panel[hidden] {
  display: none !important;
}

.wf-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
  background: var(--wf-white);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-md);
}

.wf-cookie-banner-copy { min-width: 0; }
.wf-cookie-title {
  margin: 0 0 4px;
  font-family: var(--wf-font-serif);
  font-size: 1.05rem;
  color: var(--wf-plum);
}
.wf-cookie-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--wf-muted);
  line-height: 1.5;
}
.wf-cookie-text a { color: var(--wf-plum); text-decoration: underline; }

.wf-cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.wf-cookie-btn { min-height: 44px; padding: 0 16px; font-size: 0.88rem; }
.wf-cookie-text-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--wf-plum);
  font: inherit;
  font-size: 0.86rem;
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
  padding: 0 8px;
}

.wf-cookie-scrim {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(58, 31, 43, 0.28);
}
.wf-cookie-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 220;
  width: min(32rem, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 22px 22px 18px;
  background: var(--wf-white);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-md);
}
.wf-cookie-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.wf-cookie-panel-title {
  margin: 0;
  font-family: var(--wf-font-serif);
  font-size: 1.35rem;
  color: var(--wf-plum);
}
.wf-cookie-close {
  appearance: none;
  border: 0;
  background: none;
  color: var(--wf-plum);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.wf-cookie-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wf-cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--wf-border);
}
.wf-cookie-label {
  display: block;
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--wf-plum);
  font-size: 0.92rem;
}
.wf-cookie-hint {
  display: block;
  margin: 0;
  font-size: 0.8rem;
  color: var(--wf-muted);
  line-height: 1.45;
}
.wf-cookie-lock {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wf-muted);
  padding-top: 2px;
}
.wf-cookie-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--wf-rose);
  flex: 0 0 auto;
}
.wf-cookie-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.wf-cookie-inline {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 720px) {
  .wf-cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .wf-cookie-banner-actions { justify-content: stretch; }
  .wf-cookie-banner-actions .wf-cookie-btn { flex: 1 1 auto; }
  .wf-cookie-banner-on { padding-bottom: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-cookie-panel { scroll-behavior: auto; }
}
