.sc-custom-quantity-row{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;grid-column:1 / -1;margin:8px 0}
.sc-custom-quantity-row input[type=number]{width:110px!important;max-width:100%;margin:0!important;flex:0 0 110px}
.sc-custom-quantity-unit{font-size:14px;color:#344e40;white-space:nowrap}
.sc-custom-price-idle{font-size:0!important}
.sc-custom-price-idle::after{content:'–';font-size:16px;color:#929b96}

.sc-custom-collapsible{display:block!important;padding:0!important;overflow:hidden}
.sc-custom-quantity-details>summary{display:grid;grid-template-columns:minmax(0,1fr) 14px;gap:4px 10px;align-items:center;padding:16px;list-style:none;cursor:pointer;background:#f3f9f5;color:#007c36;font-weight:600}
.sc-custom-quantity-details>summary::-webkit-details-marker{display:none}
.sc-custom-quantity-details>summary::after{content:'';width:8px;height:8px;border-right:2px solid #008839;border-bottom:2px solid #008839;transform:rotate(45deg);grid-column:2;grid-row:1 / 3}
.sc-custom-quantity-details[open]>summary::after{transform:rotate(225deg)}
.sc-custom-quantity-selected{grid-column:1;font-size:13px;font-weight:700;color:#52665a}
.sc-custom-quantity-selected:empty{display:none}
.sc-custom-quantity-content{padding:16px}
.sc-custom-quantity-label{display:none!important}
.sc-custom-quantity-details>summary:focus-visible{outline:3px solid #008839;outline-offset:-3px}

/* Les deux prix reprennent les dimensions des cases du tableau principal. */
.sc-custom-quantity-content :is(#sdf-custom-eco,#sde-custom,#ste-custom){display:grid!important;grid-template-columns:repeat(2,minmax(0,var(--sc-price-width,1fr)))!important;gap:var(--sc-price-gap,8px)!important;justify-content:center;align-items:end;width:100%!important;margin:12px 0!important}
.sc-custom-quantity-content :is(#sdf-custom-eco,#sde-custom,#ste-custom)>div{min-width:0;text-align:center}
.sc-custom-quantity-content :is(#sdf-custom-eco,#sde-custom,#ste-custom)>div>strong{display:block;margin:0 0 7px;font-size:12px}
.sc-custom-quantity-content :is(#sdf-custom-eco,#sde-custom,#ste-custom) button{display:block;box-sizing:border-box;min-width:0!important;width:100%!important;height:var(--sc-price-height,43px)!important;min-height:var(--sc-price-height,43px)!important;margin:0!important}

/* Quantité, unité et prix unique restent alignés sur une seule ligne. */
.sc-custom-single-price-row{display:grid!important;grid-template-columns:minmax(54px,82px) max-content minmax(0,1fr);gap:8px!important;align-items:center;flex-wrap:nowrap}
.sc-custom-single-price-row input[type=number]{width:100%!important;min-width:0!important;max-width:82px!important;box-sizing:border-box;padding:8px 6px}
.sc-custom-single-price-row .sc-custom-quantity-unit{font-size:13px}
.sc-custom-single-price-row>strong{justify-self:end;text-align:right;white-space:nowrap;margin:0!important;font-size:16px}
.sc-custom-single-price-row>strong.sc-custom-price-idle{font-size:0!important}
