.cookie-consent[hidden], .cookie-dialog[hidden] { display: none !important; }
.cookie-consent .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cookie-consent { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; font-family: "Source Sans 3", Arial, sans-serif; }
.cookie-consent__backdrop { position: absolute; inset: 0; background: rgba(18,24,27,.58); backdrop-filter: blur(4px); }
.cookie-dialog { position: relative; z-index: 1; width: min(760px, 100%); max-height: calc(100svh - 48px); overflow-y: auto; padding: clamp(28px, 4vw, 48px); color: #404444; border: 1px solid rgba(64,68,68,.14); border-radius: 26px; background: rgba(250,250,249,.96); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.cookie-dialog h2 { margin: 0 0 14px; color: #b7193f; font-family: "Red Hat Display", Arial, sans-serif; font-size: clamp(30px, 4vw, 45px); font-weight: 400; line-height: 1.08; }
.cookie-dialog p { margin: 0; font-size: 16px; line-height: 1.45; }
.cookie-dialog a { color: #0f5baa; font-weight: 600; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.cookie-button { min-height: 48px; padding: 11px 16px; color: white; border: 0; border-radius: 999px; font: 600 14px "Source Sans 3", Arial, sans-serif; cursor: pointer; transition: filter .2s ease, transform .2s ease; }
.cookie-button:hover { filter: brightness(.92); transform: translateY(-2px); }
.cookie-button:focus-visible { outline: 3px solid #d8daab; outline-offset: 2px; }
.cookie-button--muted { background: #71868e; }
.cookie-button--blue { background: #075cad; }
.cookie-button--red { background: #b7193f; }
.cookie-dialog__close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: white; border: 0; border-radius: 50%; background: #71868e; font: 300 29px/1 Arial, sans-serif; cursor: pointer; }
.cookie-dialog__intro { padding-bottom: 18px; border-bottom: 1px solid rgba(64,68,68,.55); }
.cookie-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 14px 0 4px; }
.cookie-setting h3 { margin: 0 0 2px; color: #404444; font-size: 16px; font-weight: 700; line-height: 1.25; }
.cookie-setting p { max-width: 570px; font-size: 14px; line-height: 1.35; }
.cookie-switch { position: relative; display: inline-flex; margin-top: 3px; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-switch > span:first-of-type { position: relative; width: 46px; height: 25px; border-radius: 999px; background: #d72545; transition: background .2s ease; }
.cookie-switch > span:first-of-type::after { content: ""; position: absolute; width: 21px; height: 21px; left: 2px; top: 2px; border-radius: 50%; background: #f4f4f4; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s ease; }
.cookie-switch input:checked + span { background: #54c66a; }
.cookie-switch input:checked + span::after { transform: translateX(21px); }
.cookie-switch input:focus-visible + span { outline: 3px solid #0f5baa; outline-offset: 2px; }
.cookie-switch--locked { cursor: default; }
.cookie-setting--all { margin-top: 5px; padding-top: 14px; border-top: 1px solid rgba(64,68,68,.12); }
body.cookie-consent-open { overflow: hidden; }

@media (max-width: 680px) {
  .cookie-consent { align-items: end; padding: 12px; }
  .cookie-dialog { max-height: calc(100svh - 24px); padding: 28px 20px 22px; border-radius: 20px; }
  .cookie-dialog h2 { padding-right: 25px; }
  .cookie-actions { grid-template-columns: 1fr; gap: 9px; }
  .cookie-setting { gap: 14px; }
  .cookie-setting p { font-size: 13px; }
}
