/* Compact product price and stable form focus. Scoped to product forms, including builder frames. */
body.ds-modern #cart-form .dsc-unit-badge{min-height:0!important;height:auto!important;background:transparent!important;border:0!important;border-radius:0!important;padding:4px 0!important;margin:8px 0!important}
body.ds-modern #cart-form .dsc-unit-badge [data-sale-unit],body.ds-modern #cart-form .dsc-unit-badge [data-base-label],body.ds-modern #cart-form .dsc-unit-badge .dsc-tier-scope,body.ds-modern #cart-form .dsc-unit-badge .dsc-current-price{display:none!important}
body.ds-modern #cart-form .dsc-unit-badge .dsc-price-tiers{background:transparent!important;border:0!important;display:block!important;margin:0!important;padding:0!important}
body.ds-modern #cart-form .dsc-unit-badge .dsc-price-tier-base{display:block!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
body.ds-modern #cart-form .dsc-unit-badge [data-unit-base]{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;font-size:27px!important;font-weight:600!important;line-height:1.2!important}
body.ds-modern #cart-form .dsc-unit-badge .dsc-price-tier[hidden]{display:none!important}
body.ds-modern #cart-form .dsc-packing-note{margin:0!important}
body.ds-modern #cart-form .dsc-packing-note summary{min-height:44px!important;font-size:12px!important;line-height:1.4!important;color:#50665d!important}
body.ds-modern #cart-form .dsc-inputs .dsc-fields>label>span[data-unit]{display:block!important;width:max-content!important;white-space:nowrap!important;font-size:13px!important;font-weight:500!important;line-height:1.4!important;margin:0 0 8px!important}
body.ds-modern #cart-form .dsc-inputs input:not([type=submit]),body.ds-modern #cart-form .dsc-inputs select{box-sizing:border-box!important;border-width:1px!important;box-shadow:none!important;outline:none!important;transition:border-color .15s,color .15s}
body.ds-modern #cart-form .dsc-inputs input:not([type=submit]):focus,body.ds-modern #cart-form .dsc-inputs select:focus{border-color:#44685c!important;outline:1px solid #44685c!important;outline-offset:2px!important;box-shadow:none!important}
@media(prefers-reduced-motion:reduce){body.ds-modern #cart-form .dsc-inputs input,body.ds-modern #cart-form .dsc-inputs select{transition:none!important}}




/* Stable compact card: common for product and builder iframe. */
body.ds-modern #cart-form .ds-size-help122,body.ds-modern #cart-form .dsc-stock-caption{display:none!important}
body.ds-modern #cart-form .dsc-input-heading{margin:0 0 6px!important;min-height:44px!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important}
body.ds-modern #cart-form .dsc-inputs h2{font-size:14px!important;font-weight:600!important;line-height:1.4!important;margin:0!important}
body.ds-modern #cart-form .dsc-input-heading a{background:transparent!important;border:0!important;color:#335d50!important;box-shadow:none!important;padding:0 0 0 12px!important;min-height:44px!important;text-decoration:underline!important;font-size:13px!important;width:auto!important;flex:0 0 auto!important;margin:0!important}
body.ds-modern #cart-form .dsc-availability{margin:6px 0!important}
body.ds-modern #cart-form .dsc-unit-badge{display:grid!important;grid-template-columns:minmax(0,1fr) 145px;gap:10px;align-items:center;min-height:52px!important;margin:10px 0 12px!important;padding:0!important;position:relative}
body.ds-modern #cart-form .dsc-unit-badge [data-unit-base]{font-size:25px!important;overflow-wrap:normal!important;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 4px}body.ds-modern #cart-form [data-unit-base]>span,body.ds-modern #cart-form [data-unit-base]>small{white-space:nowrap}body.ds-modern #cart-form [data-unit-base]>small{font-size:14px;font-weight:400}
body.ds-modern #cart-form .dsc-packing-note summary{display:flex!important;flex-direction:column;align-items:flex-end!important;justify-content:center;min-height:52px!important;text-align:right;font-size:12px!important;line-height:1.4!important;text-decoration:none!important;list-style:none}
body.ds-modern #cart-form .dsc-packing-note summary::-webkit-details-marker{display:none}
body.ds-modern #cart-form .dsc-packing-note summary b{font-weight:500;text-decoration:underline;text-underline-offset:3px}
body.ds-modern #cart-form .dsc-packing-note[open] small{position:absolute;z-index:12;top:100%;right:0;width:min(320px,100%);padding:12px;box-sizing:border-box;background:#fff;border:1px solid #cbd4cc;border-radius:8px;box-shadow:0 4px 14px #173f351a;font-size:13px;line-height:1.5}
body.ds-modern #cart-form .ds-surface104[data-fixed="1"]{padding:0!important;margin:8px 0!important;min-height:20px;border:0!important;display:flex;flex-wrap:wrap;gap:0 6px}
body.ds-modern #cart-form .ds-surface104[data-fixed="1"] legend{float:left;display:block;width:auto!important;margin:0 6px 0 0!important;padding:0!important;font-size:13px!important;line-height:20px!important;font-weight:400!important;border:0!important;color:#52665c}
body.ds-modern #cart-form .ds-surface104[data-fixed="1"] legend:after{content:':' }
body.ds-modern #cart-form .ds-surface104[data-fixed="1"] .ds-surface-hint104{display:block!important;margin:0!important;font-size:13px!important;line-height:20px!important;color:#294b3f}
body.ds-modern #cart-form .ds-status-quiet{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.ds-compact-product>.title{margin-bottom:18px!important}
.ds-product-summary{margin:0 0 12px}
@media(max-width:360px){body.ds-modern #cart-form .dsc-unit-badge{grid-template-columns:minmax(0,1fr) 119px;gap:8px}body.ds-modern #cart-form .dsc-unit-badge [data-unit-base]{font-size:22px!important}body.ds-modern #cart-form .dsc-packing-note summary{font-size:11px!important}}

body.ds-modern #cart-form [data-unit-base]>span{font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;color:inherit!important}

/* Compact spacing, without moving the quantity field when the threshold changes. */
body.ds-modern #cart-form .dsc-unit-badge{min-height:44px!important;margin:4px 0 6px!important}
body.ds-modern #cart-form .dsc-packing-note summary{min-height:44px!important}
body.ds-modern #cart-form .dsc-inputs{padding:14px 16px!important}
body.ds-modern #cart-form .dsc-input-heading{margin-bottom:2px!important}
body.ds-modern #cart-form .dsc-summary{padding:16px!important;margin-top:14px!important}
body.ds-modern #cart-form .dsc-summary h2{font-size:18px!important;margin:0 0 12px!important}
body.ds-modern .ds-compact-product .dsc-delivery{padding:16px!important;margin-top:14px!important}
body.ds-modern .ds-compact-product .dsc-delivery h2{font-size:18px!important;margin:0 0 12px!important}
body.ds-modern .ds-compact-product .dsc-product-packing{display:block;font-size:12px;font-weight:400;line-height:1.4;margin:10px 0 0}
body.ds-modern .ds-compact-product .dsc-product-packing select{display:block;width:100%;min-height:44px;margin-top:4px;font-size:13px;font-weight:500}
body.ds-modern .ds-compact-product .dsc-product-packing[hidden]{display:none!important}
@media(min-width:1025px){body.ds-modern .ds-compact-product .ds-compact-grid{align-items:start!important}}

/* Order totals must fit their column at all widths. */
body.ds-modern .dsc-checkout-bridge .ds-flow-summary,body.ds-modern .dsc-checkout-bridge .ds-flow-main{min-width:0!important}
body.ds-modern .dsc-checkout-bridge dl>div{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:baseline}
body.ds-modern .dsc-checkout-bridge dl>div[hidden]{display:none!important}
body.ds-modern .dsc-checkout-bridge dl dt,body.ds-modern .dsc-checkout-bridge dl dd{min-width:0!important;max-width:100%!important;width:auto!important;white-space:normal!important;overflow-wrap:anywhere}
body.ds-modern .dsc-checkout-bridge dl dd{margin:0!important;text-align:right}
body.ds-modern .dsc-checkout-bridge [data-payment-help][hidden],body.ds-modern .dsc-checkout-bridge .dsc-requisites[hidden]{display:none!important}
body.ds-modern .dsc-checkout-bridge .dsc-checkout-total dt,body.ds-modern .dsc-checkout-bridge .dsc-checkout-total dd{font-size:22px!important}

/* Delivery method and amount occupy separate cells. */
body.ds-modern #cart-form .dsc-summary dl>div{display:grid!important;grid-template-columns:minmax(0,1fr) max-content;gap:8px;align-items:baseline}
body.ds-modern #cart-form .dsc-summary dl>div[hidden]{display:none!important}
body.ds-modern #cart-form .dsc-summary dl dt{min-width:0!important;width:auto!important;white-space:normal!important;overflow-wrap:anywhere}
body.ds-modern #cart-form .dsc-summary dl dd{min-width:0!important;width:auto!important;white-space:nowrap!important;margin:0!important;text-align:right}
@media(max-width:767px){body.ds-modern .ds-compact-product .dsc-delivery>h2{display:none!important}}

body.ds-modern .ds-compact-product .dsc-delivery [data-address-status]{min-height:34px!important;font-size:12px;line-height:17px;margin:4px 0!important}

/* Keep price and unit together; reserve only the actual width of the fee note. */
body.ds-modern #cart-form .dsc-unit-badge{grid-template-columns:minmax(0,1fr) max-content!important}
body.ds-modern #cart-form .dsc-unit-badge [data-unit-base]{flex-wrap:nowrap}
/* Tablet order controls need the same unobstructed space as phone controls. */
@media(min-width:768px) and (max-width:1024px){body.ds-modern:has(.ds-compact-product) .bellLightB{display:none!important}}

/* Direct compact invoice actions and a distinct proposal action. */
body.ds-order-flow .dsc-requisites h3{font-size:14px!important;line-height:1.4;margin:10px 0 8px!important}
body.ds-order-flow .ds-requisites-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:0 0 4px}
body.ds-order-flow .ds-requisites-actions :is(.dsc-file-button,button){box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;min-height:44px;width:100%;margin:0!important;padding:7px 8px!important;border:1px solid #9bb5a8!important;border-radius:7px;background:#fff!important;color:#164c42!important;font:600 13px/1.3 Arial,sans-serif!important;text-align:center;white-space:normal;cursor:pointer}
body.ds-order-flow .ds-requisites-actions :is(.dsc-file-button,button):hover{background:#edf4ef!important}
body.ds-order-flow .ds-requisites-actions :is(.dsc-file-button,button):focus-visible{outline:2px solid #397362;outline-offset:2px}
body.ds-order-flow .dsc-requisites>small{font-size:11px;color:#66776c}
body.ds-order-flow .dsc-requisites>label[hidden]{display:none!important}
body.ds-order-flow .dsc-requisites>label:not([hidden]){display:block;margin-top:8px}
body.ds-order-flow .ds-flow-kp{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 12px;margin-top:12px;border:1px solid #8cae9d;border-radius:7px;background:#edf4ef;color:#10483d;font-size:14px;font-weight:600;text-decoration:none;text-align:center}
body.ds-order-flow .ds-flow-kp:hover{background:#dfebe3}
body.ds-order-flow .ds-flow-kp:focus-visible{outline:2px solid #397362;outline-offset:2px}
body.ds-modern.ds-order-flow .dsc-checkout-bridge .dsc-requisites .ds-requisites-actions>.dsc-file-button{display:flex!important;grid-column:1!important;grid-row:1!important;align-self:stretch!important;height:44px!important;margin:0!important}
body.ds-modern.ds-order-flow .dsc-checkout-bridge .dsc-requisites .ds-requisites-actions>button{grid-column:2!important;grid-row:1!important;align-self:stretch!important;height:44px!important;margin:0!important}
body.ds-modern.ds-order-flow .bellLightB{display:none!important}

/* Product purchase link reuses the header MAX emblem. */
body.ds-modern #cart-form .dsc-input-heading .dsc-max-question{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap;flex:0 0 auto;min-height:44px;font-size:12px!important;text-decoration:underline;text-underline-offset:3px}
body.ds-modern #cart-form .dsc-input-heading .dsc-max-question img{display:block!important;width:20px!important;height:20px!important;object-fit:contain;flex:0 0 20px}
