/* The full product supply editor keeps its existing DOM and presentation. */
#productSupplyModal.xw-global-profit-mode.xw-quick-profit-engine{display:none!important}
.xwqp-overlay{position:fixed;inset:0;z-index:10040;background:rgba(21,32,51,.4);display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;color:#263c57;font:400 13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;overscroll-behavior:contain}
.xwqp-overlay [hidden],.xwqp-overlay[hidden]{display:none!important}
.xwqp-overlay *{box-sizing:border-box}
.xwqp-overlay button,.xwqp-overlay input{font-family:inherit;font-size:12px}
.xwqp-overlay button{cursor:pointer}
.xwqp-overlay button:disabled{opacity:.55;cursor:wait}
.xwqp-dialog{width:1240px;max-width:100%;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;background:#fff;border:1px solid #dfe6f0;border-radius:10px;overflow:hidden;box-shadow:0 20px 70px #10213c33}
.xwqp-dialog.is-expanded{width:calc(100vw - 40px);height:calc(100dvh - 40px)}
.xwqp-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid #e5ebf3;flex:none}
.xwqp-dialog h2{font-size:19px;line-height:26px;margin:0;font-weight:600;color:#172b45}
.xwqp-dialog>header>div{display:flex;gap:8px}
.xwqp-dialog>header button{height:30px;width:30px;border:1px solid #dce4f0;border-radius:5px;background:#fff;font-size:21px;color:#637791;padding:0;line-height:25px}
.xwqp-content{padding:16px 20px;overflow:auto;min-height:0;background:#fafcfe;overscroll-behavior:contain}
.xwqp-fetch{display:grid;grid-template-columns:110px minmax(0,1fr) 100px;gap:10px;align-items:center}
.xwqp-market{display:flex;align-items:center;height:36px;border:1px solid #dce4f0;border-radius:5px;padding:0 10px;background:#fff;white-space:nowrap;font-size:12px}
.xwqp-overlay input{height:34px;min-width:0;width:100%;border:1px solid #dce4f0;border-radius:5px;padding:6px 9px;color:#253d5a;background:#fff;outline:none}
.xwqp-overlay input:focus{border-color:#739bf1;box-shadow:0 0 0 2px #2863ee18}
.xwqp-overlay input[type=number]{appearance:textfield;-moz-appearance:textfield}
.xwqp-overlay input::-webkit-inner-spin-button,.xwqp-overlay input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.xwqp-primary{background:#2863ee;border:1px solid #2863ee;border-radius:5px;color:#fff;padding:7px 13px;height:34px;white-space:nowrap}
.xwqp-message{font-size:12px;line-height:18px;padding:8px 10px;border-radius:5px;background:#eef4ff;color:#476786;margin:10px 0 0;overflow-wrap:anywhere}
.xwqp-message.is-error{background:#fff4f1;color:#b65243}
.xwqp-product{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e5ebf3;border-radius:6px;background:#fff;margin:0;min-width:0}
.xwqp-product>img,.xwqp-product-placeholder{height:42px;width:42px;object-fit:contain;flex:none;border:1px solid #edf1f6;border-radius:4px;display:grid;place-items:center;font-size:10px;color:#9aa8ba;background:#fff}
.xwqp-product>div{min-width:0;flex:1}
.xwqp-product strong{font-size:12px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#263c57}
.xwqp-product-meta{display:flex;gap:5px 12px;align-items:center;flex-wrap:wrap;font-size:10px;color:#7b8fa7;margin-top:3px;min-width:0}
.xwqp-product-meta a{color:#2863ee;white-space:nowrap;text-decoration:none}
.xwqp-product-meta [data-qp-category]{max-width:360px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.xwqp-product>small{font-size:10px;color:#789083;white-space:nowrap}
.xwqp-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(380px,1fr);gap:16px;align-items:start}
.xwqp-left{display:flex;flex-direction:column;gap:14px;min-width:0}
.xwqp-card{border:1px solid #e1e8f2;border-radius:6px;background:#fff;min-width:0;overflow:hidden}
.xwqp-card h3{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;background:#edf4fe;padding:8px 12px;font-size:13px;font-weight:600;color:#244566;margin:0}
.xwqp-card h3 button{font-size:10px;color:#2863ee;border:1px solid #c7d8f9;background:#fff;border-radius:4px;padding:3px 7px;white-space:nowrap}
.xwqp-price-row{display:flex;gap:10px;align-items:center;padding:14px 12px}
.xwqp-field{display:flex;align-items:center;gap:7px;margin:0;min-width:0;font-size:11px;line-height:18px;color:#3a536e}
.xwqp-field>span:first-child{white-space:nowrap;flex:none}
.xwqp-control{display:flex;align-items:center;min-width:0;flex:1}
.xwqp-control>i{font-style:normal;display:grid;place-items:center;background:#f9fbfd;border:1px solid #dce4f0;border-right:0;border-radius:5px 0 0 5px;height:34px;width:26px;flex:none;color:#536d8a}
.xwqp-control>i+input{border-radius:0 5px 5px 0}
.xwqp-price-row .xwqp-field{flex:1}
.xwqp-price-row .xwqp-field:last-child{flex:.73}
.xwqp-pack{padding:12px}
.xwqp-source-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:10px;line-height:18px}
.xwqp-source-line>span{color:#2863ee;background:#edf4ff;border-radius:4px;padding:4px 8px;white-space:nowrap}
.xwqp-source-line>small{font-size:10px;color:#7f93ac}
.xwqp-adopted{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f4f7fb;padding:11px 12px;margin:10px 0 12px;border-radius:5px;font-size:11px}
.xwqp-adopted>span{display:flex;gap:12px;align-items:center;min-width:0}
.xwqp-adopted strong{font-size:12px;color:#263c57;overflow-wrap:anywhere}
.xwqp-freight{display:flex;align-items:center;gap:10px;border-top:1px solid #e9eef5;padding-top:12px;font-size:11px}
.xwqp-freight>button:first-of-type{border:1px solid #dce4f0;border-radius:5px;background:#fff;color:#344f6e;min-height:32px;padding:5px 10px;max-width:75%;text-align:left;font-size:11px}
.xwqp-text{border:0;background:none;color:#2863ee;padding:0;font-size:10px;white-space:nowrap}
.xwqp-weight-basis{display:block;font-size:10px;line-height:18px;color:#7d92ac;margin:6px 0 0;overflow-wrap:anywhere}
.xwqp-own{background:#f9fbff;border:1px solid #e5edf8;border-radius:5px;padding:10px;margin:10px 0}
.xwqp-own-dims{display:flex;align-items:center;gap:6px;font-size:10px}
.xwqp-own-dims input{max-width:72px;min-width:0}
.xwqp-own-dims>b{font-weight:400;color:#8496ad}
.xwqp-own-dims>span{white-space:nowrap}
.xwqp-own-weight{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:10px}
.xwqp-own-weight .xwqp-control{max-width:100px}
.xwqp-own-weight>button{background:none;border:0;font-size:10px;color:#2863ee;padding:0;white-space:nowrap}
.xwqp-own>small{font-size:10px;color:#8698ae;display:block;margin-top:6px}
.xwqp-ads{padding:12px}
.xwqp-modes{display:inline-flex;border:1px solid #d7e2f5;border-radius:4px;overflow:hidden;margin-bottom:12px;max-width:100%}
.xwqp-modes>button{border:0;border-right:1px solid #d7e2f5;background:#f9fbfe;font-size:11px;padding:6px 12px;color:#57728f;white-space:nowrap;min-height:30px}
.xwqp-modes>button:last-child{border-right:0}
.xwqp-modes>button.is-selected{background:#edf4ff;color:#2863ee;box-shadow:inset 0 0 0 1px #7fa1fb}
.xwqp-ad-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:8px}
.xwqp-ad-note{display:block;font-size:10px;color:#899aaf;margin-bottom:10px;line-height:17px}
.xwqp-extra{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.xwqp-right{min-width:0;border:1px solid #e1e8f2;border-radius:6px;background:#fff;padding:12px}
.xwqp-fee-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px 10px;margin-bottom:10px}
.xwqp-fee-head h3{font-size:16px;font-weight:600;color:#203852;margin:0;white-space:nowrap}
.xwqp-fee-head>small{grid-column:1/3;font-size:10px;color:#8194ac;line-height:16px}
.xwqp-rate-link{grid-column:3;grid-row:2;color:#8194ac}
.xwqp-fee-group{background:#f2f6fb;border-radius:6px;margin-bottom:9px;padding:10px 11px}
.xwqp-fee-group h4{margin:0 0 5px;font-size:12px;font-weight:600;color:#304966}
.xwqp-fee-row{display:grid;grid-template-columns:64px minmax(0,1fr) 42px 52px 16px;align-items:center;gap:6px;min-height:29px;font-size:11px}
.xwqp-fee-row>button{padding:0;background:none;border:0;text-align:left;color:#354f6d;font-size:11px;line-height:18px}
.xwqp-fee-row .xwqp-fee-amount{text-align:right;font-size:12px;font-weight:600;color:#253c59;white-space:nowrap;font-variant-numeric:tabular-nums}
.xwqp-fee-row>[data-qp-detail]{min-width:0;color:#8397af;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xwqp-fee-row>[data-qp-cny]{font-size:10px;color:#8194ad;text-align:right;white-space:nowrap}
.xwqp-fee-row>.xwqp-pencil{color:#8397af;text-align:right;font-size:13px}
.xwqp-fee-row.is-pending .xwqp-fee-amount{color:#ac8b5b}
.xwqp-result{display:grid;grid-template-columns:1.1fr 1fr;background:#ecfaf1;border-radius:6px;padding:12px 14px;color:#15803d;gap:6px 14px}
.xwqp-result>div{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.xwqp-result>div:nth-child(2){border-left:1px solid #d3eadc;padding-left:14px}
.xwqp-result>div>span{font-size:11px;color:#527668;white-space:nowrap;line-height:20px}
.xwqp-result strong{font-size:27px;line-height:36px;font-weight:650;white-space:nowrap}
.xwqp-result small{font-size:10px;color:#80998c}
.xwqp-result em{font-size:9px;line-height:16px;font-style:normal;font-weight:400;color:#bd8d35;background:#fff4d9;border-radius:9px;padding:1px 5px;margin-left:5px;white-space:nowrap}
.xwqp-result>[data-qp-pending]{grid-column:1/-1;line-height:18px;color:#9f8159}
.xwqp-result.is-pending{background:#f8f9fc;color:#8a9aaf}
.xwqp-result.is-negative{background:#fff2ee;color:#c15142}
.xwqp-result.is-negative>div>span{color:#aa796d}
.xwqp-dialog>footer{flex:none;display:flex;align-items:center;justify-content:flex-end;border-top:1px solid #e5ebf3;padding:10px 20px;gap:12px;background:#fff}
.xwqp-dialog>footer>small{font-size:10px;color:#8b9bad}
.xwqp-dialog>footer>button{height:32px;min-width:76px;border:1px solid #dce4f0;background:#fff;border-radius:5px;font-size:12px;color:#405b78}
@media(max-width:1000px){.xwqp-overlay{padding:12px}.xwqp-dialog{max-height:calc(100dvh - 24px)}.xwqp-columns{grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);gap:12px}.xwqp-content{padding:12px}.xwqp-price-row{flex-wrap:wrap;gap:8px 12px}.xwqp-price-row .xwqp-field{min-width:125px}.xwqp-adopted{flex-wrap:wrap}}
@media(max-width:760px){.xwqp-columns{grid-template-columns:minmax(0,1fr)}.xwqp-product>small{display:none}.xwqp-ad-fields,.xwqp-extra{grid-template-columns:minmax(0,1fr)}.xwqp-fetch{grid-template-columns:86px minmax(0,1fr) 84px;gap:6px}.xwqp-market{font-size:10px;padding:0 6px}.xwqp-primary{padding:6px 8px}.xwqp-own-dims{flex-wrap:wrap}.xwqp-own-dims input{max-width:60px}.xwqp-source-line{gap:5px}.xwqp-overlay{padding:8px}.xwqp-dialog{max-height:calc(100dvh - 16px)}.xwqp-fee-head{gap:5px}.xwqp-fee-row{grid-template-columns:64px minmax(0,1fr) 42px 52px 16px}.xwqp-product-meta [data-qp-category]{max-width:210px}}

/* The lookup and product summary belong exclusively to the left column. */
.xwqp-left>.xwqp-message{margin:0}
.xwqp-price-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px;padding:14px}
.xwqp-field{flex-direction:column;align-items:stretch;gap:6px;font-size:12px}
.xwqp-field>.xwqp-control{flex:none;width:100%}
.xwqp-control>input:not(:last-child){border-radius:5px 0 0 5px}
.xwqp-control>i+input:not(:last-child){border-radius:0}
.xwqp-control>i.xwqp-unit{border:1px solid #dce4f0;border-left:0;border-radius:0 5px 5px 0;width:auto;min-width:30px;padding:0 6px;font-size:11px}
.xwqp-pack{padding:14px}
.xwqp-pack-actions{display:flex;align-items:center;gap:8px}
.xwqp-source-badge{font-size:10px;font-weight:400;line-height:20px;color:#2863ee;background:#f6f9ff;border:1px solid #d2dff8;border-radius:4px;padding:1px 7px;white-space:nowrap}
.xwqp-pack-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.xwqp-adopted{margin:12px 0;padding:7px 10px;background:#eef5ff;color:#426a9a;line-height:18px;font-size:11px}
.xwqp-adopted>span{display:block;overflow-wrap:anywhere}
.xwqp-freight-settings{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) auto;align-items:end;gap:14px;border-top:1px solid #e9eef5;padding-top:12px}
.xwqp-overlay select{height:34px;min-width:0;width:100%;border:1px solid #dce4f0;border-radius:5px;padding:5px 8px;color:#253d5a;background:#fff;font:inherit;font-size:12px;outline:none}
.xwqp-overlay select:focus{border-color:#739bf1;box-shadow:0 0 0 2px #2863ee18}
.xwqp-freight-result{display:grid;justify-items:end;min-width:84px;padding-left:12px;border-left:1px solid #e5ebf3;line-height:18px}
.xwqp-freight-result>span{font-size:10px;color:#5d7590}
.xwqp-freight-result>strong{font-size:18px;color:#263c57;font-variant-numeric:tabular-nums;line-height:24px}
.xwqp-freight-result>small{font-size:10px;color:#8397ae}
.xwqp-weight-basis{margin-top:9px}
.xwqp-ads{padding:12px 14px}
.xwqp-modes{margin-bottom:0}
.xwqp-ad-fields{margin:12px 0}
.xwqp-other{margin-top:12px;border-top:1px solid #e9eef5;padding-top:8px}
.xwqp-other>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;min-height:26px;font-size:11px;color:#35516f}
.xwqp-other>summary::-webkit-details-marker{display:none}
.xwqp-other>summary:before{content:'›';font-size:20px;line-height:20px;transform-origin:center}
.xwqp-other[open]>summary:before{transform:rotate(90deg)}
.xwqp-other>summary>span{flex:1}
.xwqp-other>summary>small{font-size:10px;font-weight:400;color:#8194ad}
.xwqp-extra{padding:10px 0 2px}
.xwqp-right{display:flex;flex-direction:column;align-self:stretch}
.xwqp-result{margin-top:auto}
.xwqp-dialog.is-expanded .xwqp-content{flex:1}
@media(max-width:1000px){.xwqp-price-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.xwqp-price-row .xwqp-field{min-width:0}.xwqp-pack-fields{gap:8px}.xwqp-product{gap:8px}.xwqp-product>small{display:none}.xwqp-fetch{grid-template-columns:90px minmax(0,1fr) 90px;gap:8px}.xwqp-freight-settings{gap:10px}.xwqp-freight-result{min-width:72px;padding-left:8px}}
@media(max-width:860px){.xwqp-columns{grid-template-columns:minmax(0,1fr)}.xwqp-right{align-self:start}.xwqp-result{margin-top:0}}
@media(max-width:480px){.xwqp-price-row{gap:8px}.xwqp-pack-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.xwqp-freight-settings{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.xwqp-freight-result{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:10px;border-left:0;padding-left:0}.xwqp-other>summary{flex-wrap:wrap}.xwqp-overlay .xwqp-field{font-size:11px}}

/* Approved card layout: preserve top labels and separate editable field groups. */
.xwqp-dialog{width:1120px;max-height:min(780px,calc(100dvh - 48px))}
.xwqp-dialog>header{padding:10px 16px}
.xwqp-dialog.is-expanded{width:calc(100vw - 40px);height:calc(100dvh - 40px);max-height:calc(100dvh - 40px)}
.xwqp-content{padding:14px 16px;background:#fafcfe}
.xwqp-columns{grid-template-columns:minmax(0,1.45fr) minmax(420px,1fr);gap:20px;align-items:start}
.xwqp-left{gap:16px}
.xwqp-left .xwqp-fetch{grid-template-columns:100px minmax(0,1fr) 100px;gap:12px}
.xwqp-left input,.xwqp-left select,.xwqp-left .xwqp-control>i,.xwqp-left .xwqp-market,.xwqp-left .xwqp-primary{height:36px}
.xwqp-left .xwqp-field{flex-direction:column;align-items:stretch;gap:8px}
.xwqp-left .xwqp-card h3{min-height:32px;padding:6px 16px}
.xwqp-left .xwqp-price-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:14px 16px}
.xwqp-left .xwqp-pack{padding:14px 16px}
.xwqp-left .xwqp-pack-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.xwqp-left .xwqp-adopted{margin:12px 0;padding:6px 10px}
.xwqp-left .xwqp-freight-settings{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto;gap:24px;padding-top:16px}
.xwqp-left .xwqp-weight-basis{margin-top:8px}
.xwqp-left .xwqp-freight-result{min-width:76px}
.xwqp-left .xwqp-ads{padding:12px 16px}
.xwqp-left .xwqp-ad-fields,.xwqp-left .xwqp-extra{gap:24px}
.xwqp-left .xwqp-product{padding:8px 10px;gap:10px}
.xwqp-left .xwqp-product-meta{flex-wrap:nowrap;overflow:hidden}
.xwqp-left .xwqp-product-meta [data-qp-category]{display:none}
.xwqp-left .xwqp-product-meta [data-qp-reference-price]{white-space:nowrap}
/* Keep the original fee cards, calculation basis and both currency columns. */
.xwqp-right{padding:14px;align-self:start}
.xwqp-fee-head{margin-bottom:12px}
.xwqp-fee-group{padding:10px 12px;background:#f2f6fb;margin-bottom:9px}
.xwqp-fee-group h4{font-size:13px;margin-bottom:5px}
.xwqp-fee-row{grid-template-columns:70px minmax(0,1fr) 38px 48px;gap:6px;min-height:30px}
.xwqp-fee-row>button{font-size:12px}
.xwqp-fee-row>[data-qp-detail]{font-size:10px;text-align:center}
.xwqp-fee-row>.xwqp-pencil{display:none}
.xwqp-fee-row .xwqp-fee-amount{font-size:13px}
.xwqp-result{margin-top:4px}
@media(max-width:1050px){
 .xwqp-columns{grid-template-columns:minmax(0,1fr) minmax(390px,.92fr);gap:16px}
 .xwqp-left .xwqp-price-row,.xwqp-left .xwqp-pack-fields,.xwqp-left .xwqp-freight-settings{gap:16px}
 .xwqp-left .xwqp-fetch{grid-template-columns:86px minmax(0,1fr) 90px;gap:8px}
}
@media(max-width:900px){
 .xwqp-columns{grid-template-columns:minmax(0,1fr)}
 .xwqp-right{width:100%}
}
@media(max-width:480px){
 .xwqp-dialog{max-height:calc(100dvh - 16px)}
 .xwqp-content{padding:12px}
 .xwqp-left .xwqp-price-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .xwqp-left .xwqp-pack-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .xwqp-left .xwqp-freight-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .xwqp-left .xwqp-ad-fields,.xwqp-left .xwqp-extra{grid-template-columns:minmax(0,1fr)}
 .xwqp-fee-row{grid-template-columns:64px minmax(0,1fr) 34px 46px;gap:4px}
}

/* Explicit minimize label and page-local tray, independent of the modal backdrop. */
.xwqp-dialog>header button.xwqp-minimize{width:auto;height:30px;padding:0 10px;border-color:transparent;background:transparent;color:#2863ee;font-size:12px;line-height:28px;white-space:nowrap}
.xwqp-dialog>header button.xwqp-minimize:hover{background:#edf4ff;border-color:#d6e3ff}
.xwqp-tray{position:fixed;right:20px;bottom:20px;z-index:10005;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);padding:11px 14px;border:1px solid #d5e1f6;border-radius:10px;background:#fff;box-shadow:0 6px 24px #10213c26;color:#243d5d;cursor:pointer;font:400 13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;text-align:left}
.xwqp-tray[hidden]{display:none!important}
.xwqp-tray:hover{border-color:#8babee;background:#f8fbff}
.xwqp-tray:focus-visible,.xwqp-minimize:focus-visible{outline:2px solid #739bf1;outline-offset:2px}
.xwqp-tray-icon{display:grid;place-items:center;background:#2863ee;color:#fff;width:30px;height:30px;border-radius:8px;flex:none;font-size:20px}
.xwqp-tray-copy{display:flex;flex-direction:column;min-width:0}
.xwqp-tray-copy strong{font-size:13px;font-weight:600}
.xwqp-tray-copy small{font-size:10px;color:#758ba6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}
.xwqp-tray-copy small[hidden]{display:none}
.xwqp-result.is-pending>[data-qp-pending]{color:#8597ae}
@media(max-width:480px){.xwqp-tray{right:12px;bottom:12px}.xwqp-dialog>header{gap:8px}.xwqp-dialog>header>div{gap:4px}.xwqp-dialog>header button.xwqp-minimize{padding:0 5px;font-size:11px}}

/* Same fee-name, basis and profit interactions as the product supply workbench. */
.xwqp-fee-row>[data-qp-detail]{display:block;width:100%;padding:2px 0;min-height:22px;border:0;background:transparent;color:#8397af;font:inherit;font-size:10px;line-height:18px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.xwqp-fee-row:hover,.xwqp-fee-row:focus-within{background:#e6f0ff;border-radius:4px}
.xwqp-fee-row>[data-qp-detail]:hover{color:#165dff}
.xwqp-result>[data-qp-explain]{cursor:pointer}
.xwqp-fee-name:focus-visible,.xwqp-fee-amount:focus-visible,.xwqp-result>[data-qp-explain]:focus-visible{outline:2px solid #8caff4;outline-offset:3px;border-radius:3px}

/* Inline field groups: close label/control pairing with clear space between groups. */
.xwqp-left .xwqp-field{flex-direction:row;align-items:center;gap:8px;min-width:0}
.xwqp-left .xwqp-field>.xwqp-control{flex:1;width:auto;min-width:0}
.xwqp-left .xwqp-field>select{flex:1;width:auto;min-width:0}
.xwqp-left input,.xwqp-left select,.xwqp-left .xwqp-control>i{height:34px}
.xwqp-left .xwqp-price-row{grid-template-columns:minmax(0,1.25fr) minmax(0,1.15fr) minmax(0,.8fr);gap:32px;padding:12px 16px;align-items:center}
.xwqp-left .xwqp-pack-fields{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.1fr);gap:32px;align-items:center}
.xwqp-left .xwqp-pack{padding:12px 16px}
.xwqp-left .xwqp-freight-settings{align-items:center;gap:32px;padding-top:12px}
.xwqp-left .xwqp-freight-result{grid-template-columns:auto auto;align-items:center;column-gap:8px;min-width:96px;padding-left:10px;line-height:16px}
.xwqp-left .xwqp-freight-result>small{grid-column:2;justify-self:end;line-height:14px}
.xwqp-left .xwqp-freight-result>strong{line-height:24px}
.xwqp-left .xwqp-product>img,.xwqp-left .xwqp-product-placeholder{height:38px;width:38px}
.xwqp-left .xwqp-adopted{margin:10px 0;padding:5px 10px}
.xwqp-left .xwqp-ads{padding:10px 16px}
.xwqp-left .xwqp-other{margin-top:10px;padding-top:6px}
.xwqp-fetch-action{min-width:0;display:flex;flex-direction:column;gap:4px}
.xwqp-fetch-action>.xwqp-primary{width:100%}
.xwqp-fetch-status{font-size:10px;line-height:15px;text-align:center;color:#b45343;background:none;padding:0;margin:0}
.xwqp-control.is-invalid{outline:1px solid #ef6464;outline-offset:-1px;border-radius:5px;box-shadow:0 0 0 2px #ef646412}
.xwqp-control.is-invalid>input,.xwqp-control.is-invalid>i{border-color:#ef6464!important}
.xwqp-control.is-invalid>input:focus{box-shadow:none}
.xwqp-overlay input.is-invalid{border-color:#ef6464;box-shadow:0 0 0 2px #ef646412}
.xwqp-fee-amount.is-invalid{outline:1px solid #ef6464;outline-offset:3px;border-radius:3px;background:#fff5f5}
.xwqp-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.xwqp-left .xwqp-price-row,.xwqp-left .xwqp-pack-fields,.xwqp-left .xwqp-freight-settings{gap:20px}}
@media(max-width:900px){.xwqp-left .xwqp-price-row,.xwqp-left .xwqp-pack-fields,.xwqp-left .xwqp-freight-settings{gap:32px}}
@media(max-width:620px){.xwqp-left .xwqp-price-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.xwqp-left .xwqp-pack-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.xwqp-left .xwqp-freight-settings{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.xwqp-left .xwqp-freight-result{grid-column:1/-1;justify-content:end;border-left:0;display:flex;gap:8px}.xwqp-left .xwqp-freight-result>small{display:none}.xwqp-left .xwqp-ad-fields,.xwqp-left .xwqp-extra{grid-template-columns:minmax(0,1fr)}}

/* v9: Match the approved inline-field preview. Keep the right fee panel intact. */
/* The site-wide input/select min-height must not override the compact controls. */
.xwqp-left input,.xwqp-left select{
  height:34px;min-height:34px;max-height:34px;
  margin:0;padding:0 9px;box-sizing:border-box;line-height:normal;
}
.xwqp-left .xwqp-control{align-items:stretch;gap:0;min-height:34px}
.xwqp-left .xwqp-control>input{display:block;flex:1 1 0;width:0;min-width:0}
.xwqp-left .xwqp-control>i{
  height:34px;min-height:34px;max-height:34px;margin:0;
  box-sizing:border-box;align-self:stretch;
}
.xwqp-left .xwqp-fetch>input{height:36px;min-height:36px;max-height:36px}
/* Route and rate stay inline; the estimated freight uses the preview's three lines. */
.xwqp-left .xwqp-freight-result{
  display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;
  min-width:76px;column-gap:0;row-gap:0;align-items:center;
  justify-items:end;padding-left:10px;line-height:16px;
}
.xwqp-left .xwqp-freight-result>span{grid-column:1;line-height:16px}
.xwqp-left .xwqp-freight-result>strong{grid-column:1;line-height:24px}
.xwqp-left .xwqp-freight-result>small{grid-column:1;justify-self:end;line-height:14px}
/* The selected advertising mode is solid blue in the approved preview. */
.xwqp-left .xwqp-modes{display:flex;width:380px;max-width:100%;margin:0;align-items:stretch}
.xwqp-left .xwqp-modes>button{
  flex:1;min-width:0;height:34px;min-height:34px;max-height:34px;
  padding:0 12px;font-size:12px;line-height:18px;
}
.xwqp-left .xwqp-modes>button:first-child{flex:1.3}
.xwqp-left .xwqp-modes>button.is-selected{background:#2863ee;color:#fff;box-shadow:none}
.xwqp-left .xwqp-modes>button:focus-visible{outline:2px solid #739bf1;outline-offset:-3px}
/* Retain the desktop width, field-group spacing, and real scrolling when expanded. */
@media(min-width:901px){
  .xwqp-overlay{padding:12px 20px}
  .xwqp-dialog:not(.is-expanded){max-height:min(780px,calc(100dvh - 24px))}
  .xwqp-content{padding-top:12px;padding-bottom:12px}
}
@media(max-width:620px){
  .xwqp-left .xwqp-freight-result{display:flex;min-width:0;column-gap:8px}
  .xwqp-left .xwqp-modes>button{padding:0 8px;font-size:11px}
}

/* Fresh-open empty state: same card layout and right-hand fee presentation. */
.xwqp-product-placeholder svg{display:block;width:24px;height:24px}
.xwqp-product.is-empty .xwqp-product-placeholder{color:#99a8ba;background:#f3f6fa;border-color:#edf1f6}
.xwqp-product.is-empty strong{font-weight:400;color:#5d728c}
.xwqp-recover{flex:none;border:0;background:transparent;color:#2863ee;padding:4px 0 4px 8px;font:inherit;font-size:12px;white-space:nowrap}
.xwqp-recover:hover{text-decoration:underline}
.xwqp-recover:focus-visible{outline:2px solid #739bf1;outline-offset:3px;border-radius:3px}
.xwqp-left .xwqp-pack:not(.has-package) .xwqp-freight-settings{margin-top:14px}
@media(max-width:480px){.xwqp-recover{font-size:10px;padding-left:4px}}

.xwqp-overlay.is-initial .xwqp-fee-row.is-pending .xwqp-fee-amount{color:#8194ad}

/* v11: Requested header placement, pill action, plain ASIN, and black source label. */
.xwqp-fee-head{grid-template-columns:auto auto minmax(0,1fr) auto;column-gap:12px}
.xwqp-fee-head>h3{grid-column:1;grid-row:1}
.xwqp-fee-head>[data-qp-action="formula"]{grid-column:2;grid-row:1;justify-self:start}
.xwqp-fee-head>[data-qp-action="trial"]{grid-column:4;grid-row:1}
.xwqp-fee-head>small{grid-column:1/4;grid-row:2}
.xwqp-fee-head>.xwqp-rate-link{grid-column:4;grid-row:2}
.xwqp-dialog>header button.xwqp-minimize{
 display:inline-flex;align-items:center;justify-content:center;
 width:auto;height:28px;padding:0 12px;line-height:normal;
 border:1px solid #d2dff8;border-radius:999px;background:#f3f7ff;color:#2863ee;
}
.xwqp-dialog>header button.xwqp-minimize:hover{background:#e7efff;border-color:#b9cef6}
.xwqp-source-badge{color:#000}
@media(max-width:480px){.xwqp-fee-head{column-gap:8px}.xwqp-dialog>header button.xwqp-minimize{padding:0 10px}}

/* One summary row: measurements first, adopted head-freight weight in bold. */
.xwqp-left .xwqp-adopted{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:8px;white-space:nowrap;overflow-x:auto;scrollbar-width:thin}
.xwqp-left .xwqp-adopted>[data-qp-adopted-summary]{display:inline;flex:none;white-space:nowrap;overflow-wrap:normal}
.xwqp-left .xwqp-adopted>.xwqp-weight-divider{display:inline;flex:none;color:#9aadc4}
.xwqp-left .xwqp-adopted>[data-qp-chargeable-weight]{flex:none;font-size:11px;font-weight:700;line-height:18px;color:#203852;white-space:nowrap}
