/* ─── Cookie Consent Modal ─── */
#rla-consent-overlay {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
  transform: translateY(16px);
}
#rla-consent-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#rla-consent-overlay.hidden { display: none; }

#rla-consent-modal {
  background: #0f0f12;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 28px 24px 22px;
  max-width: 380px;
  width: calc(100vw - 48px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.8);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Shield icon */
.consent-icon {
  width: 40px; height: 40px;
  background: rgba(200,33,59,0.12);
  border: 1px solid rgba(200,33,59,0.3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.consent-icon svg { color: #C8213B; }

/* Title */
#rla-consent-modal h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #EDE8DF;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* Body text */
#rla-consent-modal .consent-body {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #A0A0AD;
  margin-bottom: 6px;
}

/* Collapsible */
.consent-toggle-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.8rem; color: #EDE8DF;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; margin-bottom: 14px;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.consent-toggle-btn:hover { opacity: 1; }
.consent-toggle-btn svg { transition: transform 0.25s; }
.consent-toggle-btn.expanded svg { transform: rotate(180deg); }

/* Expanded detail */
.consent-detail {
  display: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.consent-detail.open { display: block; }

/* Toggle row */
.consent-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.consent-toggle-row:last-child { margin-bottom: 0; }
.consent-toggle-label {
  font-size: 0.82rem; font-weight: 500; color: #EDE8DF;
}
.consent-toggle-sublabel {
  font-size: 0.75rem; color: #A0A0AD; margin-top: 2px;
}

/* iOS-style toggle switch */
.consent-switch {
  position: relative; width: 40px; height: 22px;
  flex-shrink: 0;
}
.consent-switch input { opacity: 0; width: 0; height: 0; }
.consent-switch-track {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s;
}
.consent-switch-track::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.consent-switch input:checked + .consent-switch-track { background: #C8213B; }
.consent-switch input:checked + .consent-switch-track::after { transform: translateX(18px); }
.consent-switch input:disabled + .consent-switch-track { opacity: 0.5; cursor: not-allowed; }

/* More information */
.consent-more-info {
  font-size: 0.8rem; font-weight: 600;
  color: #EDE8DF;
  margin-bottom: 8px;
  display: block;
  margin-top: 4px;
}
.consent-more-info a {
  color: #C8213B;
  text-decoration: none;
}
.consent-more-info a:hover { text-decoration: underline; }

/* Powered by */
.consent-powered {
  font-size: 0.72rem; color: rgba(160,160,173,0.5);
  margin-bottom: 22px;
}

/* Buttons */
.consent-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.consent-btn {
  padding: 10px 8px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.consent-btn-save {
  background: rgba(255,255,255,0.07);
  color: #EDE8DF;
}
.consent-btn-save:hover { background: rgba(255,255,255,0.13); }
.consent-btn-deny {
  background: rgba(255,255,255,0.07);
  color: #EDE8DF;
}
.consent-btn-deny:hover { background: rgba(255,255,255,0.13); }
.consent-btn-accept {
  background: #C8213B;
  color: #fff;
  border-color: #C8213B;
}
.consent-btn-accept:hover { background: #a81830; border-color: #a81830; }

/* Cookie settings re-open link in footer */
#rla-cookie-settings-link {
  font-size: 0.82rem;
  color: #A0A0AD;
  cursor: pointer;
  background: none; border: none;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  padding: 0;
}
#rla-cookie-settings-link:hover { color: #EDE8DF; }

@media (max-width: 480px) {
  #rla-consent-modal { padding: 28px 20px 22px; }
  .consent-buttons { grid-template-columns: 1fr; }
}
