
@import url("https://fonts.googleapis.com/css2?family=KoHo:wght@400;500;600;700&display=swap");

/* =========================================================
   SECTION BLEND / SELECTOR / FILTER
   Programme and Group card layouts are intentionally untouched.
========================================================= */

.page-section.kinara-scheduling-merged-section,
.page-section.kinara-scheduling-merged-section .section-background {
  background:
    radial-gradient(circle at 84% 15%,rgba(191,220,227,.20),transparent 52%),
    radial-gradient(circle at 12% 60%,rgba(146,176,166,.12),transparent 42%),
    linear-gradient(180deg,#fffdfa 0%,#f8fbf8 34%,#edf5f2 72%,#e7f0ed 100%) !important;

  border:0 !important;
  box-shadow:none !important;
}

.page-section.kinara-scheduling-merged-section::before,
.page-section.kinara-scheduling-merged-section::after,
.page-section.kinara-scheduling-merged-section .section-background::before,
.page-section.kinara-scheduling-merged-section .section-background::after {
  content:none !important;
  display:none !important;
}

#bsSchedulingPage {
  background:transparent !important;
}

#bsSchedulingPage .bs-view-switch.bs-view-switch--three {
  width:min(100%,820px) !important;
  margin:2px auto 14px !important;
  padding:4px 0 8px !important;

  gap:8px 22px !important;

  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

#bsSchedulingPage .bs-view-switch__link,
#bsSchedulingPage .bs-view-switch__link:not([aria-current="page"]),
#bsSchedulingPage .bs-view-switch__link[aria-current="page"] {
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

#bsSchedulingPage .bs-view-switch__link {
  position:relative;
  min-height:54px !important;
  padding:7px 10px !important;
}

#bsSchedulingPage .bs-view-switch__link[aria-current="page"] {
  min-width:270px !important;
  min-height:68px !important;
  padding:8px 18px 12px !important;
}

#bsSchedulingPage .bs-view-switch__link[aria-current="page"]::after {
  content:"";
  position:absolute;

  left:50%;
  bottom:1px;

  width:min(150px,70%);
  height:2px;

  transform:translateX(-50%);

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(79,111,99,.78),
      transparent
    );
}

#bsSchedulingPage .bs-view-switch__link[aria-current="page"] strong {
  font-size:clamp(1.28rem,2.4vw,1.52rem) !important;
  line-height:1.1 !important;
  font-weight:800 !important;
}

#bsSchedulingPage .bs-view-switch__link:not([aria-current="page"]) strong {
  font-size:.92rem !important;
}


/* Filters are embedded directly on the page, with Search aligned. */
#bsSchedulingPage .bs-filter-panel {
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

html[data-kinara-scheduling-mode="appointments"]
#bsSchedulingPage .bs-filter-panel {
  grid-template-columns:
    minmax(220px,1.35fr)
    repeat(4,minmax(135px,1fr)) !important;

  align-items:end !important;

  gap:10px !important;

  width:min(1180px,100%) !important;
  max-width:1180px !important;

  margin:0 auto 16px !important;
  padding:6px 0 12px !important;
}

html[data-kinara-scheduling-mode="appointments"]
#bsSchedulingPage .bs-filter-panel .bs-search-field.full {
  grid-column:auto !important;
}

#bsSchedulingPage .bs-filter-panel select,
#bsSchedulingPage .bs-search-shell input,
#bsSchedulingPage .bs-filter-toggle {
  background:rgba(255,255,255,.48) !important;
  border-color:rgba(79,111,99,.17) !important;
  box-shadow:none !important;

  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}


/* =========================================================
   PROFESSIONAL CARDS ONLY
========================================================= */

#bsSchedulingPage .bs-professional-grid-static {
  display:grid !important;
  grid-template-columns:1fr !important;
  grid-auto-flow:row !important;

  width:min(1180px,100%) !important;
  max-width:1180px !important;

  margin:0 auto !important;
  padding:2px 0 !important;

  gap:12px !important;

  overflow:visible !important;
  scroll-snap-type:none !important;
}

#bsSchedulingPage .bs-professional-card--matrix,
#bsSchedulingPage .bs-professional-card--matrix * {
  box-sizing:border-box;
}

#bsSchedulingPage .bs-professional-card--matrix {
  display:grid !important;

  grid-template-columns:
    82px
    minmax(150px,1fr)
    minmax(155px,1fr)
    minmax(125px,.80fr)
    minmax(170px,1.10fr)
    minmax(150px,.90fr) !important;

  grid-template-areas:
    "photo identity practice access more actions" !important;

  grid-template-rows:auto !important;

  align-items:stretch !important;

  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:108px !important;

  margin:0 !important;
  padding:8px 10px !important;

  border:1px solid rgba(79,111,99,.16) !important;
  border-radius:18px !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.76),
      rgba(248,251,248,.62)
    ) !important;

  box-shadow:0 10px 28px rgba(48,69,63,.06) !important;

  overflow:hidden !important;

  font-family:"KoHo","Segoe UI",Arial,sans-serif !important;
}

#bsSchedulingPage .bs-prof-card-photo {grid-area:photo !important;}
#bsSchedulingPage .bs-prof-card-identity {grid-area:identity !important;}
#bsSchedulingPage .bs-prof-card-practice {grid-area:practice !important;}
#bsSchedulingPage .bs-prof-card-access {grid-area:access !important;}
#bsSchedulingPage .bs-prof-card-more {grid-area:more !important;}
#bsSchedulingPage .bs-prof-card-actions {grid-area:actions !important;}


/* Photo */
#bsSchedulingPage .bs-prof-card-photo {
  display:grid !important;
  place-items:center !important;

  padding:0 10px 0 2px !important;

  border:0 !important;
}

#bsSchedulingPage .bs-prof-card-avatar {
  display:grid !important;
  place-items:center !important;

  width:62px !important;
  height:62px !important;

  border:3px solid rgba(255,255,255,.96) !important;
  border-radius:50% !important;

  background:#eaf6fb !important;

  overflow:hidden !important;

  box-shadow:0 7px 18px rgba(48,69,63,.11) !important;
}

#bsSchedulingPage .bs-prof-card-avatar .bs-provider-photo,
#bsSchedulingPage .bs-prof-card-avatar .bs-provider-initials {
  display:block !important;

  position:static !important;
  inset:auto !important;

  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;

  aspect-ratio:1 !important;

  transform:none !important;

  border:0 !important;
  border-radius:50% !important;

  object-fit:cover !important;
  object-position:center 22% !important;
}


/* Cells */
#bsSchedulingPage .bs-prof-card-cell {
  min-width:0 !important;

  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;

  padding:5px 12px !important;

  border-left:1px solid rgba(79,111,99,.10) !important;

  text-align:left !important;

  font-family:"KoHo","Segoe UI",Arial,sans-serif !important;
}

#bsSchedulingPage .bs-prof-card-label {
  display:block !important;

  margin:0 0 2px !important;

  color:#65817a !important;

  font-size:.63rem !important;
  font-weight:700 !important;
  line-height:1.15 !important;

  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}

#bsSchedulingPage .bs-prof-card-label--second {
  margin-top:7px !important;
}

#bsSchedulingPage .bs-prof-card-cell h3,
#bsSchedulingPage .bs-prof-card-cell p {
  margin:0 !important;

  text-align:left !important;

  overflow-wrap:anywhere !important;

  font-family:"KoHo","Segoe UI",Arial,sans-serif !important;
}

#bsSchedulingPage .bs-prof-card-cell h3 {
  color:#173642 !important;

  font-size:clamp(1.06rem,1.45vw,1.25rem) !important;
  font-weight:700 !important;
  line-height:1.16 !important;
}

#bsSchedulingPage .bs-prof-card-cell p {
  color:#30453f !important;

  font-size:.79rem !important;
  font-weight:550 !important;
  line-height:1.28 !important;
}

#bsSchedulingPage .bs-prof-card-role {
  display:block !important;

  margin-top:2px !important;

  color:#607a75 !important;

  font-size:.72rem !important;
  font-weight:600 !important;
  line-height:1.22 !important;
}

#bsSchedulingPage .bs-prof-card-mode {
  display:inline-flex !important;

  width:max-content !important;
  max-width:100% !important;

  margin-top:4px !important;
  padding:2px 6px !important;

  border-radius:999px !important;

  background:rgba(221,233,226,.68) !important;
  color:#4f6f63 !important;

  font-size:.64rem !important;
  font-weight:700 !important;
}


/* Bio preview stays fixed-height regardless of full Bio length. */
#bsSchedulingPage .bs-prof-bio-preview {
  display:-webkit-box !important;

  min-height:0 !important;
  max-height:2.65em !important;

  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;

  overflow:hidden !important;

  color:#4d6661 !important;

  font-size:.72rem !important;
  font-weight:500 !important;
  line-height:1.30 !important;
}

#bsSchedulingPage .bs-prof-bio-more {
  appearance:none;

  display:inline !important;

  min-height:0 !important;

  margin:0 0 0 3px !important;
  padding:0 !important;

  border:0 !important;

  background:transparent !important;
  box-shadow:none !important;

  color:#4f6f63 !important;

  font:800 .72rem/1.2 "KoHo","Segoe UI",Arial,sans-serif !important;

  text-decoration:underline;
  text-underline-offset:3px;

  cursor:pointer;
}

#bsSchedulingPage .bs-prof-card-link,
#bsSchedulingPage .bs-prof-bundle-toggle {
  appearance:none !important;

  display:inline-flex !important;
  align-items:center !important;

  width:max-content !important;
  max-width:100% !important;
  min-height:27px !important;

  margin:2px 0 0 !important;
  padding:0 !important;

  border:0 !important;

  background:transparent !important;
  box-shadow:none !important;

  color:#4f6f63 !important;

  font:800 .74rem/1.2 "KoHo","Segoe UI",Arial,sans-serif !important;

  text-decoration:underline !important;
  text-underline-offset:4px !important;

  cursor:pointer !important;

  touch-action:manipulation;
}

#bsSchedulingPage .bs-prof-card-link--muted {
  color:#8b9a96 !important;

  font-weight:600 !important;

  text-decoration:none !important;

  cursor:default !important;
}

#bsSchedulingPage .bs-prof-bundle-toggle {
  gap:5px !important;
}

#bsSchedulingPage .bs-prof-bundle-toggle svg {
  width:14px;
  height:14px;

  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;

  transition:transform .34s cubic-bezier(.2,.7,.2,1);
}

#bsSchedulingPage .bs-prof-bundle-toggle.is-open svg {
  transform:rotate(180deg);
}


/* Book */
#bsSchedulingPage .bs-prof-card-actions {
  gap:6px !important;

  padding-right:3px !important;
}

#bsSchedulingPage .bs-prof-card-actions .bs-primary-btn,
#bsSchedulingPage .bs-prof-card-actions .bs-kpay-book-action {
  width:100% !important;
  max-width:165px !important;
  min-width:0 !important;

  min-height:39px !important;

  margin:0 !important;
  padding:0 11px !important;

  border-radius:11px !important;

  touch-action:manipulation;
}

#bsSchedulingPage .bs-prof-card-kpay {
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;

  width:max-content !important;
  max-width:100% !important;

  color:#4f6f63 !important;

  font-size:.67rem !important;
  font-weight:700 !important;
  line-height:1.2 !important;
}

#bsSchedulingPage .bs-prof-card-kpay .bs-kpay-info-btn {
  width:27px !important;
  height:27px !important;
  min-height:27px !important;

  padding:0 !important;

  border-radius:50% !important;

  box-shadow:none !important;
}

#bsSchedulingPage .bs-prof-card-kpay--off {
  color:#81928d !important;
  font-weight:600 !important;
}


/* =========================================================
   SMOOTH BIO / BUNDLE PANELS
========================================================= */

#bsSchedulingPage .bs-prof-bio-panel,
#bsSchedulingPage .bs-prof-bundle-panel {
  grid-column:1 / -1 !important;

  width:100% !important;
  max-height:0;

  overflow:hidden;

  opacity:0;
  visibility:hidden;

  transform:translateY(-6px);

  border-top:0 solid rgba(79,111,99,.12);

  transition:
    max-height .42s cubic-bezier(.2,.75,.2,1),
    opacity .24s ease,
    transform .30s cubic-bezier(.2,.75,.2,1),
    border-top-width .18s ease,
    visibility 0s linear .42s;
}

#bsSchedulingPage .bs-prof-bio-panel.is-open,
#bsSchedulingPage .bs-prof-bundle-panel.is-open {
  opacity:1;
  visibility:visible;

  transform:translateY(0);

  border-top-width:1px;

  transition:
    max-height .42s cubic-bezier(.2,.75,.2,1),
    opacity .26s ease .03s,
    transform .32s cubic-bezier(.2,.75,.2,1),
    border-top-width .18s ease,
    visibility 0s linear 0s;
}

#bsSchedulingPage .bs-prof-bio-panel__inner,
#bsSchedulingPage .bs-prof-bundle-panel__inner {
  margin-top:7px;
  padding:14px 12px 7px;

  border-radius:13px;

  background:
    linear-gradient(
      145deg,
      rgba(221,233,226,.36),
      rgba(234,246,251,.28)
    );

  font-family:"KoHo","Segoe UI",Arial,sans-serif !important;
}

#bsSchedulingPage .bs-prof-bio-panel__inner strong {
  color:#173642;

  font-size:.78rem;
  font-weight:700;

  text-transform:uppercase;
  letter-spacing:.07em;
}

#bsSchedulingPage .bs-prof-bio-panel__inner p {
  margin:5px 0 9px !important;

  color:#30453f;

  font-size:.86rem;
  font-weight:500;
  line-height:1.55;

  white-space:pre-line;
}

#bsSchedulingPage .bs-prof-bio-close {
  appearance:none;

  padding:0;

  border:0;

  background:transparent;

  color:#4f6f63;

  font:800 .76rem/1.2 "KoHo","Segoe UI",Arial,sans-serif;

  text-decoration:underline;
  text-underline-offset:4px;

  cursor:pointer;
}


/* Bundle details */
#bsSchedulingPage .bs-prof-bundle-panel__inner {
  display:grid;
  gap:12px;
}

#bsSchedulingPage .bs-prof-bundle-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:start;
}

#bsSchedulingPage .bs-prof-bundle-eyebrow {
  display:block;

  margin-bottom:3px;

  color:#4f6f63;

  font-size:.67rem;
  font-weight:700;

  letter-spacing:.09em;
  text-transform:uppercase;
}

#bsSchedulingPage .bs-prof-bundle-head h4 {
  margin:0 !important;

  color:#173642;

  font:700 clamp(1.08rem,1.8vw,1.28rem)/1.2 "KoHo","Segoe UI",Arial,sans-serif !important;
}

#bsSchedulingPage .bs-prof-bundle-head p {
  max-width:720px;

  margin:5px 0 0 !important;

  color:#506a65;

  font:.84rem/1.46 "KoHo","Segoe UI",Arial,sans-serif !important;
}

#bsSchedulingPage .bs-prof-bundle-price {
  min-width:135px;

  display:grid;
  justify-items:end;
  gap:2px;

  text-align:right;
}

#bsSchedulingPage .bs-prof-bundle-price > span {
  color:#718680;

  font-size:.64rem;
  font-weight:700;

  text-transform:uppercase;
}

#bsSchedulingPage .bs-prof-bundle-price strong {
  color:#173642;

  font-size:1.08rem;
  font-weight:700;
}

#bsSchedulingPage .bs-prof-bundle-price-stack {
  display:grid;
  justify-items:end;
  gap:1px;
}

#bsSchedulingPage .bs-prof-bundle-price-stack del {
  color:#7d8e89;
  font-size:.74rem;
}

#bsSchedulingPage .bs-prof-bundle-price-stack small {
  max-width:180px;

  color:#4f6f63;

  font-size:.67rem;
  font-weight:700;
  line-height:1.25;
}

#bsSchedulingPage .bs-prof-bundle-facts {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));

  overflow:hidden;

  border:1px solid rgba(79,111,99,.12);
  border-radius:11px;

  background:rgba(255,255,255,.46);
}

#bsSchedulingPage .bs-prof-bundle-facts > div {
  min-width:0;

  padding:8px 10px;

  border-right:1px solid rgba(79,111,99,.10);
}

#bsSchedulingPage .bs-prof-bundle-facts > div:last-child {
  border-right:0;
}

#bsSchedulingPage .bs-prof-bundle-facts span,
#bsSchedulingPage .bs-prof-bundle-facts strong {
  display:block;
}

#bsSchedulingPage .bs-prof-bundle-facts span {
  color:#718680;

  font-size:.62rem;
  font-weight:700;

  letter-spacing:.06em;
  text-transform:uppercase;
}

#bsSchedulingPage .bs-prof-bundle-facts strong {
  margin-top:2px;

  color:#30453f;

  font-size:.80rem;
  font-weight:650;
  line-height:1.30;
}

#bsSchedulingPage .bs-prof-bundle-schedule {
  display:grid;
  gap:7px;

  color:#30453f;

  font-size:.80rem;
}

#bsSchedulingPage .bs-prof-bundle-schedule ul {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;

  margin:0;
  padding:0;

  list-style:none;
}

#bsSchedulingPage .bs-prof-bundle-schedule li {
  display:grid;
  gap:2px;

  padding:7px 9px;

  border:1px solid rgba(79,111,99,.10);
  border-radius:8px;

  background:rgba(255,255,255,.50);
}

#bsSchedulingPage .bs-prof-bundle-actions {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}


/* =========================================================
   BOOKING SLOT MODAL FONT / PROFESSIONAL SUMMARY ONLY
   This does not change Programme/Group catalogue cards.
========================================================= */

#bsSlotModal,
#bsSlotModal * {
  font-family:"KoHo","Segoe UI",Arial,sans-serif !important;
}

#bsSlotModal .bs-modal__header h2 {
  color:#173642 !important;

  font-size:clamp(1.8rem,4vw,2.4rem) !important;
  font-weight:500 !important;
}

#bsSlotModal #bsSelectedProvider {
  grid-template-columns:100px minmax(0,1fr) !important;
  gap:16px !important;

  padding:13px !important;

  border:1px solid rgba(79,111,99,.13);
  border-radius:14px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.78),
      rgba(247,251,248,.68)
    );
}

#bsSlotModal #bsSelectedProvider > .bs-provider-photo,
#bsSlotModal #bsSelectedProvider > .bs-provider-initials {
  width:100px !important;
  height:100px !important;

  border-radius:13px !important;

  object-fit:cover !important;
}

#bsSlotModal #bsSelectedProvider h3 {
  margin:0 0 5px !important;

  color:#173642 !important;

  font-size:clamp(1.22rem,2.4vw,1.52rem) !important;
  font-weight:700 !important;
}

#bsSlotModal #bsSelectedProvider .bs-provider-meta {
  margin:0 !important;

  color:#46605b !important;

  font-size:.90rem !important;
  font-weight:500 !important;
  line-height:1.42 !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width:1050px) and (min-width:701px) {

  html[data-kinara-scheduling-mode="appointments"]
  #bsSchedulingPage .bs-filter-panel {
    grid-template-columns:
      minmax(220px,1.3fr)
      repeat(2,minmax(150px,1fr)) !important;
  }

  #bsSchedulingPage .bs-professional-card--matrix {
    grid-template-columns:
      76px
      minmax(170px,1.12fr)
      minmax(145px,.95fr)
      minmax(135px,.85fr)
      minmax(150px,1fr) !important;

    grid-template-areas:
      "photo identity practice access actions"
      "photo identity more more actions" !important;

    grid-template-rows:auto auto !important;

    min-height:124px !important;
  }

  #bsSchedulingPage .bs-prof-card-more {
    border-top:1px solid rgba(79,111,99,.08) !important;
  }
}


/* =========================================================
   MOBILE — REDUCED HEIGHT, ANDROID / iOS SAFE
========================================================= */

@media (max-width:700px) {

  #bsSchedulingPage.bs-page {
    width:min(calc(100% - 18px),1180px) !important;
    padding-top:4px !important;
  }

  html[data-kinara-scheduling-mode="appointments"]
  #bsSchedulingPage .bs-filter-panel {
    grid-template-columns:1fr !important;

    gap:8px !important;

    padding:4px 0 10px !important;
  }

  #bsSchedulingPage .bs-filter-panel input,
  #bsSchedulingPage .bs-filter-panel select {
    font-size:16px !important;
  }

  #bsSchedulingPage .bs-view-switch.bs-view-switch--three {
    gap:5px 9px !important;
    margin-bottom:7px !important;
  }

  #bsSchedulingPage .bs-view-switch__link[aria-current="page"] {
    min-width:210px !important;
    min-height:58px !important;
  }

  #bsSchedulingPage .bs-view-switch__link[aria-current="page"] strong {
    font-size:1.15rem !important;
  }


  /*
    Compact mobile grid:
    avatar + identity on row 1
    speciality/experience + language/duration on row 2
    bio/voice/bundle + booking on row 3
  */
  #bsSchedulingPage .bs-professional-card--matrix {
    grid-template-columns:
      58px
      minmax(0,1fr)
      minmax(100px,32%) !important;

    grid-template-areas:
      "photo identity identity"
      "practice practice access"
      "more more actions" !important;

    grid-template-rows:auto auto auto !important;

    min-height:0 !important;

    padding:7px 8px !important;

    border-radius:15px !important;
  }

  #bsSchedulingPage .bs-prof-card-photo {
    align-self:start !important;

    padding:3px 8px 0 0 !important;
  }

  #bsSchedulingPage .bs-prof-card-avatar {
    width:50px !important;
    height:50px !important;

    border-width:2px !important;
  }

  #bsSchedulingPage .bs-prof-card-cell {
    padding:4px 7px !important;

    border-left:0 !important;
  }

  #bsSchedulingPage .bs-prof-card-identity {
    min-height:54px !important;
  }

  #bsSchedulingPage .bs-prof-card-practice,
  #bsSchedulingPage .bs-prof-card-access {
    margin-top:3px !important;
    padding-top:7px !important;

    border-top:1px solid rgba(79,111,99,.09) !important;
  }

  #bsSchedulingPage .bs-prof-card-practice {
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    column-gap:8px !important;
    row-gap:1px !important;
  }

  #bsSchedulingPage .bs-prof-card-practice .bs-prof-card-label--second {
    margin-top:0 !important;
  }

  #bsSchedulingPage .bs-prof-card-access {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:1px !important;

    border-left:1px solid rgba(79,111,99,.09) !important;
  }

  #bsSchedulingPage .bs-prof-card-access .bs-prof-card-label--second {
    margin-top:5px !important;
  }

  #bsSchedulingPage .bs-prof-card-more,
  #bsSchedulingPage .bs-prof-card-actions {
    margin-top:3px !important;
    padding-top:7px !important;

    border-top:1px solid rgba(79,111,99,.09) !important;
  }

  #bsSchedulingPage .bs-prof-card-actions {
    border-left:1px solid rgba(79,111,99,.09) !important;
  }

  #bsSchedulingPage .bs-prof-card-label {
    font-size:.55rem !important;
    letter-spacing:.06em !important;
  }

  #bsSchedulingPage .bs-prof-card-label--second {
    margin-top:5px !important;
  }

  #bsSchedulingPage .bs-prof-card-cell h3 {
    font-size:1rem !important;
    line-height:1.10 !important;
  }

  #bsSchedulingPage .bs-prof-card-cell p {
    font-size:.69rem !important;
    line-height:1.22 !important;
  }

  #bsSchedulingPage .bs-prof-card-role {
    font-size:.66rem !important;
    line-height:1.18 !important;
  }

  #bsSchedulingPage .bs-prof-card-mode {
    margin-top:3px !important;
    padding:2px 5px !important;

    font-size:.60rem !important;
  }

  #bsSchedulingPage .bs-prof-bio-preview {
    max-height:2.35em !important;

    -webkit-line-clamp:2 !important;

    font-size:.66rem !important;
    line-height:1.18 !important;
  }

  #bsSchedulingPage .bs-prof-bio-more {
    font-size:.66rem !important;
  }

  #bsSchedulingPage .bs-prof-card-link,
  #bsSchedulingPage .bs-prof-bundle-toggle {
    min-height:24px !important;

    font-size:.68rem !important;
  }

  #bsSchedulingPage .bs-prof-card-actions {
    gap:4px !important;
  }

  #bsSchedulingPage .bs-prof-card-actions .bs-primary-btn,
  #bsSchedulingPage .bs-prof-card-actions .bs-kpay-book-action {
    min-height:39px !important;
    max-width:none !important;

    padding:0 7px !important;

    font-size:.76rem !important;
  }

  #bsSchedulingPage .bs-prof-card-kpay {
    font-size:.60rem !important;
  }

  #bsSchedulingPage .bs-prof-card-kpay .bs-kpay-info-btn {
    width:25px !important;
    height:25px !important;
    min-height:25px !important;
  }


  /* Expanded Bio/Bundle sits below the compact card and may grow naturally. */
  #bsSchedulingPage .bs-prof-bio-panel__inner,
  #bsSchedulingPage .bs-prof-bundle-panel__inner {
    margin-top:5px;
    padding:11px 9px 6px;
  }

  #bsSchedulingPage .bs-prof-bundle-head {
    grid-template-columns:1fr !important;
    gap:8px !important;
  }

  #bsSchedulingPage .bs-prof-bundle-price {
    justify-items:start;
    text-align:left;
  }

  #bsSchedulingPage .bs-prof-bundle-price-stack {
    justify-items:start;
  }

  #bsSchedulingPage .bs-prof-bundle-facts {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #bsSchedulingPage .bs-prof-bundle-facts > div {
    border-right:0;
    border-bottom:1px solid rgba(79,111,99,.10);
  }

  #bsSchedulingPage .bs-prof-bundle-facts > div:nth-child(odd) {
    border-right:1px solid rgba(79,111,99,.10);
  }

  #bsSchedulingPage .bs-prof-bundle-facts > div:nth-last-child(-n+2) {
    border-bottom:0;
  }

  #bsSchedulingPage .bs-prof-bundle-schedule ul {
    grid-template-columns:1fr !important;
  }

  #bsSchedulingPage .bs-prof-bundle-actions {
    display:grid !important;
    grid-template-columns:1fr !important;
  }

  #bsSchedulingPage .bs-prof-bundle-actions > * {
    width:100% !important;
    max-width:none !important;
  }


  /* Slot modal remains phone-safe. */
  #bsSlotModal {
    padding:8px !important;
  }

  #bsSlotModal .bs-modal__panel {
    width:100% !important;
    max-height:calc(100dvh - 16px) !important;

    border-radius:16px !important;
  }

  #bsSlotModal #bsSelectedProvider {
    grid-template-columns:72px minmax(0,1fr) !important;
    gap:10px !important;

    padding:10px !important;
  }

  #bsSlotModal #bsSelectedProvider > .bs-provider-photo,
  #bsSlotModal #bsSelectedProvider > .bs-provider-initials {
    width:72px !important;
    height:72px !important;

    border-radius:11px !important;
  }

  #bsSlotModal #bsSelectedProvider h3 {
    font-size:1.12rem !important;
  }

  #bsSlotModal #bsSelectedProvider .bs-provider-meta {
    font-size:.80rem !important;
  }

  #bsSchedulingPage button,
  #bsSchedulingPage a,
  #bsSchedulingPage select,
  #bsSchedulingPage input {
    -webkit-tap-highlight-color:transparent;
  }
}

@media (max-width:380px) {

  #bsSchedulingPage .bs-professional-card--matrix {
    grid-template-columns:
      52px
      minmax(0,1fr)
      minmax(92px,32%) !important;

    padding:6px 7px !important;
  }

  #bsSchedulingPage .bs-prof-card-avatar {
    width:44px !important;
    height:44px !important;
  }

  #bsSchedulingPage .bs-prof-card-cell {
    padding-left:5px !important;
    padding-right:5px !important;
  }
}

@media (prefers-reduced-motion:reduce) {
  #bsSchedulingPage .bs-prof-bio-panel,
  #bsSchedulingPage .bs-prof-bundle-panel,
  #bsSchedulingPage .bs-prof-bundle-toggle svg {
    transition:none !important;
  }
}

