/* Cookie consent — Volnteer purple / magenta brand */

#cookie-consent-banner.cookie-consent {
  --cc-primary: #6b21a8;
  --cc-primary-mid: #7c3aed;
  --cc-secondary: #be185d;
  --cc-radius: 18px;
  --cc-shadow: 0 -8px 40px rgba(76, 29, 149, 0.18), 0 20px 50px rgba(0, 0, 0, 0.12);
  --cc-font: "Reddit Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  padding: 0 0 max(0.75rem, env(safe-area-inset-bottom, 0));
  pointer-events: none;
  font-family: var(--cc-font);
}

#cookie-consent-banner.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__wrap {
  pointer-events: none;
  max-width: 1040px;
}

.cookie-consent__panel {
  pointer-events: auto;
  margin: 0 auto 1rem;
  position: relative;
  background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(250, 245, 255, 0.99) 45%,
      rgba(255, 250, 252, 0.98) 100%
    );
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  border: 1px solid rgba(107, 33, 168, 0.14);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-consent__accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--cc-primary) 0%,
    var(--cc-primary-mid) 35%,
    var(--cc-secondary) 100%
  );
  opacity: 0.95;
}

.cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.1rem 1.35rem 1.2rem;
}

.cookie-consent__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.12) 0%,
    rgba(190, 24, 93, 0.1) 100%
  );
  color: var(--cc-primary);
  font-size: 1.35rem;
  border: 1px solid rgba(107, 33, 168, 0.15);
}

.cookie-consent__copy {
  flex: 1 1 220px;
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-primary);
  line-height: 1.3;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #334155;
}

.cookie-consent__text a {
  display: inline;
  color: var(--cc-secondary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(190, 24, 93, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cookie-consent__text a:hover {
  color: var(--cc-primary);
  border-bottom-color: rgba(107, 33, 168, 0.45);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: auto;
}

.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cc-font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.cookie-consent__btn:focus-visible {
  outline: 2px solid var(--cc-primary-mid);
  outline-offset: 2px;
}

.cookie-consent__btn--primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--cc-primary) 0%,
    var(--cc-primary-mid) 45%,
    var(--cc-secondary) 100%
  );
  box-shadow: 0 4px 16px rgba(107, 33, 168, 0.35);
}

.cookie-consent__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(107, 33, 168, 0.42);
}

.cookie-consent__btn--primary:active {
  transform: translateY(0);
}

.cookie-consent__btn--secondary {
  color: var(--cc-primary);
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(107, 33, 168, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.cookie-consent__btn--secondary:hover {
  background: rgba(107, 33, 168, 0.06);
  border-color: rgba(107, 33, 168, 0.45);
  color: #581c87;
}

@media (max-width: 767px) {
  .cookie-consent__inner {
    padding: 1rem 1.1rem 1.15rem;
  }

  .cookie-consent__actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
    flex-direction: column-reverse;
    align-self: stretch;
    padding-top: 0;
  }

  .cookie-consent__btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }

  .cookie-consent__icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .cookie-consent__text {
    font-size: 0.9rem;
  }
}
