/* Biotech Genetix Customer Enquiry Centre — v2026.11.16.2 */
:root{--bgt-green:#087b3a;--bgt-green-2:#0d9148;--bgt-deep:#064b27;--bgt-mint:#eaf6ee;--bgt-line:#dce9df;--bgt-ink:#183126;--bgt-muted:#718177;--bgt-bg:#edf4ef}
*{box-sizing:border-box}
html,body{width:100%;height:100%;min-height:0;margin:0;overflow:hidden}
body{font-family:Inter,Arial,Helvetica,sans-serif;background:var(--bgt-bg);color:var(--bgt-ink)}
.bgt-portal{width:100%;height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(135deg,#f1f7f3 0%,#eaf2ed 100%)}
.bgt-portal-topbar{height:76px;min-height:76px;flex:0 0 76px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 clamp(14px,2.2vw,32px);background:#fff;border-bottom:1px solid var(--bgt-line);box-shadow:0 3px 14px rgba(10,55,31,.05);z-index:5}
.bgt-portal-brand{min-width:220px;display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit}
.bgt-portal-brand img{width:56px;height:52px;object-fit:contain}
.bgt-portal-brand span{display:flex;flex-direction:column;gap:3px;min-width:0}
.bgt-portal-brand b{font-size:16px;line-height:1.2;color:#07552b;letter-spacing:-.2px}
.bgt-portal-brand small{font-size:11px;color:#718177}
.bgt-portal-top-actions{display:flex;align-items:center;gap:10px;min-width:0}
.bgt-portal-agent-chip{display:flex;align-items:center;gap:9px;max-width:230px;padding:7px 12px;border:1px solid #e0ece3;border-radius:30px;background:#f8fbf9}
.bgt-portal-agent-chip>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.bgt-portal-agent-chip b{font-size:11px;color:#17472b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bgt-portal-agent-chip small{font-size:10px;color:#6e8174;white-space:nowrap}
.bgt-portal-agent-dot,.bgt-portal-agent-line i,.bgt-portal-online-dot{display:inline-block;width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:#20b66a;box-shadow:0 0 0 3px #e2f6e9}
.bgt-portal-agent-dot.offline,.bgt-portal-agent-line i.offline{background:#a5b1a9;box-shadow:0 0 0 3px #eff2f0}
.bgt-portal-agent-dot.typing,.bgt-portal-agent-line i.typing{animation:bgtPulse 1s infinite}
.bgt-portal-notify-btn,.bgt-portal-new,.bgt-portal-back{height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border-radius:10px;font-size:11px;font-weight:750;text-decoration:none;white-space:nowrap;cursor:pointer}
.bgt-portal-notify-btn{border:1px solid #dce9df;background:#fff;color:#315c41}
.bgt-portal-notify-btn.enabled{background:#eaf7ee;color:#087a36;border-color:#cbe7d2}
.bgt-portal-new{border:1px solid var(--bgt-green);background:linear-gradient(135deg,#0a9145,#087538);color:#fff;box-shadow:0 4px 12px rgba(8,123,58,.12)}
.bgt-portal-new:hover{color:#fff;background:#05652e}
.bgt-portal-back{border:1px solid var(--bgt-line);background:#fff;color:#31533f}
.bgt-portal-main{width:calc(100% - 40px);max-width:1540px;flex:1 1 0%;height:auto;min-height:0;margin:12px auto 16px;display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);background:#fff;border:1px solid var(--bgt-line);border-radius:18px;overflow:hidden;box-shadow:0 12px 38px rgba(14,58,34,.075)}
.bgt-portal-sidebar{height:100%;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid var(--bgt-line);background:#fff}
.bgt-portal-sidebar-head{padding:20px 18px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.bgt-portal-sidebar-head h1{margin:0;color:#103d25;font-size:20px;letter-spacing:-.4px}
.bgt-portal-sidebar-head p{margin:5px 0 0;color:#718077;font-size:11px}
.bgt-portal-count{min-width:31px;height:31px;padding:0 8px;border-radius:30px;background:#e8f5ec;color:#087a36;display:grid;place-items:center;font-size:12px;font-weight:800}
.bgt-portal-search{height:43px;flex:0 0 43px;margin:0 15px 11px;border:1px solid var(--bgt-line);background:#f8fbf9;border-radius:11px;display:flex;align-items:center;padding:0 12px;gap:9px}
.bgt-portal-search:focus-within{border-color:#8dbd9b;box-shadow:0 0 0 3px #edf7f0}
.bgt-portal-search>span{font-size:20px;color:#82958a}
.bgt-portal-search input{width:100%;min-width:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;font-size:12px;color:#20382c}
.bgt-portal-filter-row{display:flex;align-items:center;gap:6px;padding:0 15px 11px;overflow-x:auto;scrollbar-width:none}
.bgt-portal-filter-row::-webkit-scrollbar{display:none}
.bgt-portal-filter{height:30px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid #e0e9e2;border-radius:20px;background:#fff;color:#5e7365;font-size:10px;font-weight:750;white-space:nowrap;cursor:pointer}
.bgt-portal-filter span{min-width:16px;height:16px;padding:0 4px;display:inline-grid;place-items:center;border-radius:10px;background:#edf3ef;color:#567362;font-size:9px}
.bgt-portal-filter.active{background:#e8f6ec;border-color:#b9dbc3;color:#08783a}
.bgt-portal-filter.active span{background:#0a8540;color:#fff}
.bgt-portal-list-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0 15px 12px}
.bgt-portal-list-summary>span{min-width:0;display:flex;flex-direction:column;gap:3px;padding:8px 9px;border:1px solid #e7eee9;border-radius:10px;background:#fbfdfb}
.bgt-portal-list-summary b{font-size:13px;color:#0b7138;line-height:1.2}
.bgt-portal-list-summary small{font-size:9px;color:#7c8c82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bgt-portal-enquiry-list{flex:1 1 0%;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 9px 11px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbdacf transparent}
.bgt-portal-enquiry{position:relative;width:100%;min-height:79px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;gap:0 10px;padding:12px 10px;margin:0 0 5px;border:1px solid transparent;border-bottom-color:#edf2ee;border-radius:12px;background:#fff;text-align:left;cursor:pointer;color:inherit;transition:background .15s,border-color .15s,box-shadow .15s}
.bgt-portal-enquiry:hover{background:#f8fbf9;border-color:#e4eee6}
.bgt-portal-enquiry.active{background:linear-gradient(105deg,#eaf7ee,#f5fbf6);border-color:#cce6d3;box-shadow:inset 3px 0 #0b873d}
.bgt-portal-enquiry-icon{grid-column:1;grid-row:1;width:46px;height:46px;border-radius:11px;display:grid;place-items:center;overflow:hidden;background:#f0f7f2;border:1px solid #e1ece4;font-size:20px}
.bgt-portal-enquiry-icon img{display:block;width:100%;height:100%;object-fit:contain;padding:3px}
.bgt-portal-enquiry-copy{grid-column:2;grid-row:1;min-width:0;display:flex;flex-direction:column;gap:4px;padding-right:1px}
.bgt-portal-enquiry-copy b{font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#173b27}
.bgt-portal-enquiry-copy small{font-size:9px;color:#85938a}
.bgt-portal-enquiry-copy em{font-size:10px;color:#66796e;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bgt-portal-card-status{width:max-content;max-width:100%;padding:3px 7px;border-radius:12px;background:#fff4df;color:#95600e;font-size:9px;font-weight:750;white-space:nowrap}
.bgt-portal-card-status.waiting_customer{background:#e7f6eb;color:#08783a}
.bgt-portal-card-status.closed{background:#eef1ef;color:#69776e}
.bgt-portal-unread{align-self:start;justify-self:end;min-width:21px;height:21px;padding:0 6px;border-radius:20px;background:#087d39;color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;box-shadow:0 2px 6px rgba(8,125,57,.18)}
.bgt-portal-unread[hidden]{display:none!important}
.bgt-portal-sidebar-foot{min-height:52px;flex:0 0 auto;border-top:1px solid var(--bgt-line);padding:12px 17px;font-size:11px;color:#687e70;display:flex;align-items:center;gap:9px;background:#fbfdfb}
.bgt-portal-sidebar-foot>span:last-child{display:flex;flex-direction:column;gap:3px}
.bgt-portal-sidebar-foot b{font-size:11px;color:#315943}.bgt-portal-sidebar-foot small{font-size:10px;color:#829087}
.bgt-portal-thread{height:100%;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:70px auto minmax(0,1fr) auto;overflow:hidden;position:relative;background:#f6faf7}
.bgt-portal-thread-head{grid-row:1;height:70px;min-height:70px;display:flex;align-items:center;padding:0 20px;gap:12px;background:#fff;border-bottom:1px solid var(--bgt-line)}
.bgt-portal-product-thumb{width:47px;height:47px;flex:0 0 auto;border:1px solid #e0eae3;background:#f5f9f6;border-radius:10px;overflow:hidden}
.bgt-portal-product-thumb img{width:100%;height:100%;object-fit:contain;padding:3px}
.bgt-portal-avatar{width:42px;height:42px;flex:0 0 auto;border-radius:50%;background:#e7f5eb;color:#087b36;border:1px solid #cfe7d6;display:grid;place-items:center;font-weight:800;font-size:14px}
.bgt-portal-thread-title{min-width:0;display:flex;flex-direction:column;gap:4px}
.bgt-portal-thread-title b{font-size:14px;color:#173d28;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bgt-portal-thread-title small{font-size:10px;color:#75857b}
.bgt-portal-agent-line{display:flex;align-items:center;gap:7px;font-size:10px;color:#188044}
.bgt-portal-agent-line i{width:7px;height:7px}.bgt-portal-agent-line em{font-style:normal;font-weight:700;color:#0a8740;animation:bgtTyping 1.1s infinite}
.bgt-portal-thread-status{margin-left:auto;padding:6px 10px;border-radius:20px;font-size:10px;font-weight:750;background:#fff4df;color:#936012;white-space:nowrap}
.bgt-portal-thread-status.waiting_customer{background:#e5f6eb;color:#087a36}.bgt-portal-thread-status.closed{background:#edf0ee;color:#68766e}
.bgt-portal-context{grid-row:2;min-height:36px;display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 14px;border-bottom:1px solid #e1eee4;background:#eef8f1;color:#53725e;font-size:10px;text-align:center}
.bgt-portal-sound-toggle{margin-left:auto;border:0;background:transparent;color:#547463;font-size:10px;padding:3px 7px;cursor:pointer;border-radius:7px;white-space:nowrap}
.bgt-portal-sound-toggle:hover{background:#e5f4e9;color:#087b36}
.bgt-portal-messages{grid-row:3;min-height:0;height:100%;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbdacf transparent;padding:20px clamp(14px,3vw,38px);display:flex;flex-direction:column;gap:12px;background-color:#f6faf7;background-image:radial-gradient(rgba(24,112,58,.055) .7px,transparent .7px);background-size:17px 17px}
.bgt-portal-message{max-width:min(78%,720px);padding:11px 13px 8px;border-radius:14px;background:#fff;border:1px solid #e2ebe4;box-shadow:0 1px 3px rgba(21,58,36,.035);align-self:flex-start;word-break:break-word}
.bgt-portal-message.customer{align-self:flex-end;background:#e4f6e9;border-color:#cbe9d4;border-bottom-right-radius:4px;box-shadow:0 2px 7px rgba(8,123,54,.045)}
.bgt-portal-message.admin{align-self:flex-start;border-bottom-left-radius:4px}
.bgt-portal-message.system{align-self:center;max-width:84%;border-radius:14px;background:#f0f4f1;border:1px dashed #d7e2da;color:#65746b;text-align:center}
.bgt-portal-message p{margin:0;font-size:13px;line-height:1.58;color:#20382b;white-space:pre-wrap}
.bgt-portal-message.system p{font-size:11px;color:#5f7065}
.bgt-portal-message time{display:flex;justify-content:flex-end;align-items:center;gap:5px;font-size:9px;color:#85948b;margin-top:6px}
.bgt-portal-bubble-label{font-size:9px;text-transform:uppercase;letter-spacing:.35px;font-weight:800;color:#63826d;margin:0 0 6px}
.bgt-portal-ticks{font-size:12px;letter-spacing:-3px;padding-right:2px;color:#87958c;font-weight:700}.bgt-portal-ticks.seen{color:#1689e8}
.bgt-portal-product-card{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #dbe9df;border-radius:10px;background:#fff;text-decoration:none;color:#173a27;min-width:min(320px,100%)}
.bgt-portal-product-card img{width:66px;height:62px;object-fit:contain;border-radius:7px;background:#f5f8f6}
.bgt-portal-product-card span{min-width:0;display:flex;flex-direction:column;gap:4px}.bgt-portal-product-card b{font-size:12px;line-height:1.35}.bgt-portal-product-card small,.bgt-portal-product-card em{font-size:10px;color:#667b6d;font-style:normal}
.bgt-portal-document{display:flex;flex-direction:column;gap:5px;padding:11px;border:1px solid #d6e6da;background:#fff;border-radius:9px;color:#176239;text-decoration:none;font-size:13px;font-weight:700}.bgt-portal-document small{font-size:10px;color:#718278;font-weight:400}
.bgt-portal-compose-dock{grid-row:4;min-width:0;min-height:0;display:flex;flex-direction:column;flex:0 0 auto;background:#fff;border-top:1px solid var(--bgt-line);box-shadow:0 -7px 22px rgba(13,58,33,.045);position:relative;z-index:10}
.bgt-portal-quick-replies{flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:8px 14px 2px;background:#fff;overflow-x:auto;scrollbar-width:none}
.bgt-portal-quick-replies::-webkit-scrollbar{display:none}.bgt-portal-quick-replies>span{font-size:10px;color:#819087;font-weight:700;white-space:nowrap;margin-right:2px}
.bgt-portal-quick-replies button{border:1px solid #dce9df;border-radius:18px;background:#f7fbf8;color:#315943;padding:7px 11px;font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer}
.bgt-portal-quick-replies button:hover{background:#e8f6ec;border-color:#b9d9c2;color:#087b36}
.bgt-portal-compose{position:relative!important;inset:auto!important;flex:0 0 auto;min-width:0;min-height:62px;display:flex!important;align-items:flex-end;gap:8px;padding:9px 14px 7px;background:#fff;border:0!important;border-top:0!important;box-shadow:none!important;visibility:visible!important;opacity:1!important}
.bgt-portal-compose textarea{display:block;flex:1 1 auto;min-width:0;min-height:44px;max-height:112px;resize:none;overflow-y:auto;border:1px solid #d6e3d9;border-radius:17px;background:#fff;color:#183126;padding:12px 15px;font:13px/1.45 Arial,Helvetica,sans-serif;outline:none}
.bgt-portal-compose textarea:focus{border-color:#62a77a;box-shadow:0 0 0 3px #e6f4e9}.bgt-portal-compose textarea:disabled{background:#f2f5f3;color:#89958d}
.bgt-portal-compose button{border:0;cursor:pointer}.bgt-portal-emoji-button,.bgt-portal-attach{width:42px;height:42px;min-width:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid #dce9df!important;border-radius:50%;background:#f0f8f2;color:#087b36;font-size:20px;font-weight:700}
.bgt-portal-emoji-button:hover,.bgt-portal-attach:hover{background:#e2f2e7;border-color:#b9d9c2}
.bgt-portal-compose button[type=submit]{width:44px;height:44px;min-width:44px;flex:0 0 44px;border:0;border-radius:50%;background:linear-gradient(135deg,#0a8d42,#056b31);color:#fff;font-size:20px;box-shadow:0 4px 12px rgba(8,123,54,.22)}
.bgt-portal-compose button:disabled,.bgt-portal-compose textarea:disabled{opacity:.55;cursor:not-allowed}
.bgt-portal-char-count{flex:0 0 auto;align-self:flex-end;padding:0 0 12px;color:#9aa69e;font-size:9px;white-space:nowrap}
.bgt-portal-compose-note{min-height:22px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:14px;padding:0 12px 7px;background:#fff;color:#89958d;text-align:center;font-size:9px}
.bgt-portal-product-picker{position:absolute;right:20px;bottom:132px;width:min(390px,calc(100% - 40px));max-height:390px;overflow:auto;padding:13px;background:#fff;border:1px solid var(--bgt-line);border-radius:12px;box-shadow:0 12px 40px rgba(13,59,34,.16);z-index:20}
.bgt-portal-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.bgt-portal-picker-head button{border:0;background:#edf6ef;border-radius:20px;width:27px;height:27px;font-size:20px;cursor:pointer}
.bgt-portal-product-picker>input{width:100%;height:38px;padding:0 11px;border:1px solid var(--bgt-line);border-radius:8px;margin-bottom:10px}.bgt-portal-product-results{display:flex;flex-direction:column;gap:7px}
.bgt-portal-product-result{display:flex;align-items:center;gap:9px;padding:7px;border:1px solid #e6eee8;border-radius:8px}.bgt-portal-product-result img{width:48px;height:46px;object-fit:contain;background:#f5f8f6;border-radius:6px}
.bgt-portal-product-result span{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.bgt-portal-product-result b{font-size:11px}.bgt-portal-product-result small{font-size:10px;color:#75847b}.bgt-portal-product-result button{border:0;border-radius:7px;background:#087b36;color:#fff;padding:7px 10px;font-weight:700;cursor:pointer}
.bgt-portal-emoji-picker{position:absolute;z-index:30;right:70px;bottom:130px;width:min(270px,calc(100% - 30px));padding:11px;display:grid;grid-template-columns:repeat(7,1fr);gap:5px;background:#fff;border:1px solid var(--bgt-line);border-radius:14px;box-shadow:0 14px 38px rgba(11,58,32,.18)}
.bgt-portal-emoji-picker[hidden],.bgt-portal-product-picker[hidden]{display:none!important}.bgt-portal-emoji-picker button{border:0;border-radius:8px;background:#f5f9f6;min-height:34px;font-size:19px;cursor:pointer}.bgt-portal-emoji-picker button:hover{background:#e6f5ea}
.bgt-portal-loading,.bgt-portal-list-empty,.bgt-portal-error{margin:auto;text-align:center;padding:24px;color:#718177;font-size:13px}.bgt-portal-error{color:#a52b2b}.bgt-portal-no-chat{margin:auto;text-align:center;max-width:380px;padding:30px 20px;background:#fff;border:1px solid #e2ebe4;border-radius:14px}.bgt-portal-no-chat>div{font-size:34px}.bgt-portal-no-chat h2{font-size:19px;color:#17452c}.bgt-portal-no-chat p{font-size:13px;line-height:1.6;color:#6d7d73}.bgt-portal-inline-error{flex:0 0 auto;padding:8px 12px;margin:6px 16px 0;background:#fff0ef;border:1px solid #f0cac7;border-radius:8px;color:#a02a25;font-size:12px}
.bgt-portal-empty-page{flex:1;min-height:0;display:grid;place-items:center;padding:30px}.bgt-portal-empty-card{max-width:520px;background:#fff;padding:35px;border:1px solid var(--bgt-line);border-radius:16px;text-align:center;box-shadow:0 12px 36px rgba(12,64,35,.07)}.bgt-portal-empty-icon{font-size:40px}.bgt-portal-empty-card h1{font-size:24px;color:#0d542b}.bgt-portal-empty-card p{color:#627469;line-height:1.65;font-size:14px}.bgt-portal-mobile-back{display:none;border:0;background:#eef7f0;color:#087b36;border-radius:8px;padding:8px 10px;font-size:18px}
.bgt-portal-toast{position:fixed;z-index:99999;right:24px;top:94px;width:min(430px,calc(100vw - 32px));display:flex;align-items:center;gap:12px;padding:13px 14px;background:#fff;border:1px solid #cfe4d5;border-left:4px solid #087b36;border-radius:14px;box-shadow:0 16px 48px rgba(7,54,27,.18);opacity:0;transform:translateY(-10px);transition:opacity .2s ease,transform .2s ease}
.bgt-portal-toast[hidden]{display:none!important}.bgt-portal-toast.show{opacity:1;transform:translateY(0)}.bgt-portal-toast-icon{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#e5f6e9;color:#0a8b40;font-size:16px}.bgt-portal-toast-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.bgt-portal-toast-copy b{font-size:12px;color:#17472b}.bgt-portal-toast-copy small{font-size:11px;color:#63766a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bgt-portal-toast button{border:0;border-radius:8px;padding:8px 11px;background:#087b36;color:#fff;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}.bgt-portal-toast button:last-child{background:transparent;color:#74847a;font-size:20px;padding:3px 6px}
@keyframes bgtPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}@keyframes bgtTyping{0%,60%,100%{opacity:.35}30%{opacity:1}}
@media(max-width:1050px){.bgt-portal-main{grid-template-columns:300px minmax(0,1fr)}.bgt-portal-top-actions{gap:7px}.bgt-portal-agent-chip{max-width:180px}}
@media(max-width:760px){
  html,body{height:100%;overflow:hidden}
  .bgt-portal{height:100vh;height:100dvh}
  .bgt-portal-topbar{height:66px;min-height:66px;flex-basis:66px;padding:6px 9px;gap:6px}
  .bgt-portal-brand{min-width:0;gap:6px}.bgt-portal-brand img{width:40px;height:40px}.bgt-portal-brand b{font-size:11px}.bgt-portal-brand small{font-size:9px}
  .bgt-portal-agent-chip,.bgt-portal-back{display:none}.bgt-portal-notify-btn{height:33px;padding:0 7px;font-size:9px}.bgt-portal-new{height:34px;padding:0 9px;font-size:9px}
  .bgt-portal-main{display:block;position:relative;width:100%;height:auto;min-height:0;flex:1 1 0%;margin:0;border:0;border-radius:0;overflow:hidden}
  .bgt-portal-sidebar,.bgt-portal-thread{position:absolute;inset:0;width:100%;height:100%;min-height:0;border:0}
  .bgt-portal-thread{display:none;grid-template-rows:60px auto minmax(0,1fr) auto;overflow:hidden}
  .bgt-portal.has-selected .bgt-portal-sidebar{display:none}.bgt-portal.has-selected .bgt-portal-thread{display:grid}
  .bgt-portal-sidebar-head{padding:15px 14px 11px}.bgt-portal-sidebar-head h1{font-size:18px}.bgt-portal-list-summary{padding-bottom:9px}
  .bgt-portal-thread-head{height:60px;min-height:60px;padding:0 8px;gap:7px}.bgt-portal-product-thumb{width:36px;height:36px}.bgt-portal-avatar{width:33px;height:33px;font-size:11px}.bgt-portal-thread-title b{font-size:12px}.bgt-portal-thread-title small{font-size:9px}.bgt-portal-agent-line{font-size:9px}.bgt-portal-thread-status{font-size:9px;padding:5px 7px}
  .bgt-portal-context{justify-content:flex-start;flex-wrap:wrap;min-height:34px;padding:6px 8px;font-size:9px}.bgt-portal-sound-toggle{margin-left:auto}
  .bgt-portal-messages{padding:12px 9px}.bgt-portal-message{max-width:91%;padding:9px 10px 7px}.bgt-portal-message p{font-size:12px}
  .bgt-portal-compose-dock{grid-row:4;padding-bottom:env(safe-area-inset-bottom)}
  .bgt-portal-quick-replies{padding:6px 7px 2px;gap:5px}.bgt-portal-quick-replies>span{display:none}.bgt-portal-quick-replies button{padding:6px 8px;font-size:9px}
  .bgt-portal-compose{min-height:56px;padding:6px 7px 5px;gap:5px}.bgt-portal-compose textarea{min-height:42px;max-height:92px;padding:10px 11px;font-size:12px}
  .bgt-portal-compose button[type=submit]{width:39px;height:39px;min-width:39px;flex-basis:39px}.bgt-portal-emoji-button,.bgt-portal-attach{width:35px;height:35px;min-width:35px;flex-basis:35px;font-size:17px}
  .bgt-portal-char-count{display:none}.bgt-portal-compose-note{min-height:18px;gap:5px;font-size:8px;padding:0 5px 5px}.bgt-portal-compose-note span:last-child{display:none}
  .bgt-portal-product-picker{right:8px;bottom:110px;width:calc(100% - 16px)}.bgt-portal-emoji-picker{right:55px;bottom:108px}.bgt-portal-toast{right:9px;top:74px;width:calc(100vw - 18px);padding:9px}
}
@media(max-height:620px) and (min-width:761px){.bgt-portal-topbar{height:62px;min-height:62px;flex-basis:62px}.bgt-portal-main{margin:7px auto 9px}.bgt-portal-thread-head{height:58px;min-height:58px}.bgt-portal-context{min-height:30px;padding:5px 10px}.bgt-portal-compose-dock{max-height:142px}.bgt-portal-quick-replies{padding-top:4px}.bgt-portal-compose{min-height:54px;padding:5px 10px}.bgt-portal-compose textarea{min-height:38px;max-height:76px}.bgt-portal-compose-note{min-height:16px;padding-bottom:3px}}

/* Biotech Genetix buyer desk refinement + secure attachment composer */
.bgt-portal{background:radial-gradient(circle at 12% 0%,#f7fbf8 0,#edf5ef 46%,#e9f1eb 100%)}
.bgt-portal-topbar{height:80px;min-height:80px;flex-basis:80px;padding-inline:clamp(16px,2.8vw,42px);box-shadow:0 5px 24px rgba(10,55,31,.065)}
.bgt-portal-brand img{width:60px;height:56px}
.bgt-portal-brand b{font-size:16px;letter-spacing:-.35px}
.bgt-portal-brand small{font-size:11px;letter-spacing:.1px}
.bgt-portal-main{max-width:1600px;width:calc(100% - 36px);margin:14px auto 18px;border-radius:20px;border-color:#d6e6da;box-shadow:0 18px 52px rgba(13,65,37,.09)}
.bgt-portal-sidebar{background:linear-gradient(180deg,#fff 0%,#fcfefc 100%)}
.bgt-portal-sidebar-head{padding:23px 20px 15px;background:linear-gradient(135deg,#fff,#f7fbf8)}
.bgt-portal-sidebar-head h1{font-size:21px;letter-spacing:-.55px}
.bgt-portal-sidebar-head p{font-size:11px;line-height:1.45}
.bgt-portal-count{width:34px;height:34px;border:1px solid #cce5d2;box-shadow:0 4px 12px rgba(8,123,58,.08)}
.bgt-portal-search{margin-inline:17px;height:45px;border-radius:13px;background:#f7faf8}
.bgt-portal-filter-row{padding-inline:17px;gap:7px}
.bgt-portal-filter{height:32px;padding-inline:11px;font-size:10px}
.bgt-portal-list-summary{padding-inline:17px;gap:8px}
.bgt-portal-list-summary>span{padding:10px 10px;border-radius:12px;background:linear-gradient(145deg,#fff,#f8fbf9);box-shadow:0 2px 7px rgba(10,55,31,.025)}
.bgt-portal-enquiry-list{padding-inline:11px}
.bgt-portal-enquiry{min-height:86px;grid-template-columns:52px minmax(0,1fr) auto;gap:0 11px;padding:12px 11px;border-radius:14px;margin-bottom:7px}
.bgt-portal-enquiry-icon{width:50px;height:50px;border-radius:12px;background:#f6faf7}
.bgt-portal-enquiry-copy b{font-size:12px;line-height:1.4}
.bgt-portal-enquiry-copy small{font-size:9px}
.bgt-portal-enquiry-copy em{font-size:10px;max-width:100%}
.bgt-portal-card-status{padding:4px 8px;font-size:9px;letter-spacing:.1px}
.bgt-portal-enquiry.active{box-shadow:inset 3px 0 #0b873d,0 5px 16px rgba(8,123,58,.07);border-color:#c7e4cf}
.bgt-portal-thread{grid-template-rows:76px auto minmax(0,1fr) auto;min-height:0;overflow:hidden;background:#f7faf8}
.bgt-portal-thread-head{height:76px;min-height:76px;padding-inline:22px;background:linear-gradient(90deg,#fff,#fbfefc)}
.bgt-portal-product-thumb{width:50px;height:50px;border-radius:12px;box-shadow:0 3px 10px rgba(10,55,31,.04)}
.bgt-portal-avatar{width:43px;height:43px;box-shadow:0 3px 10px rgba(8,123,58,.06)}
.bgt-portal-thread-title b{font-size:14px}
.bgt-portal-thread-title small{font-size:10px}
.bgt-portal-context{min-height:38px;background:linear-gradient(90deg,#f0f8f2,#eaf6ee);font-size:10px}
.bgt-portal-messages{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px clamp(18px,3.5vw,48px);gap:14px;background-color:#f7faf8;background-image:radial-gradient(rgba(24,112,58,.045) .65px,transparent .65px);background-size:19px 19px}
.bgt-portal-message{max-width:min(76%,760px);padding:13px 15px 9px;border-radius:16px;box-shadow:0 3px 12px rgba(21,58,36,.045)}
.bgt-portal-message.customer{background:linear-gradient(135deg,#e9f8ed,#e1f4e7);border-color:#c8e8d1;border-bottom-right-radius:5px}
.bgt-portal-message.admin{background:#fff;border-bottom-left-radius:5px}
.bgt-portal-message p{font-size:13px;line-height:1.65}
.bgt-portal-message time{font-size:9px;margin-top:8px}
.bgt-portal-product-card{max-width:430px;padding:10px;border-radius:12px;box-shadow:0 2px 8px rgba(10,55,31,.035)}
.bgt-portal-product-card img{width:76px;height:68px}
.bgt-portal-compose-dock{position:sticky;bottom:0;z-index:30;flex:0 0 auto;min-height:0;background:rgba(255,255,255,.98);border-top:1px solid #dce9df;box-shadow:0 -9px 28px rgba(13,58,33,.075);backdrop-filter:blur(12px)}
.bgt-portal-quick-replies{padding:9px 16px 5px;gap:8px;background:transparent}
.bgt-portal-quick-replies>span{font-size:10px;text-transform:uppercase;letter-spacing:.55px;color:#63806d}
.bgt-portal-quick-replies button{padding:8px 12px;border-radius:18px;font-size:10px;background:#f8fcf9;border-color:#d6e8db;transition:background .15s,border-color .15s,transform .15s}
.bgt-portal-quick-replies button:hover{transform:translateY(-1px)}
.bgt-portal-attachment-preview{display:flex;align-items:center;gap:10px;min-height:48px;margin:5px 16px 0;padding:7px 11px;border:1px solid #d5e8da;border-radius:12px;background:linear-gradient(90deg,#f3faf5,#fff)}
.bgt-portal-attachment-preview[hidden]{display:none!important}
.bgt-portal-attachment-preview-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#e4f3e8;font-size:17px;flex:0 0 auto}
.bgt-portal-attachment-preview-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.bgt-portal-attachment-preview-copy b{font-size:11px;color:#1c4a30;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bgt-portal-attachment-preview-copy small{font-size:9px;color:#73877a}
.bgt-portal-attachment-preview>button{width:28px;height:28px;border:0;border-radius:50%;background:#edf4ef;color:#607568;font-size:19px;cursor:pointer}
.bgt-portal-compose{min-height:68px;padding:9px 15px 7px;align-items:center;gap:9px}
.bgt-portal-compose textarea{min-height:48px;max-height:118px;border-radius:20px;padding:13px 16px;font-size:13px;line-height:1.5;box-shadow:inset 0 1px 2px rgba(15,55,33,.025)}
.bgt-portal-emoji-button,.bgt-portal-attach{width:44px;height:44px;min-width:44px;flex-basis:44px;background:#f3f9f4;border:1px solid #d9e9dd!important;font-size:18px;transition:background .15s,transform .15s}
.bgt-portal-emoji-button:hover,.bgt-portal-attach:hover{transform:translateY(-1px);background:#e6f4e9}
.bgt-portal-attach-file{font-size:19px}
.bgt-portal-share-product{font-size:17px}
.bgt-portal-compose button[type=submit]{width:46px;height:46px;min-width:46px;flex-basis:46px;font-size:19px;box-shadow:0 5px 14px rgba(8,123,54,.2)}
.bgt-portal-compose-note{min-height:22px;gap:18px;font-size:9px;padding:0 12px 7px;background:transparent}
.bgt-portal-document-image{display:flex;align-items:center;gap:10px;max-width:340px;padding:8px;border:1px solid #d6e6da;background:#fff;border-radius:11px;color:#176239;text-decoration:none}
.bgt-portal-document-image img{width:86px;height:76px;object-fit:contain;border-radius:8px;background:#f5f8f6}
.bgt-portal-document-image span{display:flex;flex-direction:column;gap:5px;min-width:0}
.bgt-portal-document-image b{font-size:11px;overflow-wrap:anywhere}
.bgt-portal-document-image small{font-size:10px;color:#718278}
.bgt-portal-document{flex-direction:row;align-items:center;gap:10px;max-width:360px;padding:10px 12px}
.bgt-portal-document>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.bgt-portal-document b{font-size:11px;overflow-wrap:anywhere}
.bgt-portal-document em{font-size:10px;color:#087b36;font-style:normal;white-space:nowrap}
.bgt-portal-file-icon{width:34px;height:38px;display:grid;place-items:center;background:#fcefee;border-radius:8px;font-size:18px;flex:0 0 auto}
.bgt-portal-product-picker{bottom:150px;border-radius:15px}
.bgt-portal-emoji-picker{bottom:148px;border-radius:15px}
.bgt-portal-toast{border-radius:15px;box-shadow:0 18px 52px rgba(7,54,27,.2)}
@media(max-width:1050px){.bgt-portal-main{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:760px){
  .bgt-portal-topbar{height:64px;min-height:64px;flex-basis:64px;padding:6px 9px}
  .bgt-portal-main{width:100%;margin:0;border-radius:0}
  .bgt-portal-thread{grid-template-rows:60px auto minmax(0,1fr) auto}
  .bgt-portal-thread-head{height:60px;min-height:60px;padding:0 8px}
  .bgt-portal-context{min-height:34px;padding:6px 8px}
  .bgt-portal-messages{padding:12px 9px;gap:10px}
  .bgt-portal-message{max-width:92%;padding:9px 10px 7px}
  .bgt-portal-message p{font-size:12px}
  .bgt-portal-compose-dock{position:sticky;bottom:0;padding-bottom:env(safe-area-inset-bottom)}
  .bgt-portal-quick-replies{padding:6px 7px 2px;gap:5px}
  .bgt-portal-quick-replies>span{display:none}
  .bgt-portal-quick-replies button{padding:6px 9px;font-size:9px}
  .bgt-portal-attachment-preview{margin:4px 8px 0;min-height:42px;padding:5px 8px}
  .bgt-portal-attachment-preview-icon{width:28px;height:28px}
  .bgt-portal-compose{min-height:57px;padding:6px 7px 5px;gap:5px}
  .bgt-portal-compose textarea{min-height:42px;max-height:92px;padding:10px 11px;font-size:12px}
  .bgt-portal-compose button[type=submit]{width:39px;height:39px;min-width:39px;flex-basis:39px}
  .bgt-portal-emoji-button,.bgt-portal-attach{width:35px;height:35px;min-width:35px;flex-basis:35px;font-size:16px}
  .bgt-portal-char-count{display:none}
  .bgt-portal-compose-note{min-height:18px;gap:6px;font-size:8px;padding:0 5px 5px}
  .bgt-portal-compose-note span:last-child{display:none}
  .bgt-portal-product-picker{right:8px;bottom:116px;width:calc(100% - 16px)}
  .bgt-portal-emoji-picker{right:55px;bottom:115px}
  .bgt-portal-document-image{max-width:100%}
  .bgt-portal-document-image img{width:68px;height:62px}
}


/* 17 Nov 2026: simplified enquiry sidebar and clearer add-product action. */
.bgt-portal-share-product{
  background:linear-gradient(145deg,#0b8b43,#076d33)!important;
  border:1px solid #087b3a!important;
  color:#fff!important;
  font-family:Arial,Helvetica,sans-serif;
  font-size:27px!important;
  font-weight:500!important;
  line-height:1!important;
  box-shadow:0 4px 11px rgba(8,123,58,.18);
}
.bgt-portal-share-product:hover{
  background:linear-gradient(145deg,#087b3a,#045b2b)!important;
  border-color:#05632e!important;
  color:#fff!important;
  transform:translateY(-1px);
}
.bgt-portal-share-product:focus-visible{outline:3px solid rgba(11,139,67,.22);outline-offset:2px}


/* 17 Nov 2026: give the conversation more horizontal room and remove permanent helper strip. */
@media (min-width:761px){
  .bgt-portal-main{grid-template-columns:clamp(280px,23vw,320px) minmax(0,1fr)}
}
@media (max-width:1050px) and (min-width:761px){
  .bgt-portal-main{grid-template-columns:280px minmax(0,1fr)}
}
.bgt-portal-compose-note{display:none!important}
.bgt-portal-thread{min-width:0}
.bgt-portal-messages{padding-left:clamp(22px,3.8vw,54px);padding-right:clamp(22px,3.8vw,54px)}
.bgt-portal-message{max-width:min(82%,820px)}
.bgt-portal-compose-dock{padding-bottom:max(9px,env(safe-area-inset-bottom))}
.bgt-portal-compose{padding-left:18px;padding-right:18px}
@media(max-width:760px){
  .bgt-portal-message{max-width:94%}
  .bgt-portal-compose{padding-left:8px;padding-right:8px}
}

/* 17 Nov 2026: full-viewport buyer chat, date markers and agent typing cue.
   My Enquiries sidebar content and component styling are intentionally unchanged. */
html, body {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
.bgt-portal {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
.bgt-portal-main {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow: none;
}
.bgt-portal-fullscreen-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #cfe3d4;
  border-radius: 10px;
  background: #f7fbf8;
  color: #176338;
  font: 700 11px/1 Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.bgt-portal-fullscreen-btn:hover { background: #eaf6ee; border-color: #a9d2b5; transform: translateY(-1px); }
.bgt-portal-fullscreen-btn.active { background: #e8f6ec; border-color: #a9d5b5; }
.bgt-portal-fullscreen-btn > span:first-child { font-size: 17px; line-height: 1; }
.bgt-portal-compose-note { display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.bgt-portal-compose-dock { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.bgt-portal-date-divider {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 5px 0 7px;
  pointer-events: none;
}
.bgt-portal-date-divider span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 13px;
  border: 1px solid #e0e9e2;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 8px rgba(22,65,39,.06);
  color: #687e70;
  font: 700 10px/1.2 Arial, sans-serif;
  letter-spacing: .15px;
}
.bgt-portal-agent-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(80%, 420px);
  margin: 2px 0 5px;
  padding: 10px 14px;
  border: 1px solid #dbe9df;
  border-radius: 15px 15px 15px 5px;
  background: #fff;
  color: #557361;
  box-shadow: 0 3px 12px rgba(20,65,38,.045);
  font: 600 11px/1.35 Arial, sans-serif;
}
.bgt-typing-dots { display: inline-flex; align-items: center; gap: 4px; height: 13px; }
.bgt-typing-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #168447; opacity: .45; animation: bgtAgentTypingDot 1s infinite ease-in-out; }
.bgt-typing-dots i:nth-child(2) { animation-delay: .15s; }
.bgt-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bgtAgentTypingDot { 0%,60%,100% { opacity:.35; transform:translateY(0); } 30% { opacity:1; transform:translateY(-4px); } }
.bgt-portal-agent-line em.is-typing { display:inline-flex; align-items:center; }
@media (max-width: 760px) {
  .bgt-portal-top-actions { gap: 5px; }
  .bgt-portal-fullscreen-btn { width: 36px; min-width: 36px; height: 36px; padding: 0; border-radius: 9px; }
  .bgt-portal-fullscreen-btn .bgt-fullscreen-label { display: none; }
  .bgt-portal-main { width: 100%; margin: 0; border-radius: 0; }
}
