/* SwiftCharge Update 69.9.1 — WhatsApp inbox reliability and messaging UI. */
.portal-shell .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.portal-shell .whatsapp-page-toolbar{align-items:flex-end;margin-bottom:18px}.portal-shell .whatsapp-page-toolbar h3{margin:.35rem 0 .25rem;font-size:clamp(1.55rem,2vw,2rem);letter-spacing:-.035em}.portal-shell .whatsapp-page-toolbar small{color:#697386;font-size:.88rem}.portal-shell .whatsapp-config-state{align-self:flex-start;white-space:nowrap}.portal-shell .whatsapp-config-state .state{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #dce4df;border-radius:999px;background:#f4faf6;color:#24613a;font-size:.76rem;font-weight:800}.portal-shell .whatsapp-config-state .state b{width:8px;height:8px;border-radius:50%;background:#25a35a;box-shadow:0 0 0 4px rgba(37,163,90,.12)}.portal-shell .whatsapp-config-state .state.offline{border-color:#f0d8d8;background:#fff5f5;color:#9f2727}.portal-shell .whatsapp-config-state .state.offline b{background:#d84444;box-shadow:0 0 0 4px rgba(216,68,68,.11)}
.portal-shell .whatsapp-inbox{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);height:clamp(560px,calc(100dvh - 255px),790px);min-height:0;border:1px solid #dce1e7;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.portal-shell .whatsapp-conversation-pane{display:flex;min-width:0;min-height:0;flex-direction:column;border-right:1px solid #e4e7eb;background:#fff}.portal-shell .whatsapp-search{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;padding:14px 14px 10px;background:#fff}.portal-shell .whatsapp-search label{min-width:0}.portal-shell .whatsapp-search input{width:100%;min-width:0;height:44px;padding:0 14px;border:1px solid #d6dbe2;border-radius:11px;background:#f8f9fb;font-size:.87rem;outline:none;transition:border-color .16s,box-shadow .16s,background .16s}.portal-shell .whatsapp-search input:focus{border-color:#159455;background:#fff;box-shadow:0 0 0 3px rgba(21,148,85,.12)}.portal-shell .whatsapp-refresh{display:grid;width:44px;height:44px;padding:0;place-items:center;border-radius:11px;font-size:1.25rem}.portal-shell .whatsapp-list-heading{display:flex;align-items:center;justify-content:space-between;padding:6px 16px 10px;border-bottom:1px solid #eceef1;color:#293241;font-size:.74rem;text-transform:uppercase;letter-spacing:.06em}.portal-shell .whatsapp-list-heading span{display:grid;min-width:24px;height:20px;padding:0 6px;place-items:center;border-radius:999px;background:#edf1f4;color:#536070;font-size:.67rem}.portal-shell .whatsapp-conversation-list{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd2da transparent}
.portal-shell .whatsapp-conversation{position:relative;display:grid;width:100%;grid-template-columns:46px minmax(0,1fr) auto;gap:11px;align-items:center;padding:14px 14px;border:0;border-bottom:1px solid #edf0f2;background:#fff;color:#111827;text-align:left;cursor:pointer;transition:background .15s}.portal-shell .whatsapp-conversation:hover,.portal-shell .whatsapp-conversation:focus-visible{background:#f7faf8;outline:none}.portal-shell .whatsapp-conversation.active{background:#eef8f2}.portal-shell .whatsapp-conversation.active::before{position:absolute;inset:0 auto 0 0;width:4px;background:#1b9a58;content:''}.portal-shell .whatsapp-avatar{display:grid;width:44px;height:44px;place-items:center;flex:none;border-radius:50%;background:#152033;color:#fff;font-size:.77rem;font-weight:850;letter-spacing:.02em;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.portal-shell .whatsapp-conversation.active .whatsapp-avatar{background:#167c49}.portal-shell .whatsapp-conversation-copy{display:grid;min-width:0;gap:3px}.portal-shell .whatsapp-conversation-name{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:8px}.portal-shell .whatsapp-conversation-name strong{overflow:hidden;font-size:.9rem;text-overflow:ellipsis;white-space:nowrap}.portal-shell .whatsapp-conversation-name time{flex:none;color:#7d8795;font-size:.66rem;font-weight:500}.portal-shell .whatsapp-conversation-copy small,.portal-shell .whatsapp-conversation-copy em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-shell .whatsapp-conversation-copy small{color:#4d5968;font-size:.76rem;font-style:normal}.portal-shell .whatsapp-conversation-copy em{color:#929aa6;font-size:.67rem;font-style:normal}.portal-shell .whatsapp-preview-tick{color:#188a50;font-weight:800}.portal-shell .whatsapp-conversation-badges{display:grid;align-self:end;justify-items:end;gap:5px}.portal-shell .whatsapp-conversation-badges b{display:grid;min-width:21px;height:21px;padding:0 6px;place-items:center;border-radius:999px;background:#1b9a58;color:#fff;font-size:.65rem}.portal-shell .whatsapp-conversation-badges i{padding:3px 6px;border-radius:999px;font-size:.58rem;font-style:normal;font-weight:750}.portal-shell .whatsapp-conversation-badges i.open{background:#e8f8ee;color:#187744}.portal-shell .whatsapp-conversation-badges i.closed{background:#fff4db;color:#925f00}
.portal-shell .whatsapp-chat-pane{display:flex;min-width:0;min-height:0;flex-direction:column;background:#f3f5f4}.portal-shell .whatsapp-chat-empty{display:grid;height:100%;place-content:center;justify-items:center;padding:34px;text-align:center;color:#717b88}.portal-shell .whatsapp-empty-icon{display:grid;width:62px;height:62px;place-items:center;border-radius:50%;background:#e5f5eb;color:#18844d;font-size:1.55rem}.portal-shell .whatsapp-chat-empty h4{margin:14px 0 4px;color:#162032;font-size:1.05rem}.portal-shell .whatsapp-chat-empty p{margin:0;font-size:.82rem}.portal-shell .whatsapp-chat-header{display:flex;min-height:72px;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid #dfe4e1;background:#fff}.portal-shell .whatsapp-chat-identity{min-width:0}.portal-shell .whatsapp-chat-header h4{overflow:hidden;margin:0;color:#111827;font-size:.95rem;text-overflow:ellipsis;white-space:nowrap}.portal-shell .whatsapp-chat-header p{overflow:hidden;margin:3px 0 0;color:#747e8b;font-size:.73rem;text-overflow:ellipsis;white-space:nowrap}.portal-shell .whatsapp-window{display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:7px 10px;border-radius:999px;font-size:.66rem;font-weight:800;white-space:nowrap}.portal-shell .whatsapp-window.open{background:#e7f8ed;color:#176e40}.portal-shell .whatsapp-window.closed{background:#fff2d7;color:#865b0a}.portal-shell .whatsapp-presence-dot{width:7px;height:7px;border-radius:50%;background:currentColor}.portal-shell .whatsapp-mobile-back{display:none;width:36px;height:36px;padding:0;place-items:center;border:1px solid #dfe3e8;border-radius:10px;background:#fff;color:#1e293b;font-size:1rem}
.portal-shell .whatsapp-message-stream{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px;overflow:auto;padding:22px clamp(14px,3vw,34px);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd2d0 transparent;background-color:#f2f5f3;background-image:radial-gradient(rgba(39,87,61,.035) 1px,transparent 1px);background-size:18px 18px}.portal-shell .whatsapp-message{max-width:min(72%,620px);padding:9px 11px 7px;border:1px solid #e0e4e7;border-radius:13px;background:#fff;box-shadow:0 1px 2px rgba(17,24,39,.055);overflow-wrap:anywhere}.portal-shell .whatsapp-message.received{align-self:flex-start;border-bottom-left-radius:4px}.portal-shell .whatsapp-message.sent{align-self:flex-end;border-color:#c7ead4;border-bottom-right-radius:4px;background:#e6f7ec}.portal-shell .whatsapp-message-body{color:#17202d;font-size:.87rem;line-height:1.42;white-space:normal}.portal-shell .whatsapp-message-body em{color:#687483}.portal-shell .whatsapp-message-meta{display:flex!important;min-height:auto!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;margin:5px 0 0!important;padding:0!important;border:0!important;background:transparent!important;color:#7c8794!important;font-size:.6rem!important;line-height:1.2!important;box-shadow:none!important}.portal-shell .whatsapp-message-meta time,.portal-shell .whatsapp-message-meta span{margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;font-size:inherit!important}.portal-shell .whatsapp-message-meta .delivery.read,.portal-shell .whatsapp-message-meta .delivery.delivered{color:#16854d!important}.portal-shell .whatsapp-message-meta .delivery.failed{color:#b52d2d!important}.portal-shell .whatsapp-message-meta .whatsapp-operator{padding-left:7px!important;border-left:1px solid #cfd5d8!important}
.portal-shell .whatsapp-composer{padding:12px 16px 14px;border-top:1px solid #dfe4e1;background:#fff}.portal-shell .whatsapp-composer textarea{display:block;width:100%;min-height:44px;max-height:132px;padding:11px 13px;border:1px solid #cfd5dc;border-radius:12px;background:#fff;font-size:.87rem;line-height:1.35;resize:none;outline:none;transition:border-color .16s,box-shadow .16s}.portal-shell .whatsapp-composer textarea:focus{border-color:#159455;box-shadow:0 0 0 3px rgba(21,148,85,.11)}.portal-shell .whatsapp-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.portal-shell .whatsapp-composer-actions small{color:#7a8491;font-size:.68rem}.portal-shell .whatsapp-send{display:inline-flex;min-width:94px;align-items:center;justify-content:center;gap:8px;border-radius:10px;background:#111827}.portal-shell .whatsapp-send b{font-size:.72rem}.portal-shell .whatsapp-template-lock{padding:13px 17px;border-top:1px solid #efd89d;background:#fff9e9;color:#73520a}.portal-shell .whatsapp-template-lock p{margin:3px 0 0;font-size:.76rem}.portal-shell .whatsapp-template-lock strong{color:#73520a;font-size:.8rem}
@media(max-width:900px){.portal-shell .whatsapp-inbox{grid-template-columns:minmax(270px,330px) minmax(0,1fr)}.portal-shell .whatsapp-message{max-width:82%}.portal-shell .whatsapp-window{font-size:0}.portal-shell .whatsapp-window::after{content:'Open';font-size:.64rem}.portal-shell .whatsapp-window.closed::after{content:'Template';font-size:.64rem}}
@media(max-width:700px){.portal-shell .whatsapp-page-toolbar{display:flex;align-items:flex-start}.portal-shell .whatsapp-page-toolbar small{display:none}.portal-shell .whatsapp-config-state{margin-top:2px}.portal-shell .whatsapp-config-state .state{padding:6px 8px;font-size:.62rem}.portal-shell .whatsapp-inbox{display:block;height:calc(100dvh - 195px);min-height:470px;border-radius:13px}.portal-shell .whatsapp-conversation-pane,.portal-shell .whatsapp-chat-pane{height:100%;border:0}.portal-shell .whatsapp-chat-pane{display:none}.portal-shell .whatsapp-inbox.chat-open .whatsapp-conversation-pane{display:none}.portal-shell .whatsapp-inbox.chat-open .whatsapp-chat-pane{display:flex}.portal-shell .whatsapp-mobile-back{display:inline-grid}.portal-shell .whatsapp-chat-header{min-height:64px;padding:9px 10px}.portal-shell .whatsapp-chat-header .whatsapp-avatar{width:38px;height:38px}.portal-shell .whatsapp-message-stream{padding:14px 10px}.portal-shell .whatsapp-message{max-width:88%}.portal-shell .whatsapp-composer{padding:9px 10px calc(9px + env(safe-area-inset-bottom))}.portal-shell .whatsapp-composer-actions small{display:none}.portal-shell .whatsapp-send{margin-left:auto}.portal-shell .whatsapp-conversation{padding:13px 12px}}
@media(max-width:430px){.portal-shell .whatsapp-page-toolbar h3{font-size:1.35rem}.portal-shell .whatsapp-config-state .state{font-size:0}.portal-shell .whatsapp-config-state .state::after{content:'Connected';font-size:.61rem}.portal-shell .whatsapp-config-state .state.offline::after{content:'Offline'}.portal-shell .whatsapp-inbox{height:calc(100dvh - 176px)}.portal-shell .whatsapp-window{padding:6px 8px}.portal-shell .whatsapp-chat-header p{max-width:46vw}.portal-shell .whatsapp-message{max-width:92%;font-size:.84rem}}
