.cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.cookie-consent--open {
  z-index: 100000;
  pointer-events: auto;
}

.cookie-consent-inner {
  pointer-events: auto;
  margin: 0 auto;
  max-width: 72rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.96);
  padding: 1rem 1.25rem;
  box-shadow:
    0 20px 45px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(12px);
}

.cookie-consent-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.cookie-consent-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
}

.cookie-consent-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.cookie-consent-link {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.cookie-consent-link:hover {
  color: #bae6fd;
}

.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

.cookie-consent-accept {
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}

.cookie-consent-accept:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.32);
}

.cookie-consent-accept:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.7);
  outline-offset: 2px;
}

.cookie-consent-secondary {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
  background: transparent;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.cookie-consent-secondary:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.55);
  color: #fff;
}

.cookie-consent-secondary:focus-visible {
  outline: 2px solid rgba(148, 163, 184, 0.7);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cookie-consent-inner {
    padding: 1rem;
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-accept {
    width: 100%;
  }
}
