:root {
  --bwn-primary: #1e7bff;
  --bwn-primary-hover: #3c8dff;
  --bwn-primary-active: #1463d9;
  --bwn-primary-soft: #eff8ff;
  --bwn-primary-tint: #f5f8ff;
  --bwn-primary-border: #d0e1ff;
  --bwn-text: #151720;
  --bwn-muted: #9aa0ac;
  --bwn-label: #667085;
  --bwn-line: #e2e4ea;
  --bwn-page: #f8fafc;
  --bwn-card: #ffffff;
  --bwn-available: #31d231;
  --bwn-available-soft: #31d2311a;
  --bwn-day-idle: #f7f7fb;
}

.bwn-extra-list h2 { margin: 0 0 16px; font-size: 20px; }
.bwn-extra-rules, .bwn-extra-notice { color: var(--bwn-label); font-size: 13px; }
.bwn-extra-card { border: 1px solid var(--bwn-primary-border); border-radius: 8px; margin-top: 12px; background: white; overflow: hidden; }
.bwn-extra-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.bwn-extra-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.bwn-extra-row p { margin: 8px 0 0; color: var(--bwn-label); font-size: 13px; }
.bwn-extra-quantity { display: grid; grid-template-columns: 32px 58px 32px; height: 38px; flex-shrink: 0; border: 1px solid var(--bwn-primary-border); border-radius: 6px; overflow: hidden; }
.bwn-extra-quantity select { min-width: 0; width: 100%; border: 0; border-inline: 1px solid var(--bwn-primary-border); background: white; color: var(--bwn-primary); font: inherit; text-align: center; cursor: pointer; }
.bwn-extra-quantity button, .bwn-extra-quantity span { display: flex; align-items: center; justify-content: center; border: 0; background: white; color: var(--bwn-primary); font-size: 16px; }
.bwn-extra-quantity button { cursor: pointer; }
.bwn-extra-quantity button:disabled { opacity: .4; cursor: default; }
.bwn-extra-card details { border-top: 1px solid var(--bwn-primary-border); padding: 10px 16px; font-size: 13px; }
.bwn-extra-card summary { cursor: pointer; color: var(--bwn-primary); text-align: center; }
.bwn-extra-card details p { white-space: pre-wrap; overflow-wrap: anywhere; }

.bwn-book-page {
  min-height: calc(100vh - 64px);
  padding: 24px 16px 32px;
  background: #f3f4f9;
  font-family: var(--bwn-public-font, "Inter", system-ui, sans-serif);
  color: var(--bwn-text);
  box-sizing: border-box;
}

.bwn-book-page button,
.bwn-book-page input,
.bwn-book-page textarea,
.bwn-book-page select,
.bwn-book-page option {
  font-family: var(--bwn-public-font, "Inter", system-ui, sans-serif);
}

.bwn-book-page *,
.bwn-book-page *::before,
.bwn-book-page *::after,
.bwn-layout,
.bwn-layout *,
.bwn-layout *::before,
.bwn-layout *::after {
  box-sizing: border-box;
}

.bwn-book-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.bwn-book-missing,
.bwn-book-loading {
  max-width: 480px;
  margin: 80px auto;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  color: var(--bwn-label);
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
}

#bwn-public-booking,
.bwn-front-book {
  min-height: 520px;
}

.bwn-layout {
  display: flex;
  height: min(595px, calc(100vh - 117px));
  min-height: 475px;
  background: var(--bwn-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 50px -20px #0a0b0f33;
}

.bwn-steps {
  width: 200px;
  flex: 0 0 200px;
  margin: 6px 0 6px 6px;
  padding: 20px 16px;
  background: #fafafa;
}

.bwn-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  font: 400 16px/1.2 var(--bwn-public-font, "Inter", system-ui, sans-serif);
  color: #494a4c;
  cursor: default;
  text-align: left;
}

.bwn-step:last-child {
  margin-bottom: 0;
}

.bwn-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 30px;
  width: 2px;
  height: calc(100% + 14px - 30px);
  background: var(--bwn-line);
}

.bwn-step.is-done:not(:last-child)::before {
  background: var(--bwn-primary);
}

.bwn-step.is-clickable {
  cursor: pointer;
}

.bwn-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--bwn-line);
  color: #494a4c;
  font-size: 16px;
  font-weight: 500;
  flex: 0 0 auto;
  z-index: 1;
}

.bwn-step.is-done {
  color: #494a4c;
  font-weight: 500;
}

.bwn-step.is-done .bwn-step-dot {
  background: var(--bwn-primary);
  border-color: var(--bwn-primary);
  color: #fff;
}

.bwn-step.is-active {
  color: var(--bwn-primary);
  font-weight: 500;
}

.bwn-step.is-active .bwn-step-dot {
  background: #fff;
  color: var(--bwn-primary);
  border-color: var(--bwn-primary);
}

.bwn-main {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.bwn-progress {
  display: none;
}

.bwn-main-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px 72px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
  scrollbar-color: #bdbfc6 transparent;
  scrollbar-width: thin;
}

.bwn-main-body::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

.bwn-main-body::-webkit-scrollbar-thumb {
  background-clip: content-box;
  background-color: #bdbfc6;
  border: 3px solid transparent;
  border-radius: 999px;
}

.bwn-main-body:hover::-webkit-scrollbar-thumb {
  background-color: #bfc4d4;
}

.bwn-main-body::-webkit-scrollbar-thumb:hover {
  background-color: #a3aabf;
}

.bwn-main-body::-webkit-scrollbar-track {
  background: transparent;
}

.bwn-title {
  display: block;
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--bwn-text);
}

.bwn-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--bwn-line);
}

.bwn-back,
.bwn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: var(--bwn-text);
  border-radius: 8px;
  padding: 8px 14px;
  font: 600 13px var(--bwn-public-font, "Inter", system-ui, sans-serif);
  cursor: pointer;
}

.bwn-back {
  border: 0;
  padding: 8px 14px;
  font: 500 14px var(--bwn-public-font, "Inter", system-ui, sans-serif);
}

.bwn-back:hover,
.bwn-ghost:hover {
  color: var(--bwn-primary);
  border-color: var(--bwn-primary-border);
}

.bwn-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--bwn-primary);
  color: #fff;
  padding: 8px 16px;
  font: 500 14px var(--bwn-public-font, "Inter", system-ui, sans-serif);
  cursor: pointer;
}

.bwn-next:hover {
  background: var(--bwn-primary-hover);
}

.bwn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bwn-summary {
  width: 240px;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 0;
  border-left: 1px solid var(--bwn-line);
  background: #fff;
}

.bwn-summary-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bdbfc6 transparent;
}

.bwn-summary h3 {
  margin: 12px 0 26px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.bwn-summary-name {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--bwn-text);
}

.bwn-summary-name-text {
  min-width: 0;
}

.bwn-summary-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: #f4f3ff;
  color: #6938ef;
  font: 700 11px/1 var(--bwn-public-font, "Inter", system-ui, sans-serif);
  cursor: pointer;
}

.bwn-summary-pop {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  max-width: 220px;
  padding: 8px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.bwn-summary-pop-item {
  padding: 6px 8px;
  border-radius: 6px;
  background: #f4f4f5;
  color: #606266;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.bwn-summary-pop-item + .bwn-summary-pop-item {
  margin-top: 4px;
}

.bwn-summary-name + .bwn-summary-row {
  margin-top: 18px;
}

.bwn-summary-date {
  margin: 8px 0 16px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--bwn-primary);
}

.bwn-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #727377;
}

.bwn-summary-row span:first-child {
  flex-shrink: 0;
}

.bwn-summary-dots {
  flex: 1 1 auto;
  min-width: 16px;
  height: 1px;
  background: var(--bwn-line);
}

.bwn-summary-row strong {
  flex-shrink: 0;
  min-width: 0;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bwn-text);
  font-weight: 400;
}

.bwn-summary-extra, .bwn-summary-duration { justify-content: space-between; align-items: flex-start; }
.bwn-summary-extra span:first-child, .bwn-summary-duration span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bwn-summary-duration strong { max-width: 110px; white-space: normal; text-align: right; }

/* Wide screens: more room for staff and service names in the summary. */
@media (min-width: 1280px) {
  .bwn-summary {
    width: 300px;
    flex-basis: 300px;
  }

  .bwn-summary-row strong,
  .bwn-summary-duration strong {
    max-width: 170px;
  }
}

.bwn-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 62px;
  margin: 0 -22px 0;
  padding: 0 22px;
  border-top: 1px solid var(--bwn-line);
  font-size: 14px;
  font-weight: 400;
  color: #494a4c;
}

.bwn-summary-total strong {
  color: var(--bwn-text);
  font-weight: 500;
}

.bwn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.bwn-cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}

.bwn-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 16px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font: 600 13px/1.2 var(--bwn-public-font, "Inter", system-ui, sans-serif);
  cursor: pointer;
}

.bwn-cat-pill:hover {
  border-color: var(--bwn-primary);
  color: var(--bwn-primary);
}

.bwn-cat-pill.is-active {
  border-color: var(--bwn-primary);
  background: var(--bwn-primary-soft);
  color: var(--bwn-primary);
}

.bwn-cat-pill svg {
  display: block;
  flex: 0 0 auto;
}

.bwn-svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.bwn-svc-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--bwn-line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bwn-svc-card:hover {
  border-color: var(--bwn-primary);
  box-shadow: 0 4px 12px rgba(30, 123, 255, 0.1);
}

.bwn-svc-card.is-selected {
  border-color: var(--bwn-primary);
  background: var(--bwn-primary-soft);
  box-shadow: 0 0 0 1px var(--bwn-primary);
}

.bwn-svc-main {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

.bwn-svc-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  margin-right: 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7fafc;
  border: 1px solid #edf2f7;
}
.bwn-svc-icon:empty {
  display: none !important;
}

.bwn-svc-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bwn-svc-photo.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bwn-primary-soft);
  color: var(--bwn-primary);
  font-size: 22px;
  font-weight: 700;
}

.bwn-svc-info {
  flex: 1;
  min-width: 0;
}

.bwn-svc-name {
  display: block;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bwn-text);
}

.bwn-svc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bwn-svc-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bwn-label);
  font-size: 13px;
  font-weight: 500;
}

.bwn-svc-clock {
  flex: 0 0 auto;
}

.bwn-svc-price {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bwn-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.bwn-svc-desc {
  display: block;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--bwn-line);
  color: var(--bwn-label);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 820px) {
  .bwn-svc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .bwn-svc-card {
    padding: 12px;
    border-radius: 14px;
  }

  .bwn-svc-icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    margin-right: 10px;
    border-radius: 10px;
  }

  .bwn-svc-name {
    font-size: 15px;
    margin-bottom: 8px;
  }
}

.bwn-skel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 186px));
  gap: 12px;
  margin-top: 20px;
}

.bwn-skel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 160px;
  padding: 16px;
  border: 1px solid var(--bwn-line);
  border-radius: 12px;
  background: #fff;
  cursor: default;
}

.bwn-skel-block {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, #e2e4ea8c 25%, #e2e4eae6 37%, #e2e4ea8c 63%);
  background-size: 400% 100%;
  animation: bwn-skel 1.4s ease infinite;
}

.bwn-skel-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.bwn-skel-name {
  width: 96px;
  height: 16px;
}

.bwn-skel-slot {
  height: 30px;
  width: 82px;
  border-radius: 4px;
}

@keyframes bwn-skel {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .bwn-skel-block {
    animation: none;
  }
}

.bwn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--bwn-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.bwn-card:hover,
.bwn-card.is-selected {
  border-color: var(--bwn-primary);
  box-shadow: 0 0 0 1px var(--bwn-primary);
}

.bwn-card-title {
  font-size: 15px;
  font-weight: 700;
}

.bwn-card-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--bwn-muted);
}

.bwn-card-price {
  margin-top: auto;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.bwn-agent {
  align-items: center;
  min-height: 88px;
  flex-direction: row;
  gap: 12px;
}

.bwn-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bwn-primary-soft);
  color: var(--bwn-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}

.bwn-avatar svg,
.bwn-avatar-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bwn-avatar.bwn-avatar-default {
  background: #e8eaed;
  padding: 0;
}

.bwn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 24px;
  border-radius: 12px;
  background-image: radial-gradient(#dbe3ef 1px, transparent 1px);
  background-size: 18px 18px;
  text-align: center;
}

.bwn-empty-art {
  width: 92px;
  height: 92px;
  margin-bottom: 12px;
  color: #c5d0e0;
}

.bwn-empty h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

.bwn-empty p {
  margin: 0 0 18px;
  max-width: 320px;
  color: var(--bwn-label);
  font-size: 14px;
}

.bwn-empty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.bwn-datetime {
  display: flex;
  flex-direction: column;
  max-width: 360px;
  overflow: visible;
}

.bwn-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 16px 0 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--bwn-line);
}

.bwn-cal-head span {
  color: var(--bwn-text);
  font-size: 16px;
  font-weight: 500;
}

.bwn-cal-head button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--bwn-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bwn-cal-head button:hover {
  color: var(--bwn-primary);
}

.bwn-cal-week,
.bwn-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 44px);
  gap: 6px;
}

.bwn-cal-week {
  margin-bottom: 0;
  color: #494a4c;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
}

.bwn-cal-week span {
  padding: 8px 0;
}

.bwn-cal-grid {
  align-content: start;
  min-height: 210px;
}

.bwn-cal-day {
  position: relative;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--bwn-day-idle);
  color: var(--bwn-text);
  font: 500 16px/1 var(--bwn-public-font, "Inter", system-ui, sans-serif);
  cursor: pointer;
  overflow: hidden;
}

.bwn-cal-day.is-empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.bwn-cal-day.is-muted {
  color: #727377;
  cursor: default;
}

.bwn-cal-day:hover:not(.is-empty):not(.is-muted):not(.is-selected) {
  font-size: 20px;
  font-weight: 600;
  border-color: #84e484;
}

.bwn-cal-day.is-available {
  background: var(--bwn-available-soft);
  color: var(--bwn-text);
}

.bwn-cal-day.is-available::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--bwn-available);
  border-radius: 0 0 4px 4px;
}

.bwn-cal-day.is-today {
  background: var(--bwn-available);
  color: #fff;
  font-weight: 600;
}

.bwn-cal-day.is-today::after,
.bwn-cal-day.is-selected::after {
  display: none;
}

.bwn-cal-day.is-selected {
  background: var(--bwn-primary);
  color: #fff;
  font-weight: 600;
}

.bwn-datetime.is-day-service {
  max-width: 100%;
}

.bwn-datetime.is-day-service .bwn-cal-week,
.bwn-datetime.is-day-service .bwn-cal-grid {
  width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}

.bwn-datetime.is-day-service .bwn-cal-week {
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
}

.bwn-datetime.is-day-service .bwn-cal-grid {
  min-height: 0;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  overflow: hidden;
}

.bwn-datetime.is-day-service .bwn-cal-day {
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 8px 4px;
  border: 0;
  border-right: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  border-radius: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bwn-datetime.is-day-service .bwn-cal-day:nth-child(7n) {
  border-right: 0;
}

.bwn-datetime.is-day-service .bwn-cal-day-num {
  display: block;
  line-height: 1.2;
}

.bwn-datetime.is-day-service.has-qty .bwn-cal-day {
  min-height: 72px;
}

.bwn-datetime.is-day-service .bwn-cal-slots-left {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  padding: 0 2px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.15;
  /* Narrow day cells: "5 Slots left" wraps onto two short lines instead of being cut off. */
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 0.9;
}

.bwn-datetime.is-day-service .bwn-cal-day.is-available::after {
  display: none;
}

.bwn-datetime.is-day-service .bwn-cal-day:hover:not(.is-empty):not(.is-muted):not(.is-selected) {
  font-size: 16px;
  font-weight: 500;
  border-color: #eaecf0;
  background: #f8fafc;
}

.bwn-datetime.is-day-service .bwn-cal-day.is-outside,
.bwn-datetime.is-day-service .bwn-cal-day.is-muted {
  background: #f8fafc;
  color: #c5c9d4;
  cursor: default;
}

.bwn-datetime.is-day-service .bwn-cal-day.is-available {
  background: #fff;
  color: var(--bwn-text);
  cursor: pointer;
}

.bwn-datetime.is-day-service .bwn-cal-day.is-today:not(.is-selected) {
  background: #eff8ff;
  color: #1e7bff;
}

.bwn-datetime.is-day-service .bwn-cal-day.is-selected,
.bwn-datetime.is-day-service .bwn-cal-day.is-in-range {
  background: #1e7bff;
  color: #fff;
}

.bwn-slot-bar {
  display: flex;
  align-items: center;
  margin-top: 24px;
}

.bwn-slot-bar .bar {
  flex: 1;
  height: 1px;
  background: var(--bwn-line);
}

.bwn-slot-bar .text {
  margin: 0 12px;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  line-height: 21px;
  white-space: nowrap;
}

.bwn-slots {
  display: grid;
  grid-template-columns: repeat(4, 82px);
  column-gap: 6px;
  row-gap: 8px;
  margin-top: 10px;
  margin-bottom: -7px;
  padding: 7px 0;
  align-content: start;
}

.bwn-slots.has-qty {
  grid-template-columns: repeat(4, 90px);
}

.bwn-slot {
  position: relative;
  width: 82px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: var(--bwn-available-soft);
  padding: 0 4px;
  color: var(--bwn-text);
  font: 500 14px/1 var(--bwn-public-font, "Inter", system-ui, sans-serif);
  cursor: pointer;
}

.bwn-slot:hover {
  background: var(--bwn-primary-tint);
  color: var(--bwn-primary);
}

.bwn-slot.is-selected,
.bwn-slot.is-selected:hover {
  background: var(--bwn-primary);
  color: #fff;
}

.bwn-slot.has-qty {
  width: 90px;
  height: auto;
  min-height: 48px;
  padding: 6px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bwn-slot-time {
  display: block;
  line-height: 1.2;
}

.bwn-slot-left {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0.9;
}

/* Price Rules add-on: rule price under each time slot */
.bwn-slots.has-price {
  grid-template-columns: repeat(4, 90px);
}

.bwn-slot.has-price {
  width: 90px;
  height: auto;
  min-height: 44px;
  padding: 6px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bwn-slot-price {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0.9;
}

.bwn-slot-tick {
  position: absolute;
  top: -7px;
  right: -7px;
  color: var(--bwn-primary);
  pointer-events: none;
}

.bwn-slots-empty {
  margin: 12px 0 0;
  color: var(--bwn-label);
  font-size: 14px;
}

.bwn-form {
  margin-top: 20px;
  max-width: 640px;
}

.bwn-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.bwn-field.is-full,
.bwn-field.is-half {
  grid-column: 1 / -1;
}

.bwn-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.bwn-form .req {
  color: #ef7471;
}

.bwn-form input,
.bwn-form textarea,
.bwn-form select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--bwn-line);
  border-radius: 8px;
  padding: 10px 12px;
  font: 14px var(--bwn-public-font, "Inter", system-ui, sans-serif);
  background: #fff;
}

.bwn-form input:focus,
.bwn-form textarea:focus,
.bwn-form select:focus {
  outline: 2px solid var(--bwn-primary-border);
  border-color: var(--bwn-primary);
}

.bwn-check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 0;
}

.bwn-check-label input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--bwn-primary);
}

/* Bigger, styled checkbox / radio (terms, checkbox and radio fields).
   ".bwn-form" prefix: beats ".bwn-form label { display: block }" so the flex layout and gap apply. */
.bwn-check-label,
.bwn-form .bwn-check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #344054;
}

.bwn-form .bwn-check-label > span {
  flex: 1 1 auto;
  min-width: 0;
}

.bwn-check-label input[type="checkbox"],
.bwn-check-label input[type="radio"],
.bwn-form .bwn-check-label input[type="checkbox"],
.bwn-form .bwn-check-label input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #d0d5dd;
  border-radius: 6px;
  background: #fff center / 14px 14px no-repeat;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.bwn-check-label input[type="radio"],
.bwn-form .bwn-check-label input[type="radio"] {
  border-radius: 50%;
}

.bwn-check-label input[type="checkbox"]:hover,
.bwn-check-label input[type="radio"]:hover {
  border-color: var(--bwn-primary);
}

.bwn-check-label input[type="checkbox"]:focus-visible,
.bwn-check-label input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bwn-primary-soft, #eff8ff);
  border-color: var(--bwn-primary);
}

.bwn-check-label input[type="checkbox"]:checked {
  border-color: var(--bwn-primary);
  background-color: var(--bwn-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bwn-check-label input[type="radio"]:checked {
  border-color: var(--bwn-primary);
  background: radial-gradient(circle, var(--bwn-primary) 0 4.5px, #fff 5px);
}

/* Terms & conditions: soft box so it stands out before "Next". */
.bwn-terms-check,
.bwn-form .bwn-terms-check {
  padding: 12px 14px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #fcfcfd;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bwn-terms-check:hover {
  border-color: var(--bwn-primary-border, #b2ccff);
}

.bwn-terms-check:has(input:checked) {
  border-color: var(--bwn-primary-border, #b2ccff);
  background: var(--bwn-primary-soft, #eff8ff);
}

.bwn-terms-link,
.bwn-terms-label a,
.bwn-terms-label .bwn-terms-link {
  color: var(--bwn-primary);
  font-weight: 600;
  text-decoration: underline;
}

.bwn-terms-link:hover,
.bwn-terms-label a:hover {
  color: var(--bwn-primary-active);
}

.bwn-terms-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.48);
  backdrop-filter: blur(2px);
}

.bwn-terms-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid var(--bwn-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.2);
}

.bwn-terms-dialog h2 {
  margin: 0;
  border-bottom: 1px solid var(--bwn-line);
  padding: 20px 56px 16px 20px;
  color: var(--bwn-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.bwn-terms-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: #f2f4f7;
  color: #475467;
  font: 400 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.bwn-terms-close:hover {
  background: #e4e7ec;
  color: #101828;
}

.bwn-terms-content {
  max-height: min(470px, calc(100vh - 190px));
  overflow-y: auto;
  padding: 20px;
  color: #475467;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.bwn-terms-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--bwn-line);
  padding: 12px 20px;
}

@media (max-width: 540px) {
  .bwn-terms-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .bwn-terms-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 12px;
  }

  .bwn-terms-content {
    max-height: calc(100vh - 180px);
  }
}

.bwn-choice-list {
  display: grid;
  gap: 8px;
}

.bwn-phone-wrap {
  position: relative;
}

.bwn-phone {
  display: flex;
  width: 100%;
}

.bwn-phone-cc {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 124px;
  min-width: 124px;
  height: 40px;
  padding: 0 8px 0 10px;
  border: 1px solid #d0d5dd;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: #101828;
  font: 400 14px/1 var(--bwn-public-font, "Inter", system-ui, sans-serif);
  cursor: pointer;
}

.bwn-phone-cc:hover,
.bwn-phone:focus-within .bwn-phone-cc {
  border-color: var(--bwn-primary);
}

.bwn-phone-flag,
.bwn-phone-flag-img {
  display: inline-block;
  width: 20px;
  height: 15px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 1px 0 #888;
  background: #f2f4f7;
}

.bwn-phone-code {
  flex: 1;
  text-align: left;
}

.bwn-phone-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: #667085;
  pointer-events: none;
}

.bwn-phone-chev svg {
  display: block;
}

.bwn-phone-wrap.is-open .bwn-phone-chev {
  transform: rotate(180deg);
}

.bwn-form .bwn-phone-num {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 40px;
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  box-sizing: border-box;
}

.bwn-phone-hint {
  margin: 6px 0 0;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 400;
}

.bwn-phone-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% - 18px);
  left: 0;
  width: min(280px, 100%);
  overflow: hidden;
  border: 1px solid var(--bwn-primary-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.bwn-form .bwn-phone-search {
  width: 100%;
  height: 36px;
  margin: 8px 8px 0;
  width: calc(100% - 16px);
  border-radius: 6px;
  padding: 6px 10px;
}

.bwn-phone-list {
  max-height: 220px;
  overflow: auto;
  padding: 6px 0;
}

.bwn-phone-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: #fff;
  color: #101828;
  font: 400 14px/1.2 var(--bwn-public-font, "Inter", system-ui, sans-serif);
  text-align: left;
  cursor: pointer;
}

.bwn-phone-option:hover,
.bwn-phone-option.is-selected {
  background: #eff8ff;
  color: #1e7bff;
}

.bwn-phone-option-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bwn-phone-option-code {
  color: #667085;
}

.bwn-phone-option.is-selected .bwn-phone-option-code {
  color: #1e7bff;
}

.bwn-pay {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.bwn-pay-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--bwn-line);
  border-radius: 12px;
  cursor: pointer;
}

.bwn-pay-option span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bwn-pay-option strong {
  font-size: 14px;
  color: #101828;
}

.bwn-pay-option small {
  font-size: 13px;
  color: #667085;
  line-height: 1.4;
}

.bwn-pay-option.is-selected {
  border-color: var(--bwn-primary);
  background: var(--bwn-primary-soft);
}

.bwn-pay-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bwn-pay-warn {
  color: #b42318 !important;
}

.bwn-pay-widget {
  margin-top: 4px;
}

#bwn-stripe-card {
  padding: 12px;
  border: 1px solid var(--bwn-line);
  border-radius: 10px;
  background: #ffffff;
}

.bwn-pay-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #667085;
}

.bwn-coupon {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--bwn-line);
  border-radius: 12px;
  background: #fff;
}

.bwn-coupon-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #101828;
}

.bwn-coupon-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.bwn-coupon-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--bwn-line);
  border-radius: 10px;
  font-size: 14px;
  text-transform: uppercase;
  color: #101828;
}

.bwn-coupon-apply,
.bwn-coupon-remove {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.bwn-coupon-apply {
  background: var(--bwn-primary, #1e7bff);
  color: #fff;
}

.bwn-coupon-apply:disabled {
  opacity: 0.7;
  cursor: wait;
}

.bwn-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bwn-coupon-code {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #101828;
}

.bwn-coupon-code em {
  margin-left: 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #027a48;
  background: #ecfdf3;
  border-radius: 6px;
  padding: 2px 6px;
}

.bwn-coupon-remove {
  background: transparent;
  color: #c0392b;
}

.bwn-coupon-message {
  margin: 8px 0 0;
  font-size: 13px;
}

.bwn-coupon-message.is-success {
  color: #15803d;
}

.bwn-coupon-message.is-error {
  color: #b91c1c;
}

.bwn-summary-row.is-discount,
.bwn-conf-cost-row.is-discount {
  color: #15803d;
}

.bwn-conf {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 8px 12px;
}

.bwn-conf-header {
  text-align: center;
  margin-bottom: 20px;
}

.bwn-conf-party {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.bwn-conf-title {
  margin: 12px 0 4px;
  color: var(--bwn-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.bwn-conf-sub {
  margin-bottom: 10px;
  color: #494a4c;
  font-size: 14px;
  line-height: 20px;
}

.bwn-conf-order {
  display: inline-block;
  min-width: 70%;
  padding: 6px 12px;
  border-radius: 6px;
  background: #eff1f6;
  color: #727377;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bwn-conf-order span {
  color: var(--bwn-text);
  font-weight: 500;
}

.bwn-conf-payid {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
}

.bwn-conf-payid span {
  color: #1463d9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  word-break: break-all;
}

.bwn-conf-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 14px 14px;
  border: 1px solid var(--bwn-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px -1px #1517201a;
}

.bwn-conf-card-main {
  min-width: 0;
  flex: 1;
}

.bwn-conf-service {
  margin-top: 8px;
  color: var(--bwn-text);
  font-size: 20px;
  font-weight: 500;
}

.bwn-conf-when {
  margin: 12px 0 20px;
  color: var(--bwn-primary);
  font-size: 16px;
}

.bwn-conf-agent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bwn-conf-agent-label,
.bwn-conf-agent-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.bwn-conf-agent-label {
  color: #494a4c;
}

.bwn-conf-agent-img {
  width: 26px;
  height: 26px;
  border-radius: 40px;
  object-fit: cover;
  background: var(--bwn-primary-soft);
  overflow: hidden;
}

.bwn-conf-agent-img.is-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eaed;
}

.bwn-conf-agent-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bwn-conf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bwn-conf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #dbdde1;
  border-radius: 5px;
  background: #fff;
  color: #494a4c;
  font: 500 13px var(--bwn-public-font, "Inter", system-ui, sans-serif);
  cursor: pointer;
  text-decoration: none;
}

.bwn-conf-btn:hover {
  background: var(--bwn-primary-soft);
  border-color: transparent;
  color: var(--bwn-text);
}

.bwn-conf-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
  flex: 0 0 auto;
}

.bwn-conf-qr img {
  width: 88px;
  height: 88px;
}

.bwn-conf-qr.is-open img {
  width: 140px;
  height: 140px;
}

.bwn-conf-showqr {
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #151720;
  background: none;
  color: #151720;
  font: 500 13px var(--bwn-public-font, "Inter", system-ui, sans-serif);
  cursor: pointer;
}

.bwn-conf-cost {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bwn-conf-cost-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bwn-line);
  color: #727377;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bwn-conf-cost-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--bwn-text);
  font-size: 16px;
}

.bwn-conf-cost-row.is-total {
  font-size: 18px;
  font-weight: 500;
}

.bwn-conf-cost-line {
  height: 1px;
  background: #151720;
}

.bwn-layout.is-complete .bwn-main-body {
  padding-top: 18px;
}

.bwn-conf-footer .bwn-next {
  text-decoration: none;
}

.bwn-powered {
  margin-top: 18px;
  text-align: center;
  color: var(--bwn-muted);
  font-size: 12px;
}

.bwn-extras {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.bwn-progress-track {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.bwn-progress-seg {
  flex: 1 1 0;
  min-width: 0;
  height: 4px;
  border-radius: 999px;
  background: #e2e4ea;
}

.bwn-progress-seg.is-done {
  background: var(--bwn-primary);
}

.bwn-progress-count {
  flex: 0 0 auto;
  color: #727377;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .bwn-book-page {
    padding: 16px 12px 24px;
  }

  .bwn-book-shell {
    width: min(560px, 100%);
  }

  .bwn-layout {
    flex-direction: column;
    height: min(640px, calc(100vh - 24px));
    min-height: 0;
  }

  .bwn-steps,
  .bwn-summary {
    display: none;
  }

  .bwn-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin: 0;
    padding: 16px 16px 0;
  }

  .bwn-main-body {
    padding: 16px 16px 80px;
  }

  .bwn-datetime {
    max-width: 100%;
  }

  .bwn-cal-week,
  .bwn-cal-grid {
    width: 100%;
    justify-content: center;
  }

  .bwn-slots,
  .bwn-slots.has-qty,
  .bwn-slots.has-price {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bwn-slot,
  .bwn-slot.has-qty,
  .bwn-slot.has-price {
    width: auto;
  }

  .bwn-skel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bwn-skel-card {
    width: auto;
  }
}

@media (max-width: 600px) {
  .bwn-book-page {
    padding: 10px;
  }

  #bwn-public-booking,
  .bwn-book-page,
  .bwn-book-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .bwn-layout {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: calc(100vh - 84px);
    min-height: calc(100dvh - 84px);
    overflow: visible;
    border-radius: 16px;
  }

  .bwn-main,
  .bwn-main-body,
  .bwn-form,
  .bwn-form-grid,
  .bwn-field,
  .bwn-datetime,
  .bwn-phone,
  .bwn-phone-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .bwn-main-body {
    flex: 1 0 auto;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
    touch-action: pan-y;
    padding: 16px 14px 24px;
  }

  .bwn-form input,
  .bwn-form textarea,
  .bwn-form select {
    min-width: 0;
    max-width: 100%;
  }

  .bwn-form textarea {
    resize: vertical;
  }

  .bwn-nav {
    position: sticky;
    z-index: 10;
    flex-shrink: 0;
    bottom: 0;
  }

  .bwn-title {
    font-size: 18px;
  }

  .bwn-progress {
    padding: 14px 16px 0;
  }

  .bwn-cal-week,
  .bwn-cal-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .bwn-cal-day {
    width: auto;
  }

  .bwn-slots,
  .bwn-slots.has-qty,
  .bwn-slots.has-price {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bwn-skel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bwn-skel-slot {
    width: auto;
  }

  .bwn-slot-bar .text {
    font-size: 16px;
  }
}

@media print {
  @page {
    margin: 0;
  }

  body {
    background: #fff !important;
  }

  .bwn-book-page {
    min-height: 0;
    padding: 14mm;
    background: #fff;
  }

  .bwn-book-shell {
    width: 100%;
  }

  .bwn-layout {
    height: auto !important;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .bwn-steps,
  .bwn-summary,
  .bwn-powered,
  .bwn-progress,
  .bwn-conf-footer,
  .bwn-nav,
  .bwn-conf-actions,
  .bwn-conf-showqr {
    display: none !important;
  }

  .bwn-main,
  .bwn-main-body {
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
  }

  .bwn-conf {
    max-width: none;
    padding: 0;
  }

  .bwn-conf-cost {
    padding-inline: 14px;
  }
}

.bwn-ms-hint {
  margin: -4px 0 16px;
  color: var(--bwn-label);
  font-size: 13px;
  line-height: 1.45;
}

.bwn-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--bwn-line);
  border-radius: 12px;
  background: #fff;
  color: var(--bwn-text);
  font-size: 14px;
  font-weight: 600;
}

.bwn-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bwn-qty-ctrl button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--bwn-primary-border);
  border-radius: 8px;
  background: var(--bwn-primary-soft);
  color: var(--bwn-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.bwn-qty-ctrl button:disabled {
  opacity: 0.45;
  cursor: default;
}

.bwn-qty-ctrl strong {
  min-width: 18px;
  text-align: center;
}

/* ===== Right-to-left (Arabic, Hebrew) — set via dir="rtl" on .bwn-front ===== */
[dir="rtl"] .bwn-step,
[dir="rtl"] .bwn-svc-card,
[dir="rtl"] .bwn-card,
[dir="rtl"] .bwn-phone-option {
  text-align: right;
}

[dir="rtl"] .bwn-steps {
  margin: 6px 6px 6px 0;
}

/* Step connector line sits under the step circle, which is on the right in RTL */
[dir="rtl"] .bwn-step:not(:last-child)::before {
  left: auto;
  right: 14px;
}

[dir="rtl"] .bwn-summary {
  border-left: 0;
  border-right: 1px solid var(--bwn-line);
}

[dir="rtl"] .bwn-summary-pop,
[dir="rtl"] .bwn-phone-menu {
  left: auto;
  right: 0;
}

[dir="rtl"] .bwn-svc-icon {
  margin-right: 0;
  margin-left: 14px;
}

[dir="rtl"] .bwn-datetime.is-day-service .bwn-cal-day {
  border-right: 0;
  border-left: 1px solid #eaecf0;
}

[dir="rtl"] .bwn-datetime.is-day-service .bwn-cal-day:nth-child(7n) {
  border-left: 0;
}

[dir="rtl"] .bwn-slot-tick {
  right: auto;
  left: -7px;
}

[dir="rtl"] .bwn-terms-close {
  right: auto;
  left: 12px;
}

[dir="rtl"] .bwn-coupon-code em {
  margin-left: 0;
  margin-right: 8px;
}

/* Arrows in "Next →" / "← Back" point the reading direction */
[dir="rtl"] .bwn-nav button {
  direction: rtl;
}

/* Keep phone numbers, prices, times and dates in their natural left-to-right order */
[dir="rtl"] .bwn-phone,
[dir="rtl"] .bwn-phone-num,
[dir="rtl"] .bwn-slot,
[dir="rtl"] .bwn-price,
[dir="rtl"] .bwn-svc-price {
  unicode-bidi: isolate;
}

[dir="rtl"] .bwn-phone {
  direction: ltr;
}

/* Dates / times like "October 2, 2026, 09:30 am" keep their order in RTL */
[dir="rtl"] .bwn-conf-when,
[dir="rtl"] .bwn-summary-date {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

[dir="rtl"] .bwn-slot-time {
  direction: ltr;
  unicode-bidi: isolate;
}

/* PayPal button in the footer, in place of the Submit button. */
.bwn-paypal-nav {
  width: 220px;
  max-width: 60%;
  min-height: 40px;
  line-height: 0;
}
.bwn-paypal-nav iframe,
.bwn-paypal-nav > div {
  margin: 0 !important;
}
@media (max-width: 480px) {
  .bwn-paypal-nav {
    width: 170px;
  }
}

/* Skeleton placeholders on the customer website (components/schedule/PublicSkeletons.tsx). */
.bwn-wizard-skeleton {
  display: none;
}
#bwn-public-booking:empty {
  display: none;
}
#bwn-public-booking:empty + .bwn-wizard-skeleton {
  display: block;
}
.bwn-wizard-skeleton .bwn-book-page {
  min-height: 0;
  padding: 0;
  background: transparent;
}
.bwn-analytics-consent {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d0e1ff;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  box-shadow: 0 4px 16px #00000014;
  font: 14px/1.5 Arial, sans-serif;
}
.bwn-analytics-consent span { flex: 1 1 240px; }
.bwn-analytics-consent button {
  border: 1px solid #d0e1ff;
  border-radius: 6px;
  background: #fff;
  color: #1e7bff;
  padding: 8px 16px;
  cursor: pointer;
}
.bwn-analytics-consent button:last-child { background: #1e7bff; color: #fff; }
@media (max-width: 900px) {
  .bwn-skel-nav {
    display: none !important;
  }
}

/* "Staff select after timeslot": staff dropdown under the picked slot / date. */
.bwn-staff-pick {
  margin-top: 18px;
  max-width: 360px;
}

.bwn-staff-pick label {
  margin-bottom: 6px;
  color: var(--bwn-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bwn-form.bwn-staff-pick select {
  border-color: var(--bwn-primary-border);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-color: #eff8ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23475467' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  color: #101828;
  font-weight: 500;
  cursor: pointer;
}
