/* JustBrainDumpIt Cookie Banner (glass + clean, Apple-ish) */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  max-width: 980px;
  margin: 0 auto;

  /* glass */
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.14);
  border-radius: 18px;

  padding: 14px 14px;
}

/* Your JS toggles hidden=true/false, so no display toggles needed */
.cookie-banner[hidden] {
  display: none !important;
}

/* Top row: copy + close */
.cookie-banner__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cookie-banner__title {
  margin: 0 0 6px 0;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.78);
  max-width: 660px;
}

.cookie-banner__text a {
  color: rgba(15, 23, 42, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Close button */
.cookie-banner__close {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.30);
  color: rgba(15, 23, 42, 0.75);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cookie-banner__close:hover {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.10);
  transform: translateY(-1px);
}

.cookie-banner__close:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Actions row */
.cookie-banner__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

/* If your global styles don't define these button variants,
   these rules make the cookie banner buttons look correct anyway. */
.cookie-banner .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.35);
  color: #0f172a;
  text-decoration: none;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.cookie-banner .btn:hover {
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.10);
  transform: translateY(-1px);
}

.cookie-banner .btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Primary */
.cookie-banner .btn-primary {
  background: #0f172a;
  color: #ffffff;
  border-color: rgba(15, 23, 42, 0.90);
}

.cookie-banner .btn-primary:hover {
  background: #111c33;
}

/* Outline */
.cookie-banner .btn-outline {
  background: rgba(255, 255, 255, 0.28);
}

/* Mobile stacking */
@media (max-width: 560px) {
  .cookie-banner {
    padding: 14px 12px;
  }

  .cookie-banner__top {
    gap: 10px;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }

  .cookie-banner__close {
    width: 32px;
    height: 32px;
  }
}
