/* V31 — customer chat styles + request-list dual buttons + mobile logo resize.
 * Logo rule (scope A): ONLY <800px, only Home/Products/Custom/Factory hero logo
 * shrinks from 111px to 84px (75%). Desktop >=800 and Contact topbar untouched.
 */
/* ---------- mobile-only hero logo shrink ---------- */
@media(max-width:799px){
  .v28-hero-logo img{width:84px}
  .v28-hero.v25-carousel .v28-hero-logo img{width:84px}
  /* keep the copy x-offset tied to the smaller mark's right edge (96px shift) */
  .v28-hero .v26-copy,
  .v28-hero .v25-slide.v26-slide .v26-copy{left:calc(4% + 96px)}
}
/* ---------- customer chat ---------- */
.v31-chat .route-caption{color:#5b6b64}
.v31-banner{border-radius:10px;padding:10px 14px;font-size:13.5px;margin:8px 0}
.v31-banner.on{background:#e7f5ee;border:1px solid #bcdcc9;color:#0b4d34}
.v31-banner.off{background:#fff6e6;border:1px solid #eeddb0;color:#6b5312}
.v31-authbar{background:#f2f6f4;border:1px solid #e2e8e5;border-radius:10px;padding:8px 12px;font-size:13px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.v31-linkbtn{background:none;border:0;color:#075c3d;font-weight:600;text-decoration:underline;padding:0;font:inherit;font-size:13px}
.v31-room{background:#fbfcfb}
.v31-head{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e2e8e5;padding-bottom:10px}
.v31-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#0a7a52;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;border:1px solid #dfe5e2;flex:none}
.v31-avatar.pending{background:#c9d4cd}
.v31-head small{display:block;color:#5b6b64;font-size:12px}
.v31-head .v31-agentline{color:#8a968f}
.v31-status{margin-left:auto;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;flex:none}
.v31-status.on{background:#dff0e7;color:#0b4d34}
.v31-status.off{background:#fdecea;color:#b3372f}
.v31-msgs{display:flex;flex-direction:column;gap:9px;padding:12px 2px;max-height:46vh;overflow-y:auto;min-height:120px}
.v31-msg{display:flex;gap:8px;max-width:88%}
.v31-msg.me{align-self:flex-end}
.v31-msg.me .v31-meta{text-align:right}
.v31-msg .v31-avatar{width:30px;height:30px;font-size:13px}
.v31-bubble{border-radius:12px;padding:9px 12px;background:#fff;border:1px solid #e2e8e5;box-shadow:0 1px 2px rgba(20,40,30,.05);word-break:break-word}
.v31-bubble.me{background:#075c3d;color:#fff;border-color:#075c3d}
.v31-bubble.sys{background:#f2f6f4}
.v31-meta{font-size:11px;color:#8a968f;margin-top:3px}
.v31-sys{align-self:center;color:#5b6b64;font-size:12.5px;background:#eef3f0;border-radius:999px;padding:5px 14px}
.v31-quick{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.v31-quick button{border:1px solid #bcdcc9;background:#fff;color:#075c3d;border-radius:999px;padding:6px 14px;font:inherit;font-size:13px}
.v31-att{max-width:240px;max-height:180px;border-radius:8px;display:block;cursor:zoom-in}
.v31-file{display:inline-flex;gap:6px;align-items:center;font-weight:600;text-decoration:none;color:inherit}
.v31-file span{font-weight:400;color:#8a968f;font-size:12px}
.v31-card{display:flex;flex-direction:column;gap:6px;min-width:220px}
/* R1/V31-07: the card keeps a light panel inside a dark "me" bubble, so every
 * text node gets an explicit dark colour instead of inheriting white. */
.v31-card-item{display:flex;gap:8px;align-items:center;background:#f7faf8;border:1px solid #e2e8e5;border-radius:8px;padding:6px;color:#12211a}
.v31-card-item img{width:48px;height:48px;object-fit:cover;border-radius:6px;background:#fff;border:1px solid #e2e8e5;flex:none}
.v31-card-item .t{font-weight:700;font-size:12.5px;line-height:1.3;color:#0f1a14}
.v31-card-item .s{font-size:11.5px;color:#4f5f57}
.v31-bubble.me .v31-card-item .t{color:#0f1a14}
.v31-bubble.me .v31-card-item .s{color:#4f5f57}
.v31-bubble.me .v31-card-item b{color:#0f1a14}
.v31-compose{border-top:1px solid #e2e8e5;padding-top:10px;display:flex;flex-direction:column;gap:8px}
.v31-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.v31-mini{border:1px solid #bcdcc9;background:#fff;color:#075c3d;border-radius:8px;padding:5px 12px;font:inherit;font-size:13px}
.v31-compose textarea{resize:none;height:62px;width:100%;padding:9px 10px;border:1px solid #dfe5e2;border-radius:8px;font:inherit}
.v31-chips{display:flex;gap:6px;flex-wrap:wrap}
.v31-chip{display:inline-flex;gap:6px;align-items:center;background:#eef3f0;border-radius:999px;padding:3px 10px;font-size:12px}
.v31-chip button{border:0;background:none;color:#b3372f;font-weight:700}
.v31-hint{color:#8a968f;font-size:11.5px;margin:2px 0}
.v31-lead{margin-top:10px;border:1px solid #e2e8e5;border-radius:10px;background:#fff;padding:0 12px}
.v31-lead summary{padding:10px 0;font-weight:600;cursor:pointer;color:#075c3d}
.v31-lead form{padding-bottom:12px;display:flex;flex-direction:column;gap:8px}
.v31-lead label{font-size:12.5px;font-weight:600;margin:2px 0}
.v31-lead input,.v31-lead textarea{padding:8px 10px;border:1px solid #dfe5e2;border-radius:8px;font:inherit;width:100%}
.v31-consent{display:flex;gap:8px;align-items:flex-start;font-weight:400!important}
.v31-leadok{background:#e7f5ee;border:1px solid #bcdcc9;color:#0b4d34;border-radius:8px;padding:8px 12px;font-size:13px}
.v31-leaderr{background:#fdecea;border:1px solid #efc4bf;color:#b3372f;border-radius:8px;padding:8px 12px;font-size:13px}
.v31-history{margin:8px 0;border:1px solid #e2e8e5;border-radius:10px;background:#fff;padding:0 12px}
.v31-history summary{padding:9px 0;font-weight:600;color:#075c3d;cursor:pointer;font-size:13px}
.v31-hist{display:block;width:100%;text-align:left;border:0;background:none;border-top:1px solid #eef1ef;padding:8px 2px;font:inherit;font-size:12.5px;cursor:pointer}
.v31-hist.sel{color:#075c3d;font-weight:700}
.v31-dialog{border:0;border-radius:14px;padding:20px 22px;max-width:380px;width:92vw;box-shadow:0 18px 60px rgba(0,0,0,.25)}
.v31-dialog h3{margin:0 0 6px}
.v31-dialog .phone-fields{display:grid;grid-template-columns:110px 1fr;gap:8px}
.v31-dialog label{display:block;font-size:12.5px;font-weight:600;margin:8px 0 3px}
.v31-dialog input{width:100%;padding:8px 10px;border:1px solid #dfe5e2;border-radius:8px;font:inherit}
.v31-ctxnote{background:#eef3f0;border-radius:8px;padding:7px 12px;font-size:12.5px;color:#0b4d34;margin-top:8px}
/* ---------- request list dual buttons ---------- */
.v31-dual{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 6px}
.v31-dual-btn{width:100%;border-radius:10px;min-height:48px;font-size:15px}
@media(max-width:480px){.v31-dual{gap:8px}.v31-dual-btn{font-size:14px;min-height:44px}}

/* ---------- 54-catalogue keyword search (v31-catalog.js) ---------- */
#v31-catalog-search{margin:10px 0 4px}
.v31-searchrow{display:flex;gap:8px}
.v31-searchrow input{flex:1;padding:10px 12px;border:1px solid #dfe5e2;border-radius:9px;font:inherit}
.v31-searchrow button{background:#075c3d;color:#fff;border:0;border-radius:9px;padding:0 18px;font-weight:600}
.v31-searchnote{font-size:11.5px;color:#8a968f;margin:4px 0 8px}
.v31-searchhit{color:#0b4d34;font-size:13px}
.v31-searchnone{color:#6b5312;font-size:13px}

/* R3: shared country picker (phone-picker.js) inside the v31 WhatsApp lead
 * form and the sign-in/register dialog. The listbox anchors to the whole
 * .searchable-phone row (same as the old preview), opens right under it,
 * never wider than the card, and stacks above the fields that follow. */
.v31-lead .country-results,.v31-dialog .country-results{top:calc(100% + 3px)}
.v31-lead .country-picker,.v31-dialog .country-picker{min-width:0}
.v31-lead .country-picker>input,.v31-dialog .country-picker>input{text-overflow:ellipsis}
.v31-lead .selected-country,.v31-dialog .selected-country{font-size:10px;margin-top:3px}
.v31-dialog .country-results{z-index:80}
