/* Чат-помощник «Собрать подарок»: шалфей и песок, Manrope */
#chat-slot{position:fixed;right:24px;bottom:24px;z-index:60;font-family:var(--sans,'Manrope',sans-serif)}
.ch-fab{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:0;cursor:pointer;font:inherit}
.ch-fab-label{background:var(--paper,#fffdf8);color:var(--sage-d,#3f5a49);font-weight:700;font-size:14px;padding:9px 16px;border-radius:999px;
  box-shadow:0 8px 24px rgba(40,60,45,.16);transition:opacity .3s,transform .3s}
.ch-fab-btn{width:66px;height:66px;border-radius:50%;background:linear-gradient(145deg,var(--sage2,#7d9a84),var(--sage-d,#3f5a49));
  display:grid;place-items:center;box-shadow:0 12px 30px rgba(40,70,50,.35);position:relative;transition:transform .25s}
.ch-fab:hover .ch-fab-btn{transform:scale(1.07)}
.ch-fab-btn::after{content:"";position:absolute;inset:-7px;border-radius:50%;border:1.5px solid rgba(201,169,120,.7);animation:chpulse 3.2s ease-out infinite}
@keyframes chpulse{0%{transform:scale(.88);opacity:.9}70%,100%{transform:scale(1.25);opacity:0}}
.ch-fab-btn svg{width:30px;height:30px}
.ch-fab:focus-visible,.ch-x:focus-visible,.ch-chip:focus-visible,.ch-send:focus-visible{outline:3px solid var(--sand,#c9a978);outline-offset:3px;border-radius:999px}
#chat-slot.open .ch-fab{display:none}
.ch-win{display:none;flex-direction:column;width:392px;height:min(620px,calc(100vh - 48px));background:var(--paper,#fffdf8);border-radius:22px;
  box-shadow:0 24px 70px rgba(30,50,38,.28);overflow:hidden;border:1px solid var(--line,#e6e0d4)}
#chat-slot.open .ch-win{display:flex;animation:chin .28s ease-out}
@keyframes chin{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
.ch-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(135deg,var(--sage-d,#3f5a49),var(--sage,#5f7f6b));color:#fff}
.ch-ava{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.16);display:grid;place-items:center;flex:none}
.ch-ava svg{width:22px;height:22px}
.ch-ht{flex:1;min-width:0}
.ch-ht b{display:block;font-family:var(--serif,'Cormorant Garamond',serif);font-size:21px;line-height:1.1}
.ch-ht span{font-size:12px;opacity:.82}
.ch-x{width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:20px;line-height:1;cursor:pointer}
.ch-x:hover{background:rgba(255,255,255,.26)}
.ch-log{flex:1;overflow-y:auto;padding:16px 14px 6px;background:var(--cream,#f8f4ec);display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.ch-m{max-width:88%;padding:10px 14px;border-radius:16px;font-size:14.5px;line-height:1.5;word-wrap:break-word}
.ch-m.bot{background:#fff;color:var(--ink,#2e3530);border:1px solid var(--line,#e6e0d4);border-bottom-left-radius:5px;align-self:flex-start}
.ch-m.me{background:var(--sage,#5f7f6b);color:#fff;border-bottom-right-radius:5px;align-self:flex-end}
.ch-chips{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 4px}
.ch-chip{border:1px solid var(--sand,#c9a978);background:#fff;color:var(--sage-d,#3f5a49);font:inherit;font-size:13.5px;font-weight:600;
  padding:7px 13px;border-radius:999px;cursor:pointer;transition:background .2s,color .2s}
.ch-chip:hover{background:var(--sand-l,#efe4d1)}
.ch-chip.alt{border-color:var(--line,#e6e0d4);color:var(--mut,#6a736c);font-weight:500}
.ch-chip.solid{background:var(--sage,#5f7f6b);border-color:var(--sage,#5f7f6b);color:#fff}
.ch-chip.solid:hover{background:var(--sage-d,#3f5a49)}
.ch-res{display:flex;flex-direction:column;gap:8px;width:100%}
.ch-card{display:flex;gap:11px;background:#fff;border:1px solid var(--line,#e6e0d4);border-radius:14px;padding:8px;text-decoration:none;color:inherit;
  transition:box-shadow .2s,transform .2s;align-items:center}
.ch-card:hover{box-shadow:0 8px 20px rgba(40,60,45,.12);transform:translateY(-1px)}
.ch-card img{width:78px;height:62px;object-fit:cover;border-radius:9px;flex:none;background:var(--sand-l,#efe4d1)}
.ch-card b{display:block;font-size:14px;line-height:1.3;color:var(--ink,#2e3530)}
.ch-card span{display:block;font-size:12.5px;color:var(--mut,#6a736c);margin-top:2px}
.ch-card i{font-style:normal;font-weight:700;color:var(--sage-d,#3f5a49)}
.ch-form{display:flex;gap:8px;padding:10px 12px 12px;background:var(--paper,#fffdf8);border-top:1px solid var(--line,#e6e0d4)}
.ch-form input{flex:1;min-width:0;border:1px solid var(--line,#e6e0d4);border-radius:999px;padding:11px 16px;font:inherit;font-size:14.5px;background:#fff;color:var(--ink,#2e3530)}
.ch-form input:focus{outline:2px solid var(--sage2,#7d9a84);border-color:transparent}
.ch-send{width:44px;height:44px;border-radius:50%;border:0;background:var(--sage,#5f7f6b);color:#fff;cursor:pointer;display:grid;place-items:center;flex:none}
.ch-send:hover{background:var(--sage-d,#3f5a49)}
.ch-send svg{width:19px;height:19px}
.ch-note{font-size:11.5px;color:var(--mut,#6a736c);text-align:center;padding:0 12px 10px;background:var(--paper,#fffdf8)}
.card.ch-hl{animation:chhl 2.4s ease-out}
@keyframes chhl{0%,60%{box-shadow:0 0 0 4px var(--sand,#c9a978),0 16px 40px rgba(201,169,120,.45)}100%{box-shadow:none}}
@media (max-width:640px){
  #chat-slot{right:16px;bottom:16px}
  #chat-slot.open{inset:0;right:0;bottom:0}
  .ch-win{width:100%;height:100%;height:100dvh;border-radius:0;border:0}
  .ch-fab-label{display:none}
  .ch-fab-btn{width:60px;height:60px}
  .ch-m{font-size:15px}
  .ch-form input{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.ch-fab-btn::after{animation:none}#chat-slot.open .ch-win{animation:none}.ch-log{scroll-behavior:auto}}
