/* The help chat. The same widget lives on bellfy.vip (in a corner panel), in the salon's panel and
   in the client's app; it takes the salon's colour when there is one. */
.help{--help-accent:var(--salon,var(--accent,#8f3355));display:flex;flex-direction:column;min-height:0;height:100%;font-family:var(--text,inherit)}
.help-log{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:16px 14px 8px;scroll-behavior:smooth}
.help-bubble{max-width:86%;padding:11px 14px;border-radius:18px;font-size:15px;line-height:1.5}
.help-bubble p{margin:0;white-space:pre-line;color:inherit!important}
.help-bubble.is-theirs{align-self:flex-start;background:#fff;border:1px solid var(--line,#e2dbd2);color:var(--ink,#241621);border-bottom-left-radius:6px}
.help-bubble.is-mine{align-self:flex-end;background:var(--ink,#241621);color:#fff;border-bottom-right-radius:6px}
/* Links and buttons inside an answer: Bellfy's own addresses, and the sections of the app. */
.help-bubble a.help-a{color:var(--help-accent);font-weight:600;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.help-bubble a.help-a:hover{color:var(--ink,#241621)}
.help button.help-action{display:inline-flex;align-items:center;gap:5px;min-height:34px;margin:3px 2px 3px 0;padding:0 14px;border-radius:999px;border:1px solid var(--help-accent);background:#fff;color:var(--help-accent);font:600 14px/1.2 var(--text,inherit);cursor:pointer;vertical-align:middle;white-space:nowrap}
.help button.help-action:hover{background:var(--help-accent);border-color:var(--help-accent);color:#fff}
.help button.help-action:focus-visible,.help-bubble a.help-a:focus-visible{outline:2px solid var(--help-accent);outline-offset:2px}
.help-bubble.is-typing{display:inline-flex;gap:5px;padding:14px 16px}
.help-bubble.is-typing span{width:7px;height:7px;border-radius:50%;background:var(--ink-faint,#8a7a85);animation:help-dot 1.1s infinite ease-in-out}
.help-bubble.is-typing span:nth-child(2){animation-delay:.15s}
.help-bubble.is-typing span:nth-child(3){animation-delay:.3s}
@keyframes help-dot{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}
@media (prefers-reduced-motion:reduce){.help-bubble.is-typing span{animation:none}}
.help-suggestions{display:flex;flex-wrap:wrap;gap:8px;padding:4px 14px 10px}
.help button.help-chip{min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line-strong,#cdbfb2);background:#fff;color:var(--ink,#241621);font:600 13px/1.2 var(--text,inherit);cursor:pointer;text-align:left}
.help button.help-chip:hover{border-color:var(--help-accent);color:var(--help-accent);background:#fff}
.help-input{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;border-top:1px solid var(--line,#e2dbd2);background:#fff}
.help .help-input textarea{flex:1;min-height:46px;max-height:140px;resize:none;padding:12px 14px;border:1px solid var(--line-strong,#cdbfb2);border-radius:14px;font:15px/1.4 var(--text,inherit);color:var(--ink,#241621);background:#fff}
.help .help-input textarea:focus{outline:none;border-color:var(--ink,#241621);box-shadow:0 0 0 1px var(--ink,#241621)}
.help button.help-send{flex:none;width:46px;height:46px;min-height:46px;padding:0;border-radius:50%;border:0;background:var(--ink,#241621);color:#fff;font:700 20px/1 var(--text,inherit);cursor:pointer}
.help button.help-send:disabled{opacity:.45}
.help-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 14px 12px;background:#fff}
.help button.help-link{min-height:0;padding:4px 0;border:0;background:none;color:var(--ink-soft,#5d4b57);font:500 13px/1.3 var(--text,inherit);cursor:pointer;text-align:left}
.help button.help-link strong{color:var(--help-accent);font-weight:700}
.help button.help-link:hover{background:none;color:var(--ink,#241621)}
.help-ticket{display:grid;gap:12px;padding:14px;overflow-y:auto}
.help-ticket-head{display:flex;align-items:center;gap:12px}
.help-ticket-head strong{font-size:15px}
.help-ticket label{display:grid;gap:6px;font:600 13px/1.3 var(--text,inherit);color:var(--ink,#241621)}
.help-ticket label small{font-weight:500;color:var(--ink-faint,#8a7a85)}
.help .help-ticket input:not([type=radio]),.help .help-ticket textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line-strong,#cdbfb2);border-radius:12px;font:15px/1.4 var(--text,inherit);color:var(--ink,#241621);background:#fff;box-sizing:border-box}
.help .help-ticket textarea{min-height:96px;resize:vertical}
.help-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.help-kinds{border:0;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.help-kinds legend{font:600 13px/1.3 var(--text,inherit);margin-bottom:6px;padding:0}
.help label.help-kind{display:flex!important;gap:8px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line-strong,#cdbfb2);border-radius:14px;background:#fff;cursor:pointer}
.help label.help-kind:has(input:checked){border-color:var(--ink,#241621);box-shadow:0 0 0 1px var(--ink,#241621)}
.help .help-kind input[type=radio]{flex:none;width:16px;height:16px;min-height:0;margin:2px 0 0;padding:0;border:0;box-shadow:none;accent-color:var(--ink,#241621)}
.help-kind span{display:grid;gap:2px}
.help-kind strong{font-size:14px}
.help-kind small{font-size:12px;font-weight:500;color:var(--ink-faint,#8a7a85)}
.help-error{margin:0;color:#b42318;font-size:13px}
.help-error:empty{display:none}
.help button.help-submit{min-height:48px;border-radius:999px;border:0;background:var(--ink,#241621);color:#fff;font:600 15px/1 var(--text,inherit);cursor:pointer;padding:0 22px}
.help button.help-submit:disabled{opacity:.6}
.help-fine{margin:0;font-size:12px;line-height:1.5;color:var(--ink-faint,#8a7a85)}
.help-done{display:grid;justify-items:center;gap:10px;text-align:center;padding:40px 22px}
.help-done-mark{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--help-accent);color:#fff;font-size:24px}
.help-done strong{font-size:18px}
.help-done p{margin:0 0 6px;color:var(--ink-soft,#5d4b57);max-width:32ch}

/* bellfy.vip: a quiet button in the corner that opens the assistant. */
.help-launcher{position:fixed;right:20px;bottom:20px;z-index:60;display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 22px;border:0;border-radius:999px;background:var(--ink,#241621);color:#fff;font:600 15px/1 var(--text,inherit);box-shadow:0 18px 40px -16px rgba(36,22,33,.65);cursor:pointer;transition:transform .25s cubic-bezier(.16,1,.3,1)}
.help-launcher span{color:#e9b8cb}
.help-launcher:hover{transform:translateY(-2px)}
.help-launcher[hidden]{display:none}
.help-panel{position:fixed;right:20px;bottom:20px;z-index:61;width:min(400px,calc(100vw - 24px));height:min(620px,calc(100dvh - 40px));display:flex;flex-direction:column;border-radius:24px;overflow:hidden;background:var(--paper,#f4ede4);border:1px solid var(--line,#e2dbd2);box-shadow:0 30px 80px -24px rgba(36,22,33,.55);animation:help-in .3s cubic-bezier(.16,1,.3,1)}
.help-panel[hidden]{display:none}
@keyframes help-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.help-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;background:var(--ink,#241621);color:#fff}
.help-panel-head div{display:grid;gap:2px}
.help-panel-head strong{font-family:var(--display,Georgia,serif);font-style:italic;font-weight:400;font-size:24px;letter-spacing:-.02em}
.help-panel-head small{font-size:12px;color:rgba(255,255,255,.7)}
.help-close{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:transparent;color:#fff;font-size:14px;cursor:pointer}
.help-body{flex:1;min-height:0;display:flex;flex-direction:column}
.help-body>.help{height:100%}
@media(max-width:600px){
 .help-launcher{right:14px;bottom:14px}
 .help-panel{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0}
 .help-row,.help-kinds{grid-template-columns:1fr}
}
