/* codex-provenance: created-by="OpenAI Codex" date="2026-09-08" */
/* codex-provenance: last-edited-by="OpenAI Codex" date="2026-09-09" */
.privacy-controls {
  position: fixed;
  inset-inline: 0;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 75;
  display: grid;
  justify-items: center;
  padding: 0 16px;
  color: #f7f2e8;
  pointer-events: none;
}
.privacy-controls[hidden] { display: none; }
/* Checkout windows make the background inert. Do not leave an unclickable
   consent banner covering their payment controls; restore it on return. */
.privacy-controls[inert] { visibility: hidden; }
.privacy-prompt {
  width: min(100%, 720px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title actions" "description actions" "settings actions";
  gap: 8px 18px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: #191919;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  pointer-events: auto;
}
.privacy-prompt h2 { grid-area: title; }
.privacy-prompt > p { grid-area: description; }
.privacy-prompt > .privacy-actions { grid-area: actions; align-self: center; }
.privacy-prompt > .privacy-settings-link { grid-area: settings; }
.privacy-prompt h2, .privacy-dialog h2 { margin: 0; font-size: 1.1rem; }
.privacy-prompt p, .privacy-dialog p { margin: 0; color: #d3cdc2; line-height: 1.45; }
.privacy-prompt > p { font-size: 14px; }
.privacy-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.privacy-actions button, .privacy-settings-link, .privacy-dialog button { min-height: 44px; border-radius: 10px; font: inherit; cursor: pointer; }
.privacy-actions button { padding: 0 12px; border: 1px solid #f7f2e8; background: #f7f2e8; color: #171717; font-weight: 700; }
.privacy-settings-link { justify-self: start; border: 0; padding: 0; background: transparent; color: #f7f2e8; text-decoration: underline; }
.privacy-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid rgba(255,255,255,.25); border-radius: 16px; background: #171717; color: #f7f2e8; padding: 0; }
.privacy-dialog::backdrop { background: rgba(0,0,0,.62); }
.privacy-dialog form { display: grid; gap: 18px; padding: 22px; }
.privacy-option { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.15); }
.privacy-option:first-of-type { border-top: 0; }
.privacy-option label { font-weight: 700; }
.privacy-option p { grid-column: 1 / 2; }
.privacy-option input { align-self: center; width: 20px; height: 20px; accent-color: #f7f2e8; }
.privacy-option input:disabled { cursor: not-allowed; opacity: .6; }
.privacy-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.privacy-dialog button { border: 1px solid #f7f2e8; padding: 0 14px; background: transparent; color: #f7f2e8; }
.privacy-dialog button[type="submit"] { background: #f7f2e8; color: #171717; font-weight: 700; }
.privacy-signal-notice { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.08); }
.privacy-controls button:focus-visible, .privacy-dialog button:focus-visible, .privacy-dialog input:focus-visible { outline: 3px solid #f7f2e8; outline-offset: 3px; }
@media (max-width: 560px) {
  .privacy-controls { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding-inline: 10px; }
  .privacy-prompt { grid-template-columns: 1fr; grid-template-areas: "title" "description" "actions" "settings"; gap: 10px; padding: 14px; }
  .privacy-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-settings-link { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .privacy-controls, .privacy-prompt { scroll-behavior: auto; transition: none; animation: none; } }
