/* ROSH Commerce OS — customer-facing purchase system.
   Loaded after legacy styles to converge catalog, product and the ONE cart. */
:root{--rosh-commerce-navy:#102938;--rosh-commerce-blue:#245a78;--rosh-commerce-ink:#172b37;--rosh-commerce-surface:#fff;--rosh-commerce-line:#e1e8ed;--rosh-commerce-muted:#617381}
body.rosh-x009-catalog #products .rosh-commerce-card{border:1px solid #e7edf1!important;border-radius:15px!important;overflow:hidden!important;box-shadow:0 8px 22px rgba(14,37,55,.045)!important;transition:box-shadow .2s ease,transform .2s ease}
body.rosh-x009-catalog #products .rosh-commerce-card:hover{box-shadow:0 14px 36px rgba(14,37,55,.095)!important;transform:translateY(-2px)}
body.rosh-x009-catalog #products .rosh-commerce-card .product-body{display:flex;flex-direction:column;gap:0;min-width:0}
body.rosh-x009-catalog #products .rosh-commerce-card h3{font-size:clamp(14px,1vw,16px)!important;line-height:1.44!important;min-height:3em;margin:8px 0 7px!important}
body.rosh-x009-catalog #products .rosh-commerce-card .product-sku{font-size:11px!important;line-height:1.5!important;overflow-wrap:anywhere}
body.rosh-x009-catalog #products .rosh-commerce-card .rosh-commerce-money{margin:12px 0 0!important}
body.rosh-x009-catalog #products .rosh-commerce-card .rosh-commerce-money strong{font-size:clamp(21px,1.5vw,25px)!important;line-height:1.2!important}
body.rosh-x009-catalog #products .rosh-commerce-status{font-size:11px!important;line-height:1.5!important;letter-spacing:0!important}
body.rosh-x009-catalog #products .rosh-commerce-card-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px!important;margin-top:auto!important;padding-top:15px}
body.rosh-x009-catalog #products .rosh-commerce-card-actions button{font:750 12px/1.35 system-ui,sans-serif!important;min-height:44px!important;border-radius:10px!important;padding:9px 8px!important}
html[data-rosh-theme] body.rosh-x009-catalog #products button.rosh-commerce-add{background:#f4f8fa!important;color:#1c5069!important;border:1px solid #ccdce5!important}
html[data-rosh-theme] body.rosh-x009-catalog #products button.rosh-commerce-buy{background:#205b7d!important;color:#fff!important;border:1px solid #205b7d!important}
body.rosh-x009-catalog #products .rosh-agent-context-link,
body.rosh-x009-catalog #products .rosh-commerce-ask-link{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;
  min-height:28px!important;margin:8px 0 0!important;padding:3px 0!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:#245a78!important;font:650 11.5px/1.4 system-ui,sans-serif!important;
  text-decoration:underline!important;text-underline-offset:3px;box-shadow:none!important;letter-spacing:0!important
}
body.rosh-x009-catalog #products .rosh-commerce-ask-link:hover,
body.rosh-x009-catalog #products .rosh-agent-context-link:hover{color:#103849!important;transform:none!important}
body.rosh-x009-catalog #products .rosh-card-feedback{font-size:12px!important;line-height:1.5!important;margin:8px 0!important}
body.rosh-x009-catalog #products .cf-sku-actions .rosh-commerce-ask-link{grid-column:1/-1!important;display:flex!important}
body.rosh-x009-catalog #products .cf-sku-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
body.rosh-x009-catalog #products .cf-sku-actions button{font-size:12px!important;min-height:42px!important}
body.rosh-x009-catalog #catalog .stock-only{font-size:11px!important;line-height:1.45!important}
body.rosh-x009-catalog #catalog #catalog-results{font-size:12px!important}
.rosh-commerce-drawer{position:fixed!important;inset:0 0 0 auto!important;margin:0!important;padding:0!important;
 width:min(480px,100vw)!important;max-width:none!important;max-height:100dvh!important;height:100dvh!important;
 background:#fff!important;color:#152c38!important;border:0!important;border-radius:0!important;
 box-shadow:-18px 0 65px rgba(8,29,43,.24)!important;overflow:hidden!important;
 display:flex;flex-direction:column;z-index:2147480000}
.rosh-commerce-drawer:not([open]){display:none!important}
.rosh-commerce-drawer::backdrop{background:rgba(7,26,39,.55);backdrop-filter:blur(3px)}
.rosh-commerce-drawer-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:28px 28px 20px;border-bottom:1px solid #e1e8ed}
.rosh-commerce-eyebrow{display:block;font-size:10px;font-weight:750;letter-spacing:.14em;color:#52738a}
.rosh-commerce-drawer-heading h2{margin:5px 0 0!important;color:#142b38;font:800 25px/1.2 system-ui,sans-serif!important;letter-spacing:-.035em}
.rosh-commerce-close{height:38px;width:38px;border:1px solid #e1e8ed;border-radius:10px;background:#f3f7fa;color:#29495b;font-size:17px;cursor:pointer}
.rosh-commerce-close:hover{background:#e7f0f5}
.rosh-commerce-cart-items{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 28px 24px;min-height:0}
.rosh-commerce-cart-line{display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:start;gap:12px;padding:19px 0;border-bottom:1px solid #e8edf0}
.rosh-commerce-line-image{width:78px;height:86px;border:1px solid #e7ebef;background:#f1f4f5;border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:13px;color:#617381}
.rosh-commerce-line-image img{display:block;height:100%;width:100%;object-fit:contain}
.rosh-commerce-line-details{display:flex;flex-direction:column;gap:6px;min-width:0}
.rosh-commerce-line-title{font:750 13px/1.38 system-ui,sans-serif!important;color:#1e343f!important;text-decoration:none!important;overflow-wrap:anywhere}
.rosh-commerce-line-title:hover{text-decoration:underline!important}
.rosh-commerce-line-sku{font-size:11px;color:#607988;overflow-wrap:anywhere}
.rosh-commerce-line-price{font-size:12px;font-weight:700;color:#344f60}
.rosh-commerce-line-total{white-space:nowrap;color:#1e343f;font:800 14px/1.4 system-ui,sans-serif}
.rosh-commerce-line-availability{font-size:10.5px;line-height:1.5;font-weight:650}
.rosh-commerce-line-availability.is-ready{color:#24704a}
.rosh-commerce-line-availability.is-pending{color:#865c27}
.rosh-commerce-line-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:4px}
.rosh-commerce-quantity{display:flex;align-items:center;border:1px solid #d8e2e9;border-radius:9px;overflow:hidden;background:#f9fbfc;min-height:34px}
.rosh-commerce-quantity button{width:34px;min-height:34px;display:grid;place-items:center;border:0;background:none;font:650 16px/1 system-ui;cursor:pointer;color:#2f566b}
.rosh-commerce-quantity button:hover{background:#e9f2f6}
.rosh-commerce-quantity span{min-width:25px;text-align:center;font-size:12px;color:#183745;font-variant-numeric:tabular-nums}
.rosh-commerce-remove{border:0;background:transparent;color:#617987;font-size:11px;text-decoration:underline;cursor:pointer;padding:8px 1px}
.rosh-commerce-cart-footer{padding:18px 28px 26px;border-top:1px solid #e1e8ed;background:#fbfcfd;box-shadow:0 -7px 18px rgba(15,37,52,.03)}
.rosh-commerce-cart-totals{display:grid;gap:10px;margin-bottom:14px}
.rosh-commerce-cart-totals>div{display:flex;justify-content:space-between;gap:14px;align-items:baseline}
.rosh-commerce-subtotal{font:700 15px/1.4 system-ui,sans-serif}
.rosh-commerce-subtotal strong{font-size:23px;font-weight:850;letter-spacing:-.035em}
.rosh-commerce-small-row{font-size:11.5px;color:#607380}
.rosh-commerce-cart-message{margin:10px 0 13px!important;min-height:0;color:#3a5869;font:500 12px/1.55 system-ui,sans-serif;white-space:normal}
.rosh-commerce-cart-message:empty{display:none}
.rosh-commerce-checkout,.rosh-commerce-eligible{display:flex;width:100%;align-items:center;justify-content:center;
 min-height:50px!important;padding:13px 16px!important;border:0!important;border-radius:10px!important;
 background:#205a7b!important;color:#fff!important;font:800 14px/1.4 system-ui,sans-serif!important;cursor:pointer}
.rosh-commerce-checkout:hover,.rosh-commerce-eligible:hover{background:#17455e!important}
.rosh-commerce-checkout:disabled{opacity:.55;cursor:not-allowed}
.rosh-commerce-eligible{margin-top:8px!important;background:#1d7058!important}
.rosh-commerce-continue{display:flex;align-items:center;justify-content:center;width:100%;border:1px solid #d6e2e9!important;border-radius:10px!important;
 background:#fff!important;color:#24536b!important;margin-top:9px!important;padding:12px!important;font:700 12px/1.3 system-ui!important;cursor:pointer;min-height:43px!important}
.rosh-commerce-ask{display:block;width:max-content;margin:12px auto 0;color:#205a7b!important;font:700 12px/1.35 system-ui!important;text-decoration:underline;text-underline-offset:3px}
.rosh-commerce-empty{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:270px;gap:9px}
.rosh-commerce-empty-icon{font-size:50px;line-height:1;color:#91a7b4}
.rosh-commerce-empty h3{margin:4px 0 0;font-size:19px;color:#163347}
.rosh-commerce-empty p{color:#6f8390;font-size:13px;line-height:1.6;max-width:230px;margin:0}
.rosh-commerce-browse{color:#205a7b;font:750 12px system-ui;margin-top:10px}
.rosh-commerce-cart-float{position:fixed;right:18px;bottom:100px;z-index:960;border:1px solid #9cc7d8;background:#173f56;
 color:#fff;border-radius:13px;padding:13px 16px;box-shadow:0 8px 27px #10384a55;font:800 13px/1.3 system-ui;cursor:pointer}
.rosh-commerce-drawer :focus-visible,.rosh-commerce-cart-float:focus-visible{outline:3px solid #419ac1!important;outline-offset:2px}
.technical-actions .rosh-agent-context-link{display:inline-flex!important;min-height:42px!important;border:0!important;background:transparent!important;color:#205a7b!important;padding:8px!important;font:700 12px/1.4 system-ui!important;text-decoration:underline;box-shadow:none!important}
.technical-context{font-size:13px!important;line-height:1.65!important}
#technical-checkout-status{font-size:12px!important;line-height:1.55!important}
@media(max-width:700px){
 body.rosh-x009-catalog #products .rosh-commerce-card-actions{grid-template-columns:1fr 1fr!important}
 .rosh-commerce-drawer{width:100vw!important}
 .rosh-commerce-drawer-head{padding:18px 19px 15px}
 .rosh-commerce-cart-items{padding:4px 19px 12px}
 .rosh-commerce-cart-footer{padding:15px 19px max(18px,env(safe-area-inset-bottom))}
 .rosh-commerce-cart-line{grid-template-columns:68px minmax(0,1fr);gap:10px}
 .rosh-commerce-line-image{width:68px;height:77px}
 .rosh-commerce-line-total{grid-column:2;justify-self:start}
}
@media(prefers-reduced-motion:reduce){.rosh-commerce-drawer::backdrop{backdrop-filter:none}body.rosh-x009-catalog #products .rosh-commerce-card{transition:none!important;transform:none!important}}