/* V4.11.0 · WhatsApp 375 fast chat + media gallery */
.wa375NoScroll{overflow:hidden!important}
.wa375HeaderActions{margin-left:auto;display:flex;align-items:center;gap:7px}
.wa375History{position:sticky;top:0;z-index:4;display:flex;justify-content:center;align-items:center;gap:10px;padding:5px 8px;background:linear-gradient(#efeae2 72%,transparent);font-size:11px}
.wa375History button{padding:6px 10px;border-radius:999px}
.wa375Overlay,.wa375Viewer{position:fixed;inset:0;z-index:10050;background:rgba(15,23,42,.72);display:flex;align-items:center;justify-content:center;padding:22px}
.wa375Overlay.hidden,.wa375Viewer.hidden{display:none!important}
.wa375GalleryPanel{width:min(1180px,96vw);height:min(820px,92vh);background:#fff;border-radius:18px;box-shadow:0 24px 80px #0005;display:grid;grid-template-rows:auto auto 1fr;overflow:hidden}
.wa375GalleryPanel>header,.wa375Viewer>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e5e7eb;background:#fff}
.wa375GalleryPanel>header>div{display:flex;align-items:baseline;gap:4px;min-width:0}
.wa375GalleryPanel>header b{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wa375GalleryPanel>header span{color:#64748b;font-size:12px}
.wa375GalleryPanel>header button,.wa375Viewer>header button{border:0;background:#f1f5f9;width:36px;height:36px;border-radius:50%;font-size:24px;cursor:pointer}
.wa375GalleryTools{padding:12px 14px;border-bottom:1px solid #eef2f7;background:#f8fafc;display:grid;gap:10px}
.wa375GalleryTools input{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;font:inherit;background:#fff}
.wa375GalleryTabs{display:flex;gap:7px;flex-wrap:wrap}
.wa375GalleryTabs button{border:1px solid #dbe3ea;background:#fff;border-radius:999px;padding:7px 11px;font-weight:700;font-size:12px;cursor:pointer}
.wa375GalleryTabs button.active{background:#0f766e;color:#fff;border-color:#0f766e}
.wa375GalleryGrid{overflow:auto;padding:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;align-content:start}
.wa375GalleryLoading{grid-column:1/-1;text-align:center;padding:50px;color:#64748b}
.wa375MediaCard{position:relative;min-height:140px;border:1px solid #e5e7eb;border-radius:13px;background:#fff;padding:9px;text-decoration:none;color:#0f172a;display:grid;gap:5px;align-content:start;cursor:pointer;text-align:left;overflow:hidden}
.wa375MediaCard:hover{border-color:#94a3b8;box-shadow:0 8px 24px #0f172a12}
.wa375MediaCard.photo{padding:0;min-height:170px;background:#e5e7eb}
.wa375MediaCard.photo img{width:100%;height:145px;object-fit:cover;display:none;background:#e5e7eb}
.wa375MediaCard.photo img.ready{display:block}
.wa375MediaCard.photo>span,.wa375MediaCard.photo>small{margin:0 8px 6px}
.wa375ThumbSkeleton{height:145px;display:grid;place-items:center;color:#64748b;background:#e5e7eb}
.wa375MediaIcon{height:76px;display:grid;place-items:center;font-size:34px;background:#f8fafc;border-radius:9px}
.wa375MediaCard b{font-size:13px}.wa375MediaCard span{font-size:11px;color:#64748b}.wa375MediaCard small{font-size:10px;color:#64748b;overflow:hidden;text-overflow:ellipsis;word-break:break-word}
.wa375Viewer{z-index:10060;background:rgba(0,0,0,.92);padding:0;display:grid;grid-template-rows:auto 1fr auto}
.wa375Viewer>header{background:rgba(17,24,39,.88);color:#fff;border:0;padding:10px 16px}
.wa375Viewer>header>div{display:grid;gap:2px;min-width:0}.wa375Viewer>header span{font-size:11px;color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wa375Viewer>header button{background:#ffffff18;color:#fff}
.wa375Viewer main{min-height:0;display:flex;align-items:center;justify-content:center;padding:18px 70px 10px;overflow:hidden}
.wa375Viewer main img,.wa375Viewer main video{max-width:100%;max-height:calc(100vh - 175px);object-fit:contain;border-radius:4px}
.wa375Viewer main audio{width:min(700px,90vw)}
.wa375Viewer main iframe{width:min(1100px,90vw);height:calc(100vh - 190px);border:0;background:#fff;border-radius:6px}
.wa375ViewerLoading{color:#fff;font-weight:700}
.wa375ViewerNav{position:fixed;top:50%;transform:translateY(-50%);z-index:2;border:0;width:48px;height:48px;border-radius:50%;background:#ffffff22;color:#fff;font-size:38px;line-height:1;cursor:pointer}
.wa375ViewerNav:hover{background:#ffffff40}.wa375ViewerNav.prev{left:22px}.wa375ViewerNav.next{right:22px}
.wa375Viewer footer{height:88px;display:flex;align-items:center;gap:7px;overflow-x:auto;padding:8px 60px 12px;background:rgba(17,24,39,.88)}
.wa375ViewerThumb{flex:0 0 66px;height:66px;border:2px solid transparent;border-radius:7px;background:#334155;color:#fff;overflow:hidden;display:grid;place-items:center;cursor:pointer;padding:0}
.wa375ViewerThumb.active{border-color:#10b981}.wa375ViewerThumb img{width:100%;height:100%;object-fit:cover}.wa375ViewerThumb span{font-size:16px}
.wa375DownloadCard{display:grid;gap:15px;place-items:center;color:#fff;font-size:20px}.wa375DownloadCard a{background:#10b981;color:#fff;border-radius:10px;padding:10px 15px;text-decoration:none}
@media(max-width:700px){
 .wa375Overlay{padding:0}.wa375GalleryPanel{width:100vw;height:100vh;border-radius:0}
 .wa375GalleryGrid{grid-template-columns:repeat(3,1fr);gap:4px;padding:5px}.wa375MediaCard{border-radius:6px;min-height:110px}.wa375MediaCard.photo{min-height:120px}.wa375MediaCard.photo img,.wa375ThumbSkeleton{height:105px}
 .wa375Viewer main{padding:10px 45px 5px}.wa375ViewerNav{width:38px;height:38px;font-size:30px}.wa375ViewerNav.prev{left:7px}.wa375ViewerNav.next{right:7px}
 .wa375Viewer footer{padding-left:8px;padding-right:8px;height:76px}.wa375ViewerThumb{flex-basis:56px;height:56px}
}

/* V4.11.3 · compact media viewer */
@media(min-width:641px){
 .wa375Viewer{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1180px,88vw);height:min(790px,88vh);border-radius:18px;overflow:hidden;box-shadow:0 0 0 100vmax rgba(0,0,0,.68),0 24px 80px rgba(0,0,0,.55)}
 .wa375Viewer main{padding:16px 64px 8px}.wa375Viewer main img,.wa375Viewer main video{max-height:calc(88vh - 170px)}
 .wa375ViewerNav{position:absolute}.wa375ViewerNav.prev{left:12px}.wa375ViewerNav.next{right:12px}
}

/* V4.11.5 · mouse-wheel zoom + drag */
.wa375Viewer main img.wa375ZoomImage{transform-origin:center center;will-change:transform;user-select:none;-webkit-user-drag:none;cursor:zoom-in;transition:transform .055s ease-out;touch-action:none}
.wa375Viewer main.wa375Zoomed img.wa375ZoomImage{cursor:grab}
.wa375Viewer main img.wa375ZoomImage.wa375ZoomDragging{cursor:grabbing;transition:none}
.wa375ZoomBadge{position:absolute;right:18px;bottom:100px;z-index:4;padding:6px 10px;border-radius:999px;background:rgba(15,23,42,.78);color:#fff;font-size:11px;font-weight:700;pointer-events:none;backdrop-filter:blur(5px)}
@media(max-width:700px){.wa375ZoomBadge{right:8px;bottom:84px;font-size:10px;padding:5px 8px}}

/* V4.12.2 · viewer grande */
@media(min-width:701px){.wa375Viewer{width:min(1520px,96vw)!important;height:min(980px,96vh)!important}.wa375Viewer main img,.wa375Viewer main video{max-height:calc(96vh - 165px)!important;max-width:100%!important}}


/* V4.12.3 max viewer */
@media(min-width:701px){.wa375Viewer{width:98vw!important;height:97vh!important;max-width:none!important;max-height:none!important}.wa375Viewer main{padding:10px 58px 6px!important}.wa375Viewer main img,.wa375Viewer main video{max-width:100%!important;max-height:calc(97vh - 150px)!important;image-rendering:auto!important}}
