/* =====================================================
   Cookie Consent — Banner + Modal
   ===================================================== */

/* ---------- Banner ---------- */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0d1b2e;
  color: #fff;
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}

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

.consent-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.consent-banner-text {
  flex: 1;
  min-width: 0;
}

.consent-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8a97e;
  margin: 0 0 6px;
}

.consent-banner-body {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

.consent-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Shared button styles ---------- */
.consent-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 2px;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}

.consent-btn-accept {
  background: #c8a97e;
  color: #0d1b2e;
}
.consent-btn-accept:hover { opacity: 0.88; }

.consent-btn-reject {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.22);
}
.consent-btn-reject:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

.consent-btn-settings {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: none;
  text-decoration: underline;
  padding: 10px 12px;
  font-size: 11px;
}
.consent-btn-settings:hover { color: rgba(255,255,255,0.85); }

/* ---------- Modal overlay ---------- */
#consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(13, 27, 46, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#consent-modal.consent-modal-visible {
  opacity: 1;
  pointer-events: all;
}

.consent-modal-box {
  background: #fff;
  max-width: 560px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

#consent-modal.consent-modal-visible .consent-modal-box {
  transform: scale(1);
}

.consent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid #eee;
}

.consent-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: #0d1b2e;
  margin: 0;
}

.consent-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.consent-modal-close:hover { color: #0d1b2e; }

.consent-modal-body {
  padding: 20px 28px 8px;
}

.consent-modal-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 20px;
}

/* ---------- Toggle rows ---------- */
.consent-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
}

.consent-toggle-info {
  flex: 1;
  min-width: 0;
}

.consent-toggle-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0d1b2e;
  margin-bottom: 4px;
}

.consent-toggle-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #888;
  margin: 0;
}

/* ---------- Pill toggle switch ---------- */
.consent-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.consent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

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

.consent-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.consent-switch input:checked + .consent-slider {
  background: #c8a97e;
}

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

.consent-switch input:disabled + .consent-slider {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ---------- Modal footer ---------- */
.consent-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 28px 24px;
  border-top: 1px solid #eee;
}

.consent-modal-footer .consent-btn-reject {
  color: #555;
  border-color: #ccc;
}
.consent-modal-footer .consent-btn-reject:hover {
  color: #0d1b2e;
  border-color: #999;
}

.consent-modal-footer .consent-btn-accept {
  background: #0d1b2e;
  color: #fff;
}
.consent-modal-footer .consent-btn-accept:hover { opacity: 0.85; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .consent-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .consent-banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .consent-btn {
    width: 100%;
    text-align: center;
  }

  .consent-btn-settings {
    order: 3;
    text-align: center;
  }

  .consent-modal-footer {
    flex-direction: column-reverse;
  }

  .consent-modal-footer .consent-btn {
    width: 100%;
    text-align: center;
  }
}
