/* Shared booking component; layout overrides are restricted to enabled RU pages. */
.teomed-booking-pair.teomed-button-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; min-width:0; }
.teomed-booking-pair.teomed-button-row .teomed-button { min-width:0; min-height:48px; padding:12px 18px; text-align:center; white-space:normal; overflow-wrap:anywhere; }
.teomed-booking-pair.teomed-button-row .teomed-button--outline { background:transparent; color:var(--teomed-action); border:1px solid var(--teomed-action); box-shadow:none; }
.teomed-booking-pair.teomed-button-row .teomed-button--outline:hover { background:var(--teomed-action); color:var(--teomed-surface); }
.teomed-phone-dialog { box-sizing:border-box; width:min(620px,calc(100% - 32px)); max-width:calc(100% - 32px); max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); padding:24px; border:1px solid var(--teomed-border); border-radius:12px; background:var(--teomed-surface); color:var(--teomed-ink); box-shadow:0 16px 56px rgb(0 0 0 / 20%); overflow:auto; overscroll-behavior:contain; }
.teomed-phone-dialog:not([open]) { display:none; }
.teomed-phone-dialog::backdrop { background:rgb(0 0 0 / 48%); }
.teomed-phone-dialog__heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.teomed-phone-dialog h2 { margin:0; font-size:clamp(24px,5vw,32px); }
.teomed-phone-dialog h3 { margin:8px 0; font-size:clamp(21px,4vw,27px); }
.teomed-phone-dialog h2,.teomed-phone-dialog h3 { color:var(--teomed-heading); font-family:Lora,serif; overflow-wrap:anywhere; }
.teomed-phone-dialog p { margin:12px 0; overflow-wrap:anywhere; }
.teomed-phone-dialog .teomed-phone-dialog__close { flex-shrink:0; min-width:44px; min-height:44px; padding:8px 10px; border:1px solid var(--teomed-border); border-radius:5px; background:var(--teomed-surface); color:var(--teomed-action); font:inherit; cursor:pointer; }
.teomed-phone-dialog__list { list-style:none; padding:0; margin:20px 0 0; display:grid; gap:16px; }
.teomed-phone-dialog__doctor { min-width:0; padding:18px; border:1px solid var(--teomed-border); border-radius:8px; }
.teomed-phone-dialog__role { color:var(--teomed-muted); }
.teomed-phone-dialog__number { color:var(--teomed-heading); font-size:20px; }
.teomed-phone-dialog .teomed-phone-dialog__call { min-width:0; min-height:48px; white-space:normal; }
:is(.teomed-booking-pair.teomed-button-row,dialog.teomed-phone-dialog) :is(a,button):focus-visible { outline:var(--teomed-focus); outline-offset:4px; }
@media (max-width:600px) {
  .teomed-booking-pair.teomed-button-row { flex-direction:column; align-items:stretch; }
  .teomed-booking-pair.teomed-button-row .teomed-button { width:100%; }
  .teomed-phone-dialog { width:calc(100% - 16px); max-width:calc(100% - 16px); margin:auto auto 0; max-height:calc(100vh - 16px); max-height:calc(100dvh - 16px); padding:20px max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); border-radius:12px 12px 0 0; }
  .teomed-phone-dialog__heading { gap:8px; flex-wrap:wrap; }
  .teomed-phone-dialog__doctor { padding:14px; }
  .teomed-phone-dialog .teomed-phone-dialog__call { width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  .teomed-booking-pair *,.teomed-phone-dialog,.teomed-phone-dialog * { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

/* One stable Services help zone outside the tabpanels, also visible on mobile. */
.teomed-booking-help.g1-help { display:block; min-width:0; }
.teomed-booking-help .teomed-booking-pair { flex-direction:column; align-items:stretch; }
.teomed-booking-help .teomed-booking-pair .teomed-button { width:100%; }
@media (max-width:767px) {
  .teomed-booking-help.g1-help { margin-top:18px; padding-top:0; border-top:0; margin-bottom:18px; }
}
/* GENERAL can contain several rows: keep closing available during internal scrolling. */
.teomed-phone-dialog__heading { position:sticky; top:0; z-index:1; background:var(--teomed-surface); }

.teomed-phone-dialog [hidden] { display:none !important; }
body.teomed-booking-enabled .teomed-header .teomed-nav-panel { min-width:0; flex-wrap:wrap; gap:20px; }
body.teomed-booking-enabled .teomed-header__actions { min-width:0; max-width:100%; }
body.teomed-booking-enabled .teomed-header .teomed-booking-pair { margin-top:0; }
body.teomed-booking-enabled .teomed-header .teomed-booking-pair .teomed-button { min-width:0; font-size:14px; padding:10px 14px; }
body.teomed-booking-enabled .g2-detail-actions { flex-wrap:wrap; }
body.teomed-booking-enabled .g2-detail-actions .teomed-booking-pair { margin-top:0; }
body.teomed-booking-enabled .g3-contact-card__phone { overflow-wrap:anywhere; }
@media (max-width:767px) {
 body.teomed-booking-enabled .teomed-header .teomed-nav-panel { flex-wrap:nowrap; padding-bottom:calc(84px + env(safe-area-inset-bottom)); }
 body.teomed-booking-enabled .teomed-header__actions { margin-top:20px; width:100%; }
 body.teomed-booking-enabled .teomed-header .teomed-booking-pair { width:100%; flex-direction:column; }
 body.teomed-booking-enabled .teomed-header .teomed-booking-pair .teomed-button { width:100%; }
}
