.pjai-root {
--pjai-primary: #1a3b20;
--pjai-accent: #f2971f;
--pjai-soft: #ebf4eb;
--pjai-bg: #f6f8f5;
--pjai-border: #dfe7dc;
--pjai-text: #1f2a21;
--pjai-muted: #5f6f62;
--pjai-ok: #2f7d32;
--pjai-warn: #b45309;
--pjai-bad: #b42318;
position: fixed;
bottom: 20px;
z-index: 999990;
font-family: inherit;
font-size: 14px;
line-height: 1.45;
color: var(--pjai-text);
-webkit-font-smoothing: antialiased;
}
.pjai-root *, .pjai-root *::before, .pjai-root *::after { box-sizing: border-box; }
.pjai-root button, .pjai-root input, .pjai-root textarea { font-family: inherit; text-transform: none; letter-spacing: normal; }
.pjai-root p { margin: 0; }
.pjai-pos-right { right: 20px; }
.pjai-pos-left { left: 20px; } .pjai-launcher {
display: flex; align-items: center; gap: 10px;
height: 58px; min-width: 58px; padding: 0 18px 0 16px;
border: 0; border-radius: 999px; cursor: pointer;
background: var(--pjai-primary); color: #fff;
box-shadow: 0 8px 24px rgba(16, 40, 20, .28);
font: inherit; font-weight: 600; font-size: 14px;
transition: transform .15s ease, box-shadow .15s ease;
}
.pjai-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 40, 20, .32); }
.pjai-launcher:focus-visible { outline: 3px solid var(--pjai-accent); outline-offset: 3px; }
.pjai-pos-left .pjai-launcher { flex-direction: row; }
.pjai-is-open .pjai-launcher-label { display: none; }
.pjai-is-open .pjai-launcher { padding: 0; width: 58px; justify-content: center; } .pjai-panel {
position: absolute; bottom: 72px;
width: 392px; height: min(640px, calc(100vh - 110px - var(--pjai-lift, 0px)));
display: flex; flex-direction: column;
background: #fff; border-radius: 18px; overflow: hidden;
box-shadow: 0 18px 50px rgba(16, 40, 20, .25), 0 2px 6px rgba(0, 0, 0, .06);
animation: pjai-in .18s ease-out;
}
.pjai-panel[hidden] { display: none; }
.pjai-pos-right .pjai-panel { right: 0; }
.pjai-pos-left .pjai-panel { left: 0; }
@keyframes pjai-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pjai-header {
display: flex; align-items: center; gap: 10px;
padding: 12px 12px 12px 14px;
background: var(--pjai-primary); color: #fff;
}
.pjai-avatar {
flex: 0 0 36px; height: 36px; border-radius: 50%;
display: grid; place-items: center;
background: rgba(255, 255, 255, .14); color: #fff;
}
.pjai-titles { flex: 1; min-width: 0; }
.pjai-title { font-weight: 700; font-size: 15px; }
.pjai-subtitle { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pjai-icon-btn {
width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer;
display: grid; place-items: center; background: transparent; color: #fff;
}
.pjai-icon-btn:hover { background: rgba(255, 255, 255, .14); }
.pjai-icon-btn:focus-visible { outline: 2px solid #fff; }
.pjai-body {
flex: 1; overflow-y: auto; overscroll-behavior: contain;
padding: 14px 12px 8px; background: var(--pjai-bg);
display: flex; flex-direction: column; gap: 8px;
} .pjai-msg {
max-width: 86%; padding: 9px 12px; border-radius: 14px;
white-space: pre-line; word-wrap: break-word;
}
.pjai-bot { align-self: flex-start; background: #fff; border: 1px solid var(--pjai-border); border-bottom-left-radius: 4px; }
.pjai-user { align-self: flex-end; background: var(--pjai-primary); color: #fff; border-bottom-right-radius: 4px; }
.pjai-notice {
align-self: stretch; padding: 9px 12px; border-radius: 12px;
background: #fff8ec; border: 1px solid #f5dfb8; border-left: 4px solid var(--pjai-accent);
font-size: 12.5px; color: #5b4630;
}
.pjai-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.pjai-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9db29f; animation: pjai-dot 1.1s infinite ease-in-out; }
.pjai-typing span:nth-child(2) { animation-delay: .15s; }
.pjai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pjai-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } } .pjai-list { align-self: stretch; display: flex; flex-direction: column; gap: 14px; padding-top: 7px; }
.pjai-card {
position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 10px; row-gap: 8px;
padding: 10px; background: #fff; border: 1px solid var(--pjai-border); border-radius: 14px;
}
.pjai-root .pjai-card-img {
display: block; width: 84px; height: 84px; padding: 4px; margin: 0;
background: #fff; border: 1px solid #eef2ec; border-radius: 10px; overflow: hidden;
}
.pjai-root .pjai-card-img img {
display: block; width: 100% !important; height: 100% !important; max-width: none; max-height: none;
object-fit: contain; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
}
.pjai-badge {
position: absolute; top: -7px; left: 10px; z-index: 1;
padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.5;
background: var(--pjai-primary); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.pjai-badge-value { background: var(--pjai-accent); }
.pjai-badge-eco, .pjai-badge-cheapest { background: #2f6f4a; }
.pjai-badge-over { background: var(--pjai-warn); }
.pjai-card-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pjai-root .pjai-card-name {
color: var(--pjai-text); font-weight: 700; font-size: 13.5px; line-height: 1.3; text-decoration: none; text-transform: none; letter-spacing: normal;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.pjai-card-name:hover { text-decoration: underline; }
.pjai-card-brand { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--pjai-muted); }
.pjai-price { margin-top: 2px; }
.pjai-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1.3; }
.pjai-price-label { font-size: 12px; color: var(--pjai-muted); }
.pjai-price-now { font-size: 15px; color: var(--pjai-primary); }
.pjai-price-sale { color: #b42318; }
.pjai-price-old { color: var(--pjai-muted); font-size: 12.5px; }
.pjai-savings { font-size: 12px; font-weight: 700; color: #b42318; }
.pjai-unit { font-size: 11px; color: var(--pjai-muted); }
.pjai-stock { font-size: 12px; font-weight: 600; }
.pjai-stock-in { color: var(--pjai-ok); }
.pjai-stock-low { color: var(--pjai-warn); }
.pjai-stock-out { color: var(--pjai-bad); }
.pjai-root .pjai-reason { margin: 2px 0 0; padding: 0; font-size: 12px; line-height: 1.35; color: #3e4c40; }
.pjai-card-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pjai-card-actions .pjai-btn:only-child { grid-column: 1 / -1; }
.pjai-root .pjai-btn {
text-transform: none; letter-spacing: normal; line-height: 1.2; box-shadow: none; white-space: nowrap; width: auto; margin: 0;
}
.pjai-btn {
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
min-height: 36px; padding: 7px 12px; border-radius: 10px; cursor: pointer;
font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center;
border: 1.5px solid var(--pjai-primary); background: #fff; color: var(--pjai-primary);
}
.pjai-btn:hover { background: var(--pjai-soft); }
.pjai-btn-add { background: var(--pjai-accent); border-color: var(--pjai-accent); color: #fff; }
.pjai-btn-add:hover { background: #dc8412; border-color: #dc8412; }
.pjai-btn:focus-visible { outline: 3px solid rgba(242, 151, 31, .45); outline-offset: 1px; }
.pjai-btn[disabled] { opacity: .65; cursor: default; }
.pjai-btn.pjai-loading { opacity: .7; }
.pjai-btn.pjai-added { background: var(--pjai-ok); border-color: var(--pjai-ok); }
.pjai-btn-sm { min-height: 30px; padding: 4px 9px; font-size: 12px; } .pjai-chips-wrap { align-self: stretch; }
.pjai-chips-title { font-size: 12px; color: var(--pjai-muted); margin: 2px 2px 6px; }
.pjai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pjai-chip {
display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px;
border: 1px solid #c9d8c6; border-radius: 999px; background: #fff; color: var(--pjai-primary);
font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.pjai-chip:hover { background: var(--pjai-soft); border-color: var(--pjai-primary); }
.pjai-chip:focus-visible { outline: 3px solid rgba(242, 151, 31, .45); } .pjai-compare { align-self: stretch; background: #fff; border: 1px solid var(--pjai-border); border-radius: 14px; padding: 8px; }
.pjai-compare-scroll { overflow-x: auto; }
.pjai-compare-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.pjai-compare-table th, .pjai-compare-table td { padding: 6px 7px; border-bottom: 1px solid #eef2ec; text-align: left; vertical-align: top; min-width: 120px; }
.pjai-compare-table tbody th { position: sticky; left: 0; background: var(--pjai-soft); color: var(--pjai-muted); font-weight: 600; min-width: 92px; }
.pjai-compare-table thead th { border-bottom: 2px solid var(--pjai-border); }
.pjai-compare-corner { background: #fff; }
.pjai-compare-prod { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--pjai-text); font-weight: 700; font-size: 12px; line-height: 1.25; }
.pjai-compare-prod img { width: 56px; height: 56px; object-fit: contain; }
.pjai-compare-actions td { display: table-cell; }
.pjai-compare-actions .pjai-btn { margin: 0 4px 0 0; }
.pjai-compare-expl { margin: 8px 4px 4px; font-size: 13px; }
.pjai-compare-summary { margin: 6px 4px 4px 18px; padding: 0; font-size: 12.5px; }
.pjai-compare-summary li { margin: 2px 0; }
.pjai-compare-note { font-size: 11px; color: var(--pjai-muted); margin: 4px; } .pjai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e8eee6; background: #fff; }
.pjai-input {
flex: 1; resize: none; min-height: 40px; max-height: 110px; padding: 9px 12px;
border: 1px solid #cfdacc; border-radius: 12px; font: inherit; font-size: 14px; color: var(--pjai-text); background: #fff;
}
.pjai-input:focus { outline: none; border-color: var(--pjai-primary); box-shadow: 0 0 0 3px rgba(26, 59, 32, .12); }
.pjai-send {
flex: 0 0 40px; height: 40px; border: 0; border-radius: 12px; cursor: pointer;
display: grid; place-items: center; background: var(--pjai-accent); color: #fff;
}
.pjai-send:hover { background: #dc8412; }
.pjai-send[disabled] { opacity: .55; cursor: default; }
.pjai-privacy { padding: 0 12px 8px; font-size: 10.5px; color: var(--pjai-muted); text-align: center; background: #fff; } @media (max-width: 600px) {
.pjai-root { bottom: 14px; }
.pjai-pos-right { right: 14px; }
.pjai-pos-left { left: 14px; }
.pjai-launcher-label { display: none; }
.pjai-launcher { width: 56px; height: 56px; padding: 0; justify-content: center; }
.pjai-panel {
position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
border-radius: 0; bottom: 0;
}
.pjai-is-open .pjai-launcher { display: none; }
.pjai-form { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
.pjai-panel, .pjai-typing span, .pjai-launcher { animation: none; transition: none; }
.pjai-cards { scroll-behavior: auto; }
}