.consent-banner[hidden], .consent-dialog:not([open]) { display: none; }

.consent-banner {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  width: min(560px, calc(100vw - 40px));
  padding: 28px;
  background: #a68d75;
  color: #fffdf8;
  box-shadow: 0 18px 60px rgba(25,24,23,.18);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

.consent-banner h2, .consent-dialog h2 { margin: 0; font-size: 27px; font-weight: 400; line-height: 1.05; }
.consent-banner p { margin: 18px 0 22px; font-size: 17px; line-height: 1.48; }
.consent-banner a { color: inherit; text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.consent-actions button, .consent-save {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
  color: #fffdf8;
  font: 600 14px/1.15 "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  cursor: pointer;
}
.consent-actions button:hover, .consent-actions button:focus-visible, .consent-save:hover, .consent-save:focus-visible { background: rgba(255,255,255,.13); outline: none; }

.consent-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  background: #ffffff;
  color: #191817;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}
.consent-dialog::backdrop { background: rgba(25,24,23,.46); }
.consent-dialog form { display: grid; max-height: inherit; grid-template-rows: auto 1fr auto; }
.consent-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 30px 20px; }
.consent-dialog header p { margin: 8px 0 0; color: #74716d; font-size: 15px; line-height: 1.4; }
.consent-close { width: 42px; height: 42px; flex: 0 0 auto; border: 0; background: #e7dfd5; color: #191817; font-size: 23px; cursor: pointer; }
.consent-options { overflow: auto; padding: 0 30px 14px; }
.consent-option { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(25,24,23,.14); }
.consent-option h3 { margin: 0 0 7px; font-size: 19px; font-weight: 500; }
.consent-option p { margin: 0; color: #5f5b56; font-size: 15px; line-height: 1.45; }
.consent-option input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: #b9404d; }
.consent-gpc { margin: 4px 0 14px; padding: 12px 14px; background: #e7dfd5; color: #5f5b56; font-size: 14px; line-height: 1.4; }
.consent-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 30px 28px; }
.consent-dialog footer a { color: #5f5b56; font-size: 14px; text-underline-offset: 3px; }
.consent-save { min-width: 170px; border: 0; background: #927760; color: #fffdf8; }
.consent-save:hover, .consent-save:focus-visible { background: #826951; }
.consent-status { position: fixed; z-index: 1001; left: 50%; bottom: 18px; padding: 10px 14px; background: #191817; color: #fffdf8; font: 14px/1.2 "Iowan Old Style", "Baskerville", "Times New Roman", serif; transform: translateX(-50%); }

@media (max-width: 640px) {
  .consent-banner { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: 22px; }
  .consent-banner h2, .consent-dialog h2 { font-size: 24px; }
  .consent-banner p { font-size: 16px; }
  .consent-actions { grid-template-columns: 1fr; }
  .consent-dialog header { padding: 24px 22px 18px; }
  .consent-options { padding: 0 22px 10px; }
  .consent-dialog footer { align-items: stretch; flex-direction: column; padding: 16px 22px 22px; }
  .consent-save { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .consent-banner { animation: consent-in .45s cubic-bezier(.22,.8,.22,1); }
  .consent-dialog[open] { animation: consent-in .35s cubic-bezier(.22,.8,.22,1); }
  @keyframes consent-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}
