/* Five-brand purchase UX: ShedsWarehouse established independently; this stylesheet applies only
   to iLikeSheds, ShedsFirst, BuySheds and HomeBerry through JS-injected retail classes. */
body.rollout-ilikesheds{--retail-add:#2e6848;--retail-add-hover:#204f36;--retail-buy:#ed6a2c;--retail-buy-hover:#c74c1e;--retail-buy-ink:#fff}
body.storefront-shedsfirst{--retail-add:#3f6b42;--retail-add-hover:#2c5130;--retail-buy:#78963f;--retail-buy-hover:#5b752a;--retail-buy-ink:#fff}
body.storefront-buysheds{--retail-add:#184e3c;--retail-add-hover:#0e372b;--retail-buy:#e9c47b;--retail-buy-hover:#d3a654;--retail-buy-ink:#1f3029}
body.storefront-homeberry{--retail-add:#603447;--retail-add-hover:#442231;--retail-buy:#e7214c;--retail-buy-hover:#bd1139;--retail-buy-ink:#fff}

/* Product listing cards — repeat the direct-product layout: quantity then two clear actions. */
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .card-buy-row{
  display:grid!important;grid-template-columns:36px 56px 36px minmax(0,1fr)!important;
  gap:7px!important;align-items:center!important;padding:11px 12px 13px!important;
  background:#fff!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .card-buy-row .card-qty-step{
  width:36px!important;min-width:36px!important;height:40px!important;border-radius:7px!important;
  border:1px solid #e0e5e8!important;background:#eff1f3!important;color:#34434b!important;
  transition:background-color .15s ease;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .card-buy-row .card-qty-step:hover{background:#dce3e8!important}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .card-buy-row input[data-card-qty]{
  width:56px!important;height:40px!important;max-width:100%!important;
  padding:2px!important;border:1px solid #cad4db!important;border-radius:5px!important;
  background:#fff!important;color:#1c2a32!important;text-align:center!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .card-buy-row::after{
  content:'Qty';grid-column:4;grid-row:1;justify-self:end;align-self:center;
  color:#67737d;font-size:12px;font-weight:700;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .card-buy-row .retail-card-action-pair{
  grid-column:1/-1!important;grid-row:2!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;width:100%;min-width:0;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair > button{
  display:flex!important;align-items:center!important;justify-content:center!important;
  grid-column:auto!important;grid-row:auto!important;
  width:100%!important;min-width:0!important;min-height:48px!important;
  padding:9px 7px!important;border:1px solid transparent!important;border-radius:7px!important;
  color:#fff!important;font-weight:850!important;font-size:12px!important;
  line-height:1.22!important;white-space:normal!important;text-align:center!important;
  cursor:pointer!important;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair .card-add-button,
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair .card-add-button.added{
  background:var(--retail-add,#394950)!important;border-color:var(--retail-add,#394950)!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair .card-add-button:hover:not(:disabled),
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair .card-add-button.added:hover:not(:disabled){
  background:var(--retail-add-hover,#24343b)!important;border-color:var(--retail-add-hover,#24343b)!important;
  box-shadow:0 3px 11px rgba(25,43,49,.22)!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair .card-buy-now{
  background:var(--retail-buy,#c82336)!important;border-color:var(--retail-buy,#c82336)!important;
  color:var(--retail-buy-ink,#fff)!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair .card-buy-now:hover:not(:disabled){
  background:var(--retail-buy-hover,#a7192a)!important;border-color:var(--retail-buy-hover,#a7192a)!important;
  box-shadow:0 3px 11px rgba(25,43,49,.20)!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair button:focus-visible{
  outline:3px solid #f4c542!important;outline-offset:2px!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair button:disabled{opacity:.68!important;cursor:progress!important}

/* Direct-entry SEO / SPA product detail pages use the same control order and CTA sizing. */
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;gap:9px!important;margin-top:12px!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase .retail-detail-quantity{
  grid-column:1/-1!important;grid-row:1!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 38px 54px 38px!important;
  gap:7px!important;align-items:center!important;min-height:42px;
}
body .product-master .retail-detail-quantity .sw-quantity-caption{
  color:#36434d;font-size:13px;font-weight:750;
}
body .product-master .retail-detail-quantity .sw-qty-adjust{
  display:grid;place-items:center;min-width:0;width:38px;height:40px;
  padding:0;border:1px solid #dbe2e7;border-radius:7px;
  background:#eff1f3;color:#34434b;font-size:22px;font-weight:800;
  cursor:pointer;transition:background-color .15s ease;
}
body .product-master .retail-detail-quantity .sw-qty-adjust:hover{background:#dce3e8}
body .product-master .retail-detail-quantity .sw-quantity-input{display:block;min-width:0}
body .product-master .retail-detail-quantity input{
  display:block!important;width:54px!important;max-width:100%!important;
  height:40px!important;min-height:40px!important;padding:2px!important;
  text-align:center!important;font-size:16px!important;font-weight:800!important;
  color:#1c2a32!important;background:#fff!important;border:1px solid #cad4db!important;border-radius:5px!important;
  -moz-appearance:textfield;
}
body .product-master .retail-detail-quantity input::-webkit-inner-spin-button,
body .product-master .retail-detail-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #seoAddProduct,
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #addProduct,
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #seoBuyProductNow,
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #buyProductNow{
  grid-row:2!important;grid-column:auto!important;display:flex!important;
  justify-content:center!important;align-items:center!important;
  width:100%!important;min-width:0!important;min-height:48px!important;
  padding:10px 8px!important;border-radius:7px!important;
  font-size:14px!important;font-weight:850!important;line-height:1.25!important;
  white-space:normal!important;text-align:center!important;
  transition:background-color .16s ease,box-shadow .16s ease;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #seoAddProduct,
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #addProduct{
  background:var(--retail-add,#394950)!important;border-color:var(--retail-add,#394950)!important;color:#fff!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #seoAddProduct:hover:not(:disabled),
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #addProduct:hover:not(:disabled){
  background:var(--retail-add-hover,#24343b)!important;border-color:var(--retail-add-hover,#24343b)!important;
  box-shadow:0 3px 11px rgba(25,43,49,.21)!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #seoBuyProductNow,
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #buyProductNow{
  background:var(--retail-buy,#c82336)!important;border-color:var(--retail-buy,#c82336)!important;color:var(--retail-buy-ink,#fff)!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #seoBuyProductNow:hover:not(:disabled),
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase #buyProductNow:hover:not(:disabled){
  background:var(--retail-buy-hover,#a7192a)!important;border-color:var(--retail-buy-hover,#a7192a)!important;
  box-shadow:0 3px 11px rgba(25,43,49,.21)!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase button:focus-visible{
  outline:3px solid #f4c542!important;outline-offset:2px!important;
}
body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase button:disabled{opacity:.66!important;cursor:progress!important;box-shadow:none!important}
@media(max-width:480px){
  body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .card-buy-row{
    grid-template-columns:30px 42px 30px minmax(0,1fr)!important;
    gap:5px!important;padding:9px!important;
  }
  body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .card-buy-row .card-qty-step{width:30px!important;min-width:30px!important}
  body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .card-buy-row input[data-card-qty]{width:42px!important}
  body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair{gap:6px!important}
  body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair > button{font-size:11px!important;padding:8px 4px!important;min-height:49px!important}
  body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .product-master .buy-panel .qty-row.retail-uniform-purchase.retail-uniform-purchase .retail-detail-quantity{
    grid-template-columns:minmax(0,1fr) 34px 50px 34px!important;gap:6px!important;
  }
  body .product-master .retail-detail-quantity .sw-qty-adjust{width:34px;height:40px}
  body .product-master .retail-detail-quantity input{width:50px!important}
}
@media(prefers-reduced-motion:reduce){
  body:is(.rollout-ilikesheds,.storefront-shedsfirst,.storefront-buysheds,.storefront-homeberry) .retail-unified-card.retail-unified-card .retail-card-action-pair button,
  body .product-master .retail-detail-quantity .sw-qty-adjust{transition:none!important}
}
