.cookie-dialog-open { overflow: hidden; }
.cookie-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 24px;
  background: rgba(43, 35, 36, .34);
}
.cookie-dialog {
  width: min(42rem, 100%);
  max-height: min(86vh, 46rem);
  overflow: auto;
  padding: 26px;
  border: 1px solid #d8cec9;
  border-radius: 8px;
  color: #3f3734;
  background: #fff;
  box-shadow: 0 20px 60px rgba(43, 35, 36, .22);
  font-family: Arial, Helvetica, sans-serif;
}
.cookie-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.cookie-kicker { margin: 0 0 4px; color: #526b58; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cookie-dialog h2 { margin: 0; color: #87364f; font-family: Georgia, 'Times New Roman', serif; font-size: 1.65rem; line-height: 1.16; letter-spacing: 0; }
.cookie-close { width: 42px; height: 42px; flex: 0 0 42px; padding: 0; border: 1px solid #d8cec9; border-radius: 4px; color: #3f3734; background: #fff; font-size: 1.65rem; line-height: 1; cursor: pointer; }
.cookie-intro { margin: 18px 0 14px; color: #5e5552; font-size: .94rem; line-height: 1.55; }
.cookie-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 20px; }
.cookie-links a { color: #87364f; font-size: .84rem; font-weight: 700; text-underline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cookie-actions button {
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid #87364f;
  border-radius: 5px;
  font: 700 .87rem/1.25 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.cookie-choice { color: #fff; background: #87364f; }
.cookie-customize, .cookie-save { color: #87364f; background: #fff; }
.cookie-actions button:focus-visible, .cookie-close:focus-visible, .cookie-settings-link:focus-visible, .cookie-switch input:focus-visible + span { outline: 3px solid rgba(135, 54, 79, .34); outline-offset: 3px; }
.cookie-purpose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid #ded5cf; }
.cookie-purpose:last-of-type { border-bottom: 1px solid #ded5cf; }
.cookie-purpose strong { color: #3f3734; }
.cookie-purpose p { margin: 4px 0 0; color: #675f5d; font-size: .84rem; line-height: 1.5; }
.cookie-always { color: #50705e; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.cookie-switch { position: relative; display: block; width: 50px; height: 28px; flex: 0 0 auto; }
.cookie-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cookie-switch span { position: absolute; inset: 0; border: 1px solid #8d817c; border-radius: 999px; background: #ded8d4; cursor: pointer; transition: background .2s ease; }
.cookie-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22); transition: transform .2s ease; }
.cookie-switch input:checked + span { border-color: #50705e; background: #50705e; }
.cookie-switch input:checked + span::after { transform: translateX(22px); }
.cookie-settings-link { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 42rem) {
  .cookie-overlay { align-items: end; padding: 10px; }
  .cookie-dialog { max-height: 92vh; padding: 22px 18px; }
  .cookie-actions { grid-template-columns: 1fr; }
  .cookie-actions .cookie-refuse { order: 1; }
  .cookie-actions .cookie-customize, .cookie-actions .cookie-save { order: 2; }
  .cookie-actions .cookie-accept { order: 3; }
  .cookie-purpose { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-switch span, .cookie-switch span::after { transition: none; }
}
