/**
 * Cookie consent banner and preferences modal
 */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 100%);
  color: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-consent.is-dismissed {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-consent__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-consent__text {
  flex: 1 1 280px;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-consent__text a {
  color: #c4b5fd;
  text-decoration: underline;
}

.cookie-consent__text a:hover {
  color: #e9d5ff;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.cookie-consent__btn--primary {
  background: #fff;
  color: #660099;
}

.cookie-consent__btn--primary:hover {
  background: #f3e8ff;
}

.cookie-consent__btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-consent__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-consent-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.cookie-consent-modal__box {
  background: #fff;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.cookie-consent-modal__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-consent-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
}

.cookie-consent-modal__body {
  padding: 1.25rem 1.5rem;
}

.cookie-consent-modal__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cookie-consent-modal__item:last-child {
  margin-bottom: 0;
}

.cookie-consent-modal__item input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cookie-consent-modal__item input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-consent-modal__item label {
  flex: 1;
  cursor: pointer;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.4;
}

.cookie-consent-modal__item strong {
  display: block;
  color: #1a1a2e;
  margin-bottom: 0.15rem;
}

.cookie-consent-modal__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-consent__actions {
    justify-content: center;
  }
}
