/* Soorta — cookie consent banner */

.cookie-consent {
  --cc-ink: #f0f4f1;
  --cc-ink-2: rgba(240, 244, 241, 0.78);
  --cc-ink-3: rgba(240, 244, 241, 0.52);
  --cc-line: rgba(255, 255, 255, 0.14);
  --cc-brand: #16a34a;
  --cc-brand-ink: #86efac;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  display: block;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent.is-visible {
  display: block !important;
}

.cookie-consent__card {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--cc-line);
  background:
    linear-gradient(165deg, rgba(18, 28, 22, 0.97), rgba(11, 18, 14, 0.95));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 48px -18px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(22, 163, 74, 0.08);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  color: var(--cc-ink);
  font-family: Inter, system-ui, sans-serif;
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.cookie-consent.is-visible .cookie-consent__card {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent.is-leaving .cookie-consent__card {
  transform: translateY(16px);
  opacity: 0;
}

.cookie-consent__text {
  min-width: 0;
  flex: 1 1 auto;
}

.cookie-consent__kicker {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4ade80;
}

.cookie-consent__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--cc-ink);
}

.cookie-consent__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cc-ink-2);
  max-width: 58ch;
}

.cookie-consent__desc a {
  color: var(--cc-brand-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 239, 172, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__desc a:hover {
  color: #bbf7d0;
  border-bottom-color: rgba(187, 247, 208, 0.75);
}

.cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.cookie-consent__btn {
  appearance: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  cursor: pointer;
  min-height: 42px;
  padding: 0 18px;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.3s ease;
}

.cookie-consent__btn:focus-visible {
  outline: 2px solid rgba(134, 239, 172, 0.7);
  outline-offset: 2px;
}

.cookie-consent__btn--ghost {
  color: var(--cc-ink-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-consent__btn--ghost:hover {
  color: var(--cc-ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(134, 239, 172, 0.35);
}

.cookie-consent__btn--primary {
  color: #fff;
  border: 1px solid rgba(21, 128, 61, 0.55);
  background: linear-gradient(180deg, rgba(40, 196, 100, 0.95), rgba(22, 163, 74, 0.92) 55%, rgba(13, 148, 136, 0.9));
  box-shadow:
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.28),
    0 14px 28px -12px rgba(22, 163, 74, 0.45);
}

.cookie-consent__btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cookie-consent__btn:active {
  transform: translateY(0);
}

@media (max-width: 720px) {
  .cookie-consent {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent__card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 15px;
    border-radius: 16px;
  }

  .cookie-consent__title {
    font-size: 0.98rem;
  }

  .cookie-consent__desc {
    font-size: 13px;
    max-width: none;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cookie-consent__btn {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__card,
  .cookie-consent__btn {
    transition: none;
  }
}
