/* ======================================================
   COOKIE CONSENT – STABILES MOBILE UX
====================================================== */

.consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
}

/* Modal */
.consent-modal {
  width: 100%;
  background: #0f1a33;
  color: #e8eefc;
  border-radius: 22px 22px 0 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .consent-backdrop { align-items: center; }
  .consent-modal {
    max-width: 900px;
    border-radius: 22px;
  }
}

.consent-header {
  padding: 18px 20px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.consent-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.consent-body {
  padding: 14px 20px;
  overflow-y: auto;
  flex: 1;
  font-size: .9rem;
  line-height: 1.45;
  color: #b9c6e6;
}

.consent-text {
  margin-bottom: 12px;
}

.consent-settings-toggle {
  background: none;
  border: none;
  color: #6aa5ff;
  font-weight: 600;
  padding: 6px 0 12px;
}

.consent-settings {
  display: none;
  margin-top: 10px;
}

.panel {
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 12px;
}

.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  margin-bottom: 10px;
}

.toggle small {
  display: block;
  font-size: .75rem;
  opacity: .8;
}

.consent-link {
  font-size: .8rem;
  margin-top: 10px;
}

.consent-link a {
  color: #cfe1ff;
}

/* Footer */
.consent-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-btn-primary {
  background: linear-gradient(135deg,#4f8cff,#6aa5ff);
  color: #061022;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

.consent-btn-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 14px;
  padding: 13px;
}

.consent-btn-reject {
  background: none;
  border: none;
  color: #ffb3bd;
  font-size: .85rem;
  text-decoration: underline;
}
