.footer .privacy-settings-link {
  color: var(--cream);
  font: 10px/1.5 var(--font-measured);
  opacity: 0.76;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer .privacy-settings-link:hover,
.footer .privacy-settings-link:focus-visible {
  color: var(--pink);
  opacity: 1;
}

.thank-you-footer .privacy-settings-link {
  color: #f3f1e9;
  font: 11px/1.5 Montserrat, Arial, sans-serif;
  opacity: 0.78;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-settings-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

#cgdp-privacy-panel {
  position: fixed;
  z-index: 10000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(390px, calc(100vw - 32px));
  max-height: min(78vh, 640px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgb(46 56 38 / 22%);
  border-radius: 18px;
  background: #f3f1e9;
  box-shadow: 0 12px 40px rgb(15 22 12 / 30%);
  color: #1a1f16;
  font: 13px/1.55 Montserrat, Arial, sans-serif;
}

#cgdp-privacy-panel[hidden] {
  display: none !important;
}

.cgdp-privacy-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cgdp-privacy-panel-heading h2 {
  margin: 0 0 10px;
  color: #2e3826;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

#cgdp-privacy-panel p {
  margin: 0 0 10px;
}

#cgdp-privacy-panel .cgdp-privacy-separate {
  color: #48503f;
  font-size: 11px;
}

#cgdp-privacy-panel .cgdp-privacy-status {
  margin: 12px 0;
  color: #48503f;
  font-size: 11px;
}

.cgdp-privacy-toggle {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  color: #2e3826;
  font-weight: 600;
}

.cgdp-privacy-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2e3826;
}

.cgdp-privacy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

#cgdp-privacy-panel button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #2e3826;
  border-radius: 999px;
  background: transparent;
  color: #2e3826;
  cursor: pointer;
  font: 600 11px/1 Montserrat, Arial, sans-serif;
}

#cgdp-privacy-panel button[data-cgdp-preference="accept"] {
  border-color: #2e3826;
  background: #2e3826;
  color: #ffc3f6;
}

#cgdp-privacy-panel button.cgdp-privacy-save {
  grid-column: 1 / -1;
  background: #e5e1d6;
}

#cgdp-privacy-panel button.cgdp-privacy-close {
  display: grid;
  width: 32px;
  min-height: 32px;
  padding: 0;
  flex: 0 0 32px;
  place-items: center;
  border: 0;
  font-size: 22px;
}

#cgdp-privacy-panel button:hover {
  filter: brightness(0.96);
}

#cgdp-privacy-panel button:focus-visible,
.cgdp-privacy-toggle input:focus-visible {
  outline: 3px solid #2e3826;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  #cgdp-privacy-panel {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(390px, calc(100vw - 24px));
    padding: 18px;
  }
}
