/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: var(--space-4) 0;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.cookie-banner__text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.cookie-banner__text p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cookie-banner__link {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  white-space: nowrap;
}

.cookie-banner__link:hover {
  color: var(--primary-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding: 0 var(--space-4);
  }
  
  .cookie-banner__actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .cookie-banner__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cookie-banner__actions {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .cookie-banner__actions .btn {
    width: 100%;
  }
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-preferences {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-preferences.show {
  display: flex;
}

.cookie-preferences__modal {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.cookie-preferences__header {
  padding: 1.5rem 1.5rem 0;
}

.cookie-preferences__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.cookie-preferences__subtitle {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.5;
}

.cookie-preferences__body {
  padding: 1.5rem;
}

.cookie-category {
  padding: 1rem 0;
  border-bottom: 1px solid #E5E7EB;
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cookie-category__title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.cookie-category__required {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10B981;
  background: #D1FAE5;
  padding: 2px 8px;
  border-radius: 9999px;
}

.cookie-category__description {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.cookie-category__examples {
  font-size: 0.8125rem;
  color: #9CA3AF;
  font-style: italic;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #D1D5DB;
  border-radius: 24px;
  transition: 0.3s;
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: #6366F1;
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-preferences__footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}