/* V551: compact, wrapping options. No scrolling or clipped size labels. */
:is(#full-grid,main) article[data-sku].tp-multi-product,
:is(#full-grid,main) article[data-sku].tp-multi-product :is(.holik-product-info,.holik-product-body,.new-product-body,.catalog-peer-sections,.catalog-selection-controls,.catalog-variant-slot){min-width:0;max-width:100%}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-color-options.product-options-multi{display:flex;flex-direction:column;gap:2px;width:100%;min-width:0;max-width:100%;box-sizing:border-box;margin:0;padding:0}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi :is(.product-color-label,.product-size-label,.product-color-photo-note){margin:0;font-size:11px;line-height:1.2;overflow-wrap:anywhere}
:is(#full-grid,main) article[data-sku] .product-options-multi .product-color-photo-note:empty{display:none}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-color-swatches{display:flex;flex-flow:row wrap;flex-wrap:wrap;gap:2px;width:100%;min-width:0;max-width:100%;overflow:visible;overflow-x:visible;overflow-y:visible}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-color-swatch{box-sizing:border-box;flex:0 0 28px;min-width:28px;width:28px;min-height:28px;height:28px;padding:4px}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-options{margin:0;padding:0;width:100%;min-width:0;max-width:100%}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px;min-width:0;max-width:100%}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-label{margin:0;flex:0 0 auto;font-size:11px}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-all{appearance:none;-webkit-appearance:none;box-sizing:border-box;font:inherit;font-size:10px;line-height:1.2;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:inherit;text-decoration:underline;padding:2px 3px;min-width:0;min-height:24px;height:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
:is(#full-grid,main) article[data-sku] .product-options-multi .product-size-all:disabled{opacity:.6;cursor:default}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-choices{display:flex;flex-flow:row wrap;flex-wrap:wrap;align-items:flex-start;gap:2px;width:100%;min-width:0;max-width:100%;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-item{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;flex:0 1 auto;gap:1px;min-width:28px;max-width:100%}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-choice{box-sizing:border-box;flex:0 0 auto;margin:0;min-width:28px;max-width:100%;min-height:26px;height:auto;padding:2px 3px;font-size:11px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;border-radius:2px}
/* Autosizing keeps one-digit quantities compact and exposes every valid digit.
   Monospace/tabular digits make Nch exact; 10px covers padding, borders and caret. */
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-quantity{appearance:textfield;-moz-appearance:textfield;box-sizing:border-box;min-width:28px;width:max(28px,calc(var(--tp-quantity-chars,6)*1ch + 10px));max-width:100%;min-height:26px;height:26px;margin:0;padding:1px 2px;border:1px solid #b8c5bb;border-radius:2px;font-style:normal;font-weight:400;font-size:13px;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-variant-numeric:tabular-nums;line-height:1.2;text-align:center;align-self:center}
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-quantity::-webkit-inner-spin-button,
:is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-quantity::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
:is(#full-grid,main) article[data-sku] .product-options-multi .product-size-quantity:invalid{border-color:#a12525}
:is(#full-grid,main) article[data-sku] .product-options-multi :is(button,input):focus-visible{outline:2px solid #294533;outline-offset:-2px}
:is(#full-grid,main) article[data-sku] .product-options-multi [hidden]{display:none!important}
@media(pointer:coarse),(max-width:600px){
 :is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-choice{min-height:30px}
 :is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-all{min-height:28px}
 :is(#full-grid,main) article[data-sku] .catalog-peer-sections .product-options-multi .product-size-quantity{min-height:28px;height:28px;font-size:16px}
}
:is(#full-grid,main) article[data-sku].tp-multi-product .catalog-peer-sections>.catalog-selection-controls{gap:2px;margin:2px 0 4px}
:is(#full-grid,main) article[data-sku].tp-multi-product .catalog-variant-slot{margin:0;padding:0}
