.demo-dialog {
  --demo-soft: #eef8f3;
  --demo-control-line: #69877d;
  width: min(890px, calc(100vw - 2rem));
  max-width: none;
  max-height: min(90vh, 790px);
  max-height: min(90dvh, 790px);
  margin: auto;
  padding: 0;
  color: var(--mint-text);
  border: 1px solid var(--mint-line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 26px 110px #11352a38;
  overflow: auto;
  overscroll-behavior: contain;
  font-family: inherit;
  line-height: 1.45;
}
.demo-dialog::backdrop { background: #102e259c; backdrop-filter: blur(4px); }
.demo-dialog *, .demo-dialog *::before, .demo-dialog *::after { box-sizing: border-box; }
.demo-dialog button, .demo-dialog input { font: inherit; }
.demo-dialog button { cursor: pointer; }
.demo-dialog button:disabled { cursor: default; }
.demo-dialog :focus-visible { outline: 3px solid var(--mint-focus); outline-offset: 3px; }
.demo-window { text-align: left; }
.demo-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 24px 28px 20px; border-bottom: 1px solid var(--mint-line);
}
.demo-header h2 { margin: 0; color: var(--mint-text); font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.25; font-weight: 700; letter-spacing: -.03em; }
.demo-header p, .demo-hint { margin: .45rem 0 0; color: var(--mint-muted); font-size: .94rem; }
.demo-close {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  padding: 0; border: 1px solid var(--mint-line); border-radius: 50%; background: #f5f9f6;
  color: var(--mint-muted); font-size: 1.6rem !important; line-height: 1;
}
.demo-close:hover { color: var(--mint-action); border-color: var(--demo-control-line); }
.demo-columns { display: grid; grid-template-columns: 1.02fr 1fr; }
.demo-catalog, .demo-order { min-width: 0; padding: 26px 28px 28px; }
.demo-catalog { background: var(--mint-surface); }
.demo-dialog h3 { margin: 0; color: var(--mint-text); font-size: 1.05rem; font-weight: 700; }
.demo-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 19px; }
.demo-service {
  position: relative; display: grid; align-content: start; justify-items: start;
  grid-template-columns: 1fr; min-width: 0; min-height: 142px;
  padding: 13px 14px 12px; border: 1px solid var(--mint-line); border-radius: 13px;
  background: white; color: var(--mint-text); text-align: left;
}
.demo-service:not(:disabled):hover { border-color: var(--mint-action); box-shadow: 0 3px 12px #11574016; }
.demo-service:disabled { opacity: .67; }
.demo-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: var(--mint-ink); background: #e4f4ec; }
.demo-service-wash .demo-icon { background: #e2f5ee; color: #267663; }
.demo-service-color .demo-icon { background: #f2f4e6; color: #525e34; }
.demo-service-scalp .demo-icon { background: #edf4e7; color: #426b51; }
.demo-service-group { margin-top: .6rem; color: var(--mint-muted); font-size: .75rem; }
.demo-service strong { margin-top: .06rem; font-size: 1rem; font-weight: 650; }
.demo-service-price { color: var(--mint-ink); margin-top: .35rem; font-size: .95rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.demo-add { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 25px; height: 25px; color: var(--mint-action); border-radius: 50%; background: var(--demo-soft); font-size: 1.15rem; line-height: 1; }
.demo-order-heading, .demo-total { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.demo-order-heading span { color: var(--mint-muted); font-size: .88rem; }
.demo-empty { margin: 1.1rem 0; display: grid; place-items: center; min-height: 83px; color: var(--mint-muted); font-size: .94rem; background: #f7faf8; border: 1px dashed var(--mint-line); border-radius: 9px; }
.demo-rows { padding: 0; list-style: none; margin: .55rem 0 1rem; }
.demo-rows li { display: grid; grid-template-columns: minmax(64px, 1fr) auto minmax(68px, auto); gap: .6rem; align-items: center; padding: 10px 0; border-bottom: 1px solid #e7efe9; color: var(--mint-text); font-size: .94rem; }
.demo-rows strong, .demo-rows small { display: block; }
.demo-rows strong, .demo-rows b { font-weight: 600; }
.demo-rows small { margin-top: 3px; color: var(--mint-muted); font-size: .8rem; }
.demo-rows b { text-align: right; font-variant-numeric: tabular-nums; }
.demo-stepper { display: flex; align-items: center; gap: 3px; }
.demo-stepper button { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0; border: 1px solid var(--demo-control-line); border-radius: 6px; color: var(--mint-ink); background: white; }
.demo-stepper span { min-width: 1.3em; text-align: center; font-variant-numeric: tabular-nums; }
.demo-total { margin: .9rem 0 1.05rem; padding: 12px 14px; color: var(--mint-text); background: var(--demo-soft); border-radius: 9px; font-size: .94rem; }
.demo-total strong { color: var(--mint-action); font-size: 1.48rem; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.demo-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 .9rem; padding: 0; border: 0; min-width: 0; }
.demo-methods legend { margin: 0 0 .5rem; padding: 0; font-size: .9rem; font-weight: 600; }
.demo-methods label { position: relative; cursor: pointer; }
.demo-methods input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.demo-methods label span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; color: var(--mint-muted); background: white; border: 1px solid var(--demo-control-line); border-radius: 7px; font-size: .88rem; }
.demo-methods input:checked + span { box-shadow: inset 0 0 0 1px var(--mint-action); color: var(--mint-ink); border-color: var(--mint-action); background: var(--demo-soft); }
.demo-methods input:focus-visible + span { outline: 2px solid var(--mint-focus); outline-offset: 2px; }
.demo-primary, .demo-secondary { display: block; width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 8px; font-size: .95rem; line-height: 1.35; font-weight: 600; }
.demo-primary { border: 1px solid var(--mint-action); background: var(--mint-action); color: white; }
.demo-primary:not(:disabled):hover { background: var(--mint-action-hover); }
.demo-primary:disabled { border-color: #ecf2ef; color: #567064; background: #ecf2ef; }
.demo-secondary { margin-top: .5rem; color: var(--mint-ink); border: 1px solid var(--demo-control-line); background: white; }
.demo-secondary:hover, .demo-stepper button:hover, .demo-methods label:hover span { background: var(--demo-soft); border-color: var(--mint-action); }
.demo-feedback { padding: 13px 14px; margin-bottom: .65rem; border-radius: 9px; }
.demo-feedback strong { display: block; font-size: 1rem; }
.demo-feedback p, .demo-unpaid { margin: .3rem 0 0; font-size: .89rem; line-height: 1.55; }
.demo-waiting, .demo-unpaid { color: #805112; background: #fff6e6; }
.demo-done { color: #17664f; background: #e9f7ef; }
.demo-unpaid { margin: 0 0 .75rem; padding: .6rem .7rem; border-radius: 7px; }
.demo-sr { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 690px) {
  .demo-dialog { width: min(480px, calc(100vw - 1rem)); max-height: 94vh; max-height: 94dvh; border-radius: 16px; }
  .demo-header { position: sticky; top: 0; z-index: 2; padding: 15px 16px; background: white; }
  .demo-header p { font-size: .87rem; }
  .demo-close { width: 36px; height: 36px; }
  .demo-columns { grid-template-columns: 1fr; }
  .demo-catalog, .demo-order { padding: 17px 16px; }
  .demo-services { margin-top: .65rem; gap: 8px; }
  .demo-service { min-height: 75px; padding: 10px; grid-template-columns: 32px 1fr; column-gap: 8px; align-items: center; }
  .demo-icon { width: 31px; height: 31px; grid-column: 1; grid-row: 1 / 3; }
  .demo-service-group { display: none; }
  .demo-service strong { grid-column: 2; font-size: .92rem; }
  .demo-service-price { grid-column: 2; margin: 1px 0 0; font-size: .84rem; }
  .demo-add { width: 17px; height: 17px; bottom: 5px; right: 5px; font-size: .9rem; }
  .demo-empty { min-height: 52px; }
  .demo-stepper button { min-width: 34px; height: 34px; }
}
@media (max-width: 350px) {
  .demo-service { grid-template-columns: 1fr; }
  .demo-icon { display: none; }
  .demo-service strong, .demo-service-price { grid-column: 1; }
}
