:root {
  --blue-tint: #e5eefb;
  --blue-tint-mid: #edf2fd;
  --text-body: #334155;
  --text-muted: #64748b;
  --headline-blue: #1a56db;
  --link: #1e293b;
  --btn-primary: #1a56db;
  --btn-primary-hover: #1447c0;
  --btn-glow: rgba(26, 86, 219, 0.42);
  --btn-secondary-border: #cbd5e1;
  --radius: 20px;
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --banner-w: 883px;
  --banner-h: 207px;
  --video-x: 380px;
  --video-w: 320px;
  --video-end: 700px;
  --grad-feather: 28px;
}

.cookie-banner .whitespace-nowrap { white-space: nowrap; }

.cookie-banner-wrap {
  position: fixed;
  inset: auto 0 1.5rem 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  pointer-events: none;
  transform: translateY(calc(100% + 2rem));
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner-wrap.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-wrap.is-leaving {
  transform: translateY(calc(100% + 2rem));
  transition-duration: 0.9s;
}

.cookie-banner-wrap[hidden] { display: none; }

.cookie-banner {
  position: relative;
  width: var(--banner-w);
  max-width: 100%;
  height: var(--banner-h);
  border-radius: var(--radius);
  filter: drop-shadow(0 20px 56px rgba(15, 23, 42, 0.22))
          drop-shadow(0 6px 16px rgba(26, 86, 219, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.88);
  overflow: visible;
}

.cookie-banner__face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  background: linear-gradient(
    90deg,
    var(--blue-tint) 0px,
    var(--blue-tint-mid) calc(var(--video-x) - 100px),
    #ffffff calc(var(--video-x) - var(--grad-feather)),
    #ffffff calc(var(--video-end) + var(--grad-feather)),
    var(--blue-tint-mid) calc(var(--video-end) + 100px),
    var(--blue-tint) var(--banner-w)
  );
}

.cookie-banner__layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}

.cookie-banner__layer > * { pointer-events: auto; }

.cookie-asset {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.16));
  opacity: 0;
  transition: opacity 0.85s ease;
}

.cookie-banner-wrap.is-visible .cookie-asset {
  opacity: 1;
}

.cookie-asset--static {
  z-index: 3;
}

.cookie-asset--stack-a {
  left: 704px;
  top: 153.83px;
  width: 52px;
  height: 44.67px;
  z-index: 8;
}

.cookie-asset--stack-b {
  left: 322.5px;
  top: 154.5px;
  width: 50px;
  height: 44px;
}

.cookie-asset--baking-a {
  left: 354.58px;
  top: 148px;
  width: 50.83px;
  height: 38.5px;
}

.cookie-asset--baking-b {
  left: 680.5px;
  top: 145.75px;
  width: 45.5px;
  height: 41.5px;
}

.cookie-asset--pile-a {
  left: -46.17px;
  top: -45.97px;
  width: 132.33px;
  height: 95.33px;
  z-index: 2;
  animation: pile-float-a 5.2s ease-in-out infinite;
  transform-origin: 60% 80%;
}

.cookie-asset--pile-b {
  left: 844.5px;
  top: 154.5px;
  width: 77px;
  height: 68.67px;
  z-index: 3;
  animation: pile-float-b 4.6s ease-in-out 0.7s infinite;
  transform-origin: 40% 70%;
}

@keyframes pile-float-a {
  0%, 100% { transform: translate(0, 0) rotate(-10deg) scale(1); }
  25% { transform: translate(3px, -7px) rotate(-12deg) scale(1.02); }
  55% { transform: translate(-2px, -11px) rotate(-8deg) scale(1); }
  80% { transform: translate(1px, -5px) rotate(-11deg) scale(1.01); }
}

@keyframes pile-float-b {
  0%, 100% { transform: translate(0, 0) rotate(8deg) scale(1); }
  30% { transform: translate(-4px, -8px) rotate(10deg) scale(1.03); }
  60% { transform: translate(2px, -12px) rotate(6deg) scale(1); }
  85% { transform: translate(-1px, -4px) rotate(9deg) scale(1.02); }
}

.cookie-banner__close {
  position: absolute;
  top: 7px;
  right: 7px;
  left: auto;
  z-index: 15;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, transform 0.2s var(--spring);
}

.cookie-banner__close svg {
  display: block;
  width: 14px;
  height: 14px;
}

.cookie-banner__close:hover {
  background: #fff;
  color: #0f172a;
  transform: scale(1.06);
}

.cookie-banner__copy {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.cookie-banner__text {
  position: absolute;
  overflow: visible;
  white-space: nowrap;
  pointer-events: auto;
}

.cookie-banner__headline {
  left: 265.23px;
  top: 0;
  margin: 0;
  font-family: var(--font);
  font-size: 39px;
  font-weight: 800;
  color: var(--headline-blue);
  line-height: 1.08;
  letter-spacing: -0.03em;
  z-index: 4;
}

.cookie-banner__line {
  left: 40px;
  font-family: var(--font);
  line-height: 1.35;
  color: var(--text-body);
}

.cookie-banner__line--1 { top: 49.36px; font-size: 19px; }
.cookie-banner__line--2 { top: 75px; font-size: 19px; }
.cookie-banner__line--3 { top: 101px; font-size: 19px; }

.cookie-banner__line--4 {
  left: 20px;
  top: 142.5px;
  font-size: 13px;
  color: var(--text-muted);
}

.cookie-banner__line--5 {
  left: 20px;
  top: 154.5px;
  font-size: 13px;
  color: var(--text-muted);
}

.cookie-banner__line a {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__video {
  position: absolute;
  left: 380px;
  top: 16.5px;
  width: 320px;
  height: 189px;
  z-index: 2;
  background: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.cookie-banner__video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: #ffffff;
  display: block;
}

.cookie-banner__accept-wrap {
  position: absolute;
  left: 728px;
  top: 18.86px;
  width: 114.67px;
  height: 104.5px;
  z-index: 10;
}

.cookie-banner__accept-wrap::before {
  content: "";
  position: absolute;
  inset: -8px -4px;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, var(--btn-glow) 0%, rgba(26, 86, 219, 0) 72%);
  opacity: 0;
  transition: opacity 0.55s var(--spring), transform 0.55s var(--spring);
  pointer-events: none;
}

.cookie-banner__accept-wrap.is-pointed::before {
  opacity: 1;
}

.btn-accept {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  padding: 0 10px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--btn-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(26, 86, 219, 0.35);
  transition: background 0.2s ease, box-shadow 0.45s var(--spring), transform 0.45s var(--spring);
}

.btn-accept:hover { background: var(--btn-primary-hover); }

.btn-accept.is-pointed {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(26, 86, 219, 0.48);
}

.btn-reject {
  position: absolute;
  left: 730px;
  top: 145.75px;
  width: 111.17px;
  height: 46.67px;
  z-index: 12;
  border: 1.5px solid var(--btn-secondary-border);
  border-radius: 10px;
  padding: 0 10px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.btn-reject:hover {
  background: #fff;
  color: #0f172a;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner-wrap { transition: none; }
  .cookie-asset { animation: none !important; opacity: 0.85; }
  .btn-accept,
  .cookie-banner__accept-wrap::before { transition: none; }
}

@media (max-width: 720px) {
  :root {
    --banner-w: 100%;
    --banner-h: auto;
  }

  .cookie-banner-wrap { inset: auto 0 0 0; padding: 0; }

  .cookie-banner {
    width: 100%;
    height: auto;
    min-height: 340px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .cookie-banner__face {
    background: linear-gradient(180deg, var(--blue-tint) 0%, #fff 45%, var(--blue-tint) 100%);
  }

  .cookie-banner__layer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem 1.5rem;
    gap: 0.35rem;
    min-height: 340px;
  }

  .cookie-banner__copy {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 340px;
    z-index: auto;
  }

  .cookie-banner__text {
    position: relative;
    left: auto;
    top: auto;
    white-space: normal;
    text-align: center;
  }

  .cookie-banner__headline { font-size: clamp(1.5rem, 5vw, 2rem); }

  .cookie-banner__line { font-size: 0.875rem; }
  .cookie-banner__line--4,
  .cookie-banner__line--5 { font-size: 0.8125rem; }

  .cookie-banner__video,
  .cookie-banner__accept-wrap,
  .btn-reject,
  .cookie-banner__close {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 340px;
    height: auto;
  }

  .cookie-banner__video {
    aspect-ratio: 1280 / 720;
    max-width: 300px;
  }

  .cookie-banner__accept-wrap { height: 48px; }
  .btn-reject { height: 44px; margin-top: 0.5rem; }

  .cookie-asset--pile-a { left: -12px; top: -20px; width: 90px; height: 65px; }
  .cookie-asset--pile-b { left: auto; right: -8px; top: auto; bottom: 8px; width: 60px; height: 54px; }
  .cookie-asset--static { display: none; }

  .cookie-banner__close {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 28px;
    height: 28px;
  }
}
