/* The "Book with Dr. X" tile at the top of each surgeon profile. See surgeon-booking.js. */
.sbt {
  --sbt-blue: var(--blue, #1a5fa8);
  --sbt-tint: var(--blue-light, #eef4fb);
  --sbt-ink: var(--gray-900, #0d1117);
  --sbt-text: var(--gray-600, #495057);
  --sbt-muted: var(--gray-500, #6c757d);
  --sbt-line: #dbe5f0;
  margin: 20px 0 28px;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border: 1px solid var(--sbt-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 71, 125, .06), 0 16px 36px -22px rgba(20, 71, 125, .35);
  scroll-margin-top: 96px;
}
.sbt-flash { animation: sbt-flash 1.2s ease; }
.sbt-title { font-family: var(--serif, Georgia, serif); font-size: 1.3rem; line-height: 1.25; color: var(--sbt-ink); margin: 0; }
.sbt-body { margin-top: 10px; min-height: 44px; }

/* Ready: the title, soonest time and button share one compact row. */
.sbt-ready { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title cta" "line cta" "foot foot" "more more"; column-gap: 16px; align-items: center; }
.sbt-ready .sbt-title { grid-area: title; }
.sbt-ready .sbt-body { display: contents; }
.sbt-line { grid-area: line; margin: 3px 0 0; color: var(--sbt-text); font-size: .94rem; line-height: 1.4; }
.sbt-line-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sbt-blue); margin-top: 3px; }
.sbt-line strong { color: var(--sbt-ink); font-weight: 700; }
.sbt button.sbt-cta { grid-area: cta; align-self: center; padding: 13px 24px; border: 0; border-radius: 999px; background: var(--sbt-blue); color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(26, 95, 168, .9); }
.sbt button.sbt-cta:hover { background: #2b7de9; color: #fff; transform: translateY(-1px); }

.sbt-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sbt-line); font-size: .88rem; }
.sbt button.sbt-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; border: 0; background: none; color: var(--sbt-blue); font-weight: 700; }
.sbt button.sbt-toggle:hover { background: none; text-decoration: underline; }
.sbt-chevron { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.sbt-toggle[aria-expanded="true"] .sbt-chevron { transform: translateY(1px) rotate(225deg); }
.sbt-tel { color: var(--sbt-text); text-decoration: none; white-space: nowrap; }
.sbt-tel:hover { color: var(--sbt-blue); }

.sbt-more { grid-area: more; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.sbt-more[data-open="true"] { grid-template-rows: 1fr; }
.sbt-more-inner { min-height: 0; overflow: hidden; }
.sbt-more-inner > .sbt-step:first-child { margin-top: 16px; }

.sbt-step + .sbt-step { margin-top: 18px; }
.sbt-label { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--sbt-blue); margin-bottom: 10px; }
.sbt-label-row { display: flex; align-items: center; justify-content: space-between; min-height: 30px; margin-bottom: 8px; }
.sbt-label-row .sbt-label { margin: 0; }

.sbt button { font: inherit; cursor: pointer; color: var(--sbt-ink); background: #fff; border: 1px solid var(--sbt-line); transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .16s; }
.sbt-more button:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--sbt-blue); background: var(--sbt-tint); }
.sbt button:focus-visible { outline: 2px solid var(--sbt-blue); outline-offset: 2px; }
.sbt button[aria-pressed="true"] { background: var(--sbt-blue); border-color: var(--sbt-blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(26, 95, 168, .8); }

.sbt-offices { display: flex; flex-wrap: wrap; gap: 8px; }
.sbt-office { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 15px; border-radius: 12px; text-align: left; }
.sbt-office-name { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.sbt-office-next { font-size: .78rem; color: var(--sbt-muted); }
.sbt-office[aria-pressed="true"] .sbt-office-next { color: rgba(255, 255, 255, .84); }

.sbt-nav { display: flex; gap: 6px; }
.sbt .sbt-arrow { width: 30px; height: 30px; border-radius: 50%; font-size: 1.1rem; line-height: 1; color: var(--sbt-blue); padding: 0 0 2px; }
.sbt .sbt-arrow:disabled { opacity: .35; cursor: default; }

.sbt-days { display: grid; grid-template-columns: repeat(var(--sbt-cols, 6), minmax(0, 1fr)); gap: 8px; }
.sbt-day { display: flex; flex-direction: column; align-items: center; padding: 8px 2px 7px; border-radius: 12px; }
.sbt-day-week, .sbt-day-month { font-size: .72rem; color: var(--sbt-muted); line-height: 1.3; }
.sbt-day-number { font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
.sbt-day[aria-pressed="true"] .sbt-day-week, .sbt-day[aria-pressed="true"] .sbt-day-month { color: rgba(255, 255, 255, .84); }

.sbt-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; }
.sbt-time { min-height: 44px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.sbt-zone { margin: 10px 0 2px; font-size: .78rem; color: var(--sbt-muted); }

.sbt-link { display: inline-flex; align-items: center; margin-right: 14px; padding: 12px 24px; border-radius: 999px; background: var(--sbt-blue); color: #fff; font-weight: 600; text-decoration: none; }
.sbt-body > .sbt-tel { font-size: .9rem; }

.mobile-action-bar { transition: transform .22s ease, visibility .22s; }
.mobile-action-bar.sbt-bar-hidden { transform: translateY(110%); visibility: hidden; }

.sbt-skel { height: 44px; border-radius: 10px; background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%); background-size: 200% 100%; animation: sbt-shimmer 1.3s linear infinite; }

.sbt-dialog { margin: auto; padding: 0; border: 0; border-radius: 18px; width: min(720px, calc(100vw - 32px)); height: min(880px, calc(100vh - 48px)); max-width: none; max-height: none; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(13, 17, 23, .55); }
.sbt-dialog[open] { display: flex; flex-direction: column; animation: sbt-rise .24s ease; }
.sbt-dialog::backdrop { background: rgba(13, 17, 23, .55); backdrop-filter: blur(3px); }
.sbt-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 14px 22px; border-bottom: 1px solid #dbe5f0; font-family: var(--sans, system-ui, sans-serif); }
.sbt-dialog-title { font-weight: 700; color: var(--gray-900, #0d1117); line-height: 1.3; }
.sbt-dialog-when { font-size: .88rem; color: var(--blue, #1a5fa8); font-weight: 600; }
.sbt-dialog-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--gray-100, #f1f3f5); color: var(--gray-700, #343a40); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.sbt-dialog-frame { flex: 1; width: 100%; border: 0; }

@keyframes sbt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sbt-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes sbt-flash { 0%, 100% { box-shadow: 0 1px 2px rgba(20, 71, 125, .06), 0 16px 36px -22px rgba(20, 71, 125, .35); } 35% { box-shadow: 0 0 0 4px rgba(26, 95, 168, .35), 0 16px 36px -22px rgba(20, 71, 125, .35); } }

@media (max-width: 560px) {
  .sbt-ready { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "line" "cta" "foot" "more"; }
  .sbt button.sbt-cta { margin-top: 12px; width: 100%; }
}
@media (max-width: 768px) {
  .sbt-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sbt, .sbt *, .sbt-dialog[open] { animation: none !important; transition: none !important; }
}
