/* Shared widgets: contact buttons, request form, Monika. Colours come from the page's own variables
   (--surface --ink --muted --steel --accent --line --bg), which every page defines. */
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(242,169,0,.6)}70%,100%{box-shadow:0 0 0 16px rgba(242,169,0,0)}}
@keyframes pop{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
#dlg{border:0;border-radius:6px;padding:28px;width:min(440px,92vw);background:var(--surface);color:var(--ink);font:400 17px/1.6 Barlow,system-ui,sans-serif}
#dlg::backdrop{background:rgba(0,0,0,.55)}
#dlg[open]{animation:pop .3s both}
#dlg h3{font-family:"Barlow Condensed","Arial Narrow",sans-serif;font-size:1.6rem;line-height:1.05;margin:0 0 .5em}
#dlg label{display:block;font-weight:500;margin:14px 0 4px}
#dlg input{box-sizing:border-box;width:100%;font:inherit;padding:11px 12px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--ink)}
#dlg input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(242,169,0,.25);outline:none}
#dlg .row{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
#dlg .btn{border:0;font:inherit;font-weight:500;cursor:pointer;background:var(--accent);color:#1B2A33;padding:12px 24px;border-radius:4px;text-decoration:none;margin:0}
#dlg .btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
#dlg .msg{color:var(--muted);margin:8px 0 0}#dlg .err{color:#C0392B}
.float{position:fixed;right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:flex-end;gap:10px;z-index:20;font-family:Barlow,system-ui,sans-serif}
.float .fb{display:flex;align-items:center;gap:10px;border-radius:99px;padding:12px 18px;font:inherit;font-weight:600;border:0;cursor:pointer;text-decoration:none;box-shadow:0 6px 16px rgba(0,0,0,.3);transition:transform .2s}
.float .fb:hover{transform:translateY(-3px)}.float .fb svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.float .fb.main{background:var(--accent);color:#1B2A33;animation:pulse 2.2s infinite}.float .fb.sec{background:var(--steel);color:#fff;border:1px solid rgba(255,255,255,.25)}
.float .fb.wa{background:#25D366;color:#fff}
.float .fb.wa,.float #fc{position:fixed;left:14px;right:auto}.float #fc{bottom:calc(14px + env(safe-area-inset-bottom,0px))}.float .fb.wa{bottom:calc(72px + env(safe-area-inset-bottom,0px))}.float .fb.wa svg{fill:currentColor;stroke:none}
@media (max-width:480px){.float .fb{padding:11px 14px;font-size:.95rem}}
@media (max-width:760px){
body{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
.float{left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;align-items:stretch;background:var(--surface);border-top:1px solid var(--line);padding:7px 7px calc(7px + env(safe-area-inset-bottom,0px))}
.float .fb,.float .fb.wa,.float #fc{position:static;flex-direction:column;justify-content:center;gap:3px;border-radius:10px;padding:7px 2px;font-size:.72rem;line-height:1.15;text-align:center;box-shadow:none;animation:none}
.float .fb:hover{transform:none}
}
@media (prefers-reduced-motion:reduce){.float .fb.main{animation:none}}
/* ---- Shop assistant chat ---- */
.ag-open{position:fixed;right:18px;bottom:calc(138px + env(safe-area-inset-bottom,0px));z-index:25;width:66px;height:66px;padding:0;border-radius:50%;border:3px solid #fff;background:#FFE7B0;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.35);transition:transform .2s}
.ag-open:hover{transform:scale(1.07)}.ag-open img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.ag-dot{position:absolute;right:1px;bottom:3px;width:17px;height:17px;border-radius:50%;background:#22C55E;border:3px solid #fff;box-sizing:border-box}
.ag-dot::after{content:"";position:absolute;inset:-3px;border-radius:50%;border:2px solid #22C55E;animation:agPing 1.6s ease-out infinite}
.ag-tip{position:absolute;right:76px;top:50%;transform:translateY(-50%);white-space:nowrap;background:#fff;color:#1B2A33;font:600 .85rem Barlow,system-ui,sans-serif;padding:7px 12px;border-radius:99px;box-shadow:0 4px 14px rgba(0,0,0,.22)}
.ag-open[aria-expanded="true"] .ag-tip{display:none}
@keyframes agPing{from{transform:scale(1);opacity:.9}to{transform:scale(2.3);opacity:0}}
.ag-panel{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:60;width:min(380px,calc(100vw - 24px));height:min(580px,calc(100vh - 100px));height:min(580px,calc(100dvh - 100px));padding:0;display:flex;flex-direction:column;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 22px 60px rgba(0,0,0,.35);text-align:left}
.ag-panel[hidden]{display:none}
body.ag-on .ag-open{display:none}
.ag-head{display:flex;align-items:center;gap:10px;background:#1F3A4D;color:#fff;padding:11px 14px}
.ag-face{flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;border:2px solid #fff}.ag-face img{display:block;width:100%;height:100%;object-fit:cover}
.ag-title{flex:1;line-height:1.25}.ag-title b{display:block}.ag-title small{display:flex;align-items:center;gap:6px;color:#CFE0EC}
.ag-title small i{width:9px;height:9px;border-radius:50%;background:#22C55E;box-shadow:0 0 0 3px rgba(34,197,94,.3)}
.ag-close{background:none;border:0;color:#fff;font-size:1.9rem;line-height:1;cursor:pointer;padding:4px 8px}
.ag-log{flex:1 1 0;min-height:120px;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:9px;background:var(--bg);overscroll-behavior:contain}
.ag-msg{max-width:86%;padding:10px 13px;border-radius:15px;font-size:.95rem;line-height:1.45;white-space:pre-line;overflow-wrap:anywhere;flex:none}
.ag-msg.bot{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:4px}
.ag-msg.me{align-self:flex-end;background:#1F3A4D;color:#fff;border-bottom-right-radius:4px}
.ag-typing{display:flex;align-items:center;gap:5px;min-height:40px;padding:12px 16px}.ag-typing i{width:9px;height:9px;border-radius:50%;background:#7C8B95;animation:agDot 1.2s infinite ease-in-out}.ag-typing i:nth-child(2){animation-delay:.2s}.ag-typing i:nth-child(3){animation-delay:.4s}
@keyframes agDot{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-6px);opacity:1}}
@keyframes agBlink{0%,60%,100%{opacity:.3}30%{opacity:1}}
.ag-writing .ag-title small{color:#4ADE80;font-style:italic}
.ag-chips{display:flex;flex-wrap:wrap;gap:7px;padding:9px 12px 0;max-height:min(190px,28vh);flex:0 1 auto;min-height:48px;overflow-y:auto}.ag-chips:empty{display:none}
.ag-chips button{font:500 .87rem Barlow,system-ui,sans-serif;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:99px;padding:8px 13px;cursor:pointer}
.ag-chips button:hover{border-color:#F2A900}
.ag-chips button.primary{background:#F2A900;border-color:#F2A900;color:#1B2A33;font-weight:600}
.ag-chips button.wa{background:#25D366;border-color:#25D366;color:#fff;font-weight:600}
.ag-form{display:flex;gap:8px;padding:10px 12px 12px}
.ag-form .ag-input{flex:1;min-width:0;font:inherit;font-size:16px;padding:10px 13px;border:1px solid var(--line);border-radius:99px;background:var(--bg);color:var(--ink)}
.ag-form button{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:#1F3A4D;color:#fff;font-size:1.1rem;cursor:pointer}
.ag-form .ag-trap{position:absolute;left:-9999px;width:1px;height:1px}
.ag-head .ag-lang{flex:none;max-width:104px;height:34px;border-radius:99px;border:1px solid rgba(255,255,255,.5);background:#1F3A4D;color:#fff;font:600 .82rem Barlow,system-ui,sans-serif;padding:0 6px;cursor:pointer}
.ag-lang option{background:#fff;color:#1B2A33}
.ag-head{gap:6px}.ag-head .ag-title{min-width:0}.ag-head .ag-title small{white-space:nowrap;font-size:.75rem;gap:5px}
@media (max-width:760px){
.ag-open{right:12px;bottom:calc(80px + env(safe-area-inset-bottom,0px));width:60px;height:60px}.ag-tip{display:none}
.ag-panel{right:8px;left:8px;width:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));height:calc(100vh - 84px);height:calc(100dvh - 84px)}
}
@media (prefers-reduced-motion:reduce){.ag-dot::after{animation:none}.ag-typing i{animation-name:agBlink}}
