/* =========================================================
   Cookie banner — visual presentation; consent wiring follows later
   ========================================================= */

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(940px, calc(100% - 36px));
  margin-inline: auto;
  padding: 14px 16px;
  border: 1px solid rgba(11, 13, 26, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(3, 2, 36, 0.14), 0 3px 12px rgba(3, 2, 36, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-banner.is-dismissing {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

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

.cookie-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
}

.cookie-symbol svg {
  width: 20px;
  height: 20px;
}

.cookie-copy h2 {
  margin-bottom: 2px;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.cookie-copy p {
  max-width: 580px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.cookie-copy a {
  color: var(--ink);
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-button {
  min-height: 36px;
  padding: 0 15px;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-button--quiet {
  border: 0;
  background: transparent;
  color: var(--body);
}

.cookie-button--primary {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.cookie-button--quiet:hover {
  color: var(--ink);
  background: var(--surface);
}

.cookie-button--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    padding: 14px;
  }

  .cookie-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    border-radius: 15px;
  }

  .cookie-symbol {
    width: 34px;
    height: 34px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-button {
    width: 100%;
    padding-inline: 10px;
  }
}
