.cookie-consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
  pointer-events: none;
  display: none;
}

.cookie-consent-banner.is-visible {
  display: block;
}

.cookie-consent-panel {
  pointer-events: auto;
  max-width: 38rem;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.97);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  padding: 1rem 1rem 0.9rem;
}

.cookie-consent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cookie-consent-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.cookie-consent-close {
  border: 0;
  background: transparent;
  color: #e2e8f0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.cookie-consent-close:hover,
.cookie-consent-close:focus-visible {
  background: rgba(148, 163, 184, 0.15);
  outline: none;
}

.cookie-consent-copy {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-consent-copy + .cookie-consent-copy {
  margin-top: 0.6rem;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.cookie-consent-actions button,
.cookie-consent-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cookie-consent-actions button:hover,
.cookie-consent-actions button:focus-visible,
.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.cookie-consent-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
}

.cookie-consent-secondary {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
  color: #f8fafc;
}

.cookie-consent-tertiary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.3);
  color: #f8fafc;
}

.cookie-consent-links {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.cookie-consent-links a {
  color: #bfdbfe;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.cookie-consent-links a:hover,
.cookie-consent-links a:focus-visible {
  opacity: 0.9;
}

.cookie-consent-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.cookie-consent-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #e2e8f0;
  font-size: 0.88rem;
}

.cookie-consent-option input {
  accent-color: #22c55e;
  width: 1rem;
  height: 1rem;
}

.cookie-consent-list .cookie-consent-option[hidden] {
  display: none;
}

.cookie-consent-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.66);
  z-index: 70;
}

.cookie-consent-modal.is-visible {
  display: flex;
}

.cookie-consent-modal-card {
  width: min(100%, 34rem);
  background: #fff;
  color: #0f172a;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  padding: 1.2rem;
}

.cookie-consent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.cookie-consent-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

.cookie-consent-modal-body p {
  margin: 0 0 0.8rem;
  color: #334155;
  line-height: 1.6;
}

.cookie-consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.cookie-consent-modal-actions .cookie-consent-secondary {
  color: #0f172a;
  background: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.45);
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-consent-panel,
  .cookie-consent-modal-card {
    border-radius: 0.9rem;
  }

  .cookie-consent-actions,
  .cookie-consent-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions button,
  .cookie-consent-modal-actions button {
    width: 100%;
  }
}
