/* ================================================================
   COOKIE CONSENT — Banner, settings modal, toggles
   Mobile-first. Uses var(--vc-*) tokens exclusively.
   ================================================================ */

/* ----------------------------------------------------------------
   1. COOKIE BANNER
   ---------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vc-bg-surface);
  border-top: 1px solid var(--vc-border-default);
  padding: var(--sp-5) var(--sp-6);
  z-index: 3000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--vc-shadow-lg);
}

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

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

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h3 {
  font-size: 16px;
  color: var(--vc-text-primary);
  margin-bottom: var(--sp-1);
}

.cookie-text p {
  font-size: 14px;
  color: var(--vc-text-secondary);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   2. COOKIE SETTINGS MODAL
   ---------------------------------------------------------------- */

.cookie-settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 3001;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-settings-modal.active {
  display: flex;
}

.cookie-settings-content {
  background: var(--vc-bg-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  max-width: 480px;
  width: 92%;
}

/* ----------------------------------------------------------------
   3. COOKIE TOGGLES
   ---------------------------------------------------------------- */

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--vc-border-subtle);
}

.cookie-toggle-label {
  font-size: 15px;
  color: var(--vc-text-primary);
}

.cookie-toggle-desc {
  font-size: 13px;
  color: var(--vc-text-tertiary);
}

/* ----------------------------------------------------------------
   4. COOKIE SWITCH
   ---------------------------------------------------------------- */

.cookie-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--vc-bg-surface-2);
  border: 1px solid var(--vc-border-default);
  position: relative;
  cursor: pointer;
  transition: all var(--t-fast);
}

.cookie-switch.on {
  background: var(--vc-accent);
  border-color: var(--vc-accent);
}

.cookie-switch::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  background: var(--vc-text-primary);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--t-fast);
}

.cookie-switch.on::after {
  transform: translateX(20px);
}

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

.cookie-switch input:focus-visible + .cookie-slider {
  outline: 2px solid var(--vc-accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
   5. MOBILE RESPONSIVE
   ---------------------------------------------------------------- */

@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
  }

  .cookie-actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
    justify-content: center;
  }
}
