/* ---------- COOKIE BANNER ---------- */
#cookieConsentBanner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000000;
  background: #12203f;
  color: #ffffff;
  padding: 22px 30px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(120%);
  transition: transform 0.5s ease;
  font-family: 'Segoe UI', Arial, sans-serif;
  pointer-events: none;
  visibility: hidden;
}

#cookieConsentBanner.show {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

#cookieConsentBanner .cookie-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: #f5a623;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

#cookieConsentBanner .cookie-text {
  flex: 1 1 420px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #d7ddea;
}

#cookieConsentBanner .cookie-text strong {
  color: #ffffff;
}

#cookieConsentBanner .cookie-text a {
  color: #f5a623;
  text-decoration: underline;
}

#cookieConsentBanner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

#cookieConsentBanner button {
  cursor: pointer;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#cookieConsentBanner .btn-accept {
  background: #f5a623;
  color: #12203f;
}

#cookieConsentBanner .btn-accept:hover {
  background: #ffb84d;
}

#cookieConsentBanner .btn-reject {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

#cookieConsentBanner .btn-reject:hover {
  background: rgba(255, 255, 255, 0.08);
}

#cookieConsentBanner .btn-settings {
  background: transparent;
  color: #d7ddea;
  text-decoration: underline;
  padding: 11px 4px;
}

#cookieConsentBanner .btn-settings:hover {
  color: #ffffff;
}

/* ---------- SETTINGS MODAL ---------- */
#cookieSettingsOverlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 30, 0.55);
  z-index: 1000001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookieSettingsOverlay.show {
  display: flex;
}

#cookieSettingsModal {
  background: #ffffff;
  color: #222;
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', Arial, sans-serif;
}

#cookieSettingsModal .cookie-modal-header {
  background: #12203f;
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cookieSettingsModal .cookie-modal-header h3 {
  margin: 0;
  font-size: 17px;
  color: #fff;
}

#cookieSettingsModal .cookie-modal-header button {
  background: none;
  border: none;
  color: #d7ddea;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

#cookieSettingsModal .cookie-modal-body {
  padding: 20px 24px;
  max-height: 340px;
  overflow-y: auto;
}

#cookieSettingsModal .cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

#cookieSettingsModal .cookie-row:last-child {
  border-bottom: none;
}

#cookieSettingsModal .cookie-row-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #12203f;
  margin: 0 0 4px;
}

#cookieSettingsModal .cookie-row-desc {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

#cookieSettingsModal .cookie-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

#cookieSettingsModal .cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#cookieSettingsModal .slider-toggle {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.2s;
}

#cookieSettingsModal .slider-toggle::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}

#cookieSettingsModal .cookie-switch input:checked + .slider-toggle {
  background: #f5a623;
}

#cookieSettingsModal .cookie-switch input:checked + .slider-toggle::before {
  transform: translateX(18px);
}

#cookieSettingsModal .cookie-switch input:disabled + .slider-toggle {
  background: #12203f;
  opacity: 0.5;
  cursor: not-allowed;
}

#cookieSettingsModal .cookie-modal-footer {
  padding: 16px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #eee;
}

#cookieSettingsModal .cookie-modal-footer button {
  cursor: pointer;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
}

#cookieSettingsModal .btn-save {
  background: #f5a623;
  color: #12203f;
}

#cookieSettingsModal .btn-cancel {
  background: #f1f1f1;
  color: #333;
}

@media (max-width: 640px) {
  #cookieConsentBanner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  #cookieConsentBanner .cookie-actions {
    width: 100%;
  }

  #cookieConsentBanner .cookie-actions button {
    flex: 1;
  }
}
