/* Customer-facing pages: the request page and the booking page. Light, calm, the business's name first. */
body.customer{background:var(--paper)}
.cwrap{width:min(640px,100%);margin:0 auto;padding:22px 16px 60px}
.chead{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.chead .av{width:42px;height:42px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-family:var(--display);font-weight:600}
.chead h1{font-size:20px;line-height:1.2}
.chead small{display:block;color:var(--mute);font-size:13px}
.chead .grow{flex:1}
.lang{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.lang button{background:none;border:0;padding:5px 9px;font-size:12px;font-weight:600;cursor:pointer;color:var(--soft)}
.lang button.on{background:var(--ink);color:#fff}
.box{background:#fff;border-radius:2px;padding:20px;margin-bottom:14px;box-shadow:0 20px 40px -30px rgba(0,8,24,.35)}
.box h2{font-size:15px;margin-bottom:4px}
.box .sub2{color:var(--soft);font-size:14px;margin-bottom:14px}
.cthread{display:flex;flex-direction:column;gap:10px}
.cmsg{max-width:85%;padding:10px 13px;border-radius:14px;background:var(--paper);font-size:15px;white-space:pre-wrap;word-wrap:break-word;align-self:flex-start}
.cmsg.me{align-self:flex-end;background:var(--ink);color:#fff}
.cmsg time{display:block;font-size:11px;opacity:.6;margin-top:4px}
/* the quote, drawn like a paper presupuesto */
.quote{border:1px solid var(--ink);padding:0;overflow:hidden}
.quote .qhead{display:flex;justify-content:space-between;align-items:baseline;padding:16px 20px 12px;border-bottom:1px dashed var(--line)}
.quote .qhead .k{color:var(--ink)}
.quote .qhead small{font-size:12px;color:var(--mute);font-variant-numeric:tabular-nums}
.quote .qbiz{padding:12px 20px 0;font-family:var(--display);font-weight:600;font-size:15px}
.quote table{width:100%;border-collapse:collapse;margin-top:12px;font-size:14px}
.quote td{padding:9px 20px;vertical-align:top}
.quote td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.quote tr.line td{border-top:1px solid var(--paper)}
.quote tr.sum td{color:var(--soft);padding-top:6px;padding-bottom:6px}
.quote tr.sum:first-of-type td{padding-top:12px;border-top:1px dashed var(--line)}
.quote tr.total td{font-family:var(--display);font-weight:600;font-size:22px;padding-top:10px;padding-bottom:16px;border-top:1px solid var(--ink)}
.quote tr.total td:last-child{font-size:28px}
.quote .qauto{padding:0 20px 14px;font-size:12px;color:var(--ok)}
.quote .row2,.quote .ok-msg,.quote .empty-c{padding:14px 20px 18px;border-top:1px dashed var(--line);margin:0}
.row2{display:flex;gap:10px;flex-wrap:wrap}
.row2 .btn{flex:1;min-width:140px;white-space:normal;text-align:center}
.days{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;margin-bottom:12px;scrollbar-width:thin}
.days button{flex:0 0 auto;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 12px;font-size:14px;cursor:pointer;text-align:left}
.days button.on{border-color:var(--ink);background:var(--ink);color:#fff}
.times{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;margin-bottom:14px}
.times button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 0;font-size:15px;cursor:pointer;font-variant-numeric:tabular-nums}
.times button.on{border-color:var(--ink);background:var(--ink);color:#fff}
.times button:focus-visible,.days button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.status{display:flex;gap:12px;align-items:center}
.status .dot{width:12px;height:12px;border-radius:50%;background:var(--warn);flex:0 0 auto}
.status.ok .dot{background:var(--ok)}
.status b{display:block}
.status span{color:var(--soft);font-size:14px}
.reply{display:flex;gap:8px;margin-top:14px}
.reply textarea{flex:1;min-height:46px;max-height:140px;resize:vertical}
.cfoot{text-align:center;font-size:13px;color:var(--mute);margin-top:22px}
.cfoot a{color:var(--soft)}
.done-box{text-align:center;padding:34px 20px}
.done-box .big{font-family:var(--display);font-size:20px;font-weight:600;margin:10px 0 6px}
.empty-c{color:var(--mute);font-size:14px}
@media (prefers-reduced-motion:reduce){.cmsg.fresh{animation:none}}
.legal h1{font-size:24px;margin:4px 0 6px}
.legal h3{font-size:15px;margin:16px 0 4px}
.legal p{margin-bottom:8px;font-size:15px;color:var(--soft)}
.legal a{color:var(--ink)}
.legal pre.code{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-family:ui-monospace,Menlo,monospace;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 12px;color:var(--ink)}
.legal code{font-family:ui-monospace,Menlo,monospace;font-size:.92em;background:var(--paper);padding:1px 5px;border-radius:5px}

.cmsg.fresh{animation:rise .3s var(--ease) both} /* only messages that just arrived */
/* photos on the request page */
.cphoto{display:block;max-width:220px;max-height:220px;border-radius:10px}
.photo-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px}
.photo-row .sub2{margin:0;font-size:13px}
.photo-btn{cursor:pointer}
.photo-btn.busy{opacity:.6;pointer-events:none}
/* "How to pay": the business's own payment options, shown once the quote is accepted */
.pay .btn{margin:6px 0 12px}
.pay .payrow{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:10px 0;border-top:1px solid rgba(0,0,0,.08);font-size:14px}
.pay .payrow b{font-variant-numeric:tabular-nums;letter-spacing:.02em}
.pay .payrow .linkbtn{margin-left:auto;font-size:13px}
.pay .sub2{margin:10px 0 0}
.pay .qauto{margin-top:12px;font-size:12px;color:var(--soft)}
/* chat widget inside a client's website (/w/<key>): tighter, no page gutters; two short fields side by side */
.embed .cwrap{padding:14px 12px 18px}
.embed .chead{padding-right:44px} /* room for the floating panel's close button */
/* Peakvision chat: three language buttons move to their own line when the popup is too narrow, instead of being cut off */
.chead.three{flex-wrap:wrap}
.chead.three .av,.chead.three .lang{flex-shrink:0}
.chead.three .lang{margin-left:auto}
.embed .cwrap>a.btn{white-space:normal;max-width:100%;text-align:center} /* its booking and enquiry buttons wrap instead of running off a phone */
.embed .grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:420px){.embed .grid2{grid-template-columns:1fr}}
.cmsg.typing{color:var(--mute)}
.cmsg.typing::after{content:'...';display:inline-block;animation:typing 1.2s steps(4,end) infinite;overflow:hidden;vertical-align:bottom;width:0}
@keyframes typing{to{width:1.2em}}
@media (prefers-reduced-motion:reduce){.cmsg.typing::after{animation:none;width:auto}}

/* answers the customer can tap under the latest reply */
.qopts{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 6px;justify-content:flex-end}
.qopts .btn{width:auto}
