/* Booking-only final cascade. Loaded after the shared application stylesheet. */
body.booking-workspace-mode .booking-full-tryon-launch {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
}

body.booking-workspace-mode .booking-full-tryon-visual {
  min-height: 210px;
  max-height: 238px;
}

body.booking-workspace-mode .booking-full-tryon-visual img {
  object-position: center 22%;
}

body.booking-workspace-mode .booking-full-tryon-launch > div:last-child {
  gap: 7px;
  padding: clamp(18px, 2.4vw, 28px);
}

body.booking-workspace-mode .booking-full-tryon-launch h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

body.booking-workspace-mode .booking-full-tryon-launch p {
  margin: 0;
  line-height: 1.42;
}

body.booking-workspace-mode .booking-full-tryon-launch .solid-button {
  margin-top: 7px;
}

body.booking-workspace-mode .booking-main .stepper {
  z-index: 5;
}

body.booking-workspace-mode .booking-step-content {
  position: relative;
  z-index: 1;
  isolation: isolate;
  contain: paint;
}

@media (max-width: 768px) {
  body.booking-workspace-mode .booking-step-content {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  body.booking-workspace-mode .booking-full-tryon-launch,
  body.booking-workspace-mode .booking-reference-empty {
    scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom));
  }
}

body.booking-workspace-mode .booking-step-content.is-forward,
body.booking-workspace-mode .booking-step-content.is-back {
  transform: none;
}

.tryon-photo-preview {
  position: relative;
}

.tryon-photo-remove,
.tryon-side-photo-remove {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(31, 27, 37, 0.12);
  border-radius: 999px;
  color: #302b36;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 16px rgba(38, 31, 50, 0.16);
}

.tryon-photo-remove {
  top: 12px;
  right: 12px;
}

.tryon-side-photo-card {
  position: relative;
}

.tryon-side-photo-remove {
  top: 3px;
  right: auto;
  left: 52px;
  width: 26px;
  height: 26px;
}

.tryon-photo-remove .icon,
.tryon-side-photo-remove .icon {
  width: 14px;
  height: 14px;
}

.tryon-photo-remove:hover,
.tryon-side-photo-remove:hover {
  color: #6651b0;
  border-color: rgba(102, 81, 176, 0.38);
}

body.booking-workspace-mode .booking-tryon-embedded > .tryon-stage {
  overflow: clip;
  overflow-anchor: none;
  padding-bottom: 0;
}

body.booking-workspace-mode .booking-step-content,
.tryon-studio .tryon-stage {
  overflow-anchor: none;
}

body.booking-workspace-mode .booking-tryon-embedded .tryon-step-panel {
  min-height: 100%;
}

body.booking-workspace-mode .booking-tryon-embedded .tryon-footer {
  position: static;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  margin: auto -14px 0;
  border-top: 1px solid #e5e2e9;
  padding: 10px 14px;
  background: #fff;
  backdrop-filter: none;
  box-shadow: none;
}

body.booking-workspace-mode .booking-tryon-embedded .tryon-footer::after {
  display: none;
}

.booking-assignment-list {
  display: grid;
  gap: 12px;
}

.booking-assignment-card {
  display: grid;
  gap: 12px;
  border: 1px solid #e7e3eb;
  border-radius: 13px;
  padding: 14px;
  background: #fff;
}

.booking-assignment-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.booking-assignment-card > header > div {
  display: grid;
  gap: 2px;
}

.booking-assignment-card > header span,
.booking-assignment-card > header small {
  color: #85808a;
  font-size: 0.7rem;
}

.booking-assignment-card > header strong {
  font-size: 0.92rem;
}

.booking-assignment-card > header label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #77717c;
  font-size: 0.7rem;
  font-weight: 800;
}

.booking-assignment-card select {
  min-height: 34px;
  border: 1px solid #ddd9e3;
  border-radius: 8px;
  padding: 0 28px 0 9px;
  background: white;
  font: inherit;
}

.booking-professional-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.booking-professional-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid #e4e0e8;
  border-radius: 10px;
  padding: 9px;
  color: #37323c;
  background: #fbfafc;
  text-align: left;
  transition:
    border-color 170ms ease,
    background 170ms ease,
    transform 170ms ease;
}

.booking-professional-option:hover {
  transform: translateY(-1px);
}
.booking-professional-option.active {
  border-color: #7967c6;
  background: #f4f0fc;
  box-shadow: inset 0 0 0 1px #7967c6;
}
.booking-professional-option .avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: linear-gradient(145deg, #7967c6, #5bbda8);
  font-size: 0.7rem;
  font-weight: 850;
}
.booking-professional-option > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.booking-professional-option strong,
.booking-professional-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-professional-option strong {
  font-size: 0.76rem;
}
.booking-professional-option small {
  color: #88828d;
  font-size: 0.65rem;
}
.booking-professional-option > .icon {
  width: 16px;
  height: 16px;
  color: #6452aa;
}

.booking-timeline {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e4e1e8;
  border-radius: 12px;
  background: #fbfafc;
}

.booking-timeline > header,
.booking-timeline > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.booking-timeline > header {
  color: #5d5098;
  background: #f1edf9;
}
.booking-timeline > header span {
  text-align: right;
  font-size: 0.7rem;
}
.booking-timeline > div + div {
  border-top: 1px solid #e9e6ec;
}
.booking-timeline time {
  color: #554891;
  font-size: 0.74rem;
  font-weight: 850;
}
.booking-timeline > div > span {
  display: grid;
  gap: 2px;
}
.booking-timeline > div strong {
  font-size: 0.78rem;
}
.booking-timeline > div small {
  color: #85808a;
  font-size: 0.68rem;
}

.booking-service-time-list {
  display: grid;
  gap: 12px;
}

.booking-service-time-card {
  display: grid;
  gap: 10px;
  border: 1px solid #e4e0e8;
  border-radius: 14px;
  padding: 13px;
  background: #fff;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.booking-service-time-card.is-scheduled {
  border-color: rgba(111, 91, 190, 0.55);
  box-shadow: inset 0 0 0 1px rgba(111, 91, 190, 0.12);
}

.booking-service-time-card > header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.booking-service-time-card > header > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.booking-service-time-card > header strong {
  font-size: 0.82rem;
}
.booking-service-time-card > header small {
  overflow: hidden;
  color: #837d88;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-time-order {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #806bd0, #60bda9);
  font-size: 0.72rem;
  font-weight: 850;
}

.booking-time-required {
  border-radius: 999px;
  padding: 5px 8px;
  color: #7d6f89;
  background: #f2eef6;
  font-size: 0.62rem;
  font-weight: 800;
}

.booking-service-time-card .slot-section-head {
  padding-top: 8px;
  border-top: 1px solid #efecf1;
}

.booking-professional-time-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: 154px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2px;
}

.booking-professional-time-grid button {
  min-height: 48px;
  padding: 8px 10px;
}

.booking-time-empty {
  border-radius: 10px;
  padding: 11px;
  color: #817985;
  background: #f8f6fa;
  font-size: 0.7rem;
}

.booking-summary-service > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.booking-summary-service b {
  color: #403a45;
  font-size: 0.7rem;
}
.booking-summary-service small {
  overflow: hidden;
  color: #8b8590;
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-card .summary-line > span {
  display: grid;
  gap: 2px;
  color: #3f3945;
}

.receipt-card .summary-line small {
  color: #88818d;
  font-size: 0.64rem;
  line-height: 1.35;
}

.booking-summary-body > * {
  animation: none;
}

.booking-reference-tabs {
  grid-template-columns: repeat(3, minmax(0, auto));
}

.booking-reference-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  align-items: center;
  gap: 14px;
  border: 1px dashed #cfc6e1;
  border-radius: 13px;
  padding: 16px;
  background: #fbf9ff;
}

.booking-reference-upload > div {
  display: grid;
  gap: 4px;
}
.booking-reference-upload > div > .icon {
  width: 24px;
  height: 24px;
  color: #6d5bb5;
}
.booking-reference-upload span {
  color: #817b87;
  font-size: 0.72rem;
}
.booking-reference-upload img {
  width: 150px;
  height: 96px;
  border-radius: 9px;
  object-fit: cover;
}
.booking-reference-upload label {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.booking-reference-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.booking-reference-original-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd6eb;
  border-radius: 12px;
  padding: 9px 10px;
  color: #494252;
  background: #fcfbff;
  cursor: pointer;
}

.booking-reference-original-consent input {
  width: 17px;
  height: 17px;
  accent-color: #6750b8;
}

.booking-reference-original-consent span {
  display: grid;
  gap: 2px;
}
.booking-reference-original-consent strong {
  font-size: 0.76rem;
}
.booking-reference-original-consent small {
  color: #837c89;
  font-size: 0.66rem;
}
.booking-reference-original-consent img {
  width: 58px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.booking-reference-uploads {
  display: grid;
  gap: 18px;
}

.booking-reference-method-picker {
  display: grid;
  gap: 13px;
  border: 1px solid #dfd8e9;
  border-radius: 17px;
  padding: 15px;
  background: linear-gradient(135deg, #fbfaff 0%, #f7f4fc 100%);
}

.booking-reference-method-picker > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.booking-reference-method-picker > header > div {
  display: grid;
  gap: 4px;
}

.booking-reference-method-picker > header :is(p, strong) {
  margin: 0;
}

.booking-reference-method-picker > header strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #54428b;
  font-size: 0.82rem;
}

.booking-reference-method-picker > header strong .icon {
  width: 16px;
  height: 16px;
}

.booking-reference-method-picker > header > p {
  max-width: 54ch;
  color: #766e7f;
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: right;
}

.booking-reference-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.booking-reference-method-tabs button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  gap: 9px;
  border: 1px solid #ded8e5;
  border-radius: 13px;
  padding: 10px 11px;
  color: #645d6c;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  text-align: left;
}

.booking-reference-method-tabs button > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #776b8d;
  background: #f0edf4;
}

.booking-reference-method-tabs button > span:first-child .icon {
  width: 17px;
  height: 17px;
}

.booking-reference-method-tabs button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.booking-reference-method-tabs button strong,
.booking-reference-method-tabs button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-reference-method-tabs button strong {
  color: #4b4453;
  font-size: 0.74rem;
}

.booking-reference-method-tabs button small {
  color: #91899a;
  font-size: 0.6rem;
}

.booking-reference-method-tabs button:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.booking-reference-method-tabs button:disabled > span:first-child {
  color: #8b8198;
  background: #f2eff5;
}

.booking-reference-method-tabs button.is-active {
  border-color: #9ad4c5;
  color: #326f61;
  background: #f0faf7;
  box-shadow: inset 0 0 0 1px rgba(83, 158, 139, 0.13);
  cursor: default;
}

.booking-reference-method-tabs button.is-active > span:first-child {
  color: #347565;
  background: #dff3ed;
}

.booking-reference-method-tabs button.is-active strong {
  color: #2e6458;
}

.booking-reference-method-tabs button.is-active small {
  color: #578579;
}

.booking-reference-method-tabs button.is-active > i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #4d9b87;
}

.booking-reference-method-tabs button.is-active > i .icon {
  width: 13px;
  height: 13px;
}

.booking-photo-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.booking-photo-group {
  display: grid;
  min-width: 0;
  height: 100%;
  align-content: start;
  gap: 13px;
  border: 1px solid #e2dce8;
  border-radius: 17px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(53, 43, 67, 0.055);
}

.booking-photo-group.is-current {
  border-top: 3px solid #5aa996;
}

.booking-photo-group.is-desired {
  border-top: 3px solid #7359c4;
}

.booking-photo-group-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.booking-photo-group-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #356e61;
  background: #eaf7f3;
}

.booking-photo-group.is-desired .booking-photo-group-icon {
  color: #6549b3;
  background: #f0ebff;
}

.booking-photo-group-icon .icon {
  width: 19px;
  height: 19px;
}

.booking-photo-group-head > div {
  display: grid;
  gap: 3px;
}

.booking-photo-group-head :is(h3, p) {
  margin: 0;
}

.booking-photo-group-head h3 {
  color: #342e3b;
  font-size: 0.9rem;
}

.booking-photo-count {
  border-radius: 999px;
  padding: 5px 8px;
  color: #655e6e;
  background: #f4f1f7;
  font-size: 0.65rem;
  font-weight: 850;
}

.booking-reference-ai-coming-soon {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd3fa;
  border-radius: 13px;
  padding: 10px;
  color: #4e426c;
  background: linear-gradient(135deg, #f8f5ff, #f2effc);
}

.booking-reference-ai-coming-soon > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #6b50bb;
  background: #fff;
}

.booking-reference-ai-coming-soon > div {
  display: grid;
  gap: 1px;
}

.booking-reference-ai-coming-soon :is(small, strong, p) {
  margin: 0;
}

.booking-reference-ai-coming-soon small {
  color: #6c52b8;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.booking-reference-ai-coming-soon strong {
  font-size: 0.76rem;
}

.booking-reference-ai-coming-soon p {
  color: #786f88;
  font-size: 0.62rem;
  line-height: 1.4;
}

.booking-reference-ai-coming-soon button[disabled] {
  opacity: 0.68;
}

.booking-photo-dropzone {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  min-height: 92px;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed #c8bfd4;
  border-radius: 14px;
  padding: 13px;
  color: #574e62;
  background: #fbfafc;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.booking-photo-dropzone:hover,
.booking-photo-dropzone:focus-within,
.booking-photo-dropzone.is-dragover {
  border-color: #6e55be;
  outline: none;
  background: #f7f3ff;
  box-shadow: 0 0 0 3px rgba(110, 85, 190, 0.12);
}

.booking-photo-group.is-current .booking-photo-dropzone.is-dragover {
  border-color: #4f9f8a;
  background: #f1fbf8;
  box-shadow: 0 0 0 3px rgba(79, 159, 138, 0.12);
}

.booking-photo-dropzone.is-full,
.booking-photo-dropzone.is-preparing {
  cursor: default;
  opacity: 0.72;
}

.booking-photo-dropzone-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #6b54b8;
  background: #eee9fc;
}

.booking-photo-dropzone > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.booking-photo-dropzone strong {
  font-size: 0.73rem;
}

.booking-photo-dropzone small {
  color: #817987;
  font-size: 0.61rem;
  line-height: 1.35;
}

.booking-photo-choose {
  border: 1px solid #d9d1e7;
  border-radius: 9px;
  padding: 7px 9px;
  color: #5f4ca4;
  background: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
}

.booking-photo-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.booking-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.booking-photo-grid:empty {
  display: none;
}

.booking-photo-preview {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e5e0e9;
  border-radius: 11px;
  background: #f2eff4;
}

.booking-photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.booking-photo-preview figcaption {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 7px;
  background: #fff;
}

.booking-photo-preview figcaption span {
  overflow: hidden;
  color: #4d4654;
  font-size: 0.61rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-photo-preview figcaption small {
  color: #8a8390;
  font-size: 0.56rem;
}

body.booking-workspace-mode
  .booking-main
  .booking-photo-preview
  > button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(44, 37, 52, 0.14);
  border-radius: 50%;
  padding: 0;
  color: #3c3444;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 12px rgba(33, 27, 41, 0.16);
  cursor: pointer;
}

body.booking-workspace-mode
  .booking-main
  .booking-photo-preview
  > button
  .icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  body.booking-workspace-mode
    .booking-main
    .booking-photo-preview
    > button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px !important;
    max-width: 44px;
    max-height: 44px;
  }
}

@media (max-width: 980px) {
  .booking-photo-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .booking-reference-method-picker > header {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .booking-reference-method-picker > header > p {
    max-width: none;
    text-align: left;
  }

  .booking-reference-method-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-reference-method-tabs button {
    min-height: 58px;
  }
}

@media (max-width: 560px) {
  .booking-photo-group {
    padding: 13px;
  }

  .booking-reference-ai-coming-soon {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .booking-reference-ai-coming-soon button {
    grid-column: 2;
    justify-self: start;
  }

  .booking-photo-dropzone {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .booking-photo-choose {
    grid-column: 2;
    justify-self: start;
  }

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

@media (prefers-reduced-motion: reduce) {
  .booking-photo-dropzone {
    transition: none;
  }
}

.booking-row-reference {
  display: flex;
  align-items: center;
  gap: 7px;
}
.booking-row-reference img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
}
.booking-row-reference small {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-service-editors {
  display: grid;
  gap: 14px;
  align-content: start;
}
.dashboard-service-editors .form-panel {
  gap: 12px;
}
.dashboard-service-editors .form-panel h2 {
  margin: 0;
}
.form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.service-professional-field {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border: 0;
  margin: 0;
  padding: 0;
}
.service-professional-field legend {
  width: 100%;
  margin-bottom: 3px;
  color: #5e5865;
  font-size: 0.75rem;
  font-weight: 850;
}
.service-professional-field button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid #ded9e5;
  border-radius: 999px;
  padding: 0 10px;
  color: #615a68;
  background: white;
  font-size: 0.72rem;
  font-weight: 780;
}
.service-professional-field button.active {
  color: #56449b;
  border-color: #8875cd;
  background: #f2eefb;
}
.service-professional-field .icon {
  width: 14px;
  height: 14px;
}

.pro-stylist-photo-field {
  display: grid;
  gap: 7px;
}
.pro-stylist-photo-preview {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  border: 1px dashed #cdc6d7;
  border-radius: 12px;
  padding: 9px;
  color: #675b78;
  background: #faf9fc;
  cursor: pointer;
}
.pro-stylist-photo-preview img {
  width: 56px;
  height: 56px;
  border-radius: 11px;
  object-fit: cover;
  object-position: center 22%;
  background: #efecf3;
}
.pro-stylist-photo-preview b {
  font-size: 0.74rem;
}
.pro-stylist-photo-field > input[type="file"] {
  width: 100%;
  min-height: 42px;
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  body.booking-workspace-mode .booking-full-tryon-launch {
    grid-template-columns: 1fr;
  }

  body.booking-workspace-mode .booking-full-tryon-visual {
    min-height: 132px;
    max-height: 150px;
  }

  .booking-professional-options {
    grid-template-columns: 1fr;
  }
  .booking-assignment-card > header {
    align-items: stretch;
    flex-direction: column;
  }
  .booking-reference-upload {
    grid-template-columns: 1fr;
  }
  .booking-reference-upload img {
    width: 100%;
    height: 150px;
  }
  .booking-timeline > header,
  .booking-timeline > div {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .booking-professional-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .booking-service-time-card > header {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .booking-service-time-card > header > :last-child {
    grid-column: 2;
    justify-self: start;
  }
}

/* Guest-first booking flow. Keep this block last: booking.css is the final booking cascade. */
body.booking-workspace-mode .booking-main.panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: start;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.booking-workspace-mode .booking-step-content {
  height: auto;
  min-height: 0;
  max-height: none;
  align-self: stretch;
  overflow-y: auto;
  scrollbar-gutter: auto;
}

body.booking-workspace-mode .booking-controls {
  position: static !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border: 0;
  border-top: 1px solid #e7e4ea;
  padding: 12px 0 0;
  background: transparent;
  box-shadow: none;
}

body.booking-workspace-mode .booking-controls .outline-button {
  min-width: 104px;
}

body.booking-workspace-mode .booking-controls .solid-button {
  min-width: min(100%, 220px);
  margin: 0;
  justify-content: center;
}

.booking-guest-list,
.booking-guest-professional-list {
  display: grid;
  gap: 12px;
}

.booking-guest-card,
.booking-guest-professional-card {
  display: grid;
  gap: 12px;
  border: 1px solid #e3dfe8;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.booking-guest-card-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.booking-guest-card.is-primary .booking-guest-card-head {
  grid-template-columns: 36px minmax(0, 1fr);
}

.booking-guest-card-head > strong,
.booking-guest-card-head > div,
.booking-guest-professional-card > header > div {
  min-width: 0;
  color: #302b35;
  font-size: 0.92rem;
}

.booking-guest-professional-card > header small,
.booking-guest-professional-card > header > span:last-child {
  color: #7c7582;
  font-size: 0.72rem;
}

.booking-guest-professional-card > header > div {
  display: grid;
  gap: 2px;
}

.booking-guest-professional-card > header strong {
  color: #302b35;
  font-size: 0.92rem;
}

.booking-guest-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #6b56b8;
  font-size: 0.75rem;
  font-weight: 850;
}

.booking-guest-name-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.booking-guest-name-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dcd8e1;
  border-radius: 10px;
  padding: 0 12px;
  color: #302b35;
  background: #fff;
  font: inherit;
}

.booking-guest-name-field input::placeholder {
  color: #96909b;
}

.booking-guest-name-field input[aria-invalid="true"] {
  border-color: #c66b76;
  box-shadow: 0 0 0 3px rgba(198, 107, 118, 0.1);
}

.booking-guest-name-error {
  min-height: 1em;
  color: #9a3541;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.booking-guest-remove {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #746e79;
  background: transparent;
}

.booking-guest-remove:hover {
  color: #332e38;
  background: #f1eff3;
}

.booking-guest-remove .icon {
  width: 16px;
  height: 16px;
}

.booking-add-guest {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 1px dashed #c9c3d2;
  border-radius: 12px;
  padding: 0 18px;
  color: #5d527d;
  background: #fbfafc;
  font-size: 0.78rem;
  font-weight: 800;
}

.booking-add-guest:hover {
  border-color: #9485bd;
  background: #f7f5fb;
}

.booking-add-guest:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.booking-guest-service-groups {
  display: grid;
  gap: 18px;
}

.booking-service-group {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.booking-service-group > h3 {
  margin: 0;
  color: #4c4553;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.booking-guest-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.booking-guest-services .choice-card {
  min-height: 72px;
  align-content: center;
  gap: 4px;
  border: 1px solid #e1dde5;
  border-radius: 11px;
  padding: 11px 13px;
  background: #fff;
  text-align: left;
}

.booking-guest-services .choice-card:hover {
  border-color: #aaa0c5;
  transform: none;
}

.booking-guest-services .choice-card.active {
  border-color: #7664b8;
  background: #f7f5fb;
  box-shadow: inset 3px 0 0 #6b56b8;
}

.booking-guest-services .choice-card strong {
  color: #342f39;
  font-size: 0.8rem;
  line-height: 1.25;
}

.booking-guest-services .choice-card small {
  color: #7e7784;
  font-size: 0.68rem;
}

.booking-guest-services .choice-card.is-unavailable {
  cursor: not-allowed;
  opacity: 0.58;
  background: #f8f7f9;
}

.booking-guest-services .choice-card.is-unavailable:hover {
  border-color: #e1dde5;
}

.booking-guest-professional-card > header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.booking-professional-empty {
  display: grid;
  gap: 4px;
  border: 1px solid #e7c9cc;
  border-radius: 12px;
  padding: 14px;
  color: #6f323a;
  background: #fff7f7;
}

.booking-professional-empty span {
  color: #775e62;
  font-size: 0.75rem;
  line-height: 1.45;
}

.booking-professional-option {
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 108px;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.booking-professional-option:hover {
  transform: none;
}

.booking-professional-option > img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 22%;
  background: #f0edf4;
}

.booking-professional-info {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.booking-professional-info strong {
  overflow: visible;
  color: #312c36;
  font-size: 0.86rem;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.booking-professional-info > span {
  color: #655a79;
  font-size: 0.7rem;
  font-weight: 800;
}

.booking-professional-info small {
  overflow: visible;
  color: #7e7784;
  font-size: 0.66rem;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.booking-professional-info [data-professional-price] {
  color: #3b7869;
  font-size: 0.72rem;
  font-weight: 850;
}

.booking-professional-info .booking-professional-service-prices {
  color: #554c5d;
  font-weight: 720;
}

.booking-professional-info p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 2px 0 0;
  color: #88818d;
  font-size: 0.65rem;
  line-height: 1.4;
}

.booking-month-calendar {
  position: relative;
  display: grid;
  width: 100%;
  max-width: none;
  overflow: hidden;
  gap: 10px;
  border: 1px solid #e3dfe7;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.booking-calendar-loading-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 24px;
  color: #3e3450;
  background: rgba(252, 250, 255, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-align: center;
  backdrop-filter: blur(3px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease;
}

.booking-calendar-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.booking-calendar-loading-overlay strong {
  font-size: 0.82rem;
}

.booking-calendar-loading-overlay small {
  color: #7e7588;
  font-size: 0.7rem;
}

.booking-calendar-loading-spinner {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border: 3px solid #e7e0f6;
  border-top-color: #7e61dd;
  border-radius: 50%;
  animation: bookingCalendarLoadingSpin 760ms linear infinite;
}

@keyframes bookingCalendarLoadingSpin {
  to {
    transform: rotate(1turn);
  }
}

.booking-month-calendar-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
}

.booking-month-calendar-head h2 {
  margin: 0;
  color: #302b35;
  font-size: 1rem;
  text-align: center;
}

.booking-month-nav {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #e3dfe7;
  border-radius: 10px;
  color: #564b73;
  background: #fff;
}

.booking-month-nav:first-child .icon {
  transform: rotate(180deg);
}

.booking-month-nav:hover:not(:disabled) {
  border-color: #9b8fc0;
  background: #f7f5fb;
}

.booking-month-nav:disabled {
  opacity: 0.32;
}

.booking-month-nav .icon {
  width: 16px;
  height: 16px;
}

.booking-month-weekdays,
.booking-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.booking-month-weekdays span {
  padding-block: 3px;
  color: #827c87;
  font-size: 0.67rem;
  font-weight: 800;
  text-align: center;
}

.booking-month-day {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 46px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #3d3742;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 750;
  animation: none !important;
  transition: none !important;
}

.booking-month-day > i {
  position: absolute;
  width: 4px;
  height: 4px;
  margin-top: 25px;
  border-radius: 50%;
  background: transparent;
}

.booking-month-day.is-available:not(.active) > i {
  background: #4dac96;
}

.booking-month-day.is-checking:not(.active) > i {
  background: #b9b2c3;
  animation: bookingAvailabilityPulse 900ms ease-in-out infinite alternate;
}

@keyframes bookingAvailabilityPulse {
  to {
    opacity: 0.25;
  }
}

.booking-month-day:hover:not(:disabled):not(.active) {
  background: #f1eef7;
}

.booking-month-day.is-outside {
  color: #aaa4ae;
}

.booking-month-day.is-today:not(.active) {
  box-shadow: inset 0 0 0 1px #9b8fc0;
}

.booking-month-day.active {
  color: #fff;
  background: #6852b8;
  box-shadow: none;
}

.booking-month-day:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.booking-month-day.is-unavailable:disabled {
  color: #9c959f;
  opacity: 0.42;
  background: #f4f2f5;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.booking-month-day.active.is-unavailable:disabled {
  color: #6d6269;
  background: #eee9ec;
}

.booking-calendar-status-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.booking-calendar-status-stack .booking-calendar-status {
  width: auto;
  margin: -2px 0 0;
}

.booking-calendar-status {
  width: 100%;
  margin: -2px 0 0;
  color: #837d88;
  font-size: 0.68rem;
  line-height: 1.4;
}

.booking-calendar-status-stack .booking-hold-status-error {
  width: 100%;
  margin: 0;
  border: 1px solid #e9c8cf;
  border-radius: 10px;
  padding: 9px 11px;
  color: #7c3342;
  background: #fff6f7;
  font-size: 0.72rem;
  font-weight: 720;
}

.booking-calendar-status-stack .booking-availability-error {
  display: flex;
  width: 100%;
  margin: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e9c8cf;
  border-radius: 10px;
  padding: 9px 11px;
  color: #7c3342;
  background: #fff6f7;
  font-size: 0.72rem;
  font-weight: 720;
}

.booking-availability-error button {
  flex: 0 0 auto;
  border: 1px solid #dbaab4;
  border-radius: 999px;
  padding: 5px 9px;
  color: #71313f;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.booking-availability-error button:hover {
  border-color: #be7686;
  background: #fffafb;
}

.booking-availability-error button:focus-visible {
  outline: 2px solid #71313f;
  outline-offset: 2px;
}

.booking-appointment-plan > header {
  display: block;
  padding-block: 11px;
}

.booking-live-availability {
  display: inline;
  color: #756b7f;
  font-weight: 700;
}

.booking-live-availability.is-verified {
  color: #2f745e;
}

.booking-plan-person:not(.is-scheduled) time {
  color: #817985;
}

.booking-time-heading {
  margin: 0;
  border-top: 1px solid #efecf1;
  padding-top: 10px;
  color: #45404a;
  font-size: 0.78rem;
}

.booking-professional-time-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
}

.booking-professional-time-grid button {
  min-height: 48px;
}

.booking-summary-guests {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid #e9e7ec;
  padding: 14px 0;
}

.booking-summary-guest {
  display: grid;
  gap: 10px;
  border: 1px solid #e4e0e8;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.booking-summary-guest > header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-summary-guest > header strong {
  color: #302b35;
  font-size: 0.84rem;
}

.booking-summary-guest-index {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  color: #584795;
  background: #eeeaf7;
  font-size: 0.68rem;
  font-weight: 850;
}

.booking-summary-guest-services {
  display: grid;
  gap: 6px;
}

.booking-summary-guest-service,
.booking-summary-guest-details > div,
.booking-summary-guest > footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.booking-summary-guest-service {
  color: #433d48;
  font-size: 0.75rem;
  line-height: 1.35;
}

.booking-summary-guest-service span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.booking-summary-guest-service span b {
  overflow: hidden;
  font: inherit;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-summary-guest-service span small {
  color: #81798a;
  font-size: 0.67rem;
}

.booking-summary-guest-service strong {
  flex: 0 0 auto;
  font-size: 0.75rem;
}

.booking-summary-guest-details {
  display: grid;
  gap: 7px;
  margin: 0;
}

.booking-summary-guest-details dt {
  color: #817b86;
  font-size: 0.7rem;
}

.booking-summary-guest-details dd {
  max-width: 70%;
  margin: 0;
  color: #39333e;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
}

.booking-summary-guest > footer {
  border-top: 1px solid #eeeaf1;
  padding-top: 8px;
  color: #645d69;
  font-size: 0.74rem;
}

.booking-summary-guest > footer strong {
  color: #2f2a34;
}

.booking-summary-meta,
.booking-summary-section,
.booking-summary-schedule {
  display: none !important;
}

@media (max-width: 900px) {
  body.booking-workspace-mode .booking-main.panel {
    height: auto;
    overflow: visible;
  }

  body.booking-workspace-mode .booking-step-content {
    height: auto;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  body.booking-workspace-mode .booking-step-content {
    padding-bottom: 16px;
    scroll-padding-bottom: 16px;
  }

  body.booking-workspace-mode .booking-controls {
    position: static !important;
    justify-content: flex-end;
    border-radius: 0;
    padding: 12px 0 0;
    background: transparent;
    box-shadow: none;
  }

  body.booking-workspace-mode .booking-controls .solid-button {
    flex: 0 1 220px;
  }
}

@media (max-width: 640px) {
  body.booking-workspace-mode .booking-shellbar {
    min-height: 56px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 7px 10px;
  }

  body.booking-workspace-mode .booking-shellbar-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  body.booking-workspace-mode .booking-shellbar-context span {
    display: none;
  }

  body.booking-workspace-mode .booking-shellbar-context strong {
    font-size: 0.86rem;
  }

  body.booking-workspace-mode .booking-step-content {
    padding-inline: 6px;
  }

  .booking-guest-card,
  .booking-guest-professional-card {
    padding: 13px;
  }

  .booking-guest-services,
  .booking-professional-options {
    grid-template-columns: 1fr;
  }

  .booking-guest-professional-card > header {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .booking-appointment-plan > header {
    display: block;
  }

  .booking-appointment-plan > div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .booking-guest-professional-card > header > span:last-child {
    grid-column: 2;
  }

  .booking-professional-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-professional-option {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 96px;
  }

  .booking-professional-option > img {
    width: 68px;
    height: 68px;
  }

  .booking-month-calendar {
    padding: 10px;
  }

  .booking-month-day {
    min-height: 42px;
    border-radius: 8px;
  }
}

@media (max-width: 420px) {
  body.booking-workspace-mode .booking-controls {
    gap: 8px;
  }

  body.booking-workspace-mode .booking-controls .outline-button {
    min-width: 86px;
  }

  body.booking-workspace-mode .booking-controls .solid-button {
    min-width: 0;
    flex: 1;
  }

  .booking-month-calendar {
    padding: 9px 7px;
  }

  .booking-month-weekdays,
  .booking-month-grid {
    gap: 0;
  }

  .booking-month-day {
    min-height: 40px;
    font-size: 0.72rem;
  }
}

@media (max-width: 340px) {
  body.customer-mode .booking-month-day {
    min-width: 0;
    min-height: 44px !important;
  }
}

/* Person tabs, party timeline, and booking loading state. */
body.booking-workspace-mode .booking-step-content {
  contain: none;
  scrollbar-gutter: stable;
}

.booking-guest-tabs-shell {
  position: sticky;
  z-index: 4;
  top: 0;
  margin: 0 0 12px;
  padding: 7px 0 9px;
  background: #fff;
}

.booking-guest-tabs-row {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 7px 8px 7px 7px;
  scroll-padding-inline: 7px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.booking-guest-tabs-row::-webkit-scrollbar {
  display: none;
}

.booking-guest-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-guest-tab-item {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.booking-guest-tab,
.booking-guest-tabs-add {
  display: inline-flex;
  min-width: max-content;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 820;
}

.booking-guest-tab {
  position: relative;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid #ded9e6;
  color: #625b6a;
  background: #fff;
  box-shadow: none;
}

.booking-guest-tab:hover {
  border-color: #a89db9;
  background: #fbfafc;
}

.booking-guest-tab.active {
  color: #fff;
  border-color: #6751b5;
  background: #6751b5;
  box-shadow: none;
}

.booking-guest-tab:focus-visible {
  outline: 3px solid rgba(103, 80, 184, 0.42);
  outline-offset: 3px;
}

.booking-guest-tab-status {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #185d4e;
  background: #bdebdc;
}

.booking-guest-tab.active .booking-guest-tab-status {
  color: #245c50;
  background: #d8f5ec;
}

.booking-guest-tab-status .icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.booking-guest-tab-remove {
  position: absolute;
  z-index: 2;
  top: -9px;
  right: -9px;
  display: grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #625b68;
  background: #f1eff3;
  box-shadow: 0 2px 7px rgba(42, 35, 51, 0.12);
}

.booking-guest-tab-remove:hover {
  color: #822f3a;
  background: #fae8ea;
}

.booking-guest-tab-remove .icon {
  width: 13px;
  height: 13px;
}

.booking-guest-tabs-add {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid #8fd5c1;
  border-radius: 14px;
  color: #176a57;
  background: #d9f4eb;
  scroll-snap-align: end;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.booking-guest-tabs-add:hover:not(:disabled) {
  border-color: #63b99f;
  background: #c8ecdf;
  transform: translateY(-1px);
}

.booking-guest-tabs-add:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.booking-guest-tabs-add .icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}

.booking-guest-tab-item.is-new {
  animation: bookingGuestTabAdded 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.booking-guest-tab-panel {
  transform-origin: 50% 0;
  animation: bookingGuestPanelIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.booking-guest-tab-panel.is-new {
  animation: bookingGuestAdded 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.booking-guest-card.is-primary {
  padding-top: 16px;
}

@keyframes bookingGuestPanelIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bookingGuestAdded {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bookingGuestTabAdded {
  from {
    opacity: 0;
    transform: translateX(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.booking-appointment-plan {
  display: grid;
  gap: 10px;
  border: 1px solid #e3dfe8;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.booking-appointment-plan > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
}

.booking-appointment-plan > header > div {
  display: grid;
  gap: 2px;
}

.booking-appointment-plan > header strong {
  color: #302b35;
  font-size: 0.86rem;
}

.booking-appointment-plan > header span,
.booking-appointment-plan > header small {
  color: #7b7481;
  font-size: 0.7rem;
}

.booking-timeline-axis,
.booking-timeline-lane {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
}

.booking-timeline-axis {
  align-items: center;
  padding-top: 3px;
  color: #96909a;
  font-size: 0.62rem;
}

.booking-timeline-axis > span:first-child {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.booking-timeline-axis > i {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  border-top: 1px dashed #ddd8e2;
}

.booking-timeline-axis > span:last-child {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.booking-timeline-lanes {
  display: grid;
  gap: 9px;
}

.booking-timeline-lane {
  align-items: center;
  min-width: 0;
}

.booking-timeline-person {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.booking-timeline-person strong,
.booking-timeline-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-timeline-person strong {
  color: #3b3540;
  font-size: 0.72rem;
}

.booking-timeline-person small {
  color: #85808a;
  font-size: 0.64rem;
}

.booking-timeline-track {
  position: relative;
  display: block;
  height: 34px;
  overflow: hidden;
  border-radius: 9px;
  background: repeating-linear-gradient(
    90deg,
    #f4f2f6 0,
    #f4f2f6 calc(25% - 1px),
    #e8e4ec calc(25% - 1px),
    #e8e4ec 25%
  );
}

.booking-timeline-block {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--timeline-start);
  display: flex;
  width: var(--timeline-span);
  min-width: 0;
  align-items: center;
  overflow: hidden;
  border-radius: 7px;
  padding: 0 8px;
  color: #fff;
  background: #6751b5;
  box-shadow: 0 4px 10px rgba(76, 58, 134, 0.16);
}

.booking-timeline-lane:nth-child(2n) .booking-timeline-block {
  color: #245c50;
  background: #bdebdc;
  box-shadow: 0 4px 10px rgba(58, 132, 112, 0.12);
}

.booking-timeline-lane:not(.is-scheduled) .booking-timeline-block {
  left: 0;
  width: 100%;
  color: #89828e;
  border: 1px dashed #d8d2dc;
  background: transparent;
  box-shadow: none;
}

.booking-timeline-block b {
  overflow: hidden;
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-summary-salon {
  grid-template-columns: 82px minmax(0, 1fr) !important;
  gap: 13px !important;
  align-items: center;
}

.booking-summary-salon img {
  width: 82px !important;
  height: 82px !important;
  border-radius: 13px !important;
}

.booking-summary-salon strong {
  color: #29242e;
  font-size: 1.08rem !important;
  line-height: 1.15;
  white-space: normal;
}

.booking-summary-salon small {
  color: #66606b !important;
  font-size: 0.76rem !important;
  font-weight: 720;
  line-height: 1.35;
  white-space: normal;
}

.booking-summary-salon span {
  font-size: 0.7rem !important;
}

.booking-summary-guest-details > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
}

.booking-summary-guest-details dd {
  min-width: 0;
  max-width: none;
  overflow-wrap: anywhere;
}

.booking-summary-guest-details [data-booking-summary-field="when"] dd {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  text-align: left;
}

.booking-summary-calendar {
  display: grid;
  width: 46px;
  height: 58px;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  border: 1px solid #ded8e8;
  border-radius: 9px;
  background: #fff;
}

.booking-summary-calendar small {
  width: 100%;
  margin: -5px -10px 2px;
  padding: 2px 10px;
  color: #fff;
  background: #6751b5;
  font-size: 0.55rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.booking-summary-calendar strong {
  color: #302a36;
  font-size: 1.05rem;
  line-height: 1;
}

.booking-summary-calendar b {
  color: #8b8490;
  font-size: 0.52rem;
  text-transform: uppercase;
}

.booking-summary-time-window {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.booking-summary-time-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #ece8f1;
}

.booking-summary-time-track i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6751b5, #83cbb9);
}

.booking-summary-time-labels {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.booking-summary-time-labels time {
  color: #38313e;
  font-size: 0.64rem;
  font-weight: 820;
  white-space: nowrap;
}

.booking-summary-time-window > small {
  color: #85808a;
  font-size: 0.58rem;
}

.booking-loading-layout {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: clamp(36px, 8vw, 84px) 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(126, 97, 221, 0.1), transparent 27rem),
    linear-gradient(180deg, #fdfcff 0%, #faf8ff 100%);
  text-align: center;
}

.booking-loading-layout > :is(h1, p) {
  margin: 0;
}

.booking-loading-layout > .eyebrow {
  margin-top: 8px;
  color: #6f52c5;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.booking-loading-layout > h1 {
  color: #292331;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  letter-spacing: -0.045em;
}

.booking-loading-layout > p:not(.eyebrow) {
  max-width: 42ch;
  color: #746c7b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.booking-loading-emblem {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 6px;
  place-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 54px rgba(86, 59, 157, 0.15);
}

.booking-loading-emblem::before,
.booking-loading-emblem > span {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(126, 97, 221, 0.26);
  border-radius: 33px;
  content: "";
}

.booking-loading-emblem::before {
  border-top-color: #7e61dd;
  animation: bookingLoadingOrbit 2.2s linear infinite;
}

.booking-loading-emblem > span {
  inset: -15px;
  opacity: 0.42;
  animation: bookingLoadingPulse 1.7s ease-in-out infinite;
}

.booking-loading-emblem img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

@keyframes bookingLoadingOrbit {
  to {
    transform: rotate(1turn);
  }
}

@keyframes bookingLoadingPulse {
  50% {
    opacity: 0.12;
    transform: scale(1.08);
  }
}

.booking-loading-layout .booking-loading-progress {
  width: min(680px, 72vw);
  margin-top: 11px;
}

.booking-loading-layout .booking-loading-progress span {
  background: linear-gradient(90deg, #c6b6f4, #7e61dd, #a98cf0);
}

.booking-loading-layout > .booking-loading-steps {
  width: min(680px, 84vw);
  margin-top: 14px;
}

.booking-loading-layout > .booking-loading-cards {
  width: min(760px, 88vw);
  margin-top: 10px;
  gap: 14px;
}

.booking-loading-layout > .booking-loading-cards span {
  min-height: 78px;
  padding: 16px;
  border-color: #e8e1f2;
  background: rgba(255, 255, 255, 0.7);
}

.booking-loading-layout :is(.booking-loading-steps i, .booking-loading-steps b, .booking-loading-cards i, .booking-loading-cards b, .booking-loading-cards em) {
  background: #eee9f5;
}

.booking-loading-layout .booking-loading-steps .active i {
  background: #d8cdf5;
}

.booking-loading-main,
.booking-loading-summary {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e0eb;
  background: rgba(255, 255, 255, 0.96);
}

.booking-loading-main {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
}

.booking-loading-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.booking-loading-wordmark {
  color: #6751b5;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.booking-loading-orbit {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid #dfd8ec;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 35%, #f5f1fb 36% 100%);
  animation: bookingOrbitPulse 1.8s ease-in-out infinite;
}

.booking-loading-orbit > b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #6751b5;
  box-shadow: 0 10px 24px rgba(90, 68, 158, 0.24);
}

.booking-loading-orbit > i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #82d3bd;
  transform-origin: 44px 4px;
  animation: bookingOrbitSpin 2.2s linear infinite;
}

.booking-loading-orbit > i:nth-child(2) {
  animation-delay: -0.72s;
}
.booking-loading-orbit > i:nth-child(3) {
  animation-delay: -1.44s;
}

.booking-loading-copy {
  display: grid;
  max-width: 520px;
  gap: 7px;
}

.booking-loading-copy h1 {
  margin: 0;
  color: #28232e;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.booking-loading-copy > p:last-child {
  margin: 0;
  color: #746d7a;
  line-height: 1.5;
}

.booking-loading-progress {
  width: min(340px, 100%);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeaf2;
}

.booking-loading-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6751b5, #88d4c0);
  animation: bookingLoadingSweep 1.55s ease-in-out infinite;
}

.booking-loading-steps {
  display: grid;
  width: min(520px, 100%);
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

.booking-loading-steps span,
.booking-loading-cards span {
  display: grid;
  gap: 7px;
}

.booking-loading-steps i,
.booking-loading-steps b,
.booking-loading-cards i,
.booking-loading-cards b,
.booking-loading-cards em,
.booking-loading-salon,
.booking-loading-line {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #efecf2;
}

.booking-loading-steps i {
  width: 24px;
  height: 24px;
  margin: auto;
}
.booking-loading-steps b {
  width: 80%;
  height: 6px;
  margin: auto;
}
.booking-loading-steps .active i {
  background: #d9d0ef;
}

.booking-loading-cards {
  display: grid;
  width: min(620px, 100%);
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.booking-loading-cards span {
  border: 1px solid #eeeaf1;
  border-radius: 12px;
  padding: 13px;
}

.booking-loading-cards i {
  width: 62%;
  height: 9px;
}
.booking-loading-cards b {
  width: 86%;
  height: 7px;
}
.booking-loading-cards em {
  width: 38%;
  height: 7px;
}

.booking-loading-summary {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 22px;
}

.booking-loading-salon {
  width: 100%;
  height: 84px;
  border-radius: 13px;
}
.booking-loading-line {
  width: 100%;
  height: 110px;
  border-radius: 12px;
}

@keyframes bookingOrbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bookingOrbitPulse {
  50% {
    transform: scale(1.045);
    box-shadow: 0 14px 34px rgba(91, 68, 157, 0.12);
  }
}

@keyframes bookingLoadingSweep {
  from {
    transform: translateX(-105%);
  }
  to {
    transform: translateX(245%);
  }
}

@media (max-width: 900px) {
  body.booking-workspace-mode {
    overflow: auto;
  }

  body.booking-workspace-mode .customer-shell,
  body.booking-workspace-mode .page-wrap,
  body.booking-workspace-mode .booking-layout,
  body.booking-workspace-mode .booking-main.panel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.booking-workspace-mode .customer-shell {
    display: block;
  }

  body.booking-workspace-mode .booking-controls {
    margin-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .booking-loading-layout {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 130px);
  }

  .booking-loading-summary {
    display: none;
  }
}

@media (max-width: 640px) {
  .booking-guest-tabs-shell {
    margin-inline: -2px;
  }

  .booking-guest-tab,
  .booking-guest-tabs-add {
    padding-inline: 14px;
  }

  .booking-timeline-axis,
  .booking-timeline-lane {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
  }

  .booking-timeline-track {
    height: 38px;
  }

  .booking-loading-main {
    min-height: calc(100dvh - 150px);
    padding: 30px 18px;
  }

  .booking-loading-cards {
    grid-template-columns: 1fr;
  }

  .booking-loading-cards span:nth-child(n + 3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-guest-tab-panel,
  .booking-guest-tab-panel.is-new,
  .booking-guest-tab-item.is-new,
  .booking-loading-emblem::before,
  .booking-loading-emblem > span,
  .booking-calendar-loading-spinner,
  .booking-loading-orbit,
  .booking-loading-orbit > i,
  .booking-loading-progress span {
    animation: none !important;
  }
}

/* Clean party scheduling UI. These selectors intentionally do not reuse the
   legacy .booking-timeline classes above. */
body.booking-workspace-mode [data-booking-step-content]:focus {
  outline: none;
}

body.booking-workspace-mode .calendar-picker {
  min-width: 0;
  gap: 14px;
}

body.booking-workspace-mode .calendar-picker > .booking-month-calendar,
body.booking-workspace-mode .calendar-picker > .booking-calendar-status,
body.booking-workspace-mode .calendar-picker > .booking-party-plan,
body.booking-workspace-mode .calendar-picker > .booking-guest-tabs-shell,
body.booking-workspace-mode .calendar-picker > .booking-service-time-list {
  width: min(760px, 100%);
  margin-inline: auto;
}

.booking-party-plan {
  display: grid;
  min-width: 0;
  gap: 14px;
  border: 1px solid #dedbe3;
  border-radius: 16px;
  padding: 16px;
  color: #302b35;
  background: #fff;
  box-shadow: 0 8px 24px rgba(44, 36, 57, 0.045);
}

.booking-party-plan-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eeebf0;
  padding-bottom: 13px;
}

.booking-party-plan-header > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.booking-party-plan-header span {
  color: #77717c;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.booking-party-plan-header strong {
  overflow: hidden;
  color: #2d2832;
  font-size: 0.9rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-party-plan-header > small {
  flex: 0 0 auto;
  border: 1px solid #dcd5ec;
  border-radius: 999px;
  padding: 6px 10px;
  color: #584a8e;
  background: #f7f5fb;
  font-size: 0.67rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.booking-party-plan-axis,
.booking-party-plan-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(130px, 1.1fr) minmax(210px, 3fr) minmax(
      102px,
      0.9fr
    );
  align-items: center;
  gap: 14px;
}

.booking-party-plan-axis {
  min-height: 16px;
  color: #918b95;
  font-size: 0.6rem;
  font-weight: 720;
}

.booking-party-plan-axis > span:first-child {
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  padding-right: 5px;
  background: #fff;
}

.booking-party-plan-axis > i {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  border-top: 1px dashed #dcd7e0;
}

.booking-party-plan-axis > span:last-child {
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding-left: 5px;
  background: #fff;
}

.booking-party-plan-rows {
  display: grid;
  gap: 8px;
}

.booking-party-plan-row {
  min-height: 48px;
  border-top: 1px solid #f0edf2;
  padding-top: 8px;
}

.booking-party-plan-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.booking-party-plan-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.booking-party-plan-person > i {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #5c4d94;
  background: #eeeaf7;
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 850;
}

.booking-party-plan-row:nth-child(2n) .booking-party-plan-person > i {
  color: #226753;
  background: #ddf3ec;
}

.booking-party-plan-person > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.booking-party-plan-person strong,
.booking-party-plan-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-party-plan-person strong {
  color: #38323d;
  font-size: 0.73rem;
}

.booking-party-plan-person small {
  color: #817b85;
  font-size: 0.61rem;
}

.booking-party-plan-track {
  position: relative;
  display: block;
  min-width: 0;
  height: 32px;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(
      90deg,
      transparent calc(25% - 1px),
      rgba(92, 80, 112, 0.08) calc(25% - 1px) 25%,
      transparent 25% calc(50% - 1px),
      rgba(92, 80, 112, 0.08) calc(50% - 1px) 50%,
      transparent 50% calc(75% - 1px),
      rgba(92, 80, 112, 0.08) calc(75% - 1px) 75%,
      transparent 75%
    ),
    #f5f3f7;
}

.booking-party-plan-block {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--timeline-start);
  width: var(--timeline-span);
  min-width: 4px;
  border-radius: 7px;
  background: #6b55b8;
}

.booking-party-plan-row:nth-child(2n) .booking-party-plan-block {
  background: #92d9c5;
}

.booking-party-plan-row:not(.is-scheduled) .booking-party-plan-track {
  border: 1px dashed #d7d2dc;
  background: #faf9fb;
}

.booking-party-plan-row:not(.is-scheduled) .booking-party-plan-block {
  display: none;
}

.booking-party-plan-row > time {
  overflow: hidden;
  color: #453d4c;
  font-size: 0.67rem;
  font-weight: 820;
  line-height: 1.3;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-party-plan-row:not(.is-scheduled) > time {
  color: #99929c;
  font-weight: 720;
}

/* One readable schedule in the summary rail. */
.booking-summary-party-schedule {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid #e9e7ec;
  padding: 15px 0;
}

.booking-summary-party-schedule > header {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.booking-summary-party-date {
  display: grid;
  grid-template-rows: 18px minmax(0, 1fr) 13px;
  width: 50px;
  height: 58px;
  align-items: center;
  justify-items: stretch;
  overflow: hidden;
  border: 1px solid #ddd8e5;
  border-radius: 11px;
  color: #312b37;
  background: #fff;
  line-height: 1;
}

.booking-summary-party-date small {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: var(--booking-neon, #67549a);
  font-size: 0.55rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.booking-summary-party-date strong {
  justify-self: center;
  font-size: 1rem;
}

.booking-summary-party-date span {
  justify-self: center;
  margin-top: 0;
  color: #827b87;
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-summary-party-schedule > header > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.booking-summary-party-schedule > header > div > span {
  color: #817a87;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-summary-party-schedule > header > div > strong {
  color: #302a35;
  font-size: 0.86rem;
  line-height: 1.25;
}

.booking-summary-party-schedule > header > div > small {
  overflow: hidden;
  color: #827b87;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-summary-party-rows {
  display: grid;
  gap: 10px;
}

.booking-summary-party-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.booking-summary-party-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b55b8;
}

.booking-summary-party-row:nth-child(2n) .booking-summary-party-dot {
  background: #64bba3;
}

.booking-summary-party-row > span:not(.booking-summary-party-track) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.booking-summary-party-row > span strong,
.booking-summary-party-row > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-summary-party-row > span strong {
  color: #3b3540;
  font-size: 0.68rem;
}

.booking-summary-party-row > span small {
  color: #88818c;
  font-size: 0.58rem;
}

.booking-summary-party-row > time {
  color: #423a49;
  font-size: 0.61rem;
  font-weight: 820;
  white-space: nowrap;
}

.booking-summary-party-row:not(.is-scheduled) > time {
  color: #9b949e;
}

.booking-summary-party-track {
  position: relative;
  display: block;
  grid-column: 2 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeebf1;
}

.booking-summary-party-track > i {
  position: absolute;
  inset-block: 0;
  left: var(--schedule-start);
  width: var(--schedule-span);
  min-width: 3px;
  border-radius: inherit;
  background: #6b55b8;
}

.booking-summary-party-row:nth-child(2n) .booking-summary-party-track > i {
  background: #8cd2be;
}

.booking-summary-party-row:not(.is-scheduled) .booking-summary-party-track {
  border: 1px dashed #d8d2dc;
  background: transparent;
}

.booking-summary-party-row:not(.is-scheduled) .booking-summary-party-track > i {
  display: none;
}

.booking-summary-references {
  display: grid;
  gap: 8px;
  border-top: 1px solid #eeebf0;
  padding-top: 11px;
}

.booking-summary-references .reference-mini {
  margin-top: 0;
  border: 1px solid #e7e2ee;
  background: #faf9fc;
}

.booking-reference-library {
  display: grid;
  min-width: 0;
  gap: 13px;
}

.booking-reference-actions {
  justify-content: flex-end;
  min-height: 30px;
}

/* Keep person controls visually clean while retaining generous hit targets. */
.booking-guest-tabs-row {
  gap: 14px;
  padding: 12px 14px 9px 9px;
}

.booking-guest-tabs {
  gap: 14px;
  background: transparent;
}

.booking-guest-tab-item,
.booking-guest-tab-item:has(.booking-guest-tab.active) {
  border-radius: 14px;
  background: transparent;
}

.booking-guest-tab.active {
  outline: 0;
}

.booking-guest-tab-status {
  position: absolute;
  z-index: 2;
  top: -7px;
  left: -7px;
  border: 2px solid #fff;
}

.booking-guest-tab-remove {
  top: -10px;
  right: -13px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 0;
  color: #625b68;
  background: transparent;
  box-shadow: none;
}

.booking-guest-tab-remove::before {
  position: absolute;
  inset: 7px;
  border: 1px solid #ddd8e1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(42, 35, 51, 0.12);
  content: "";
}

.booking-guest-tab-remove .icon {
  position: relative;
  z-index: 1;
}

.booking-guest-tab-remove:hover {
  color: #822f3a;
  background: transparent;
}

.booking-guest-tab-remove:hover::before {
  border-color: #efcdd2;
  background: #fae8ea;
}

.booking-guest-tabs-add {
  order: 2;
  padding: 0;
}

@media (max-width: 640px) {
  body.booking-workspace-mode .calendar-picker {
    gap: 12px;
  }

  .booking-party-plan {
    gap: 12px;
    border-radius: 14px;
    padding: 13px;
    box-shadow: none;
  }

  .booking-party-plan-header {
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 11px;
  }

  .booking-party-plan-header strong {
    white-space: normal;
  }

  .booking-party-plan-header > small {
    padding: 5px 8px;
    font-size: 0.61rem;
  }

  .booking-party-plan-axis {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-party-plan-axis > span:first-child,
  .booking-party-plan-axis > i,
  .booking-party-plan-axis > span:last-child {
    grid-column: 1;
  }

  .booking-party-plan-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding-top: 10px;
  }

  .booking-party-plan-track {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 28px;
  }

  .booking-party-plan-row > time {
    grid-column: 2;
    grid-row: 1;
    max-width: 132px;
  }

  .booking-guest-tabs-shell {
    padding-top: 4px;
  }

  .booking-guest-tabs-row {
    gap: 12px;
    padding: 12px 14px 9px 9px;
  }

  .booking-guest-tabs {
    gap: 12px;
  }

  .booking-guest-tab {
    padding-inline: 15px;
  }

  .booking-guest-tabs-add {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .booking-reference-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .booking-reference-tabs::-webkit-scrollbar {
    display: none;
  }

  .booking-reference-tabs button {
    min-height: 44px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .booking-reference-upload {
    padding: 13px;
  }
}

@media (max-width: 420px) {
  .booking-month-calendar {
    border-radius: 12px;
    padding: 10px 7px;
  }

  .booking-month-calendar-head {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .booking-month-nav {
    width: 44px;
    height: 44px;
  }

  .booking-month-day {
    min-height: 44px;
    border-radius: 8px;
  }

  .booking-party-plan-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-party-plan-header > small {
    justify-self: start;
  }

  .booking-party-plan-row > time {
    max-width: 116px;
    font-size: 0.62rem;
  }

  .booking-party-plan-person > i {
    width: 26px;
    height: 26px;
  }

  .booking-summary-party-schedule {
    gap: 11px;
  }

  .booking-summary-party-row {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .booking-summary-party-row > time {
    grid-column: 2;
    justify-self: start;
  }

  .booking-summary-party-track {
    grid-column: 2;
  }

  .booking-guest-tabs-row {
    padding-right: 11px;
  }
}

@media (max-width: 340px) {
  .booking-party-plan {
    padding: 11px;
  }

  .booking-party-plan-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-party-plan-row > time {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .booking-party-plan-track {
    grid-row: 3;
  }

  .booking-guest-tab {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-guest-tabs-add,
  .booking-guest-tab,
  .booking-month-day,
  .booking-party-plan-block,
  .booking-summary-party-track > i {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Compact sticky person strip and reliable narrow-screen booking scroll. */
body.booking-workspace-mode .booking-step-content {
  --booking-stage-pad-x: clamp(16px, 2vw, 24px);
  --booking-stage-pad-y: clamp(16px, 2vw, 24px);
}

body.booking-workspace-mode .booking-guest-tabs-shell,
body.booking-workspace-mode .calendar-picker > .booking-guest-tabs-shell {
  top: calc(0px - var(--booking-stage-pad-y));
  z-index: 12;
  isolation: isolate;
  width: auto;
  max-width: none;
  margin: calc(0px - var(--booking-stage-pad-y))
    calc(0px - var(--booking-stage-pad-x)) 8px;
  padding: 4px var(--booking-stage-pad-x) 5px;
  border-bottom: 1px solid #ebe8ee;
  background: #fff;
  box-shadow: 0 5px 10px -10px rgba(38, 31, 47, 0.5);
}

body.booking-workspace-mode .booking-guest-tabs-shell::before {
  position: absolute;
  z-index: -1;
  inset: -2px 0 0;
  background: #fff;
  content: "";
  pointer-events: none;
}

.booking-guest-tabs-row {
  gap: 8px;
  padding: 8px 5px 4px 8px;
  scroll-padding-inline: 8px;
}

.booking-guest-tabs {
  gap: 4px;
}

.booking-guest-tab-item {
  min-width: 0;
  padding-right: 20px;
}

.booking-guest-tab {
  min-width: 44px;
  max-width: min(190px, 62vw);
  overflow: visible;
  padding-inline: 16px;
  white-space: nowrap;
}

.booking-guest-tab > [data-booking-guest-tab-label] {
  display: block;
  max-width: calc(min(190px, 62vw) - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-guest-tab-status {
  top: -5px;
  left: -5px;
}

body.booking-workspace-mode .booking-main .booking-guest-tab-remove {
  top: -9px;
  right: 6px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  opacity: 0;
  color: #625b68;
  background: transparent;
  pointer-events: none;
  transform: scale(0.94);
  transition:
    opacity 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.booking-guest-tab-remove::before {
  inset: 3px;
  border-color: #d9d4de;
  background: #fff;
  box-shadow: 0 2px 6px rgba(42, 35, 51, 0.12);
}

.booking-guest-tab-remove .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
}

body.booking-workspace-mode
  .booking-main
  .booking-guest-tab-item:hover
  .booking-guest-tab-remove,
body.booking-workspace-mode
  .booking-main
  .booking-guest-tab-item:focus-within
  .booking-guest-tab-remove {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.booking-workspace-mode
  .booking-main
  .booking-guest-tab-remove:focus-visible {
  opacity: 1;
  outline: 3px solid rgba(103, 80, 184, 0.38);
  outline-offset: 2px;
  pointer-events: auto;
  transform: none;
}

.booking-guest-tab-remove:hover::before,
.booking-guest-tab-remove:focus-visible::before {
  border-color: #e2b9c0;
  background: #fff3f4;
}

.booking-guest-card-head {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
}

.booking-guest-card-head > .booking-guest-number {
  width: 40px;
  height: 40px;
  margin-top: 0;
}

.booking-guest-card-head .booking-guest-name-field input {
  min-height: 40px;
}

.booking-guest-tab-item.is-new {
  min-width: 0;
  animation: bookingGuestTabReveal 680ms cubic-bezier(0.22, 0.72, 0.2, 1) both;
}

.booking-guest-tab-panel.is-new {
  animation: bookingGuestPanelReveal 540ms cubic-bezier(0.22, 0.72, 0.2, 1) both;
}

@keyframes bookingGuestTabReveal {
  0% {
    max-width: 0;
    overflow: clip;
    padding-right: 0;
    opacity: 0;
    transform: translateX(-5px);
  }

  72% {
    overflow: clip;
    opacity: 1;
  }

  99% {
    max-width: 240px;
    overflow: clip;
    padding-right: 20px;
  }

  100% {
    max-width: 240px;
    overflow: visible;
    padding-right: 20px;
    opacity: 1;
    transform: none;
  }
}

@keyframes bookingGuestPanelReveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (hover: none), (pointer: coarse) {
  body.booking-workspace-mode
    .booking-main
    .booking-guest-tab-item:has(.booking-guest-tab.active)
    .booking-guest-tab-remove {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 900px) {
  html {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.booking-workspace-mode {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.booking-workspace-mode .customer-shell,
  body.booking-workspace-mode .page-wrap,
  body.booking-workspace-mode .booking-layout,
  body.booking-workspace-mode .booking-main.panel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.booking-workspace-mode .customer-shell {
    display: block;
  }

  body.booking-workspace-mode .booking-step-content {
    height: auto;
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  body.booking-workspace-mode .booking-guest-tabs-shell,
  body.booking-workspace-mode .calendar-picker > .booking-guest-tabs-shell {
    top: 74px;
  }

  body.booking-workspace-mode .booking-controls {
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  body.booking-workspace-mode {
    padding-bottom: 0;
  }

  body.booking-workspace-mode .booking-step-content {
    --booking-stage-pad-x: 14px;
    --booking-stage-pad-y: 14px;
  }

  body.booking-workspace-mode .booking-guest-tabs-shell,
  body.booking-workspace-mode .calendar-picker > .booking-guest-tabs-shell {
    top: 62px;
  }

  body.booking-workspace-mode .booking-controls {
    margin-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .booking-guest-card-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .booking-guest-card-head > .booking-guest-number {
    width: 44px;
    height: 44px;
  }

  .booking-guest-card-head .booking-guest-name-field input {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  body.booking-workspace-mode .booking-step-content {
    --booking-stage-pad-x: 6px;
    --booking-stage-pad-y: 14px;
  }

  .booking-guest-tabs-row {
    gap: 7px;
    padding: 5px 4px 4px;
  }

  .booking-guest-tabs {
    gap: 3px;
  }

  .booking-guest-tab {
    max-width: min(168px, 58vw);
    padding-inline: 14px;
  }

  .booking-guest-tab > [data-booking-guest-tab-label] {
    max-width: calc(min(168px, 58vw) - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-guest-tab-item.is-new,
  .booking-guest-tab-panel.is-new {
    animation: none !important;
  }
}

/*
 * Customer booking workspace.
 * Keep this block last: booking.css is loaded after the shared stylesheet, so
 * this is the authoritative cascade for the focused, navigation-free flow.
 */
body.booking-workspace-mode {
  --booking-neon: #67549a;
  --booking-neon-bright: #7d6aa8;
  --booking-neon-dark: #51416f;
  --booking-neon-soft: #f3e8ff;
  --booking-neon-line: #c6bed8;
  --booking-neon-glow: rgba(103, 84, 154, 0.24);
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden !important;
  padding-bottom: 0;
  background: #f5f5f5;
}

body.booking-workspace-mode .booking-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

body.booking-workspace-mode .booking-shellbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 44px;
  min-height: 62px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e1e1e1;
  padding: 8px clamp(16px, 2.8vw, 42px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

body.booking-workspace-mode .booking-hold-countdown {
  display: inline-flex;
  min-width: 116px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(107, 78, 183, 0.2);
  border-radius: 999px;
  padding: 6px 11px;
  color: #55427e;
  background: rgba(247, 243, 255, 0.94);
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.booking-workspace-mode .booking-hold-countdown strong {
  color: #4f36a1;
  font-size: 0.79rem;
}

body.booking-workspace-mode .booking-hold-countdown.is-warning {
  border-color: rgba(179, 112, 27, 0.28);
  color: #85500d;
  background: #fff7e8;
}

body.booking-workspace-mode .booking-hold-countdown.is-warning strong {
  color: #8d5107;
}

body.booking-workspace-mode .booking-hold-countdown.is-empty {
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
}

body.booking-workspace-mode .booking-shellbar-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-color: #d7d7d7;
  color: #252329;
  background: #fff;
  box-shadow: none;
}

body.booking-workspace-mode .booking-shellbar-button:hover {
  border-color: #aaa6af;
  background: #fafafa;
}

body.booking-workspace-mode .booking-shellbar-back .icon {
  transform: rotate(180deg);
}

body.booking-workspace-mode .booking-shellbar-context {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 1px;
  text-align: center;
}

body.booking-workspace-mode .booking-shellbar-context span,
body.booking-workspace-mode .booking-shellbar-context strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.booking-workspace-mode .booking-shellbar-context span {
  color: #817d84;
  font-size: 0.67rem;
  font-weight: 690;
}

body.booking-workspace-mode .booking-shellbar-context strong {
  color: #242229;
  font-size: 0.9rem;
  font-weight: 760;
}

body.booking-workspace-mode .booking-shell > .page-wrap {
  width: min(calc(100% - 48px), 1560px);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(16px, 2vw, 26px) 0;
}

body.booking-workspace-mode .booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  gap: clamp(18px, 2vw, 28px);
  margin: 0;
}

body.booking-workspace-mode .booking-main.panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-content: stretch;
  align-self: stretch;
  gap: 10px;
  overflow: hidden;
}

body.booking-workspace-mode .booking-main .stepper {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  padding: 0 2px 2px;
  background: transparent;
  scrollbar-width: none;
}

body.booking-workspace-mode .booking-main .stepper::-webkit-scrollbar {
  display: none;
}

body.booking-workspace-mode .booking-main .stepper button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 28px;
  align-items: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #a09ca3;
  background: transparent;
  box-shadow: none;
  font-size: 0.73rem;
  font-weight: 670;
}

body.booking-workspace-mode .booking-main .stepper button + button::before {
  margin: 0 10px;
  color: #c3c0c5;
  content: "\203A";
}

body.booking-workspace-mode .booking-main .stepper button span {
  display: none;
}

body.booking-workspace-mode .booking-main .stepper button strong {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

body.booking-workspace-mode .booking-main .stepper button.active {
  color: #242229;
  background: transparent;
  box-shadow: none;
  font-weight: 780;
}

body.booking-workspace-mode .booking-main .stepper button.done {
  color: #5f5b62;
}

body.booking-workspace-mode .booking-main .stepper button.locked {
  color: #aaa6ad;
  opacity: 1;
}

body.booking-workspace-mode .booking-title-bar {
  align-items: end;
  padding: 0 2px 5px;
}

body.booking-workspace-mode .booking-title-bar .eyebrow {
  display: none;
}

body.booking-workspace-mode .booking-title-bar h1 {
  margin: 0;
  color: #201e24;
  font-size: clamp(1.9rem, 2.6vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

body.booking-workspace-mode .booking-title-bar > div > p:last-child {
  max-width: 620px;
  margin: 7px 0 0;
  color: #77737a;
  font-size: 0.81rem;
}

body.booking-workspace-mode .booking-step-content {
  --booking-stage-pad-x: 2px;
  --booking-stage-pad-y: 5px;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  align-self: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  contain: none;
  border: 0;
  border-radius: 0;
  padding: 5px 8px 42px 2px;
  background: transparent;
  box-shadow: none;
  scrollbar-gutter: stable;
}

body.booking-workspace-mode .booking-guest-tabs-shell,
body.booking-workspace-mode .calendar-picker > .booking-guest-tabs-shell {
  position: sticky;
  z-index: 12;
  top: -5px;
  isolation: isolate;
  width: auto;
  max-width: none;
  margin: -5px 0 14px;
  border-bottom: 1px solid #e6e5e7;
  padding: 6px 0 11px;
  background: #f5f5f5;
  box-shadow: none;
}

body.booking-workspace-mode .booking-guest-tabs-shell::before {
  display: none;
}

body.booking-workspace-mode .booking-guest-tabs-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

body.booking-workspace-mode .booking-guest-tabs-row::-webkit-scrollbar {
  display: none;
}

body.booking-workspace-mode .booking-guest-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

body.booking-workspace-mode .booking-guest-tab-item {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

body.booking-workspace-mode .booking-guest-tab,
body.booking-workspace-mode .booking-guest-tabs-add {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  border: 1px solid #dcdadd;
  border-radius: 999px;
  padding: 0 14px;
  color: #615d64;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 720;
}

body.booking-workspace-mode .booking-guest-tab.active {
  color: #fff;
  border-color: #27232d;
  background: #27232d;
}

body.booking-workspace-mode .booking-guest-tab-status .icon {
  width: 13px;
  height: 13px;
}

body.booking-workspace-mode .booking-guest-tab-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  width: 20px;
  min-height: 20px;
  place-items: center;
  border: 1px solid #d9d6db;
  border-radius: 50%;
  padding: 0;
  color: #625e65;
  background: #fff;
}

body.booking-workspace-mode .booking-guest-tab-remove .icon,
body.booking-workspace-mode .booking-guest-tabs-add .icon {
  width: 12px;
  height: 12px;
}

body.booking-workspace-mode .booking-guest-tabs-add {
  width: 38px;
  flex: 0 0 38px;
  justify-content: center;
  padding: 0;
}

body.booking-workspace-mode .booking-guest-list,
body.booking-workspace-mode .booking-guest-service-groups,
body.booking-workspace-mode .booking-guest-professional-list,
body.booking-workspace-mode .booking-service-time-list {
  display: grid;
  min-width: 0;
  gap: 14px;
}

body.booking-workspace-mode .booking-guest-card,
body.booking-workspace-mode .booking-guest-professional-card {
  min-width: 0;
}

body.booking-workspace-mode .booking-guest-card-head,
body.booking-workspace-mode .booking-guest-professional-card > header,
body.booking-workspace-mode .booking-service-time-card > header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

body.booking-workspace-mode .booking-guest-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 360px);
  align-items: start;
  gap: 12px;
}

body.booking-workspace-mode .booking-guest-number,
body.booking-workspace-mode .booking-time-order {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--booking-neon);
  font-size: 0.73rem;
  font-weight: 780;
}

body.booking-workspace-mode .booking-guest-name-field {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 4px;
}

body.booking-workspace-mode .booking-guest-name-field input {
  width: 100%;
  min-height: 42px;
}

body.booking-workspace-mode
  .booking-guest-card-head
  > .booking-guest-number {
  width: 42px;
  height: 42px;
  margin: 0;
}

body.booking-workspace-mode .booking-service-group {
  display: grid;
  gap: 10px;
}

body.booking-workspace-mode .booking-service-group + .booking-service-group {
  margin-top: 6px;
  border-top: 1px solid #e3e2e4;
  padding-top: 19px;
}

body.booking-workspace-mode .booking-service-group > h3 {
  margin: 0;
  color: #2b282f;
  font-size: 0.98rem;
  font-weight: 770;
}

body.booking-workspace-mode .booking-guest-services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

body.booking-workspace-mode .booking-service-choice-shell {
  display: grid;
  gap: 0;
}

body.booking-workspace-mode .booking-service-choice-shell.is-selected {
  gap: 9px;
}

body.booking-workspace-mode .booking-guest-services .choice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  min-height: 88px;
  align-items: center;
  gap: 18px;
  border: 1px solid #dedcdf;
  border-radius: 14px;
  padding: 16px 17px;
  color: #29262d;
  background: #fff;
  box-shadow: 0 1px 2px rgba(34, 31, 38, 0.03);
  text-align: left;
}

body.booking-workspace-mode .booking-guest-services .choice-card.has-photo {
  grid-template-columns: 56px minmax(0, 1fr) auto;
}

body.booking-workspace-mode .booking-service-photo {
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  background: #f1edf6;
}

body.booking-workspace-mode .booking-service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.booking-workspace-mode .booking-guest-services .choice-card:hover {
  border-color: #bdb8c1;
  transform: translateY(-1px);
}

body.booking-workspace-mode .booking-guest-services .choice-card.active {
  border-color: var(--booking-neon-bright);
  background: #fdfbff;
  box-shadow: 0 0 0 1px var(--booking-neon-glow);
}

body.booking-workspace-mode .booking-service-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

body.booking-workspace-mode .booking-service-copy strong {
  color: #29262d;
  font-size: 0.94rem;
  line-height: 1.25;
}

body.booking-workspace-mode .booking-service-copy small {
  color: #777279;
  font-size: 0.77rem;
}

body.booking-workspace-mode .booking-service-copy .booking-service-restriction {
  color: #604aa8;
  font-weight: 800;
}

body.booking-workspace-mode .booking-service-copy .booking-service-consultation {
  color: #695488;
  font-weight: 720;
}

body.booking-workspace-mode .booking-duration-gate {
  display: grid;
  width: min(760px, 100%);
  gap: 24px;
  margin: 8px auto 0;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(105, 82, 166, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 103, 214, 0.2), transparent 42%),
    linear-gradient(145deg, #fff 0%, #f8f5ff 100%);
  box-shadow: 0 22px 50px rgba(47, 38, 74, 0.11);
  animation: booking-duration-reveal 220ms ease both;
}

body.booking-workspace-mode .booking-duration-gate-head {
  display: flex;
  align-items: center;
  gap: 15px;
}

body.booking-workspace-mode .booking-duration-gate-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body.booking-workspace-mode .booking-duration-gate-head .eyebrow {
  margin: 0;
  color: #6953ac;
  font-size: 0.7rem;
}

body.booking-workspace-mode .booking-duration-gate-head strong {
  color: #29242e;
  font-size: 1rem;
}

body.booking-workspace-mode .booking-duration-gate-head small {
  color: #777080;
  font-size: 0.78rem;
}

body.booking-workspace-mode .booking-duration-gate-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #4f9e8f, #7156c3);
  box-shadow: 0 10px 24px rgba(93, 76, 170, 0.22);
}

body.booking-workspace-mode .booking-duration-gate-icon .icon {
  width: 21px;
  height: 21px;
}

body.booking-workspace-mode .booking-duration-question {
  display: grid;
  min-width: 0;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.booking-workspace-mode .booking-duration-question legend {
  max-width: 650px;
  padding: 0;
  color: #28232e;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 750;
  line-height: 1.12;
}

body.booking-workspace-mode .booking-duration-question > p {
  margin: 0 0 10px;
  color: #756e7b;
  font-size: 0.88rem;
}

body.booking-workspace-mode .booking-duration-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 11px;
}

body.booking-workspace-mode .booking-duration-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 15px 15px 15px 17px;
  cursor: pointer;
  border: 1px solid #ded8e8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

body.booking-workspace-mode .booking-duration-option:hover {
  transform: translateY(-2px);
  border-color: #aa9bce;
  box-shadow: 0 10px 22px rgba(62, 47, 99, 0.1);
}

body.booking-workspace-mode .booking-duration-option:focus-within {
  outline: 3px solid rgba(103, 80, 184, 0.25);
  outline-offset: 2px;
}

body.booking-workspace-mode .booking-duration-option.active {
  border-color: #7156c3;
  background: linear-gradient(145deg, #fff, #f0ebff);
  box-shadow: inset 0 0 0 1px rgba(113, 86, 195, 0.18);
}

body.booking-workspace-mode .booking-duration-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

body.booking-workspace-mode .booking-duration-option > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

body.booking-workspace-mode .booking-duration-option strong {
  color: #302a36;
  font-size: 0.9rem;
  line-height: 1.25;
}

body.booking-workspace-mode .booking-duration-option small {
  color: #77707e;
  font-size: 0.74rem;
}

body.booking-workspace-mode .booking-duration-option > i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d8d0e4;
  border-radius: 50%;
  color: transparent;
  background: #fff;
}

body.booking-workspace-mode .booking-duration-option.active > i {
  color: #fff;
  border-color: #7156c3;
  background: #7156c3;
}

body.booking-workspace-mode .booking-duration-option > i .icon {
  width: 14px;
  height: 14px;
}

body.booking-workspace-mode .booking-duration-required {
  margin-top: 4px;
  color: #655d6d;
  font-size: 0.75rem;
}

body.booking-workspace-mode .booking-duration-answer-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dcd5e8;
  border-radius: 16px;
  background: #faf8ff;
}

body.booking-workspace-mode .booking-duration-answer-summary > header {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.booking-workspace-mode .booking-duration-answer-summary > header > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: #6752ac;
  background: #eee9fb;
}

body.booking-workspace-mode .booking-duration-answer-summary > header .icon {
  width: 16px;
  height: 16px;
}

body.booking-workspace-mode .booking-duration-answer-summary > header div,
body.booking-workspace-mode .booking-duration-answer-summary article > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.booking-workspace-mode .booking-duration-answer-summary > header strong,
body.booking-workspace-mode .booking-duration-answer-summary article strong {
  color: #3d3744;
  font-size: 0.78rem;
}

body.booking-workspace-mode .booking-duration-answer-summary small {
  color: #7b7481;
  font-size: 0.7rem;
}

body.booking-workspace-mode .booking-duration-answer-summary > div {
  display: grid;
  gap: 7px;
}

body.booking-workspace-mode .booking-duration-answer-summary article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid #e6e0ed;
}

body.booking-workspace-mode .booking-duration-answer-summary button {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: #6048a8;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

body.booking-workspace-mode .booking-duration-answer-summary button:hover {
  background: #eee9fa;
}

@keyframes booking-duration-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  body.booking-workspace-mode .booking-duration-gate {
    gap: 20px;
    padding: 20px 16px;
    border-radius: 20px;
  }

  body.booking-workspace-mode .booking-duration-options {
    grid-template-columns: 1fr;
  }

  body.booking-workspace-mode .booking-duration-option {
    min-height: 72px;
  }
}

body.booking-workspace-mode .booking-service-copy [data-booking-service-price] {
  color: #343037;
  font-weight: 760;
}

body.booking-workspace-mode .booking-service-select-marker {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d8d5da;
  border-radius: 50%;
  color: #302c34;
  background: #fff;
  box-shadow: 0 3px 9px rgba(35, 31, 42, 0.08);
}

body.booking-workspace-mode .booking-service-select-marker .icon {
  width: 16px;
  height: 16px;
}

body.booking-workspace-mode .choice-card.active .booking-service-select-marker {
  color: #fff;
  border-color: var(--booking-neon);
  background: var(--booking-neon);
}

body.booking-workspace-mode .booking-guest-services .choice-card.is-unavailable {
  opacity: 0.5;
}

body.booking-workspace-mode .booking-professional-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.booking-workspace-mode .booking-professional-option {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 13px;
  border: 1px solid #dedcdf;
  border-radius: 14px;
  padding: 14px;
  color: #29262d;
  background: #fff;
  text-align: left;
}

body.booking-workspace-mode .booking-professional-option.active {
  border-color: var(--booking-neon-bright);
  background: #fdfbff;
  box-shadow: 0 0 0 1px var(--booking-neon-glow);
}

body.booking-workspace-mode .booking-professional-option > img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

body.booking-workspace-mode .booking-professional-info {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body.booking-workspace-mode .booking-professional-info strong {
  font-size: 0.94rem;
}

body.booking-workspace-mode .booking-professional-info > span,
body.booking-workspace-mode .booking-professional-info small,
body.booking-workspace-mode .booking-professional-info p {
  margin: 0;
  color: #777279;
  font-size: 0.72rem;
  line-height: 1.35;
}

body.booking-workspace-mode .booking-professional-info [data-professional-price] {
  color: #302c34;
  font-weight: 760;
}

body.booking-workspace-mode .booking-service-time-card {
  border: 1px solid #dedcdf;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

body.booking-workspace-mode .booking-summary.panel {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  border-color: #dedcdf;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(35, 31, 42, 0.06);
}

body.booking-workspace-mode .booking-summary-body {
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 16px;
}

body.booking-workspace-mode .booking-summary-action {
  margin-top: auto;
  border-top: 1px solid #e5e3e6;
  padding: 15px 20px 18px;
  background: #fff;
}

body.booking-workspace-mode .booking-summary-action .solid-button.customer {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--booking-neon-dark),
    var(--booking-neon)
  );
  box-shadow: 0 12px 28px -16px var(--booking-neon-glow);
}

body.booking-workspace-mode .booking-summary-action .solid-button.customer:hover {
  background: linear-gradient(
    135deg,
    var(--booking-neon),
    var(--booking-neon-bright)
  );
}

body.booking-workspace-mode .booking-summary-action .solid-button.customer:disabled {
  color: #fff;
  background: #aaa7ac;
  opacity: 1;
}

body.booking-workspace-mode .booking-controls {
  display: none !important;
}

body.booking-workspace-mode .booking-step-content.is-forward {
  animation: bookingStageForward 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.booking-workspace-mode .booking-step-content.is-back {
  animation: bookingStageBack 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.booking-workspace-mode .booking-step-content.is-forward :is(
    .booking-service-group,
    .choice-card,
    .booking-professional-option,
    .booking-month-calendar,
    .booking-party-plan,
    .booking-service-time-card,
    .booking-reference-workspace,
    .receipt-card,
    .payment-card
  ),
body.booking-workspace-mode .booking-step-content.is-back :is(
    .booking-service-group,
    .choice-card,
    .booking-professional-option,
    .booking-month-calendar,
    .booking-party-plan,
    .booking-service-time-card,
    .booking-reference-workspace,
    .receipt-card,
    .payment-card
  ) {
  animation: bookingCardReveal 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.booking-workspace-mode .booking-step-content :is(.choice-card, .booking-professional-option):nth-child(2) {
  animation-delay: 40ms;
}

body.booking-workspace-mode .booking-step-content :is(.choice-card, .booking-professional-option):nth-child(3) {
  animation-delay: 75ms;
}

body.booking-workspace-mode .booking-step-content :is(.choice-card, .booking-professional-option):nth-child(n + 4) {
  animation-delay: 105ms;
}

@keyframes bookingCardReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  body.booking-workspace-mode .booking-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  body.booking-workspace-mode .booking-professional-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  html:has(body.booking-workspace-mode) {
    height: 100%;
    overflow: hidden;
  }

  body.booking-workspace-mode {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden !important;
  }

  body.booking-workspace-mode .booking-shell > .page-wrap {
    width: min(calc(100% - 24px), 820px);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 12px 0;
  }

  body.booking-workspace-mode .booking-layout,
  body.booking-workspace-mode .booking-main.panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.booking-workspace-mode .booking-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.booking-workspace-mode .booking-step-content {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  body.booking-workspace-mode .booking-guest-tabs-shell,
  body.booking-workspace-mode .calendar-picker > .booking-guest-tabs-shell {
    top: -5px;
  }

  body.booking-workspace-mode .booking-summary {
    display: none !important;
  }

  body.booking-workspace-mode .booking-controls {
    position: static !important;
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 0;
    border: 1px solid #dedcdf;
    border-radius: 14px;
    padding: 9px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 31, 42, 0.08);
  }

  body.booking-workspace-mode .booking-controls .solid-button {
    min-width: min(100%, 220px);
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  body.booking-workspace-mode .booking-step-content {
    --booking-stage-pad-x: 2px;
    --booking-stage-pad-y: 5px;
    padding: 5px 2px 26px;
  }

  body.booking-workspace-mode .booking-main .stepper button + button::before {
    margin-inline: 7px;
  }

  body.booking-workspace-mode .booking-title-bar h1 {
    font-size: 1.72rem;
  }

  body.booking-workspace-mode .booking-guest-services .choice-card {
    min-height: 82px;
    padding: 14px;
  }

  body.booking-workspace-mode .booking-duration-questions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.booking-workspace-mode .booking-professional-option {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 86px;
  }

  body.booking-workspace-mode .booking-professional-option > img {
    width: 58px;
    height: 58px;
  }

  body.booking-workspace-mode .booking-controls {
    margin-bottom: 0;
    padding-bottom: calc(9px + env(safe-area-inset-bottom));
  }

  body.booking-workspace-mode .booking-controls > button {
    min-height: 42px;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.booking-workspace-mode .booking-duration-gate {
    animation: none !important;
  }

  body.booking-workspace-mode .booking-duration-option {
    transition: none !important;
  }

  body.booking-workspace-mode .booking-duration-option:hover {
    transform: none;
  }

  body.booking-workspace-mode .booking-step-content.is-forward,
  body.booking-workspace-mode .booking-step-content.is-back,
  body.booking-workspace-mode .booking-step-content.is-forward :is(
      .booking-service-group,
      .choice-card,
      .booking-professional-option,
      .booking-month-calendar,
      .booking-party-plan,
      .booking-service-time-card,
      .booking-reference-workspace,
      .receipt-card,
      .payment-card
    ),
  body.booking-workspace-mode .booking-step-content.is-back :is(
      .booking-service-group,
      .choice-card,
      .booking-professional-option,
      .booking-month-calendar,
      .booking-party-plan,
      .booking-service-time-card,
      .booking-reference-workspace,
      .receipt-card,
      .payment-card
    ) {
    animation: none !important;
  }
}

/* Progressive booking summary */
body.booking-workspace-mode .booking-summary-guests:empty,
body.booking-workspace-mode .booking-summary-progress-slot:empty {
  display: none;
}

body.booking-workspace-mode .booking-summary-guests:empty {
  border: 0;
  padding: 0;
}

body.booking-workspace-mode .booking-summary-progress-slot {
  min-width: 0;
}

body.booking-workspace-mode .booking-summary-selected-stylist {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #ded7f0;
  border-radius: 12px;
  padding: 9px;
  background: #f6f3fc;
}

body.booking-workspace-mode .booking-summary-selected-stylist img {
  width: 44px;
  height: 44px;
  border: 1px solid #d5cbed;
  border-radius: 11px;
  object-fit: cover;
  background: #ebe6f7;
}

body.booking-workspace-mode .booking-summary-selected-stylist > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

body.booking-workspace-mode .booking-summary-selected-stylist small,
body.booking-workspace-mode .booking-summary-selected-stylist strong,
body.booking-workspace-mode .booking-summary-selected-stylist b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.booking-workspace-mode .booking-summary-selected-stylist small {
  color: #756b83;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.booking-workspace-mode .booking-summary-selected-stylist strong {
  color: #312b39;
  font-size: 0.78rem;
}

body.booking-workspace-mode .booking-summary-selected-stylist b {
  color: #756e7d;
  font-size: 0.66rem;
  font-weight: 650;
}

body.booking-workspace-mode
  .booking-summary-progress-slot[data-booking-summary-slot="financials"]
  .booking-summary-price {
  margin-top: 0;
}

.booking-review-deposit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dcd4ed;
  border-radius: 13px;
  padding: 13px;
  color: #40374f;
  background: #f7f4fc;
}

.booking-review-deposit.is-none {
  border-color: #cae7de;
  background: #f1faf7;
}

.booking-review-deposit.is-outside,
.booking-review-deposit.is-mixed {
  border-color: #ead8a9;
  background: #fff9ea;
}

.booking-review-deposit-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.booking-review-deposit-copy > span {
  color: #6a579f;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.booking-review-deposit.is-none .booking-review-deposit-copy > span {
  color: #28725f;
}

.booking-review-deposit.is-outside .booking-review-deposit-copy > span,
.booking-review-deposit.is-mixed .booking-review-deposit-copy > span {
  color: #8c651d;
}

.booking-review-deposit-copy strong {
  color: #2f2937;
  font-size: 0.88rem;
  line-height: 1.25;
}

.booking-review-deposit-copy p,
.booking-review-deposit-copy small {
  margin: 0;
  color: #726a7a;
  font-size: 0.7rem;
  line-height: 1.45;
}

.booking-review-deposit-copy .booking-review-deposit-warning {
  display: block;
  margin-top: 4px;
  color: #8b5c25;
  font-weight: 720;
}

.booking-review-deposit-copy small {
  color: #8c651d;
  font-weight: 750;
}

.booking-review-deposit-image {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(140, 101, 29, 0.18);
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

.booking-review-consultation {
  display: grid;
  gap: 4px;
  border: 1px solid #d8cdeb;
  border-radius: 13px;
  padding: 12px 13px;
  color: #443866;
  background: #f7f3fd;
}

.booking-review-consultation strong {
  font-size: 0.78rem;
}

.booking-review-consultation p {
  margin: 0;
  color: #716985;
  font-size: 0.7rem;
  line-height: 1.45;
}

.booking-review-deposit.is-compact {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 10px;
  padding: 10px;
}

.booking-review-deposit.is-compact .booking-review-deposit-image {
  width: 100%;
  height: 84px;
}

.booking-summary-progress-slot .booking-review-consultation {
  margin-top: 9px;
  padding: 10px;
}

.booking-submit-policy > .booking-review-deposit,
.booking-submit-policy > .booking-review-consultation {
  margin-block: 2px;
}

.booking-payment-checkout {
  display: grid;
  gap: 13px;
  border: 1px solid #d9d0ed;
  border-radius: 15px;
  padding: 15px;
  color: #3c3349;
  background: linear-gradient(145deg, #fbf9ff, #f5f1fb);
  box-shadow: 0 14px 30px rgba(88, 62, 127, 0.07);
}

.booking-payment-checkout-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.booking-payment-checkout-heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #7057c7;
}

.booking-payment-checkout-heading > span svg {
  width: 18px;
  height: 18px;
}

.booking-payment-checkout-heading > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.booking-payment-checkout-heading small {
  color: #776c85;
  font-size: 0.65rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.booking-payment-checkout-heading strong {
  overflow-wrap: anywhere;
  color: #2f2838;
  font-size: 0.9rem;
  line-height: 1.3;
}

.booking-payment-checkout-heading em {
  border: 1px solid #d7cceb;
  border-radius: 999px;
  padding: 4px 7px;
  color: #66539d;
  background: #fff;
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.booking-payment-preparing {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid rgba(112, 87, 199, 0.13);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.booking-payment-preparing p,
.booking-payment-security,
.booking-payment-error p {
  margin: 0;
  color: #746b7c;
  font-size: 0.7rem;
  line-height: 1.45;
}

.booking-payment-spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(112, 87, 199, 0.2);
  border-top-color: #7057c7;
  border-radius: 50%;
  animation: booking-payment-spin 0.75s linear infinite;
}

.solid-button .booking-payment-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

@keyframes booking-payment-spin {
  to {
    transform: rotate(360deg);
  }
}

.booking-payment-element {
  min-height: 88px;
  border-radius: 12px;
  background: #fff;
}

.booking-payment-security {
  padding-inline: 2px;
}

.booking-payment-error {
  display: grid;
  justify-items: start;
  gap: 6px;
  border: 1px solid #efc9ce;
  border-radius: 12px;
  padding: 11px 12px;
  color: #923642;
  background: #fff6f7;
}

.booking-payment-error.is-booking {
  border-color: #ead8a9;
  color: #805a15;
  background: #fff9e9;
}

.booking-payment-error strong {
  font-size: 0.76rem;
}

.booking-payment-error .outline-button {
  margin-top: 2px;
}

body.booking-workspace-mode .booking-summary-guest-index {
  color: var(--booking-neon-dark);
  background: var(--booking-neon-soft);
}

body.booking-workspace-mode .booking-summary-selected-stylist {
  border-color: var(--booking-neon-line);
  background: #faf7ff;
}

body.booking-workspace-mode .booking-summary-selected-stylist img {
  border-color: var(--booking-neon-line);
  background: var(--booking-neon-soft);
}

body.booking-workspace-mode .booking-summary-party-dot,
body.booking-workspace-mode .booking-summary-party-track > i {
  background: var(--booking-neon);
}
/* Scroll-aware booking header and date/time workspace. */
body.booking-workspace-mode {
  background: #f7f6f8;
}

body.booking-workspace-mode .booking-shellbar {
  border-bottom-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

body.booking-workspace-mode .booking-shellbar.is-compact {
  border-bottom-color: rgba(50, 45, 58, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(40, 34, 48, 0.07);
  backdrop-filter: blur(18px);
}

body.booking-workspace-mode .booking-shellbar-button {
  border-color: rgba(74, 67, 82, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 20px rgba(41, 35, 49, 0.1);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

body.booking-workspace-mode .booking-shellbar-button:hover:not(:disabled) {
  border-color: rgba(74, 67, 82, 0.3);
  background: #fff;
  box-shadow: 0 9px 24px rgba(41, 35, 49, 0.14);
  transform: translateY(-1px);
}

body.booking-workspace-mode .booking-shellbar-button:disabled {
  cursor: default;
  opacity: 0.38;
  box-shadow: none;
}

body.booking-workspace-mode .booking-shellbar-context {
  visibility: hidden;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
}

body.booking-workspace-mode .booking-shellbar.is-compact .booking-shellbar-context {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

body.booking-workspace-mode .booking-shell > .page-wrap {
  padding-top: 6px;
}

body.booking-workspace-mode .booking-main.panel {
  grid-template-rows: minmax(0, 1fr) auto;
}

body.booking-workspace-mode .booking-scroll {
  min-width: 0;
  min-height: 0;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 42px 2px;
  scrollbar-gutter: stable;
}

body.booking-workspace-mode .booking-main .stepper {
  margin-top: 8px;
  margin-bottom: 12px;
}

body.booking-workspace-mode .booking-title-bar {
  margin-bottom: 18px;
}

body.booking-workspace-mode .booking-step-content {
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
  padding: 0;
  scrollbar-gutter: auto;
}

body.booking-workspace-mode .booking-guest-tabs-shell,
body.booking-workspace-mode .calendar-picker > .booking-guest-tabs-shell {
  top: 0;
  margin: 0 0 14px;
  padding: 8px 0 11px;
  background: #f7f6f8;
}

body.booking-workspace-mode .booking-guest-tab {
  border-color: var(--booking-neon-line);
  color: var(--booking-neon-dark);
  background: var(--booking-neon-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 180ms ease,
    transform 160ms ease;
}

body.booking-workspace-mode .booking-guest-tab:hover {
  border-color: var(--booking-neon-bright);
  background: #ede9fe;
  transform: translateY(-1px);
}

body.booking-workspace-mode .booking-guest-tab.active {
  border-color: var(--booking-neon-bright);
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--booking-neon),
    var(--booking-neon-bright)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 20px -14px var(--booking-neon-glow);
}

body.booking-workspace-mode .booking-guest-tabs-add {
  border-color: #d8d5da;
  color: #504b55;
  background: #fff;
  box-shadow: 0 5px 16px rgba(41, 35, 49, 0.08);
}

body.booking-workspace-mode .booking-guest-tabs-add:hover:not(:disabled) {
  border-color: #aaa4af;
  color: #2d2931;
  background: #fff;
}

body.booking-workspace-mode .booking-main .stepper button.active,
body.booking-workspace-mode
  .booking-step-content:not(.is-forward):not(.is-back)
  :is(.choice-card.active, .booking-professional-option.active) {
  animation: none !important;
}

body.booking-workspace-mode .booking-guest-services .choice-card,
body.booking-workspace-mode .booking-professional-option {
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

body.booking-workspace-mode .booking-guest-services .choice-card.active,
body.booking-workspace-mode .booking-professional-option.active {
  border-color: var(--booking-neon-bright);
  background: #fdfbff;
  box-shadow: none;
}

body.booking-workspace-mode .booking-professional-option-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #dedcdf;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(34, 31, 38, 0.03);
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

body.booking-workspace-mode
  .booking-professional-option-shell:has(
    > .booking-professional-option:hover
  ) {
  border-color: #bdb8c1;
  transform: translateY(-1px);
}

body.booking-workspace-mode
  .booking-professional-option-shell:has(
    > .booking-professional-option.active
  ) {
  border-color: var(--booking-neon-bright);
  background: #fdfbff;
  box-shadow: 0 0 0 1px var(--booking-neon-glow);
}

body.booking-workspace-mode
  .booking-professional-option-shell
  > .booking-professional-option {
  width: 100%;
  height: auto;
  min-height: 112px;
  align-self: stretch;
  border: 0;
  border-radius: 0;
  padding: 16px 16px 10px;
  background: transparent;
  box-shadow: none;
}

body.booking-workspace-mode .booking-professional-profile-button {
  position: static;
  z-index: 1;
  display: inline-flex;
  width: max-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: end;
  margin: 0 16px 0 8px;
  border: 1px solid #d8d2e5;
  border-radius: 999px;
  padding: 7px 13px;
  color: #62529a;
  background: #f8f5fc;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

body.booking-workspace-mode .booking-professional-profile-button:hover,
body.booking-workspace-mode .booking-professional-profile-button:focus-visible {
  border-color: #a99bc5;
  color: #3f326d;
  background: #f0eafa;
  transform: translateY(-1px);
}

body.booking-workspace-mode
  .booking-professional-profile-button:focus-visible {
  outline: 3px solid rgba(113, 87, 177, 0.2);
  outline-offset: 2px;
}

body.booking-workspace-mode .booking-guest-services .choice-card.active {
  outline: 0;
}

body.booking-workspace-mode
  .booking-guest-services
  .choice-card.active:focus-visible {
  border-color: var(--booking-neon-dark);
  border-width: 2px;
  outline: 0;
  background: #fbfaff;
}

body.booking-workspace-mode .choice-card.active .booking-service-select-marker {
  border-color: var(--booking-neon);
  background: var(--booking-neon);
}

body.booking-workspace-mode .booking-date-time-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(300px, 0.82fr) minmax(340px, 1.18fr);
  align-items: start;
  gap: clamp(16px, 2vw, 24px);
}

body.booking-workspace-mode .booking-date-time-calendar-column,
body.booking-workspace-mode .booking-date-time-slots-column {
  display: grid;
  min-width: 0;
  gap: 12px;
}

body.booking-workspace-mode .booking-date-time-calendar-column {
  position: sticky;
  top: 76px;
  align-self: start;
}

body.booking-workspace-mode .booking-date-time-workspace :is(
    .booking-month-calendar,
    .booking-calendar-status-stack,
    .booking-party-plan,
    .booking-service-time-list
  ) {
  width: 100%;
  margin-inline: 0;
}

body.booking-workspace-mode .booking-date-time-calendar-column .booking-month-day {
  min-height: 40px;
}

body.booking-workspace-mode .booking-month-day.active {
  background: var(--booking-neon);
  box-shadow: 0 8px 18px -12px var(--booking-neon-glow);
}

body.booking-workspace-mode .booking-month-day {
  transition:
    color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease !important;
}

body.booking-workspace-mode .booking-calendar-status-stack {
  min-height: 18px;
  transition: opacity 140ms ease;
}

body.booking-workspace-mode .booking-calendar-status-stack.is-empty {
  visibility: hidden;
  opacity: 0;
}

body.booking-workspace-mode .booking-service-time-list {
  min-height: 264px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

body.booking-workspace-mode .booking-service-time-list.is-updating {
  opacity: 0.56;
  transform: translateY(3px);
}

body.booking-workspace-mode .booking-time-loading {
  display: grid;
  min-height: 210px;
  place-content: center;
  justify-items: center;
  gap: 5px;
  color: #4d4654;
  text-align: center;
}

body.booking-workspace-mode .booking-time-loading strong {
  font-size: 0.82rem;
}

body.booking-workspace-mode .booking-time-loading small {
  color: #817a86;
  font-size: 0.72rem;
}

body.booking-workspace-mode .booking-time-grid button.active {
  animation: none !important;
}

body.booking-workspace-mode .booking-time-grid button {
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

body.booking-workspace-mode .booking-date-time-calendar-column .booking-party-plan {
  gap: 10px;
  padding: 14px;
}

body.booking-workspace-mode
  .booking-date-time-calendar-column
  .booking-party-plan-axis {
  display: none;
}

body.booking-workspace-mode
  .booking-date-time-calendar-column
  .booking-party-plan-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
}

body.booking-workspace-mode
  .booking-date-time-calendar-column
  .booking-party-plan-track {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 12px;
}

body.booking-workspace-mode
  .booking-date-time-calendar-column
  .booking-party-plan-row
  > time {
  grid-column: 2;
  grid-row: 1;
}

body.booking-workspace-mode .booking-date-time-slots-column .booking-service-time-card {
  min-height: 100%;
  padding: 18px;
}

body.booking-workspace-mode .booking-date-time-slots-column .booking-time-periods {
  gap: 20px;
}

body.booking-workspace-mode
  .booking-date-time-slots-column
  .booking-time-periods
  section
  + section {
  border-top: 1px solid #ece9ee;
  padding-top: 18px;
}

body.booking-workspace-mode
  .booking-date-time-slots-column
  .booking-professional-time-grid {
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  max-height: none;
  overflow: visible;
}

@media (max-width: 1080px) {
  body.booking-workspace-mode .booking-date-time-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body.booking-workspace-mode .booking-date-time-calendar-column {
    position: static;
  }

  body.booking-workspace-mode
    .booking-date-time-slots-column
    .booking-service-time-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body.booking-workspace-mode .booking-scroll {
    padding: 0 2px 24px;
  }

  body.booking-workspace-mode .booking-main .stepper {
    margin-top: 7px;
  }

  body.booking-workspace-mode .booking-date-time-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body.booking-workspace-mode .booking-date-time-calendar-column {
    position: static;
  }

  body.booking-workspace-mode
    .booking-date-time-slots-column
    .booking-service-time-card {
    min-height: 0;
  }
}

/* Keep time selection readable and give person tabs room to lift on hover. */
body.booking-workspace-mode .booking-guest-tabs-row {
  padding-block: 5px 2px;
}

body.booking-workspace-mode
  .booking-date-time-slots-column
  .booking-time-grid
  button:not(.active) {
  color: #2d2931;
}

body.booking-workspace-mode
  .booking-date-time-slots-column
  .booking-time-grid
  button:not(.active):hover {
  color: #211e24;
}

body.booking-workspace-mode
  .booking-date-time-slots-column
  .booking-time-order {
  background: var(--booking-neon);
}

@media (prefers-reduced-motion: reduce) {
  body.booking-workspace-mode .booking-step-content.is-forward,
  body.booking-workspace-mode .booking-step-content.is-back,
  body.booking-workspace-mode .booking-step-content.is-forward :is(
      .booking-service-group,
      .choice-card,
      .booking-professional-option,
      .booking-month-calendar,
      .booking-party-plan,
      .booking-service-time-card,
      .booking-reference-workspace,
      .receipt-card,
      .payment-card
    ),
  body.booking-workspace-mode .booking-step-content.is-back :is(
      .booking-service-group,
      .choice-card,
      .booking-professional-option,
      .booking-month-calendar,
      .booking-party-plan,
      .booking-service-time-card,
      .booking-reference-workspace,
      .receipt-card,
      .payment-card
    ) {
    animation: none !important;
  }

  body.booking-workspace-mode .booking-shellbar,
  body.booking-workspace-mode .booking-shellbar-button,
  body.booking-workspace-mode .booking-shellbar-context,
  body.booking-workspace-mode .booking-guest-tab,
  body.booking-workspace-mode .booking-guest-services .choice-card,
  body.booking-workspace-mode .booking-professional-option,
  body.booking-workspace-mode .booking-month-day,
  body.booking-workspace-mode .booking-calendar-loading-overlay,
  body.booking-workspace-mode .booking-calendar-status-stack,
  body.booking-workspace-mode .booking-service-time-list {
    transition: none !important;
  }

  body.booking-workspace-mode .booking-service-time-list.is-updating {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  body.booking-workspace-mode .booking-shellbar {
    grid-template-columns: 40px minmax(0, 1fr) auto 40px;
  }

  body.booking-workspace-mode .booking-hold-countdown {
    min-width: 58px;
    padding-inline: 8px;
  }

  body.booking-workspace-mode .booking-hold-countdown span {
    display: none;
  }

  body.booking-workspace-mode .booking-professional-option-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  body.booking-workspace-mode
    .booking-professional-option-shell
    > .booking-professional-option {
    min-height: 96px;
    padding: 14px 14px 8px;
  }

  body.booking-workspace-mode .booking-professional-profile-button {
    grid-column: 1;
    grid-row: 2;
    min-height: 44px;
    align-self: auto;
    justify-self: start;
    margin: 0 14px 13px 85px;
    padding-inline: 12px;
  }
}
