/* Chat assistant (chat.js): message button + panel. Above the add-ons bar (60), below the menu (80) and modals (120).
   Only transform/opacity animate; no blur. */
.ch-fab,.ch-box,.ch-tip{position:fixed;z-index:70;right:16px;font-family:inherit}
.ch-orb{display:grid;place-items:center;flex:none;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 50% 42%,#3A1B34,#0C070D 72%)}
.ch-orb img{width:118%;max-width:none;height:auto;animation:chFloat 4.5s ease-in-out infinite}

.ch-fab{bottom:calc(16px + env(safe-area-inset-bottom,0px));width:60px;height:60px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;background:linear-gradient(100deg,#FF6FB1,#C58BFF);color:#1A0B14;box-shadow:0 16px 40px -10px rgba(255,111,177,.75);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.ch-fab>svg{width:27px;height:27px}
.ch-fab::after{content:"";position:absolute;inset:0;border-radius:50%;border:1px solid #FF6FB1;opacity:0;pointer-events:none;animation:chPing 3.6s ease-out infinite}
.ch-fab:hover{transform:translateY(-3px) scale(1.04)}
.ch-fab-x{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;background:#140D16;color:#FFD8EC;opacity:0;transform:rotate(-90deg);transition:opacity .25s,transform .35s}
.ch-fab-x svg{width:24px;height:24px}
.ch-fab[aria-expanded="true"] .ch-fab-x{opacity:1;transform:none}

.ch-tip{bottom:calc(28px + env(safe-area-inset-bottom,0px));right:94px;padding:11px 16px;border:1px solid rgba(255,179,214,.35);border-radius:16px 16px 4px 16px;background:#1B131E;color:#FAF7F8;font-size:14px;cursor:pointer;box-shadow:0 18px 40px -18px #000;animation:chIn .45s cubic-bezier(.2,.8,.2,1) both}

.ch-box{bottom:calc(96px + env(safe-area-inset-bottom,0px));width:min(392px,calc(100% - 32px));height:min(600px,calc(100dvh - 190px));min-height:min(440px,calc(100dvh - 110px));display:flex;flex-direction:column;color:#FAF7F8;border:1px solid transparent;border-radius:24px;overflow:hidden;font-size:14px;line-height:1.5;
  background:radial-gradient(120% 55% at 50% -8%,rgba(255,111,177,.22),rgba(197,139,255,.08) 55%,transparent 75%) padding-box,linear-gradient(#130E17,#130E17) padding-box,linear-gradient(160deg,#FF6FB1,rgba(197,139,255,.35) 35%,rgba(250,247,248,.1) 65%,#C58BFF) border-box;
  box-shadow:0 40px 90px -30px #000,0 0 60px -22px rgba(255,111,177,.55);transform-origin:calc(100% - 32px) 100%;animation:chOpen .42s cubic-bezier(.2,.9,.2,1) both}
.ch-box[hidden],.ch-tip[hidden]{display:none}

.ch-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;border-bottom:1px solid rgba(250,247,248,.09)}
.ch-head .ch-orb{width:46px;height:46px;box-shadow:0 0 0 1.5px #FF6FB1,0 0 18px -2px rgba(255,111,177,.7)}
.ch-who{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.ch-who strong{font-size:16px;letter-spacing:-.01em}
.ch-who span{color:#B9AEBB;font-size:12px}
.ch-x{flex:none;width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid rgba(250,247,248,.14);border-radius:50%;background:rgba(250,247,248,.04);color:inherit;cursor:pointer}
.ch-x svg{width:16px;height:16px}
.ch-x:hover{border-color:#FF6FB1}

.ch-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 16px 8px;display:flex;flex-direction:column;gap:9px;scrollbar-width:thin;scrollbar-color:rgba(255,179,214,.3) transparent}
.ch-msg{margin:0;max-width:86%;flex:none;padding:11px 15px;border-radius:18px;white-space:pre-line;overflow-wrap:anywhere;animation:chIn .38s cubic-bezier(.2,.8,.2,1) both}
.ch-bot{align-self:flex-start;border-bottom-left-radius:5px;background:linear-gradient(160deg,rgba(250,247,248,.11),rgba(250,247,248,.05));border:1px solid rgba(250,247,248,.08)}
.ch-me{align-self:flex-end;border-bottom-right-radius:5px;background:linear-gradient(100deg,#FF6FB1,#D58BF0);color:#1A0B14;font-weight:500}
.ch-typing{display:flex;gap:5px;padding:15px}
.ch-typing i{width:7px;height:7px;border-radius:50%;background:#FFB3D6;animation:chDot 1s ease-in-out infinite}
.ch-typing i:nth-child(2){animation-delay:.15s}
.ch-typing i:nth-child(3){animation-delay:.3s}

.ch-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 14px}
.ch-quick button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:11px 12px;text-align:left;font:inherit;font-size:13px;line-height:1.3;color:inherit;cursor:pointer;border:1px solid rgba(250,247,248,.11);border-radius:15px;background:rgba(250,247,248,.04);transition:transform .25s,border-color .25s,background-color .25s}
.ch-quick svg{width:20px;height:20px;color:#FF8FC4}
.ch-quick button:hover{transform:translateY(-2px);border-color:rgba(255,111,177,.7);background:rgba(255,111,177,.1)}
/* once the conversation starts, the cards become one slim row */
.talking .ch-quick{display:flex;flex:none;overflow-x:auto;scrollbar-width:none}
.talking .ch-quick button{flex:none;flex-direction:row;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;white-space:nowrap}
.talking .ch-quick svg{width:15px;height:15px}

.ch-wa{flex:none;display:flex;align-items:center;justify-content:center;gap:9px;margin:4px 14px 10px;min-height:44px;padding:8px 14px;border-radius:14px;border:1px solid rgba(37,211,102,.45);background:rgba(37,211,102,.1);color:#CFF7DD;font-size:13.5px;font-weight:600;text-decoration:none;transition:background-color .25s}
.ch-wa svg{width:19px;height:19px;color:#3BE079}
.ch-wa:hover{background:rgba(37,211,102,.2)}

.ch-form{display:flex;flex:none;gap:8px;align-items:center;margin:0 14px;padding:5px 5px 5px 6px;border:1px solid rgba(250,247,248,.16);border-radius:999px;background:#08060A;transition:border-color .25s}
.ch-form:focus-within{border-color:#FF6FB1;box-shadow:0 0 0 3px rgba(255,111,177,.22)}
.ch-form input{flex:1;min-width:0;height:40px;padding:0 10px;border:0;outline:0;background:none;color:inherit;font:inherit;font-size:16px}
.ch-send{flex:none;width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;cursor:pointer;background:linear-gradient(100deg,#FF6FB1,#C58BFF);color:#1A0B14;transition:transform .25s}
.ch-send svg{width:19px;height:19px}
.ch-send:hover{transform:scale(1.07)}
.ch-note{margin:0;padding:7px 18px 11px;text-align:center;color:#8F8694;font-size:11px;line-height:1.35}
.ch-box button:focus-visible,.ch-box a:focus-visible,.ch-fab:focus-visible,.ch-tip:focus-visible{outline:2px solid #FFB3D6;outline-offset:2px}

@media (max-width:760px){
  .ch-fab{bottom:calc(84px + env(safe-area-inset-bottom,0px));width:56px;height:56px}   /* clear of the mobile call-to-action bar */
  .ch-tip{bottom:calc(93px + env(safe-area-inset-bottom,0px));right:84px}
  /* phone: a sheet from the bottom, closed with its own button */
  .ch-box{right:0;bottom:0;width:100%;height:calc(100dvh - 92px);min-height:0;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom,0px);transform-origin:50% 100%;animation-name:chSheet}
  .ch-box:not([hidden])~.ch-fab{visibility:hidden}
}
@keyframes chPing{0%{transform:scale(1);opacity:.7}45%,100%{transform:scale(1.45);opacity:0}}
@keyframes chFloat{50%{transform:translateY(-4%)}}
@keyframes chOpen{from{opacity:0;transform:translateY(14px) scale(.9)}}
@keyframes chSheet{from{opacity:0;transform:translateY(40px)}}
@keyframes chIn{from{opacity:0;transform:translateY(8px)}}
@keyframes chDot{50%{transform:translateY(-5px);opacity:.45}}
@media (prefers-reduced-motion:reduce){.ch-fab,.ch-box,.ch-tip,.ch-fab *,.ch-box *,.ch-fab::after{animation:none!important;transition:none!important}}
