/* CMEL flow overlays, modals and loaders */

.cmel-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(247, 251, 252, 0.88);
  backdrop-filter: blur(14px);
}

.cmel-loader.is-visible {
  display: grid;
}

.cmel-loader-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid #dfe9ee;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(14, 31, 53, 0.12);
  text-align: center;
}

.cmel-loader-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 4px solid #e2f7ef;
  border-top-color: #078f85;
  animation: cmelSpin 0.85s linear infinite;
}

.cmel-loader-card h2 {
  margin: 0;
  color: #101d35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.cmel-loader-card p {
  margin: 10px 0 0;
  color: #526174;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
}

@keyframes cmelSpin {
  to {
    transform: rotate(360deg);
  }
}

.cmel-modal {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(16, 29, 53, 0.46);
  backdrop-filter: blur(12px);
}

.cmel-modal.is-visible {
  display: grid;
}

.cmel-modal-card {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid #dfe9ee;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(11, 174, 159, 0.12), transparent 32%),
    #ffffff;
  box-shadow: 0 28px 90px rgba(14, 31, 53, 0.18);
}

.cmel-modal-inner {
  padding: clamp(24px, 4vw, 34px);
}

.cmel-modal-kicker {
  width: fit-content;
  margin: 0 0 12px;
  color: #078f85;
  background: #effbf8;
  border: 1px solid #cfe9e7;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cmel-modal h2 {
  margin: 0;
  color: #101d35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.cmel-modal-copy {
  margin: 14px 0 0;
  color: #526174;
  font-size: 16px;
  line-height: 1.58;
  font-weight: 650;
}

.cmel-modal-actions {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.cmel-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cmel-choice-card,
.cmel-modal-primary,
.cmel-modal-secondary {
  appearance: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.cmel-choice-card {
  display: block;
  padding: 18px;
  border: 1px solid #dfe9ee;
  border-radius: 20px;
  background: #ffffff;
  color: #101d35;
  box-shadow: 0 12px 26px rgba(14, 31, 53, 0.045);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.cmel-choice-card:hover {
  transform: translateY(-2px);
  border-color: #9bded8;
  box-shadow: 0 18px 38px rgba(14, 31, 53, 0.08);
}

.cmel-choice-card strong {
  display: block;
  font-size: 18px;
  font-weight: 950;
}

.cmel-choice-card span {
  display: block;
  margin-top: 6px;
  color: #69758a;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;
}

.cmel-modal-primary {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #078f85;
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(7, 143, 133, 0.24);
}

.cmel-modal-secondary {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #effbf8;
  color: #078f85;
  font-weight: 900;
}

.cmel-agreement-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.cmel-agreement-list li {
  padding: 12px 14px;
  border: 1px solid #dfe9ee;
  border-radius: 16px;
  background: #f7fbfc;
  color: #26334a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.cmel-modal-small {
  margin-top: 14px;
  color: #69758a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

body.cmel-modal-locked {
  overflow: hidden;
}

@media (max-width: 700px) {
  .cmel-choice-grid {
    grid-template-columns: 1fr;
  }

  .cmel-modal-card {
    border-radius: 24px;
  }

  .cmel-loader-card {
    border-radius: 22px;
  }
}

/* CMEL_HEALTH_DATA_CONSENT_V1_START */
.cmel-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #cfdde3;
  border-radius: 16px;
  background: #f7fbfc;
  color: #26334a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.cmel-consent-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: #078f85;
}

.cmel-consent-check a {
  color: #067d75;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cmel-modal-primary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
/* CMEL_HEALTH_DATA_CONSENT_V1_END */

/* CMEL_UNLOCK_CARD_TYPE_REFINEMENT_V2_START */

.pv-unlock-card {
  padding: 26px;
}

.pv-unlock-card h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 8px;
}

.pv-unlock-card p {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  color: #526174;
}

.pv-unlock-card small {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pv-unlock-state {
  font-size: 13px;
  font-weight: 900;
}

.pv-legal-note {
  padding: 26px;
}

.pv-legal-note strong {
  font-size: 18px;
  font-weight: 900;
}

.pv-legal-note p {
  font-size: 16px;
  line-height: 1.6;
}

.pv-legal-note small {
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 700px) {

  .pv-unlock-card {
    padding: 22px;
  }

  .pv-unlock-card h3 {
    font-size: 20px;
  }

  .pv-unlock-card p {
    font-size: 15px;
  }

}

/* CMEL_UNLOCK_CARD_TYPE_REFINEMENT_V2_END */

/* CMEL_UNLOCK_FINAL_TYPE_V2_START */

.pv-unlock-grid .pv-unlock-card h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.pv-unlock-grid .pv-unlock-card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: #526174;
}

.pv-unlock-grid .pv-unlock-card small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pv-unlock-grid .pv-unlock-card .pv-unlock-state {
  font-size: 12px;
  font-weight: 900;
}

@media (max-width:700px) {

  .pv-unlock-grid .pv-unlock-card h3 {
      font-size: 19px;
  }

  .pv-unlock-grid .pv-unlock-card p {
      font-size: 14px;
  }

}

/* CMEL_UNLOCK_FINAL_TYPE_V2_END */

/* CMEL_SAFETY_FORCE_V3_START */

.pv-page .pv-shell .pv-legal-note {
  padding: 24px !important;
}

.pv-page .pv-shell .pv-legal-note strong {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
  margin-bottom: 10px !important;
}

.pv-page .pv-shell .pv-legal-note p {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
}

.pv-page .pv-shell .pv-legal-note small {
  display: block !important;
  margin-top: 12px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* CMEL_SAFETY_FORCE_V3_END */