/* Post-launch layout repairs. No pricing or purchase-flow changes. */
@media screen {
/* Reserve a separate, non-shrinking caption row for both picture and img cards. */
:is(#cfs-style-caption#cfs-style-caption#cfs-style-caption#cfs-style-caption#cfs-style-caption,html) body .homePg .cfs-home-style-rail>a{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;height:auto!important;min-height:0!important;overflow:visible!important;}
:is(#cfs-style-caption#cfs-style-caption#cfs-style-caption#cfs-style-caption#cfs-style-caption,html) body .homePg .cfs-home-style-rail>a>picture{display:block!important;flex:0 0 auto!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;overflow:hidden!important;}
:is(#cfs-style-caption#cfs-style-caption#cfs-style-caption#cfs-style-caption#cfs-style-caption,html) body .homePg .cfs-home-style-rail>a>img{display:block!important;flex:0 0 auto!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;object-fit:cover!important;}
:is(#cfs-style-caption#cfs-style-caption#cfs-style-caption#cfs-style-caption#cfs-style-caption,html) body .homePg .cfs-home-style-rail>a>picture>img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;}
:is(#cfs-style-caption#cfs-style-caption#cfs-style-caption#cfs-style-caption#cfs-style-caption,html) body .homePg .cfs-home-style-rail>a>span{position:static!important;flex:0 0 auto!important;min-height:24px!important;margin:10px 0 0!important;line-height:1.3!important;}
/* A single recently viewed item must retain normal card dimensions. */
html body .homePg .cfs-home-recent-products__rail>.slide:only-child{flex:0 0 100%!important;width:100%!important;max-width:310px!important;min-width:0!important;}
html body .homePg .cfs-home-recent-products:has(.cfs-home-recent-products__rail>.slide:only-child){width:100%!important;max-width:310px!important;}
/* The popup has two direct children; avoid an unused third grid track. */
html body #productConfigPopup#productConfigPopup#productConfigPopup.cfsw-wardrobe-configurator:has(#calcSummryPg.active){grid-template-rows:auto minmax(0,1fr)!important;}
html body #productConfigPopup#productConfigPopup#productConfigPopup.cfsw-wardrobe-configurator #calcSummryPg.active{min-width:0!important;min-height:0!important;height:100%!important;}
html body #productConfigPopup#productConfigPopup#productConfigPopup.cfsw-wardrobe-configurator #calcSummryPg.active>.contentBlock{min-width:0!important;min-height:0!important;flex:1 1 0px!important;overflow-x:hidden!important;overflow-y:auto!important;}
/* Native table colspan/column minimums must not widen the total price row. */
html body #productConfigPopup#productConfigPopup#productConfigPopup #calcSummryPg #getTotalSelections{box-sizing:border-box!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;}
html body #productConfigPopup#productConfigPopup#productConfigPopup #calcSummryPg #getTotalSelections>tbody{display:block!important;width:100%!important;min-width:0!important;}
html body #productConfigPopup#productConfigPopup#productConfigPopup #calcSummryPg #getTotalSelections tr>td{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;}
html body #productConfigPopup#productConfigPopup#productConfigPopup #calcSummryPg #getTotalSelections tr.cfsw-review-total{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;justify-content:flex-end!important;width:100%!important;min-width:0!important;}
html body #productConfigPopup#productConfigPopup#productConfigPopup #calcSummryPg #getTotalSelections tr.cfsw-review-total>td{display:block!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;white-space:normal!important;}
html body #productConfigPopup#productConfigPopup#productConfigPopup #calcSummryPg #getTotalSelections tr.cfsw-review-total>.totalAmount{white-space:normal!important;overflow-wrap:anywhere!important;}
html body #productConfigPopup#productConfigPopup#productConfigPopup #calcSummryPg #getTotalSelections tr.cfsw-review-total>.totalAmount .pStroke{display:inline-block!important;white-space:nowrap!important;}
}
