.ps-cart-toggle { position:fixed; left:20px; bottom:24px; z-index:999; display:flex; align-items:center; gap:12px; padding:14px 20px; border:0; border-radius:16px; background:#0c477f; color:#fff; box-shadow:0 8px 30px #15223830; font-weight:700; }
.ps-cart-toggle span { min-width:26px; padding:2px 6px; border-radius:20px; background:#fff; color:#0c477f; }
.ps-cart { position:fixed; inset:0; width:min(600px, calc(100% - 24px)); max-height:85dvh; margin:auto; padding:24px; overflow-y:auto; border:0; border-radius:20px; background:#fff; color:#152238; }
.ps-cart::backdrop { background:#15223899; }
.ps-cart-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.ps-cart-heading h2 { margin:0; font-size:26px; }
.ps-cart-heading button { font-size:26px; padding:4px 12px; }
.ps-cart > p { color:#5f6878; font-size:14px; }
.ps-cart-item { display:grid; grid-template-columns:1fr auto; gap:10px 16px; padding:18px 0; border-top:1px solid #dfe6ee; }
.ps-cart-item > a { grid-column:1 / -1; font-weight:700; overflow-wrap:anywhere; color:#0c477f; }
.ps-cart-item small { grid-column:1 / -1; }
.ps-cart-item label { display:flex; flex-wrap:wrap; gap:10px; align-items:center; font-size:14px; }
.ps-cart-item input { width:80px; padding:8px; border:1px solid #dfe6ee; border-radius:8px; }
.ps-cart-item button, .ps-cart-heading button { border:0; border-radius:8px; background:#edf3f8; color:#0c477f; }
.ps-cart-checkout { display:block; padding:16px; margin-top:16px; text-align:center; border-radius:12px; background:#168b4c; color:#fff; font-weight:700; }
.ps-cart-checkout:hover { color:#fff; background:#116c3b; }
.ps-cart-checkout[hidden], .ps-cart-status[hidden] { display:none; }
.ps-cart-status { position:fixed; z-index:100000; bottom:90px; left:20px; max-width:calc(100% - 40px); margin:0; padding:14px 20px; border-radius:12px; background:#152238; color:#fff; box-shadow:0 6px 25px #15223830; }
[data-quote-add]:disabled { opacity:.6; cursor:wait; }
.product-summary__actions button.product-summary__order { width:100%; border:0; cursor:pointer; }

/* Keep the launcher above the existing contact widget. */
.ps-cart-toggle { left:auto; right:15px; bottom:390px; min-height:52px; padding:12px 16px; border:1px solid #ffffff55; border-radius:16px; }
.ps-cart { inset:0 0 0 auto; width:min(480px, 100%); height:100dvh; max-height:100dvh; max-width:100%; margin:0; padding:28px 24px; border-radius:24px 0 0 24px; box-shadow:-20px 0 80px #15223830; overscroll-behavior:contain; }
.ps-cart[open] { display:flex; flex-direction:column; animation:ps-cart-slide .22s ease-out; }
.ps-cart-heading { flex-shrink:0; }
.ps-cart-heading button { width:40px; height:40px; line-height:1; padding:0; }
.ps-cart > p { line-height:1.6; margin:12px 0 20px; }
.ps-cart [data-cart-items] { flex:1; min-height:0; overflow-y:auto; padding-right:4px; }
.ps-cart-item { grid-template-columns:80px minmax(0, 1fr); gap:16px; padding:20px 0; }
.ps-cart-item > a.ps-cart-thumbnail { grid-column:auto; width:80px; height:88px; display:flex; align-items:center; justify-content:center; padding:6px; border:1px solid #e5edf5; border-radius:12px; background:#fff; }
.ps-cart-thumbnail img { width:100%; height:100%; object-fit:contain; }
.ps-cart-item-content { display:grid; grid-template-columns:1fr auto; align-items:center; gap:10px; min-width:0; }
.ps-cart-item-content > a { grid-column:1 / -1; color:#0c477f; font-size:15px; line-height:1.4; font-weight:700; overflow-wrap:anywhere; }
.ps-cart-item-content > small { grid-column:1 / -1; font-size:13px; color:#5f6878; }
.ps-cart-item-content label { font-size:0; }
.ps-cart-item-content input { width:72px; min-height:38px; padding:6px 8px; font-size:14px; }
.ps-cart-item-content button { padding:8px 10px; font-size:12px; background:#f3f6fa; }
.ps-cart-checkout { flex-shrink:0; margin-top:20px; font-size:14px; padding:16px 10px; }
body.ps-cart-open { overflow:hidden; }
.ps-cart-status { left:auto; right:20px; bottom:24px; }
[data-quote-add].is-loading { display:flex; align-items:center; justify-content:center; opacity:1; min-height:46px; }
.ps-button-spinner { display:inline-block; flex:0 0 20px; width:20px; height:20px; box-sizing:border-box; border:2px solid #ffffff55; border-top-color:#fff; border-right-color:#fff; border-radius:50%; animation:ps-button-spin .65s linear infinite; }
@keyframes ps-button-spin { to { transform:rotate(360deg); } }
@keyframes ps-cart-slide { from { transform:translateX(100%); } to { transform:translateX(0); } }
@media(max-width:480px) { .ps-cart { padding:22px 16px; border-radius:0; } .ps-cart-item { grid-template-columns:64px minmax(0, 1fr); gap:12px; } .ps-cart-item > a.ps-cart-thumbnail { width:64px; height:76px; } .ps-cart-toggle { font-size:13px; padding:10px 12px; gap:8px; } }
@media(prefers-reduced-motion:reduce) { .ps-cart[open] { animation:none; } .ps-button-spinner { animation-duration:1.5s; } }

/* Compact launcher follows the visible contact controls. */
.ps-cart-toggle { width:60px; height:60px; min-height:60px; padding:0; justify-content:center; border-radius:50%; bottom:156px; }
.ps-cart-toggle[hidden] { display:none; }
.ps-cart-toggle.is-positioned { transition:bottom .45s ease, background-color .2s ease; }
.ps-cart-toggle span { position:absolute; top:-4px; right:-4px; min-width:24px; font-size:12px; line-height:20px; padding:0 5px; border:2px solid #0c477f; text-align:center; }
@media(max-width:700px) { .ps-cart-toggle { bottom:143px; } }
@media(prefers-reduced-motion:reduce) { .ps-cart-toggle.is-positioned { transition:none; } }

/* The contact widget must never intercept clicks on the cart launcher. */
.ps-cart-toggle { z-index:1001; pointer-events:auto; }
