/* LEO styles are scoped so the clinic's captured layout stays intact. */
#leo-root {
  --leo-ink: #152b29;
  --leo-green: #244b43;
  --leo-gold: #dfa947;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--leo-ink);
}
#leo-root * {
  box-sizing: border-box;
}
#leo-root [hidden] {
  display: none !important;
}
#leo-root button,
#leo-root input,
#leo-root textarea,
#leo-root select {
  font: inherit;
}
#leo-root button {
  cursor: pointer;
}
#leo-root button:disabled {
  cursor: wait;
  opacity: 0.55;
}
#leo-root button:focus-visible,
#leo-root a:focus-visible,
#leo-root input:focus-visible,
#leo-root select:focus-visible {
  outline: 3px solid #c98a27;
  outline-offset: 3px;
}
.leo-launch {
  display: none !important;
}
.leo-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff6dc;
  border-radius: 50%;
  padding: 4px;
}
.leo-header-button {
  display: inline-flex !important;
  gap: 9px !important;
  align-items: center !important;
  background-color: #244b43 !important;
  color: #ffffff !important;
  border: none !important;
}
.leo-header-button:hover {
  background-color: #173f35 !important;
  color: #ffffff !important;
}
.leo-header-button img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.leo-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(880px, calc(100vw - 48px));
  height: min(800px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #e4e6df;
  border-radius: 24px;
  background: #fbfcfa;
  color: #152b29;
  box-shadow: 0 24px 100px #102d3440;
  overflow: hidden;
}
.leo-dialog::backdrop {
  background: #14222165;
  backdrop-filter: blur(4px);
}
.leo-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.leo-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid #e3e8e2;
  background: white;
}
.leo-top h2 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
}
.leo-top p {
  font-size: 12px;
  color: #64716a;
  margin: 4px 0 0;
}
.leo-top .leo-tools {
  margin-left: auto;
  display: flex;
  gap: 14px;
}
.leo-plain {
  border: 0 !important;
  background: transparent !important;
  color: #48615a !important;
  padding: 7px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}
.leo-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.leo-aside {
  display: none;
}
.leo-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
  font-weight: 600;
  color: #6a8175;
  margin: 0 0 18px;
}
.leo-aside h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 15px;
}
.leo-aside p {
  font-size: 13px;
  line-height: 1.6;
  color: #5d6b62;
}
.leo-steps {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  display: grid;
  gap: 20px;
  font-size: 12px;
}
.leo-steps li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.leo-steps span {
  display: grid;
  place-items: center;
  border: 1px solid #c5d4c5;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  color: #526d59;
  font-size: 11px;
}
.leo-aside a {
  color: #31544a;
  text-decoration: underline;
}
.leo-aside .leo-notice {
  border-top: 1px solid #d8e1d6;
  padding-top: 18px;
  font-size: 11px;
  margin-top: 28px;
}
.leo-conversation {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  flex: 1;
  width: 100%;
}
.leo-feed {
  padding: 28px 30px;
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.leo-welcome {
  text-align: center;
  padding: 24px 0 20px;
}
.leo-welcome .leo-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
}
.leo-welcome h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.leo-welcome p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 410px;
  margin: 0 auto 18px;
  color: #68756c;
}
.leo-privacy {
  max-width: 440px;
  margin: 24px auto;
  padding: 20px;
  background: #f3f5ef;
  border-radius: 12px;
  text-align: left;
}
.leo-privacy p:last-child {
  margin-bottom: 0;
}
.leo-privacy summary {
  cursor: pointer;
  font-size: 13px;
  color: #31544a;
}
.leo-privacy details p {
  margin-top: 12px;
}
.leo-directory {
  border-bottom: 1px solid #dce3d8;
  padding: 12px 24px;
  background: #f8f9f5;
}
.leo-directory > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.leo-directory-list {
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.leo-directory-doctor h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.leo-directory-doctor p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.leo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}
.leo-chip {
  border: 1px solid #dce3d8 !important;
  background: white !important;
  color: #385746 !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  box-shadow: none !important;
}
.leo-chip:hover {
  background: #edf3e9 !important;
  border-color: #9cb49c !important;
}
.leo-welcome .leo-chips {
  justify-content: center;
}
.leo-bubble {
  width: fit-content;
  max-width: 90%;
  padding: 12px 16px;
  background: #f1f4f2;
  color: #20352d;
  border-radius: 16px 16px 16px 4px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}
.leo-dialog .leo-message-text {
  font-size: 14px;
  line-height: 1.6;
  color: inherit;
  white-space: pre-wrap;
  margin: 0;
}
.leo-bubble strong.leo-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #496053;
  margin-bottom: 8px;
}
.leo-user {
  background: #244b43;
  border-radius: 16px 16px 3px 16px;
  padding: 13px 17px;
  margin-left: auto;
  color: #ffffff;
}
.leo-compose {
  border-top: 1px solid #e5e9e2;
  padding: 16px 24px;
  background: white;
}
.leo-compose form {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #cdd8c9;
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  transition: border-color 0.15s ease;
}
.leo-compose form:hover {
  border-color: #a8bba5;
}
.leo-compose form:focus-within {
  border-color: #244b43;
}
.leo-compose textarea {
  flex: 1;
  resize: none;
  min-width: 0;
  border: 0 !important;
  background: transparent;
  padding: 8px 0;
  height: 38px;
  min-height: 38px;
  max-height: 100px;
  font-size: 14px;
  line-height: 22px;
  color: #152b29;
  outline: none !important;
  box-shadow: none !important;
}
.leo-compose textarea:hover,
.leo-compose textarea:focus,
.leo-compose textarea:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.leo-compose form .leo-primary {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  flex: none;
  border-radius: 10px !important;
}
.leo-primary {
  background: #244b43 !important;
  color: white !important;
  border: 1px solid #244b43 !important;
  border-radius: 10px !important;
  padding: 11px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
.leo-primary:hover {
  background: #173f35 !important;
}
.leo-compose small {
  display: block;
  text-align: center;
  color: #7c847a;
  font-size: 10px;
  margin-top: 8px;
}
.leo-compose small a {
  color: #244b43;
  text-decoration: underline;
}
.leo-consent {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.5;
  max-width: 440px;
  margin: 16px auto;
  text-align: left;
  color: #627263;
}
.leo-consent input {
  accent-color: #244b43;
  margin-top: 3px;
  flex: none;
}
.leo-error {
  background: #fff0e8;
  color: #8c341b;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  margin: 12px 0;
}
.leo-info {
  background: #eff4e9;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #52694d;
  margin: 12px 0;
}
.leo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 20px;
}
.leo-doctor {
  background: white;
  border: 1px solid #dce4d8;
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.leo-doctor img {
  height: 74px;
  width: 65px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  margin-bottom: 10px;
}
.leo-doctor h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 5px;
}
.leo-doctor p {
  font-size: 11px;
  line-height: 1.5;
  color: #6c7868;
  margin: 0 0 10px;
}
.leo-doctor a {
  font-size: 11px;
  color: #4d6b48;
  text-decoration: underline;
  margin-bottom: 12px;
}
.leo-doctor button {
  width: 100%;
  margin-top: auto;
}
.leo-panel {
  border: 1px solid #dce4d8;
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin: 18px 0;
}
.leo-panel h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
.leo-panel p {
  font-size: 12px;
  color: #6b7867;
  line-height: 1.5;
}
.leo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.leo-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #51604b;
}
.leo-fields input,
.leo-fields select,
.leo-fields textarea {
  border: 1px solid #cbd6c6;
  border-radius: 9px;
  padding: 10px;
  width: 100%;
  background: #fff;
  color: #243e29;
}
.leo-fields .wide {
  grid-column: 1/-1;
}
.leo-selected {
  background: #244b43 !important;
  color: white !important;
  border-color: #244b43 !important;
}
.leo-summary {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
  margin: 18px 0;
}
.leo-summary dt {
  color: #71816b;
}
.leo-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.leo-success {
  border: 1px solid #a9c59d;
  background: #edf5e7;
  border-radius: 15px;
  padding: 24px;
}
.leo-success h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.leo-success p {
  font-size: 14px;
  line-height: 1.6;
}
.leo-success code {
  display: block;
  font-size: 20px;
  margin: 15px 0;
}
.leo-emergency {
  border: 1px solid #d7896f;
  background: #fff0e8;
  border-radius: 15px;
  padding: 20px;
}
.leo-emergency a {
  display: inline-block;
  margin: 12px 8px 0 0;
}
.leo-reception-link {
  position: relative;
  display: block;
  text-align: center;
  padding: 15px;
  color: #667267;
  font-size: 12px;
  background: #fafbf9;
}
.leo-menu-open {
  transform: translateX(0) !important;
}
.leo-overlay-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}
@media (max-width: 700px) {
  .leo-dialog {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .leo-body {
    display: flex;
  }
  .leo-aside {
    display: none;
  }
  .leo-conversation {
    width: 100%;
  }
  .leo-top {
    padding: 14px 16px;
  }
  .leo-feed {
    padding: 22px 16px;
  }
  .leo-compose {
    padding: 12px;
  }
  .leo-top h2 {
    font-size: 18px;
  }
  .leo-launch {
    bottom: 16px;
    right: 16px;
  }
  .leo-top .leo-tools {
    gap: 4px;
  }
  .leo-top .leo-tools button {
    font-size: 11px !important;
  }
  .leo-fields {
    grid-template-columns: 1fr;
  }
  .leo-cards {
    gap: 8px;
  }
  .leo-doctor {
    padding: 12px;
  }
  .leo-welcome h3 {
    font-size: 27px;
  }
  .leo-panel {
    padding: 16px;
  }
  .leo-user {
    margin-left: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
/* Isolate the widget from the clinic stylesheet's global heading rules. */
#leo-root .leo-top h2 {
  font-size: 20px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.5px;
  font-weight: 700;
}
#leo-root .leo-top h2 span {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #798879;
}
#leo-root .leo-top p {
  font-size: 12px;
  margin: 4px 0 0;
}
#leo-root .leo-aside {
  overflow-y: auto;
}
#leo-root .leo-aside h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
}
#leo-root .leo-steps {
  font-size: 12px;
}
#leo-root .leo-mark,
#leo-root .leo-launch img {
  background: #244b43;
}
#leo-root .leo-launch img {
  border: 1px solid #ffffff40;
}
.leo-header-button img {
  background: #244b43;
  border-radius: 50%;
  padding: 3px;
}
#leo-root .leo-top {
  flex: none;
}
#leo-root .leo-compose {
  flex: none;
}
#leo-root .leo-welcome .leo-eyebrow {
  font-size: 10px;
  margin-bottom: 10px;
}
#leo-root .leo-dialog {
  font-size: 14px;
}
@media (max-width: 700px) {
  #leo-root .leo-top h2 {
    font-size: 18px !important;
  }
}
.leo-emergency-line {
  display: block;
  margin-top: 2px;
}
@layer theme {
  #leo-root .leo-top h2 {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }
}

.leo-user strong.leo-label {
  color: #ffffff;
}
.leo-suggestions button:disabled {
  opacity: 0.65;
  cursor: default;
}
.leo-dialog .leo-compose small {
  color: #526057;
  line-height: 1.5;
}
.leo-chip:focus-visible {
  outline: 2px solid #244b43;
  outline-offset: 3px;
}

/* Small, consistent feedback for chat controls; no movement on disabled choices. */
.leo-dialog :is(button, summary, a, input[type="checkbox"]) {
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
.leo-dialog :is(button, summary, a, input):focus-visible {
  outline: 2px solid #244b43 !important;
  outline-offset: 3px;
}
.leo-dialog .leo-plain {
  border-radius: 10px !important;
  min-height: 40px;
}
.leo-dialog .leo-close {
  display: grid;
  place-items: center;
  width: 40px;
  flex: none;
}
.leo-close svg {
  transition: transform 180ms ease;
  pointer-events: none;
}
@media (hover: hover) {
  .leo-dialog button:not(:disabled):hover,
  .leo-dialog a:hover {
    transform: translateY(-1px);
  }
  .leo-dialog .leo-plain:not(:disabled):hover {
    background: #edf3ef !important;
    color: #203e34 !important;
  }
  .leo-close:hover svg {
    transform: rotate(8deg);
  }
  .leo-dialog summary:hover {
    color: #244b43;
    background-color: #e8efeb;
  }
}
.leo-dialog button:not(:disabled):active,
.leo-dialog a:active {
  transform: scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .leo-dialog *,
  .leo-dialog *::before,
  .leo-dialog *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .leo-dialog button,
  .leo-dialog a,
  .leo-close svg {
    transform: none !important;
  }
}
.leo-voice {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #dae5df;
  border-radius: 16px;
  background: #f2f7f3;
  color: #244b43;
  font-size: 13px;
}
.leo-voice[hidden],
#leo-voice-consent-panel[hidden] {
  display: none;
}
.leo-voice-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.leo-voice-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.leo-voice-dot {
  width: 7px;
  height: 7px;
  background: #759888;
  border-radius: 50%;
  flex: none;
}
.leo-voice-state strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
#leo-voice-hint {
  display: block;
  margin-top: 2px;
  color: #64766c;
  font-size: 11px;
  line-height: 1.4;
}
#leo-root .leo-voice-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  flex: none;
  border: 1px solid #cddbd2;
  border-radius: 12px;
  background: white;
  color: #244b43;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 3px #193a2410;
}
#leo-root .leo-voice-toggle:hover {
  background: #e5eee7;
}
.leo-voice .leo-stop-icon {
  display: none;
}
.leo-voice.is-active {
  background: #edf6ef;
  border-color: #c6decf;
}
.leo-voice.is-active .leo-voice-dot {
  background: #2d8255;
  box-shadow: 0 0 0 4px #2d825514;
}
.leo-voice.is-active .leo-mic-icon {
  display: none;
}
.leo-voice.is-active .leo-stop-icon {
  display: block;
}
#leo-root .leo-voice.is-active .leo-voice-toggle {
  background: #fff4f1;
  border-color: #ebccc4;
  color: #a63f2f;
  box-shadow: none;
}
#leo-root .leo-voice.is-active .leo-voice-toggle:hover {
  background: #fbe5df;
}
.leo-voice-consent-card {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dae5df;
  max-height: 38dvh;
  overflow: auto;
}
#leo-root .leo-voice-consent-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #244b43;
  line-height: 1.4;
}
.leo-voice-consent-card p {
  margin: 0 0 10px;
  line-height: 1.55;
  font-size: 12px;
  color: #4d6258;
}
.leo-voice-consent-card .leo-voice-privacy-note {
  font-size: 11px;
}
.leo-voice-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 14px 0 10px;
}
#leo-root .leo-voice-accept,
#leo-root .leo-voice-cancel {
  border-radius: 11px;
  padding: 11px 14px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
}
#leo-root .leo-voice-accept {
  background: #244b43;
  color: white;
  border: 1px solid #244b43;
}
#leo-root .leo-voice-accept:hover {
  background: #183c33;
}
#leo-root .leo-voice-cancel {
  background: transparent;
  color: #536b5e;
  border: 1px solid #cddbd2;
}
.leo-voice-permission-note {
  display: block;
  font-size: 11px;
  color: #64766c;
  line-height: 1.5;
}
@media (max-width: 420px) {
  .leo-voice {
    padding: 11px;
  }
  .leo-voice-state {
    gap: 8px;
  }
  #leo-voice-hint {
    max-width: 150px;
  }
  #leo-root .leo-voice-toggle {
    padding: 9px 11px;
  }
}
.leo-voice button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
