.live-demo-chat .assistant-message p {
  white-space: pre-line;
}

.yc-grooming-entry {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #635bdf;
  cursor: pointer;
}

.yc-grooming-entry span {
  font-size: 14px;
  font-weight: 800;
}

.yc-grooming-entry strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
}

.yc-grooming-layer {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #202849;
  background: #f7f8fc;
  font-family: inherit;
}

.yc-flow-header {
  flex: 0 0 64px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 8px 14px 0;
  border-bottom: 1px solid #e5e7f0;
  background: rgba(255, 255, 255, 0.97);
}

.yc-flow-header > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.yc-flow-header strong {
  font-size: 16px;
  line-height: 1.2;
}

.yc-flow-header span {
  color: #7c839f;
  font-size: 10px;
}

.yc-flow-close,
.yc-flow-back {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #394263;
  background: #f0f1f7;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.yc-flow-back {
  font-size: 30px;
}

.yc-header-space {
  width: 36px;
}

.yc-flow-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 16px 112px;
}

.yc-flow-intro {
  padding: 2px 2px 14px;
}

.yc-flow-intro > span,
.yc-confirm-provider > span,
.yc-success-order > span {
  color: #655ed8;
  font-size: 11px;
  font-weight: 800;
}

.yc-flow-intro h1,
.yc-confirm-provider h1 {
  margin: 5px 0 7px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
}

.yc-flow-intro p,
.yc-confirm-provider p {
  margin: 0;
  color: #747c98;
  font-size: 13px;
  line-height: 1.55;
}

.yc-demo-note,
.yc-policy {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #e0e3ef;
  border-radius: 10px;
  color: #66708f;
  background: #fff;
  font-size: 11px;
  line-height: 1.5;
}

.yc-store-list {
  display: grid;
  gap: 12px;
}

.yc-store-card {
  width: 100%;
  min-height: 214px;
  padding: 15px;
  display: grid;
  gap: 10px;
  text-align: left;
  border: 1px solid #dde1ee;
  border-radius: 16px;
  color: #202849;
  background: #fff;
  box-shadow: 0 7px 20px rgba(42, 49, 88, 0.06);
  cursor: pointer;
}

.yc-store-card.selected {
  border: 2px solid #655ed8;
  box-shadow: 0 9px 24px rgba(89, 82, 202, 0.13);
}

.yc-store-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.yc-store-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.yc-store-head span {
  color: #7a829d;
  font-size: 10px;
  font-weight: 700;
}

.yc-store-head strong {
  font-size: 15px;
  line-height: 1.35;
}

.yc-store-head em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 8px;
  color: #fff;
  background: #655ed8;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.yc-store-card > p {
  margin: 0;
  color: #4e5879;
  font-size: 12px;
  line-height: 1.5;
}

.yc-store-feature {
  padding: 8px 10px;
  border-radius: 9px;
  color: #4f4b9e;
  background: #f0efff;
  font-size: 11px;
  line-height: 1.45;
}

.yc-store-reason {
  color: #59627f;
  font-size: 11px;
  line-height: 1.5;
}

.yc-store-reason span {
  margin-right: 6px;
  color: #655ed8;
  font-weight: 800;
}

.yc-store-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.yc-store-foot > span {
  color: #7b839d;
  font-size: 10px;
}

.yc-store-foot > strong {
  color: #292454;
  font-size: 21px;
}

.yc-store-foot small {
  color: #7b839d;
  font-size: 10px;
}

.yc-flow-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 88px;
  padding: 12px 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e2e4ee;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -10px 30px rgba(45, 52, 92, 0.08);
}

.yc-flow-footer > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.yc-flow-footer > div span {
  color: #7a829b;
  font-size: 10px;
}

.yc-flow-footer > div strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yc-flow-footer > button {
  min-width: 116px;
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #655ed8;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.yc-confirm-provider,
.yc-confirm-section,
.yc-payment-amount,
.yc-payment-methods,
.yc-success-order {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e0e3ee;
  border-radius: 16px;
  background: #fff;
}

.yc-confirm-provider > div {
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #4f4b9e;
  background: #f0efff;
  font-size: 11px;
}

.yc-confirm-section h2,
.yc-payment-methods h2 {
  margin: 0 0 11px;
  font-size: 15px;
}

.yc-confirm-section dl,
.yc-success-order dl {
  margin: 0;
  display: grid;
}

.yc-confirm-section dl > div,
.yc-success-order dl > div {
  min-height: 46px;
  padding: 9px 0;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eceef4;
}

.yc-confirm-section dl > div:first-child,
.yc-success-order dl > div:first-child {
  border-top: 0;
}

.yc-confirm-section dt,
.yc-success-order dt {
  color: #7a829b;
  font-size: 11px;
}

.yc-confirm-section dd,
.yc-success-order dd {
  margin: 0;
  color: #343d60;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-align: right;
}

.yc-confirm-section dd img {
  width: 26px;
  height: 26px;
  margin-right: 7px;
  vertical-align: middle;
  object-fit: cover;
  border-radius: 8px;
}

.yc-confirm-section .yc-discount {
  color: #26a06f;
}

.yc-confirm-section .yc-total {
  margin-top: 5px;
  border-top-color: #d9dce8;
}

.yc-confirm-section .yc-total dd {
  color: #28234e;
  font-size: 20px;
}

.yc-pay-footer > div strong {
  color: #2d2856;
  font-size: 20px;
}

.yc-payment-amount {
  padding: 24px 16px;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.yc-payment-amount > span {
  color: #6f7895;
  font-size: 11px;
}

.yc-payment-amount > strong {
  color: #292453;
  font-size: 38px;
  letter-spacing: 0;
}

.yc-payment-amount > strong small {
  margin-right: 3px;
  font-size: 17px;
}

.yc-payment-amount p {
  margin: 0;
  color: #7a829c;
  font-size: 11px;
}

.yc-payment-methods {
  display: grid;
  gap: 9px;
}

.yc-payment-methods h2 {
  margin-bottom: 2px;
}

.yc-payment-methods button {
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid #e2e4ed;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.yc-payment-methods button.selected {
  border-color: #655ed8;
  background: #f7f6ff;
}

.yc-method-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.yc-method-icon.wechat {
  background: #24aa68;
}

.yc-method-icon.alipay {
  background: #2786ee;
}

.yc-payment-methods button > div {
  display: grid;
  gap: 3px;
}

.yc-payment-methods button > div strong {
  font-size: 13px;
}

.yc-payment-methods button > div small {
  color: #7c849d;
  font-size: 10px;
}

.yc-payment-methods button > i {
  width: 17px;
  height: 17px;
  border: 2px solid #cfd3df;
  border-radius: 50%;
}

.yc-payment-methods button.selected > i {
  border: 5px solid #655ed8;
}

.yc-success-scroll {
  padding-top: 26px;
}

.yc-success-hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.yc-success-check {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #28a874;
  font-size: 33px;
  font-weight: 800;
}

.yc-success-hero h1 {
  margin: 14px 0 6px;
  font-size: 27px;
}

.yc-success-hero p {
  max-width: 290px;
  margin: 0 0 20px;
  color: #717a95;
  font-size: 12px;
  line-height: 1.55;
}

.yc-success-order h2 {
  margin: 6px 0 10px;
  font-size: 16px;
  line-height: 1.35;
}

.yc-order-progress {
  padding: 6px 16px 16px;
}

.yc-order-progress > div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  position: relative;
}

.yc-order-progress > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  bottom: -3px;
  left: 13px;
  width: 2px;
  background: #dfe2ec;
}

.yc-order-progress i {
  width: 28px;
  height: 28px;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #69718c;
  background: #e8eaf1;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.yc-order-progress .done i {
  color: #fff;
  background: #28a874;
}

.yc-order-progress p {
  margin: 1px 0 0;
  display: grid;
  gap: 3px;
}

.yc-order-progress p strong {
  font-size: 12px;
}

.yc-order-progress p span {
  color: #7a829b;
  font-size: 10px;
}

.yc-success-footer {
  grid-template-columns: 1fr;
}

.yc-success-footer > button {
  width: 100%;
}

@media (max-width: 760px) {
  .yc-grooming-layer {
    position: fixed;
    width: min(390px, 100vw);
    height: 100dvh;
    margin-inline: auto;
  }
}
.yc-flow-header strong {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yc-card-detail {
  padding-top: 9px;
  display: block;
  border-top: 1px solid #eceef4;
  color: #655ed8;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.yc-detail-scroll {
  padding-top: 12px;
}

.yc-store-visual {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #e0e3ee;
  border-radius: 16px;
  background: #fff;
}

.yc-store-visual > img {
  width: 100%;
  height: 182px;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}

.yc-store-visual > div {
  min-height: 54px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
}

.yc-store-visual > div strong {
  color: #292453;
  font-size: 19px;
}

.yc-store-visual > div span {
  color: #7b839d;
  font-size: 10px;
}

.yc-store-visual > div span:last-child {
  text-align: right;
}

.yc-detail-section {
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid #e0e3ee;
  border-radius: 16px;
  background: #fff;
}

.yc-detail-section h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.yc-detail-section > p {
  margin: 0;
  color: #555f7f;
  font-size: 12px;
  line-height: 1.6;
}

.yc-detail-highlight {
  margin-top: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #4f4b9e;
  background: #f0efff;
  font-size: 11px;
  line-height: 1.45;
}

.yc-detail-section dl {
  margin: 12px 0 0;
}

.yc-detail-section dl > div {
  min-height: 38px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eceef4;
}

.yc-detail-section dt {
  color: #7a829b;
  font-size: 10px;
}

.yc-detail-section dd {
  margin: 0;
  color: #343d60;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.yc-time-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.yc-time-slots button {
  min-width: 0;
  min-height: 42px;
  padding: 0 9px;
  border: 1px solid #dfe2ec;
  border-radius: 10px;
  color: #4e5877;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.yc-time-slots button.selected {
  border-color: #655ed8;
  color: #514bb1;
  background: #f0efff;
}
