/* FAIS Native Consent Layer v1.0 */
.fais-consent-banner,
.fais-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fais-consent-banner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.fais-consent-card,
.fais-consent-modal__panel {
  width: min(920px, 100%);
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(8, 14, 28, 0.98);
  color: #f8fafc;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5);
  border-radius: 18px;
}

.fais-consent-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px;
  pointer-events: auto;
}

.fais-consent-title {
  margin: 0 0 7px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.fais-consent-body {
  margin: 0;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.5;
  font-size: 14px;
}

.fais-consent-body a {
  color: #00d4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fais-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.fais-consent-btn,
.fais-consent-reopen,
.fais-consent-x {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.fais-consent-btn--primary {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #080e1c;
}

.fais-consent-btn--secondary {
  border-color: rgba(0, 212, 255, 0.45);
  color: #00d4ff;
}

.fais-consent-btn--ghost {
  color: rgba(226, 232, 240, 0.86);
}

.fais-consent-modal {
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.68);
}

.fais-consent-modal__panel {
  max-width: 560px;
  padding: 18px;
}

.fais-consent-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.fais-consent-x {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.fais-consent-toggle {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.fais-consent-toggle input {
  margin-top: 4px;
}

.fais-consent-toggle span {
  font-weight: 800;
}

.fais-consent-toggle small {
  grid-column: 2;
  color: rgba(226, 232, 240, 0.68);
}

.fais-consent-actions--modal {
  margin-top: 16px;
}

.fais-consent-reopen {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99998;
  font-size: 12px;
  padding: 8px 11px;
  background: rgba(8, 14, 28, 0.92);
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .fais-consent-card {
    grid-template-columns: 1fr;
  }

  .fais-consent-actions {
    justify-content: stretch;
  }

  .fais-consent-btn {
    flex: 1 1 auto;
  }
}
