.b2b-qws-buttons{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0;align-items:center}.b2b-qws-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;padding:11px 16px;border:0!important;border-radius:var(--b2b-qws-radius,6px)!important;background:var(--b2b-qws-wa,#16803d);color:var(--b2b-qws-text,#fff)!important;text-decoration:none!important;font:inherit;line-height:1.25;cursor:pointer;width:var(--b2b-qws-width,auto);box-sizing:border-box}.b2b-qws-quote{background:var(--b2b-qws-quote,#1d4ed8)}.b2b-qws-btn:hover,.b2b-qws-btn:focus{filter:brightness(.93);color:var(--b2b-qws-text,#fff)!important}.b2b-qws-modal{display:none;position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;padding:18px}.b2b-qws-modal.is-open{display:flex}.b2b-qws-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.65)}.b2b-qws-dialog{position:relative;z-index:1;width:min(100%,560px);max-height:90vh;overflow:auto;background:#fff;color:#1f2937;padding:28px;border-radius:12px;box-shadow:0 20px 70px rgba(0,0,0,.25)}.b2b-qws-dialog h2{margin:0 40px 8px 0;font-size:24px}.b2b-qws-dialog p{margin:0 0 18px}.b2b-qws-close{position:absolute;right:12px;top:8px;border:0;background:transparent;color:#111;font-size:30px;cursor:pointer}.b2b-qws-dynamic-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.b2b-qws-field{display:flex;flex-direction:column;gap:5px;font-size:14px}.b2b-qws-field:has(textarea){grid-column:1/-1}.b2b-qws-field input,.b2b-qws-field textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:6px;padding:10px;font:inherit}.b2b-qws-field textarea{min-height:95px;resize:vertical}.b2b-qws-submit{margin-top:16px;width:100%;background:var(--b2b-qws-quote,#1d4ed8)}.b2b-qws-status{margin-top:10px;font-size:14px}.b2b-qws-status.is-error{color:#b91c1c}.b2b-qws-status.is-success{color:#166534}.b2b-qws-admin code{background:#f1f5f9;padding:2px 4px}@media(max-width:600px){.b2b-qws-dialog{padding:22px 16px}.b2b-qws-dynamic-fields{grid-template-columns:1fr}.b2b-qws-field:has(textarea){grid-column:auto}.b2b-qws-buttons .b2b-qws-btn{flex:1 1 100%}}
.b2b-qws-field input[type="file"]{padding:8px;background:#f8fafc}.b2b-qws-field small{font-size:12px;color:#64748b;line-height:1.4}

.b2b-qws-upload-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #cbd5e1;border-radius:7px;padding:10px;background:#f8fafc;min-height:46px;box-sizing:border-box}
.b2b-qws-upload-control .b2b-qws-file-input{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}
.b2b-qws-file-label{display:inline-flex;align-items:center;gap:6px;padding:9px 13px;border-radius:5px;background:#e2e8f0;color:#0f172a;font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap}
.b2b-qws-file-label:hover,.b2b-qws-file-input:focus+.b2b-qws-file-label{background:#cbd5e1;outline:2px solid #64748b;outline-offset:2px}
.b2b-qws-upload-icon{font-size:18px;line-height:1}
.b2b-qws-file-name{font-size:13px;color:#475569;overflow-wrap:anywhere}

.b2b-qws-floating{position:fixed!important;bottom:22px!important;z-index:999999!important;display:flex;align-items:center;gap:9px;padding:12px 16px;border-radius:999px;background:#25d366;color:#fff!important;text-decoration:none!important;box-shadow:0 5px 18px rgba(0,0,0,.22);font-weight:600;font-size:14px;line-height:1.2}
.b2b-qws-floating:hover{filter:brightness(.95);transform:translateY(-1px);color:#fff!important}
.b2b-qws-floating-right{right:22px}.b2b-qws-floating-left{left:22px}
.b2b-qws-floating-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1;flex-shrink:0}.b2b-qws-floating-icon svg{display:block;width:28px;height:28px}
@media(max-width:600px){.b2b-qws-floating{bottom:15px;padding:12px;border-radius:50%;width:52px;height:52px;justify-content:center;box-sizing:border-box}.b2b-qws-floating-label{display:none}.b2b-qws-floating-icon{font-size:23px}}

body .b2b-qws-floating{visibility:visible!important;opacity:1!important;display:flex!important;pointer-events:auto!important}html body .b2b-qws-floating{position:fixed!important}

/* v1.0.9: responsive modal and robust floating control visibility */
.b2b-qws-modal{z-index:2147483000!important;box-sizing:border-box}
.b2b-qws-dialog{width:min(560px,calc(100vw - 36px));max-width:calc(100vw - 36px);max-height:calc(100dvh - 36px);overscroll-behavior:contain}
.b2b-qws-floating{position:fixed!important;display:flex!important;visibility:visible!important;opacity:1!important;z-index:2147482000!important;isolation:isolate;min-height:48px;min-width:48px}
.b2b-qws-floating-icon svg{width:28px!important;height:28px!important;max-width:none!important;max-height:none!important;visibility:visible!important;opacity:1!important}
@media(max-width:767px){
 .b2b-qws-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px 14px;border-radius:10px}
 .b2b-qws-dialog h2{font-size:21px;line-height:1.25;margin-right:32px}
 .b2b-qws-dialog p{font-size:14px;line-height:1.45;margin-bottom:14px}
 .b2b-qws-dynamic-fields{grid-template-columns:minmax(0,1fr);gap:10px}
 .b2b-qws-field{font-size:14px;min-width:0}
 .b2b-qws-field input,.b2b-qws-field textarea{font-size:16px;min-height:42px;padding:9px 10px}
 .b2b-qws-field textarea{min-height:78px}
 .b2b-qws-upload-control{min-width:0;gap:7px}
 .b2b-qws-file-name{max-width:100%;word-break:break-word}
 .b2b-qws-submit{min-height:44px;font-size:15px;padding:11px 12px}
 .b2b-qws-floating{bottom:16px!important;width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;padding:10px!important;right:16px!important;left:auto!important;border-radius:50%!important;justify-content:center!important;box-sizing:border-box!important}
 .b2b-qws-floating.b2b-qws-floating-left{left:16px!important;right:auto!important}
 .b2b-qws-floating-label{display:none!important}
}
@media(min-width:768px){
 .b2b-qws-floating{bottom:24px!important;padding:12px 17px!important}
 .b2b-qws-floating-label{display:inline!important}
}
