/* Salon Demo: what this page adds on top of /sales/sales.css (same tokens, same components). */

/* chat: shorter than the order demo's, since the time picker sits under it */
#bk-chat .chat-in { height: min(560px, calc(100svh - 120px)); }
@media (max-width: 767px) { #bk-chat .chat-in { height: 480px; } #bk-chat .chat-in:has(> #consent:not([hidden])) { height: auto; } }
.composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; padding: 10px 16px; border-radius: 22px; border: 1px solid var(--line-strong);
  background: var(--canvas); font: inherit; font-size: 16px; line-height: 1.4; resize: none; box-shadow: var(--lift); }
.composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(59 79 216 / .18); }

/* a slot the calendar says is open, offered in the chat */
.log .offer { align-self: flex-start; width: min(100%, 340px); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 14px; padding: 12px 14px 14px; white-space: normal; }
.offer .what { font-weight: 600; letter-spacing: -0.01em; }
.offer .meta { font-size: 14px; color: var(--fg-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.offer .btn { width: 100%; margin-top: 12px; }
.offer .done { margin-top: 10px; font-size: 14px; color: var(--fg-2); display: flex; gap: 6px; align-items: center; }
.offer .done .ico { width: 16px; height: 16px; }
.log .opts { align-self: flex-start; max-width: 100%; background: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { height: 40px; padding: 0 14px; border: 0; border-radius: 9999px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-strong);
  font: inherit; font-size: 14px; color: var(--fg); cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.opts button:hover { background: var(--subtle); box-shadow: inset 0 0 0 1px var(--line-hover); }

/* the time picker */
.picker-panel { margin-top: 24px; padding: 20px; }
.pick-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.moving { font-size: 14px; color: var(--accent); }
.moving button { margin-left: 8px; border: 0; background: none; padding: 0; font: inherit; color: var(--fg-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
@media (min-width: 640px) { .svc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc button { text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.svc button:hover { box-shadow: inset 0 0 0 1px var(--line-hover); }
.svc button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--fg); }
.svc button:disabled { opacity: .45; cursor: default; }
.svc .nm { display: block; font-size: 15px; font-weight: 500; }
.svc .mt { display: block; font-size: 13px; color: var(--fg-4); font-variant-numeric: tabular-nums; }
.days { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.days button { flex: none; height: 44px; padding: 0 14px; border: 0; border-radius: 9999px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 14px; color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.days button[aria-pressed="true"] { background: var(--fg); color: var(--canvas); box-shadow: none; }
.days button .n { color: var(--fg-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; margin-top: 14px; min-height: 44px; }
.slots button { height: 44px; border: 0; border-radius: 10px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.slots button:hover { box-shadow: inset 0 0 0 1px var(--line-hover); }
.slots button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.slots .empty { grid-column: 1 / -1; padding: 10px 0; }
.pick-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--line); }
.pick-sum { font-size: 15px; color: var(--fg-2); min-width: 0; flex: 1 1 220px; }
@media (max-width: 767px) { .pick-foot .btn { width: 100%; } }

/* the phone: messages with reply buttons */
.notif .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.notif .acts button { height: 34px; padding: 0 12px; border: 0; border-radius: 9999px; background: var(--muted); font: inherit; font-size: 13px; font-weight: 500;
  color: var(--fg); cursor: pointer; }
.notif .acts button.primary { background: var(--fg); color: var(--canvas); }
.notif .acts button:disabled { opacity: .5; }
.notif .mark { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--fg); color: var(--canvas); font-weight: 600; font-size: 14px; }
.notif.new { box-shadow: 0 0 0 2px var(--accent); }
.notif span { white-space: pre-wrap; }
.notifs { max-height: 460px; overflow-y: auto; }
.clock-note { margin-top: 10px; font-size: 13px; color: var(--fg-4); }

/* bookings and the salon's week */
.bk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bk-what { font-weight: 500; font-size: 15px; min-width: 0; }
.bk-when { font-size: 14px; color: var(--fg-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.status.confirmed { color: var(--fg); }
.status.cancelled { color: var(--fg-4); text-decoration: line-through; }
.sched .day { padding: 14px 0 4px; box-shadow: none; font-size: 13px; font-weight: 600; color: var(--fg-4); }
.sched li:not(.day) { padding: 10px 0; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.stats div { background: var(--subtle); border-radius: 12px; padding: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.stats dt { font-size: 12px; color: var(--fg-4); line-height: 1.3; }
.stats dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* how-it-works panel */
.rules, .price-list { list-style: none; margin: 10px 0 20px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--fg-2); }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; box-shadow: inset 0 -1px 0 var(--line); font-variant-numeric: tabular-nums; }
.price-list .mt { color: var(--fg-4); }
#flow .steps-list { background: var(--canvas); }
.row-acts { display: flex; gap: 16px; margin-top: 6px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer; text-underline-offset: 3px; }
.link-btn:hover { text-decoration: underline; } .link-btn:disabled { opacity: .5; }
.photo-credit { margin-top: 8px; padding: 0 4px 2px; font-size: 12px; color: var(--fg-4); }
.photo-credit a { color: inherit; text-underline-offset: 2px; }
.days button[aria-pressed="true"] .n { color: inherit; opacity: .75; }
.days { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); padding-right: 24px; }
@media (max-width: 767px) { .notifs { max-height: none; } }
.toast { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 72px); z-index: 60; display: grid; gap: 2px; padding: 12px 14px;
  border-radius: 14px; background: var(--fg); color: var(--canvas); text-decoration: none; font-size: 14px; line-height: 1.4;
  box-shadow: 0 12px 32px -8px rgb(9 9 11 / .35); transform: translateY(-140%); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.toast.show { transform: none; opacity: 1; }
.toast span { color: rgb(255 255 255 / .82); }
@media (min-width: 768px) { .toast { left: auto; right: 24px; width: 360px; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.toast .tap { color: #fff; font-weight: 500; margin-top: 4px; }
