/* CTA modal variants (v2). Scoped to html.td-cta-v2 so the default modal
   stays untouched until the feature is enabled. */

.td-cta-v2 dialog.bookdlg {
  width: min(480px, calc(100vw - 32px));
}

.td-cta-v2 dialog.bookdlg .form-card {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.bookdlg .chip {
  max-width: 100%;
  white-space: normal;
}

.bookdlg .consent {
  align-items: flex-start;
}

.bookdlg .consent__text {
  flex: 1 1 auto;
  min-width: 0;
}

.bookdlg .consent__text a {
  white-space: nowrap;
}

.bookdlg__slots {
  margin-top: 16px;
}

.bookdlg__slots .td-slots {
  padding: 12px;
}

.bookdlg__slots .td-slots__hint {
  font-size: 12px;
}

.bookdlg__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.bookdlg__status:empty {
  display: none;
}

.bookdlg__status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc8f;
  box-shadow: 0 0 0 3px rgb(46 204 143 / 12%);
}

.bookdlg__status.is-closed::before {
  background: #a9b7b3;
  box-shadow: none;
}

.bookdlg__proof {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.bookdlg__doctor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--mist);
}

.bookdlg__doctor img {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  background: var(--soft);
}

.bookdlg__doctor b {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.bookdlg__doctor span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.bookdlg__offer {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--mist);
}

.bookdlg__price {
  margin: 0;
  font: 700 32px/1 var(--font);
  letter-spacing: -0.03em;
  color: var(--brand);
}

.bookdlg__includes {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.bookdlg__bullets {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bookdlg__bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink);
}

.bookdlg__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}

.bookdlg__note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.bookdlg__micro {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.bookdlg__secondary {
  display: block;
  margin: 10px auto 0;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: 600 13.5px/1.3 var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bookdlg__secondary:hover {
  color: var(--brand-hover);
}

.td-cta-v2 dialog.bookdlg .done {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .td-cta-v2 dialog.bookdlg {
    inset: auto 0 0 0;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: 0;
    border-radius: 20px 20px 0 0;
  }

  .td-cta-v2 dialog.bookdlg .form-card {
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .bookdlg__price {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-cta-v2 dialog.bookdlg,
  .td-cta-v2 dialog.bookdlg .form-card {
    scroll-behavior: auto;
  }
}
