#ortho-next {
  box-sizing: border-box;
  width: min(100%, 1366px);
  margin-inline: auto;
  padding: clamp(22px,3vw,42px) 30px 0;
  font: 400 16px/1.5 "PP Gotham", Arial, sans-serif;
  color: #29242e;
}
#ortho-next *, #ortho-next *::before, #ortho-next *::after { box-sizing: border-box; }
#ortho-next [hidden] { display: none !important; }
#ortho-next .on-strip {
  display: grid;
  grid-template-columns: clamp(94px,9vw,136px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.5vw,38px);
  padding: clamp(20px,2.5vw,36px);
  border: 1px solid #e5dcee;
  border-radius: 20px;
  background: #f0e8f9;
}
#ortho-next .on-photo {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #fcfaff;
}
#ortho-next .on-portrait {
  display: block;
  width: 148%;
  height: 148%;
  max-width: none;
  margin-left: -23%;
  object-fit: cover;
  object-position: center top;
}
#ortho-next .on-copy h2, #ortho-next dialog h2 {
  margin: 0;
  color: #29242e;
  font: 500 clamp(24px, 2.3vw, 36px)/1.12 "PP Gotham", Arial, sans-serif;
  letter-spacing: -.045em;
}
#ortho-next .on-copy p {
  max-width: 68ch;
  margin: 8px 0 0;
  color: #494352;
  text-wrap: pretty;
}
#ortho-next .on-actions { display: flex; flex-direction: column; align-items: center; }
#ortho-next .on-button, #ortho-next .on-link, #ortho-next .on-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: inherit;
}
#ortho-next .on-button {
  padding: 12px 25px;
  border: 0;
  border-radius: 100px;
  background: #732ab1;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
#ortho-next .on-button:enabled:hover { background: #642797; }
#ortho-next .on-link {
  color: #66269e;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#ortho-next :focus-visible { outline: 3px solid #6e2dad; outline-offset: 3px; }
#ortho-next dialog {
  max-width: min(438px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: auto;
  padding: 34px 28px 28px;
  border: 0;
  border-radius: 20px;
  background: white;
  color: inherit;
  box-shadow: 0 22px 88px #1a12274d;
}
#ortho-next dialog::backdrop { background: rgb(42 36 49 / 63%); }
#ortho-next dialog h2 { padding-right: 36px; font-size: 28px; }
#ortho-next .on-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f4f0f8;
  color: #452e5d;
  cursor: pointer;
}
#ortho-next #ortho-callback-note { margin: 12px 0 20px; font-size: 14px; color: #5e5568; }
#ortho-next .on-fields { display: grid; gap: 10px; padding: 0; margin: 0; border: 0; min-width: 0; }
#ortho-next .on-fields > input {
  width: 100%;
  height: 45px;
  border: 1px solid #dcd9e1;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  background: #faf9fb;
  opacity: 1;
}
#ortho-next .on-fields > input::placeholder { color: #6c6571; opacity: 1; }
#ortho-next .on-fields .on-button { background: #ded6e7; color: #564a61; cursor: default; }
#ortho-next .on-consent { display: flex; align-items: flex-start; gap: 7px; color: #6c6372; font-size: 12px; line-height: 1.4; }
#ortho-next .on-consent input { margin: 2px 0; flex: none; }
@media(max-width: 767px) {
  #ortho-next .on-strip { grid-template-columns: 58px minmax(0,1fr); grid-template-areas:"portrait title" "copy copy" "actions actions"; gap:12px 14px; align-items:center; padding:clamp(16px,4.6vw,25px); border-radius:18px; }
  #ortho-next .on-photo { grid-area:portrait; width:58px; height:58px; }
  #ortho-next .on-copy { display:contents; }
  #ortho-next .on-copy h2 { grid-area:title; }
  #ortho-next .on-copy h2 { font-size: 24px; }
  #ortho-next .on-copy p { grid-area:copy; margin:0; font-size:16px; line-height:1.5; }
  #ortho-next .on-actions { grid-area:actions; justify-self:start; flex-flow:row wrap; justify-content:flex-start; gap:0 14px; }
  #ortho-next .on-button { padding-inline: 18px; }
}
@media(max-width: 440px) {
  #ortho-next .on-actions { display: grid; grid-template-columns: 1fr; justify-self: stretch; justify-items: center; }
  #ortho-next .on-actions .on-button { align-self: stretch; width: 100%; }
  #ortho-next dialog { padding: 28px 20px 20px; }
}
@media(max-width: 341px) { #ortho-next { padding-inline: 15px; } }

#ortho-next #first-visit-dialog {
  width: min(484px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: clamp(20px, 3.5vw, 32px);
}
#first-visit-dialog h2 { text-wrap: balance; }
#first-visit-dialog .on-visit-lead,
#first-visit-dialog .on-visit-detail {
  margin: 12px 0 20px;
  color: #494352;
  line-height: 1.5;
}
#first-visit-dialog [data-first-visit-form] {
  display: grid;
  gap: 16px;
}
#first-visit-dialog .on-visit-example {
  padding: 12px 16px 6px;
  border-radius: 14px;
  background: #f5effb;
  color: #494052;
  font-size: 14px;
  line-height: 1.45;
}
#first-visit-dialog .on-visit-example p { margin: 0; }
#first-visit-dialog .on-visit-example-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #66269e;
  font: 500 14px/1.4 "PP Gotham", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#first-visit-dialog .on-visit-field {
  display: grid;
  gap: 5px;
  color: #332a3a;
  font-weight: 500;
}
#first-visit-dialog .on-visit-field input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #9586a5;
  border-radius: 10px;
  background: white;
  color: #232323;
  font: 400 16px/1.4 "PP Gotham", Arial, sans-serif;
}
#first-visit-dialog .on-visit-field input::placeholder { color: #716879; }
#first-visit-dialog .on-button { width: 100%; min-height: 48px; }
#first-visit-dialog [data-first-visit-success] .on-visit-detail { margin-top: -8px; }
@media (max-width: 480px) and (max-height: 640px) {
  #ortho-next #first-visit-dialog { padding: 16px; }
  #ortho-next #first-visit-dialog h2 { font-size: 24px; }
  #first-visit-dialog .on-visit-lead { margin: 8px 0 12px; }
  #first-visit-dialog [data-first-visit-form] { gap: 9px; }
  #first-visit-dialog .on-visit-example { padding: 8px 14px 0; }
  #first-visit-dialog .on-visit-field { gap: 2px; }
}
