/* Max Bro pop-up. Self-contained so it works with any theme. */
.maxbro{--mb-red:#a80f12;--mb-red-h:#c41418;--mb-red-d:#6d1418;--mb-navy:#16122b;--mb-ink:#15151a;--mb-mute:#666b73;--mb-bg:#f3f4f6;--mb-line:#e3e5e9;--mb-ok:#16803c;--mb-gold:#f1c98b;--mb-wa:#1faa53;
 font-family:Poppins,Montserrat,Arial,sans-serif;color:var(--mb-ink);font-size:14.5px;line-height:1.5}
.maxbro *,.maxbro *:before,.maxbro *:after{box-sizing:border-box}
.maxbro button{font-family:inherit}
.maxbro [hidden]{display:none!important}
html.maxbro-lock{overflow:hidden}
@media (min-width:641px){html.maxbro-lock{overflow:auto}}

/* icon (cartoon mascot removed 9 Nov 2026) */
.maxbro-svg{display:block;width:100%;height:100%}

/* launcher */
.maxbro-launch{position:fixed;left:18px;bottom:18px;z-index:9990;display:flex;align-items:center;gap:10px;padding:5px 18px 5px 5px;border-radius:999px;border:0;cursor:pointer;
 background:var(--mb-navy);color:#fff;box-shadow:0 12px 30px rgba(22,18,43,.35);transition:transform .15s,box-shadow .15s;text-align:left}
.maxbro-launch:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(22,18,43,.45)}
.maxbro-launch-face{width:48px;height:48px;border-radius:50%;border:2px solid #fff;overflow:hidden;flex:none}
.maxbro-launch-text{display:flex;flex-direction:column;line-height:1.15}
.maxbro-launch-text small{font-size:11px;color:var(--mb-gold);font-weight:500}
.maxbro-launch-text b{font-size:15px;font-weight:700}
.maxbro.is-open .maxbro-launch{opacity:0;pointer-events:none}

.maxbro-teaser{position:fixed;left:18px;bottom:84px;z-index:9991;max-width:270px;background:#fff;border:2px solid var(--mb-ink);border-radius:16px 16px 16px 4px;padding:12px 30px 12px 14px;box-shadow:0 14px 30px rgba(20,20,30,.18);cursor:pointer;animation:mbPop .35s cubic-bezier(.2,1.4,.4,1)}
.maxbro-teaser p{margin:0;font-size:13.5px;line-height:1.45}
.maxbro-teaser b{color:var(--mb-red)}
.maxbro-teaser-x{position:absolute;top:4px;right:6px;border:0;background:none;font-size:20px;line-height:1;cursor:pointer;color:var(--mb-mute);padding:2px 6px}
@keyframes mbPop{from{opacity:0;transform:translateY(10px) scale(.9)}to{opacity:1;transform:none}}

/* panel */
.maxbro-panel{position:fixed;left:18px;bottom:18px;z-index:9995;width:410px;height:min(700px,calc(100vh - 36px));background:var(--mb-bg);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;
 box-shadow:0 30px 70px rgba(20,20,30,.35);animation:mbOpen .25s ease-out}
@keyframes mbOpen{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
.maxbro-head{position:relative;display:flex;align-items:center;gap:12px;padding:12px 12px 14px 14px;color:#fff;background:linear-gradient(112deg,var(--mb-navy) 0,#221c3f 70%,var(--mb-red-d) 70.2%)}
.maxbro-head-face{width:44px;height:44px;border-radius:50%;border:2px solid #fff;overflow:hidden;flex:none}
.maxbro-head-t{flex:1;display:flex;flex-direction:column;line-height:1.2}
.maxbro-head-t b{font-size:16px}
.maxbro-head-t small{font-size:12px;color:rgba(255,255,255,.75);display:flex;align-items:center;gap:6px}
.maxbro-head-t small i{width:8px;height:8px;border-radius:50%;background:#3ddc84}
.maxbro-head button{border:0;background:rgba(255,255,255,.1);color:#fff;width:36px;height:36px;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.maxbro-head button:hover{background:rgba(255,255,255,.22)}
.maxbro-head button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.maxbro-progress{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.15)}
.maxbro-progress i{display:block;height:100%;width:0;background:var(--mb-gold);transition:width .4s}

.maxbro-log{flex:1;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth;overscroll-behavior:contain}
.maxbro-row{display:flex;gap:8px;align-items:flex-end;animation:mbIn .22s ease-out}
@keyframes mbIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.maxbro-ava{width:30px;height:30px;border-radius:50%;overflow:hidden;flex:none}
.maxbro-row+.maxbro-bot .maxbro-ava{visibility:visible}
.maxbro-bot+.maxbro-bot .maxbro-ava{visibility:hidden}
.maxbro-bubble{max-width:82%;background:#fff;border:1px solid var(--mb-line);border-radius:16px 16px 16px 4px;padding:9px 13px;font-size:14.5px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.maxbro-bubble p{margin:0 0 6px}
.maxbro-bubble b{font-weight:600}
.maxbro-me{justify-content:flex-end}
.maxbro-me .maxbro-bubble{background:var(--mb-red);border-color:var(--mb-red);color:#fff;border-radius:16px 16px 4px 16px;font-weight:500}
.maxbro-wide .maxbro-bubble{max-width:calc(100% - 38px);width:100%}
.maxbro-typing .maxbro-bubble{display:flex;gap:4px;padding:13px 14px}
.maxbro-typing .maxbro-bubble i{width:7px;height:7px;border-radius:50%;background:#b4b8bf;animation:mbDot 1s infinite}
.maxbro-typing .maxbro-bubble i:nth-child(2){animation-delay:.15s}
.maxbro-typing .maxbro-bubble i:nth-child(3){animation-delay:.3s}
@keyframes mbDot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}

/* answer area */
.maxbro-input{background:#fff;border-top:1px solid var(--mb-line);padding:12px 14px 14px;display:flex;flex-direction:column;gap:8px;max-height:48%;overflow-y:auto}
.maxbro-input:empty{display:none}
.maxbro-chips{display:flex;flex-wrap:wrap;gap:8px}
.maxbro-cols{display:grid;grid-template-columns:1fr 1fr}
.maxbro-chip{border:1.5px solid var(--mb-line);background:#fff;border-radius:12px;padding:10px 12px;font-size:14px;font-weight:500;cursor:pointer;color:var(--mb-ink);text-align:left;transition:border-color .12s,background .12s;line-height:1.3}
.maxbro-chips:not(.maxbro-cols) .maxbro-chip{flex:1 1 auto;text-align:center}
.maxbro-chip:hover{border-color:var(--mb-ink)}
.maxbro-chip.is-on{border-color:var(--mb-red);background:#fdecec;color:var(--mb-red-d);box-shadow:inset 0 0 0 1px var(--mb-red)}
.maxbro-multi{display:flex;flex-direction:column;gap:10px}
.maxbro-go{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:10px;border:0;background:var(--mb-red);color:#fff;font-weight:600;font-size:14.5px;cursor:pointer;text-decoration:none;transition:background .15s}
.maxbro-go:hover{background:var(--mb-red-h);color:#fff}
.maxbro-go:disabled{background:#c4c8cf;cursor:not-allowed}
.maxbro-big{width:100%;min-height:50px;font-size:15.5px}
.maxbro-wa{background:var(--mb-wa)}.maxbro-wa:hover{background:#17914a}
.maxbro-done{background:var(--mb-ok)}
.maxbro-back{align-self:flex-start;border:0;background:none;color:var(--mb-mute);font-size:13px;font-weight:500;cursor:pointer;padding:2px 0}
.maxbro-back:hover{color:var(--mb-red)}
.maxbro-form{display:flex;flex-direction:column;gap:10px}
.maxbro-numrow{display:flex;gap:8px;align-items:center}
.maxbro-numrow input,.maxbro-numrow select{flex:1;min-width:0;height:48px;border:1.5px solid #cfd2d8;border-radius:10px;padding:0 14px;font-size:17px;font-weight:600;font-family:inherit;background:#fff;color:var(--mb-ink)}
.maxbro-numrow input:focus,.maxbro-numrow select:focus{outline:0;border-color:var(--mb-ink)}
.maxbro-numrow .maxbro-go{flex:none}
.maxbro-unit{color:var(--mb-mute);font-size:14px}
.maxbro-toggle{display:inline-flex;align-self:flex-start;background:var(--mb-bg);border-radius:999px;padding:3px}
.maxbro-toggle button{border:0;background:none;border-radius:999px;padding:5px 14px;font-size:13px;font-weight:500;cursor:pointer;color:var(--mb-mute)}
.maxbro-toggle button.is-on{background:#fff;color:var(--mb-ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.maxbro-hint{margin:0;color:var(--mb-red);font-size:13px;font-weight:500}

/* results */
.maxbro-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.maxbro-stats div{background:var(--mb-bg);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column}
.maxbro-stats b{font-size:20px;font-weight:700;color:var(--mb-red);line-height:1.1}
.maxbro-stats span{font-size:12px;color:var(--mb-mute)}
.maxbro-fine{margin:8px 0 0!important;font-size:11.5px;color:var(--mb-mute)}
.maxbro-item p{font-size:13.5px;color:#3d4148}
.maxbro-how{background:var(--mb-bg);border-radius:8px;padding:6px 10px}
.maxbro-item-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.maxbro-item-head b{font-size:15.5px}
.maxbro-num{width:24px;height:24px;border-radius:50%;background:var(--mb-ink);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.maxbro-tag{margin-left:auto;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;padding:3px 8px;border-radius:999px;background:#fdecec;color:var(--mb-red)}
.maxbro-tag.is-opt{background:var(--mb-bg);color:var(--mb-mute)}
.maxbro-tag.is-have{background:#e8f6ec;color:var(--mb-ok);text-transform:none;letter-spacing:0}
.maxbro-prod{display:grid;grid-template-columns:64px 1fr;gap:4px 10px;align-items:center;border:1px solid var(--mb-line);border-radius:12px;padding:8px;margin-top:8px;background:#fff}
.maxbro-prod-img{grid-row:span 2;width:64px;height:64px;display:block}
.maxbro-prod-img img{width:100%;height:100%;object-fit:contain}
.maxbro-prod-body{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.maxbro-prod-body small{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mb-mute)}
.maxbro-prod-name{color:var(--mb-ink);font-size:13.5px;font-weight:500;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.maxbro-prod-name:hover{color:var(--mb-red)}
.maxbro-price{font-size:12px;color:var(--mb-mute)}
.maxbro-price b{font-size:15px;color:var(--mb-red);font-weight:700}
.maxbro-price del{color:#8a8f97}
.maxbro-prod-act{grid-column:2}
.maxbro-add{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:var(--mb-ink);color:#fff;font-size:12.5px;font-weight:600;padding:7px 12px;cursor:pointer;text-decoration:none}
.maxbro-add:hover{background:var(--mb-red);color:#fff}
.maxbro-add.is-added{background:var(--mb-ok)}
.maxbro-add-link{background:#fff;color:var(--mb-ink);border:1.5px solid var(--mb-ink)}
.maxbro-add-link:hover{background:var(--mb-ink);color:#fff}
.maxbro-prod.is-small{grid-template-columns:48px 1fr auto;padding:6px}
.maxbro-prod.is-small .maxbro-prod-img{width:48px;height:48px;grid-row:auto}
.maxbro-prod.is-small .maxbro-prod-act{grid-column:auto}
.maxbro-alts{margin-top:8px}
.maxbro-alts summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--mb-red)}
.maxbro-final{display:flex;flex-direction:column;gap:8px}
.maxbro-total{margin:0;font-size:14px;text-align:center}
.maxbro-total b{color:var(--mb-red)}

/* inline button from the shortcode / theme */
.maxbro-inline-btn{display:inline-flex;align-items:center;gap:10px;border:0;cursor:pointer;background:var(--mb-navy,#16122b);color:#fff;border-radius:999px;padding:5px 20px 5px 5px;font:600 14.5px Poppins,Arial,sans-serif}
.maxbro-inline-btn .maxbro-svg{width:40px;height:40px;border-radius:50%}
.maxbro-inline-btn:hover{background:#a80f12}

@media (max-width:640px){
 .maxbro-panel{left:0;right:0;bottom:0;top:0;width:auto;height:auto;border-radius:0}
 .maxbro-launch{left:12px;bottom:12px;padding:4px 14px 4px 4px}
 .maxbro-launch-face{width:44px;height:44px}
 .maxbro-launch-text small{display:none}
 .maxbro-teaser{left:12px;bottom:72px;max-width:calc(100vw - 100px)}
 .maxbro-input{max-height:55%}
}
@media (prefers-reduced-motion:reduce){.maxbro *{animation:none!important;transition:none!important}}
.maxbro-go.maxbro-done{background:var(--mb-ok)}

/* product mode */
.maxbro-chip.is-asked{color:var(--mb-mute);background:var(--mb-bg)}
.maxbro-muted{color:var(--mb-mute);font-size:12.5px}
.maxbro-bubble del{color:#8a8f97}
.maxbro-bubble i{font-style:italic}
.maxbro-wa-link{background:var(--mb-wa);margin-top:6px}
.maxbro-wa-link:hover{background:#17914a}
.maxbro-pbtn{display:flex;align-items:center;gap:12px;width:100%;margin:12px 0;padding:10px 14px;border:1.5px solid #16122b;border-radius:12px;background:#fff;color:#15151a;cursor:pointer;text-align:left;font-family:Poppins,Arial,sans-serif;transition:background .15s,color .15s}
.maxbro-pbtn .maxbro-svg{width:40px;height:40px;flex:none}
.maxbro-pbtn span{display:flex;flex-direction:column;line-height:1.3}
.maxbro-pbtn b{font-size:15px;font-weight:600}
.maxbro-pbtn small{font-size:12.5px;color:#666b73}
.maxbro-pbtn:hover{background:#16122b;color:#fff}
.maxbro-pbtn:hover small{color:#f1c98b}
.maxbro-qs{gap:6px}
.maxbro-chips.maxbro-qs .maxbro-chip{flex:0 1 auto;text-align:left;padding:7px 11px;font-size:13px;border-radius:999px}
