/* Cookie Consent Styles */

.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.cookie-consent-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-consent-modal {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: fadeInUp 0.3s ease-out;
}

.cookie-consent-header {
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
}

.cookie-consent-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.cookie-consent-description {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.cookie-consent-content {
  padding: var(--spacing-xl);
}

.cookie-category {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

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

.cookie-category-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.cookie-category-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  cursor: pointer;
  user-select: none;
}

.cookie-checkbox {
  display: none;
}

.cookie-checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color-dark);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cookie-checkbox:checked + .cookie-checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.cookie-checkbox:checked + .cookie-checkbox-custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cookie-checkbox:disabled + .cookie-checkbox-custom {
  background: var(--bg-dark-secondary);
  border-color: var(--border-color-dark);
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-category-name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: var(--font-size-lg);
}

.cookie-category-description {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin: 0;
  padding-left: 32px;
}

.cookie-consent-actions {
  padding: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

.cookie-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
}

.cookie-btn-accept-all {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-colored);
}

.cookie-btn-accept-all:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.cookie-btn-save {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.cookie-btn-save:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .cookie-consent-modal {
    max-height: 95vh;
  }
  
  .cookie-consent-header,
  .cookie-consent-content,
  .cookie-consent-actions {
    padding: var(--spacing-lg);
  }
  
  .cookie-consent-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}
