:root {
  --at-cookie-navy: #06111f;
  --at-cookie-card: rgba(8, 22, 40, .94);
  --at-cookie-cyan: #1ee7f2;
  --at-cookie-magenta: #f20b79;
  --at-cookie-text: #f7fbff;
  --at-cookie-muted: #aebed0;
}

.at-cookie-consent[hidden], .at-cookie-modal[hidden] { display: none !important; }
.at-cookie-modal-open { overflow: hidden; }
.at-cookie-consent { position: relative; z-index: 1085; }
.at-cookie-banner {
  position: fixed;
  left: max(24px, env(safe-area-inset-left));
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(420px, auto);
  gap: 20px;
  align-items: center;
  max-width: 1180px;
  margin-inline: auto;
  padding: 22px 24px;
  color: var(--at-cookie-text);
  background:
    radial-gradient(circle at 4% 12%, rgba(30, 231, 242, .10), transparent 30%),
    radial-gradient(circle at 94% 100%, rgba(242, 11, 121, .10), transparent 34%),
    var(--at-cookie-card);
  border: 1px solid rgba(76, 214, 235, .25);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255,255,255,.025) inset;
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  animation: atCookieEnter .34s cubic-bezier(.22,.72,.25,1) both;
}
.at-cookie-banner.is-leaving { animation: atCookieLeave .22s ease both; pointer-events: none; }
.at-cookie-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  color: var(--at-cookie-cyan); background: linear-gradient(145deg, rgba(30,231,242,.13), rgba(242,11,121,.11));
  border: 1px solid rgba(30,231,242,.22); box-shadow: 0 0 26px rgba(30,231,242,.08);
}
.at-cookie-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.at-cookie-copy h2, .at-cookie-preferences h2 { margin: 2px 0 6px; color: #fff; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.18; }
.at-cookie-copy p, .at-cookie-preferences > p { margin: 0; color: var(--at-cookie-muted); font-size: .94rem; line-height: 1.55; }
.at-cookie-copy .at-cookie-note { margin-top: 3px; font-size: .78rem; color: #8194aa; }
.at-cookie-eyebrow { color: var(--at-cookie-cyan); font-size: .67rem; font-weight: 800; letter-spacing: .16em; }
.at-cookie-policy, .at-cookie-policy-button { display: inline-block; margin-top: 7px; color: #d8e9f7; font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.at-cookie-policy:hover, .at-cookie-policy:focus-visible, .at-cookie-policy-button:hover { color: var(--at-cookie-cyan); }
.at-cookie-actions { display: grid; grid-template-columns: repeat(3, auto); gap: 9px; align-items: center; }
.at-cookie-button {
  min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 13px;
  font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase;
  cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.at-cookie-button:hover { transform: translateY(-1px); }
.at-cookie-button:active { transform: translateY(0); }
.at-cookie-button--primary { color: #fff; background: linear-gradient(112deg, var(--at-cookie-magenta), #a91dff); box-shadow: 0 10px 26px rgba(242,11,121,.22); }
.at-cookie-button--secondary { color: #eefaff; background: rgba(18,45,67,.82); border-color: rgba(30,231,242,.25); }
.at-cookie-button--text { color: #c7d9e7; background: transparent; border-color: rgba(255,255,255,.09); }
.at-cookie-button:focus-visible, .at-cookie-close:focus-visible, .at-cookie-toggle input:focus-visible + span, .at-footer-cookie-link:focus-visible, .at-cookie-policy-button:focus-visible { outline: 3px solid rgba(30,231,242,.65); outline-offset: 3px; }

.at-cookie-modal { position: fixed; inset: 0; z-index: 1090; display: grid; place-items: center; padding: 20px; }
.at-cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(1,7,14,.76); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: atCookieFade .2s ease both; }
.at-cookie-preferences {
  position: relative; width: min(590px, 100%); max-height: min(760px, calc(100dvh - 40px)); overflow-y: auto;
  padding: 28px; color: var(--at-cookie-text); background: linear-gradient(155deg, rgba(10,29,51,.99), rgba(5,14,27,.99));
  border: 1px solid rgba(30,231,242,.27); border-radius: 24px; box-shadow: 0 34px 90px rgba(0,0,0,.58), 0 0 42px rgba(30,231,242,.06);
  animation: atCookieModalEnter .28s cubic-bezier(.2,.75,.2,1) both;
}
.at-cookie-preferences header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.at-cookie-close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; color: #fff; background: rgba(255,255,255,.045); font-size: 1.65rem; cursor: pointer; }
.at-cookie-options { display: grid; gap: 10px; margin: 22px 0; }
.at-cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 82px; margin: 0; padding: 16px 17px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.035); color: #fff; cursor: pointer; }
.at-cookie-option div { display: grid; gap: 4px; }
.at-cookie-option strong { font-size: .96rem; }
.at-cookie-option small { color: var(--at-cookie-muted); line-height: 1.4; }
.at-cookie-required { flex: 0 0 auto; padding: 7px 10px; color: #79f5bd; background: rgba(49,211,139,.10); border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.at-cookie-toggle { position: relative; flex: 0 0 50px; width: 50px; height: 28px; }
.at-cookie-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.at-cookie-toggle span { position: absolute; inset: 0; border-radius: 999px; background: #24364a; border: 1px solid rgba(255,255,255,.12); transition: .2s ease; }
.at-cookie-toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #b4c0cb; box-shadow: 0 3px 8px rgba(0,0,0,.3); transition: .2s ease; }
.at-cookie-toggle input:checked + span { background: linear-gradient(100deg, #00aebe, var(--at-cookie-cyan)); }
.at-cookie-toggle input:checked + span::after { transform: translateX(22px); background: #fff; }
.at-cookie-save { width: 100%; }
.at-footer-cookie-link, .at-cookie-policy-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.at-footer-cookie-link { color: inherit; }
.at-footer-cookie-link:hover { color: var(--at-cookie-cyan); }
.at-cookie-policy-page { min-height: 70vh; padding: clamp(110px, 12vw, 150px) 0 80px; color: #d8e5f1; background: radial-gradient(circle at 80% 12%, rgba(30,231,242,.06), transparent 30%), #07111f; }
.at-cookie-policy-page .at-container { max-width: 860px; }
.at-cookie-policy-page h1 { margin: 8px 0 24px; color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }
.at-cookie-policy-page section { margin: 22px 0; padding: 22px; border: 1px solid rgba(30,231,242,.13); border-radius: 17px; background: rgba(12,31,51,.7); }
.at-cookie-policy-page h2 { margin: 0 0 8px; color: #fff; font-size: 1.2rem; }
.at-cookie-policy-page p { line-height: 1.7; }

@keyframes atCookieEnter { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes atCookieLeave { to { opacity: 0; transform: translateY(12px) scale(.99); } }
@keyframes atCookieFade { from { opacity: 0; } }
@keyframes atCookieModalEnter { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 991.98px) {
  .at-cookie-banner { grid-template-columns: 48px minmax(0,1fr); }
  .at-cookie-icon { width: 48px; height: 48px; border-radius: 15px; }
  .at-cookie-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
  .at-cookie-consent { z-index: 1085; }
  .at-cookie-banner {
    left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px;
  }
  .at-cookie-icon { width: 42px; height: 42px; border-radius: 13px; }
  .at-cookie-icon svg { width: 25px; height: 25px; }
  .at-cookie-copy h2 { font-size: 1.2rem; }
  .at-cookie-copy p { grid-column: 1 / -1; font-size: .88rem; line-height: 1.48; }
  .at-cookie-copy .at-cookie-note { display: none; }
  .at-cookie-actions { display: flex; flex-direction: column; gap: 8px; }
  .at-cookie-button { width: 100%; min-height: 48px; }
  .at-cookie-button--primary { order: 1; }
  .at-cookie-button--secondary { order: 2; }
  .at-cookie-button--text { order: 3; }
  .at-cookie-modal { align-items: end; padding: 0; }
  .at-cookie-preferences { width: 100%; max-height: min(88dvh, 780px); padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .at-cookie-option { min-height: 78px; padding: 14px; }
  .at-cookie-required { max-width: 96px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .at-cookie-banner, .at-cookie-banner.is-leaving, .at-cookie-modal__backdrop, .at-cookie-preferences { animation: none !important; }
  .at-cookie-button, .at-cookie-toggle span, .at-cookie-toggle span::after { transition: none !important; }
}
