/* Cookie Consent стили */

.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  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: all 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);
  padding: var(--spacing-2xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  position: relative;
}

.cookie-consent-header {
  margin-bottom: var(--spacing-xl);
}

.cookie-consent-header h2 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.cookie-consent-header p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

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

.cookie-category-title {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-base);
}

.cookie-toggle.active {
  background: var(--color-primary);
}

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

.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

.cookie-toggle.active .cookie-toggle-slider {
  transform: translateX(24px);
}

.cookie-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

.cookie-opt-out-link {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  text-decoration: underline;
  margin-top: var(--spacing-xs);
  transition: color var(--transition-fast);
}

.cookie-opt-out-link:hover {
  color: var(--color-secondary);
}

.cookie-consent-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.btn-accept-all {
  flex: 1;
  min-width: 150px;
}

.btn-accept-selected {
  flex: 1;
  min-width: 150px;
}

@media (max-width: 768px) {
  .cookie-consent-modal {
    padding: var(--spacing-lg);
  }
  
  .cookie-consent-actions {
    flex-direction: column;
  }
  
  .btn-accept-all,
  .btn-accept-selected {
    width: 100%;
  }
}
