/* /assistant/ — chat page styled after pizzatort.kz (Inter, slate palette, product-card look) */
.px-pagehead,#pixi-page{--red:#ea2e49;--red-d:#d9223c;--ink:#0f172a;--green:#00a859;--green-d:#00924c;--s1:#f1f5f9;--s2:#e2e8f0;--s4:#94a3b8;--s5:#64748b;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1e293b;-webkit-font-smoothing:antialiased}
.px-pagehead *,#pixi-page *{box-sizing:border-box}
#pixi-page button,#pixi-page input{font-family:inherit}

/* ---------- page header (same look as the site header) ---------- */
.px-pagehead{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid #f1f5f9;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.px-pagehead .in{max-width:1560px;margin:0 auto;padding:8px 12px;display:flex;align-items:center;gap:8px;min-height:54px}
@media (min-width:640px){.px-pagehead .in{padding:8px 24px;gap:12px}}
@media (min-width:1024px){.px-pagehead .in{padding:8px 32px;min-height:64px}}
.px-logo{display:flex;align-items:center;gap:8px;text-decoration:none;flex:none}
.px-logo img{width:32px;height:32px;object-fit:contain}
.px-logo b{display:block;font-size:19px;font-weight:900;letter-spacing:-.02em;line-height:1;color:var(--ink)}
.px-logo b span{color:var(--red)}
.px-logo small{display:none;font-size:8.5px;color:var(--s4);font-weight:500;letter-spacing:.04em;margin-top:3px}
@media (min-width:640px){.px-logo img{width:36px;height:36px}.px-logo b{font-size:22px}.px-logo small{display:block}}
.px-pagehead .sp{flex:1}
.px-hbtn{position:relative;height:36px;padding:0 12px;border-radius:12px;display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;text-decoration:none;cursor:pointer;white-space:nowrap}
.px-hbtn.red{background:var(--red);color:#fff}.px-hbtn.red:hover{background:var(--red-d)}
.px-hbtn.soft{background:var(--s1);color:#334155}.px-hbtn.soft:hover{background:var(--s2)}
.px-hbtn.dark{background:var(--ink);color:#fff}.px-hbtn.dark:hover{background:#1e293b}
.px-hbtn b{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:10px;line-height:18px;text-align:center}
.px-hbtn b[hidden]{display:none}
.px-phone{display:none;font-size:13px;font-weight:700;color:var(--ink);text-decoration:none}
.px-phone i{color:var(--red);font-size:11px;margin-right:6px}
@media (min-width:900px){.px-phone{display:inline}}
@media (max-width:480px){.px-hbtn .l{display:none}.px-hbtn{padding:0 11px}}

/* ---------- chat panel ---------- */
#pixi-page{height:100%}
.px-panel{display:flex;flex-direction:column;height:100%;background:#f4f7fb;overflow:hidden;font-size:13px;line-height:1.4;border:1px solid rgba(226,232,240,.8);border-radius:20px;box-shadow:0 1px 2px rgba(15,23,42,.05)}
@media (max-width:640px){.px-panel{border:0;border-radius:0;box-shadow:none}}
.px-msgs{flex:1;overflow-y:auto;padding:12px 10px 6px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
@media (min-width:641px){.px-msgs{padding:16px 16px 8px;gap:10px}}
.px-row{display:flex;gap:7px;align-items:flex-end;max-width:94%}
.px-row>img{width:26px;height:26px;flex:none;margin-bottom:2px}
.px-m{padding:8px 12px;border-radius:16px;white-space:pre-wrap;word-wrap:break-word}
.px-m.bot{background:#fff;border:1px solid rgba(226,232,240,.8);border-bottom-left-radius:5px;color:#1e293b;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.px-m.me{background:var(--ink);color:#fff;border-bottom-right-radius:5px;align-self:flex-end;max-width:86%}
.px-link{align-self:flex-start;margin-left:33px;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:12px;background:#fff;border:1px solid var(--s2);font-size:12px;font-weight:700;color:var(--ink);text-decoration:none}
.px-link:hover{border-color:var(--red);color:var(--red)}
@media (max-width:640px){.px-link{margin-left:0}.px-row{max-width:100%}}

/* welcome */
.px-welcome{display:flex;flex-direction:column;align-items:center;text-align:center;padding:2px 2px 4px}
.px-welcome img{width:72px;height:72px;filter:drop-shadow(0 8px 20px rgba(37,99,235,.4))}
.px-welcome h2{margin:4px 0 2px;font-size:18px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.px-welcome p{margin:0 0 12px;font-size:12.5px;color:var(--s5);max-width:320px}
.px-tiles{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%}
@media (min-width:700px){.px-tiles{grid-template-columns:repeat(4,1fr)}}
.px-tile{display:flex;align-items:center;gap:8px;padding:7px 9px;background:#fff;border:1px solid rgba(226,232,240,.9);border-radius:12px;cursor:pointer;text-align:left;font-size:12px;font-weight:600;line-height:1.25;color:#1e293b;transition:all .15s;text-decoration:none}
.px-tile:hover{border-color:#fda4af;box-shadow:0 4px 14px rgba(234,46,73,.10);transform:translateY(-1px)}
.px-tile i{flex:none;width:28px;height:28px;border-radius:9px;background:#fff1f2;color:var(--red);display:flex;align-items:center;justify-content:center;font-size:12px}

/* compact product card: [photo | name + pack info] then [total | stepper | button] */
.px-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:8px;margin-left:33px}
@media (max-width:640px){.px-cards{margin-left:0;grid-template-columns:1fr}}
.px-card{background:#fff;border:1px solid rgba(226,232,240,.75);border-radius:14px;padding:10px;box-shadow:0 1px 2px rgba(15,23,42,.04);display:flex;flex-direction:column;gap:9px}
.px-ctop{display:flex;gap:10px;min-height:60px}
.px-card img{width:60px;height:60px;object-fit:cover;border-radius:10px;background:var(--s1);border:1px solid var(--s1);flex:none}
.px-ct{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.px-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12.5px;font-weight:700;line-height:1.3;color:var(--ink);text-decoration:none}
.px-name:hover{color:var(--red)}
.px-meta{margin-top:3px;font-size:11px;color:var(--s4)}
.px-act{display:flex;align-items:center;gap:8px;padding-top:9px;border-top:1px solid var(--s1)}
.px-sum{flex:1;min-width:0;line-height:1.2}
.px-sum b{display:block;font-size:15px;font-weight:800;color:var(--ink);letter-spacing:-.01em;white-space:nowrap}
.px-sum small{display:block;margin-top:1px;font-size:10.5px;color:var(--s4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.px-sum.in small{color:var(--green);font-weight:600}
.px-step{flex:none;display:flex;align-items:center;height:32px;background:var(--s1);border-radius:10px;padding:0 1px;user-select:none}
.px-step button{width:24px;height:30px;border:0;background:none;color:var(--s5);font-size:15px;font-weight:700;cursor:pointer;line-height:1;padding:0}
.px-step button:hover{color:var(--ink)}
.px-step span{min-width:20px;text-align:center;font-size:12.5px;font-weight:800;color:var(--ink)}
.px-buy{flex:none;height:32px;border:0;border-radius:10px;background:var(--ink);color:#fff;font-size:11.5px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;transition:background .15s;white-space:nowrap}
.px-buy:hover{background:var(--red)}
.px-buy.in{background:var(--green)}
.px-buy.in:hover{background:var(--green-d)}
.px-buy i{font-size:10.5px}

/* group headings ("Также подойдут …") */
.px-gh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 2px -2px 33px;padding-top:8px;border-top:1px dashed var(--s2)}
.px-gh span{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--s5)}
.px-gh a,.px-more{font-size:11.5px;font-weight:700;color:var(--red);text-decoration:none;white-space:nowrap}
.px-gh a:hover,.px-more:hover{text-decoration:underline}
.px-more{align-self:flex-start;margin-left:33px}
@media (max-width:640px){.px-gh{margin-left:2px}.px-more{margin-left:2px}}

/* chips + form */
.px-chips{display:flex;flex-wrap:wrap;gap:6px;padding:2px 10px 8px;flex:none}
.px-chips:empty{display:none}
.px-chips button{background:#fff;border:1px solid var(--s2);border-radius:999px;padding:5px 11px;font-size:12px;font-weight:600;color:#334155;cursor:pointer;transition:all .15s}
.px-chips button:hover{border-color:var(--red);color:var(--red);background:#fff1f2}
.px-form{display:flex;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--s2);background:#fff;flex:none}
.px-form input{flex:1;min-width:0;height:42px;border:1px solid var(--s2);background:#f8fafc;border-radius:12px;padding:0 13px;font-size:16px;outline:none;color:var(--ink);transition:border-color .15s,box-shadow .15s}
.px-form input::placeholder{color:var(--s4)}
.px-form input:focus{border-color:var(--red);background:#fff;box-shadow:0 0 0 3px rgba(234,46,73,.12)}
.px-form button{flex:none;width:42px;height:42px;border:0;border-radius:12px;background:var(--red);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}
.px-form button:hover{background:var(--red-d)}
.px-form button:disabled{opacity:.5;cursor:default}
.px-dots{display:inline-flex;gap:4px;padding:11px 13px}
.px-dots span{width:6px;height:6px;border-radius:50%;background:var(--s4);animation:px-b 1s infinite}
.px-dots span:nth-child(2){animation-delay:.15s}.px-dots span:nth-child(3){animation-delay:.3s}
@keyframes px-b{0%,80%,100%{transform:translateY(0)}40%{transform:translateY(-5px)}}
@media (prefers-reduced-motion:reduce){.px-dots span{animation:none}}
