
  .cookie-banner {
    position: fixed;
    right: max(5.6rem, calc(env(safe-area-inset-right) + 1rem));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1200;
    width: min(448px, calc(100% - 2rem));
    color: #1d1d1f;
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
    transition:
      opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .cookie-banner[hidden] {
    display: none;
  }

  .cookie-banner.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .cookie-banner.is-leaving {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.99);
    pointer-events: none;
  }

  .cookie-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem 0.95rem;
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
    overflow-y: auto;
    padding: 1.05rem;
    border: 1px solid rgba(29, 29, 31, 0.09);
    border-radius: 1.35rem;
    background:
      radial-gradient(circle at 100% 0%, rgba(183, 151, 213, 0.13), transparent 40%),
      rgba(255, 255, 255, 0.98);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 24px 70px rgba(31, 23, 38, 0.15),
      0 4px 16px rgba(31, 23, 38, 0.06);
    backdrop-filter: blur(28px) saturate(145%);
    -webkit-backdrop-filter: blur(28px) saturate(145%);
  }

  .cookie-card::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.36), transparent 38%);
    content: "";
    pointer-events: none;
  }

  .cookie-mark {
    position: relative;
    z-index: 1;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(105, 73, 127, 0.12);
    border-radius: 13px;
    color: #684b79;
    background: linear-gradient(145deg, #fff, #f1ebf5);
    box-shadow: 0 7px 20px rgba(80, 52, 98, 0.1);
  }

  .cookie-mark svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .cookie-mark circle {
    fill: currentColor;
    stroke: none;
  }

  .cookie-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
  }

  .cookie-kicker {
    display: block;
    margin-bottom: 0.22rem;
    color: #765488;
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
  }

  .cookie-copy h2 {
    margin: 0;
    color: #1d1d1f;
    font-family: var(--font-display, var(--font-sans, system-ui, sans-serif));
    font-size: 1.05rem;
    font-weight: 620;
    letter-spacing: -0.025em;
    line-height: 1.2;
  }

  .cookie-copy p {
    margin: 0.32rem 0 0;
    color: #6e6e73;
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.79rem;
    font-weight: 400;
    letter-spacing: -0.005em;
    line-height: 1.48;
  }

  .cookie-options { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; gap: .65rem; min-width: 0; margin: 0; padding: 0; border: 0; }
  .cookie-option { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem; border: 1px solid rgba(104,75,121,.2); border-radius: .8rem; cursor: pointer; background: rgba(255,255,255,.55); }
  .cookie-option:has(input:checked) { border-color: #765488; background: #f5eff8; }
  .cookie-option input { flex: 0 0 auto; width: 20px; height: 20px; margin: .1rem 0 0; accent-color: #684b79; }
  .cookie-option input:focus-visible { outline: 2px solid #8d67a2; outline-offset: 3px; }
  .cookie-option > span { display: grid; gap: .25rem; min-width: 0; }
  .cookie-option strong { font: 650 .8rem/1.4 var(--font-sans, system-ui, sans-serif); }
  .cookie-option span span, .cookie-separation, .cookie-privacy-signal, .cookie-storage-status { margin: 0; color: #55505a; font: 400 .75rem/1.5 var(--font-sans, system-ui, sans-serif); }
  .cookie-option:has(input:disabled) { cursor: default; opacity: .7; }
  .cookie-privacy-signal, .cookie-storage-status { padding: .65rem; border-radius: .6rem; background: #f1ebf5; }
  .cookie-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .cookie-close[hidden], .cookie-privacy-signal[hidden], .cookie-storage-status[hidden] { display: none; }

  .cookie-actions {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    padding-top: 0.05rem;
  }

  .cookie-policy,
  .cookie-reject,
  .cookie-accept {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition:
      transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
      background-color 200ms ease,
      border-color 200ms ease,
      box-shadow 200ms ease;
  }

  .cookie-policy {
    gap: 0.35rem;
    padding: 0 0.82rem;
    color: #5f4a69;
  }

  .cookie-policy svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 200ms ease;
  }

  .cookie-policy:hover {
    background: rgba(104, 75, 121, 0.07);
  }

  .cookie-reject {
    padding: 0 0.82rem;
    border: 1px solid rgba(104, 75, 121, 0.22);
    color: #5f4a69;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
  }

  .cookie-reject:hover {
    background: rgba(104, 75, 121, 0.07);
  }

  .cookie-policy:hover svg {
    transform: translateX(2px);
  }

  .cookie-accept {
    min-width: 104px;
    padding: 0 1.15rem;
    border: 1px solid #4e385b;
    color: #fff;
    background: #4e385b;
    box-shadow: 0 8px 18px rgba(67, 45, 79, 0.18);
    cursor: pointer;
  }

  .cookie-accept:hover {
    border-color: #3f2d4a;
    background: #3f2d4a;
    box-shadow: 0 11px 24px rgba(67, 45, 79, 0.24);
    transform: translateY(-1px);
  }

  .cookie-policy:focus-visible,
  .cookie-reject:focus-visible,
  .cookie-accept:focus-visible {
    outline: 2px solid #8d67a2;
    outline-offset: 3px;
  }

  @media (max-width: 560px) {
    .cookie-banner {
      right: 0.65rem;
      bottom: max(5.4rem, calc(env(safe-area-inset-bottom) + 4.7rem));
      width: calc(100% - 1.3rem);
    }

    .cookie-card {
      gap: 0.8rem;
      padding: 0.9rem;
      border-radius: 1.2rem;
    }

    .cookie-copy h2 {
      font-size: 1rem;
    }

    .cookie-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    .cookie-policy,
    .cookie-reject,
    .cookie-accept {
      min-height: 44px;
    }

    .cookie-policy {
      grid-column: 1 / -1;
      justify-self: end;
    }

    .cookie-accept {
      flex: 1.15;
      min-width: 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-policy,
    .cookie-policy svg,
    .cookie-reject,
    .cookie-accept {
      transition-duration: 0.01ms !important;
    }
  }

.footer-cookie-preferences { min-height: 44px; padding: 0; border: 0; color: #edf5f5; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-cookie-preferences:hover { color: var(--footer-peach); }
