/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

/* Overlay */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cookie-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 48px);
  max-width: 520px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 9999;
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.active {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner.hidden {
  transform: translateX(-50%) translateY(120%);
  pointer-events: none;
}

/* Header */
.cookie-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cookie-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.cookie-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

/* Body text */
.cookie-body p {
  font-size: 0.88rem;
  color: #666680;
  line-height: 1.7;
  margin-bottom: 20px;
}

.cookie-body a {
  color: #224099;
  text-decoration: underline;
  text-decoration-color: rgba(34, 64, 153, 0.3);
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.3s;
}

.cookie-body a:hover {
  color: #10BEE8;
}

/* Toggle section */
.cookie-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f7f9fc;
  border-radius: 12px;
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333344;
}

.cookie-toggle-label span {
  font-weight: 400;
  color: #999;
  font-size: 0.78rem;
  margin-left: 6px;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #224099;
}

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

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Buttons */
.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Sailec', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cookie-btn-accept {
  background: #224099;
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background: #1a3380;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 64, 153, 0.3);
}

.cookie-btn-decline {
  background: #f0f2f5;
  color: #333344;
}

.cookie-btn-decline:hover {
  background: #e4e7ec;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 480px) {
  .cookie-banner {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 24px;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-header h3 {
    font-size: 1.05rem;
  }
}
