/* sales-chat.css — AI sales assistant drawer for /register.html (S53-REGAI) */
.sc2-backdrop{position:fixed;inset:0;background:rgba(29,26,19,.35);z-index:1200;opacity:0;transition:opacity .25s}
.sc2-backdrop.show{opacity:1}
.sc2-panel{position:fixed;top:0;right:0;bottom:0;width:min(420px,100vw);background:#fffdf8;z-index:1210;display:flex;flex-direction:column;box-shadow:-18px 0 40px rgba(29,26,19,.22);transform:translateX(104%);transition:transform .32s cubic-bezier(.2,.9,.3,1);font-family:'IBM Plex Sans Thai','Segoe UI',system-ui,sans-serif;color:#2b2210}
.sc2-panel.show{transform:none}
.sc2-head{display:flex;align-items:center;gap:10px;padding:14px 14px 14px 16px;background:#1d1a13;color:#efe6cf}
.sc2-ht{flex:1 1 auto;min-width:0}
.sc2-title{font-family:Prompt,sans-serif;font-weight:700;font-size:16px;color:#fbe39a}
.sc2-status{font-size:12px;color:#cbbd97;display:flex;align-items:center;gap:6px}
.sc2-dot{width:8px;height:8px;border-radius:50%;background:#8fd16a;box-shadow:0 0 0 3px rgba(143,209,106,.2)}
.sc2-close{width:40px;height:40px;border-radius:12px;border:1px solid rgba(232,185,62,.3);background:transparent;color:#efe6cf;font-size:16px;cursor:pointer}
.sc2-msgs{flex:1 1 auto;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#faf6ec,#f3efe6)}
.sc2-b{max-width:86%;padding:9px 13px;border-radius:16px;font-size:14px;line-height:1.55;white-space:pre-line;word-wrap:break-word;animation:sc2In .25s ease-out both}
.sc2-b.ai{align-self:flex-start;background:#fff;border:1px solid #e9e2d0;border-bottom-left-radius:4px}
.sc2-b.me{align-self:flex-end;background:linear-gradient(180deg,#fbe39a,#e8b93e);color:#2b1f05;border-bottom-right-radius:4px}
.sc2-b.sys{align-self:center;background:#efeeea;color:#4a4740;font-size:12.5px;border-radius:999px;padding:5px 12px}
.sc2-act{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#1f5a2e;background:#e6f1dc;border:1px solid #cfe3bb;border-radius:999px;padding:3px 10px}
.sc2-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 14px;background:#fff;border:1px solid #e9e2d0;border-radius:16px}
.sc2-typing i{width:7px;height:7px;border-radius:50%;background:#c9a84c;animation:sc2Dot 1s infinite}
.sc2-typing i:nth-child(2){animation-delay:.15s}.sc2-typing i:nth-child(3){animation-delay:.3s}
@keyframes sc2Dot{50%{opacity:.25;transform:translateY(-2px)}}
@keyframes sc2In{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.sc2-chips{display:flex;gap:6px;overflow-x:auto;padding:8px 12px;border-top:1px solid #ece6d6;background:#fffdf8;scrollbar-width:none}
.sc2-chips::-webkit-scrollbar{display:none}
.sc2-chips button{flex:0 0 auto;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid #e0d6bd;background:#fff;color:#4a3d22;font:inherit;font-size:13px;cursor:pointer}
.sc2-chips button:hover{border-color:#c9972b}
.sc2-foot{display:flex;gap:8px;padding:10px 12px 6px;background:#fffdf8}
.sc2-foot input{flex:1 1 auto;min-width:0;min-height:46px;padding:0 14px;border:1px solid #e0d8c4;border-radius:14px;font:inherit;font-size:16px;background:#fff;color:#2b2210;outline:none}
.sc2-foot input:focus{border-color:#c9972b;box-shadow:0 0 0 3px rgba(232,185,62,.2)}
.sc2-send{flex:0 0 auto;width:46px;height:46px;border-radius:14px;border:1px solid #b8862a;background:linear-gradient(180deg,#fbe39a,#e8b93e 48%,#c9972b);color:#3a2a08;cursor:pointer;display:flex;align-items:center;justify-content:center}
.sc2-send:disabled{opacity:.5;cursor:not-allowed}
.sc2-note{font-size:11px;color:#8a7a58;text-align:center;padding:0 12px 10px;background:#fffdf8}
.sc2-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.sc2-fab{display:none;position:fixed;right:16px;bottom:16px;z-index:1100;min-height:48px;padding:0 18px 0 14px;border-radius:999px;border:1px solid #b8862a;background:linear-gradient(180deg,#fbe39a,#e8b93e 48%,#c9972b);color:#3a2a08;font:inherit;font-weight:700;font-size:14px;align-items:center;gap:8px;box-shadow:0 10px 24px rgba(184,134,42,.4);cursor:pointer}
@media (max-width:960px){.sc2-fab{display:inline-flex}.sc2-fab.hide{display:none}}
@media (max-width:600px){.sc2-fab{min-height:42px;padding:0 14px 0 12px;font-size:13px;right:12px;bottom:12px}.sc2-panel{top:auto;height:86vh;height:86dvh;width:100vw;border-radius:20px 20px 0 0;transform:translateY(104%)}.sc2-panel.show{transform:none}}
@media (prefers-reduced-motion:reduce){.sc2-panel,.sc2-backdrop,.sc2-b{transition:none;animation:none}}
/* backend not live yet -> card stays (LINE mode), only the mobile FAB hides */
.sc2-off .sc2-fab{display:none!important}
/* LINE mode (S53-REG-4) */
.sc2-line{align-self:stretch;display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;border:1px solid #e9e2d0;border-radius:16px;padding:16px 14px;animation:sc2In .25s ease-out both}
.sc2-line svg{display:block;border-radius:8px;border:1px solid #ece6d6}
.sc2-line-id{font-family:Prompt,sans-serif;font-weight:700;font-size:14px;color:#1d1a13}
.sc2-line-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;width:100%;border-radius:12px;background:#06c755;color:#fff;font-weight:700;font-size:15px;text-decoration:none}
.sc2-line-btn:hover{background:#05b04b}
.sc2-line-note{font-size:12px;color:#8a7a58;text-align:center}
/* perks follow the selected package */
.perks-head{font-size:12px;color:#6b5a35;margin-bottom:-6px}
.perks-head b{color:#1d1a13;font-family:Prompt,sans-serif}
.perk.pop{animation:perkPop .35s ease-out}
@keyframes perkPop{0%{transform:scale(.94);opacity:.4}100%{transform:none;opacity:1}}
@media (max-width:600px){.perks-head{display:none}}
/* S54-REGUI-1 */
.sc2-fab{border-color:#7fb35b;background:linear-gradient(180deg,#f3f9ec,#e1efd2 52%,#cfe3bb);color:#1f3d14;box-shadow:0 10px 24px rgba(78,138,54,.28)}
#form-mount #rf-root .terms-check.sc2-half,#form-mount #rf-root .terms-check.unlocked{opacity:1}
#form-mount #rf-root .terms-check.sc2-half label,#form-mount #rf-root .terms-check.unlocked label{color:#2b2210!important}
#form-mount #rf-root .terms-check.sc2-half label strong,#form-mount #rf-root .terms-check.unlocked label strong{color:#2f7a32}
#form-mount #rf-root #rf-missing{margin:2px 0 10px!important}
h1.hero-title>span{background:linear-gradient(180deg,#fff3c4 0%,#f3cd5c 34%,#d9a632 58%,#a9781c 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;filter:drop-shadow(0 1px 0 rgba(255,255,255,.7)) drop-shadow(0 2px 3px rgba(150,100,20,.35))}
