/* The live cart uses the original JointComfort Care brand tokens and components. */
[hidden]{display:none!important}
.jcc-cart-link{display:inline-flex;align-items:center;gap:6px;color:var(--navy);font-weight:600;white-space:nowrap;min-height:44px}
.jcc-cart-link b{display:grid;place-items:center;min-width:22px;height:auto;min-height:22px;line-height:1.2;padding:0 5px;border-radius:999px;background:var(--amber);color:#2b1c05;font-size:.78rem}
.jcc-message{padding:16px 18px;border:1px solid #cddac8;border-radius:16px;background:#f1f6ef;color:var(--forest);font-size:.93rem;margin:0 0 22px;overflow-wrap:anywhere}
.jcc-message.is-error{background:#fff4eb;border-color:#e4c5a8;color:#743b1b}
.jcc-message a{text-decoration:underline;font-weight:600;display:inline-block;margin-left:.35em}
.jcc-fixed-size{display:inline-flex;align-items:center;gap:14px;padding:12px 18px;margin-bottom:10px;background:var(--navy);color:#fff;border-radius:14px;font-weight:600}
.jcc-fixed-size span{font-size:.86rem;font-weight:400}
.btn:disabled,.btn[aria-disabled=true]{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
.sizes input:disabled+label{opacity:.45;text-decoration:line-through;cursor:not-allowed}
/* Product pages: a tap anywhere on the "Added" toast opens the cart (commerce.js), so it never blocks the "View cart" link under it. */
.toast.show{cursor:pointer}
.jcc-cart-page .co-top{position:static;background:var(--cream);border-radius:var(--r);margin:12px}
.jcc-cart-page .co-top .nav{padding:10px 0}
.jcc-cart-page .secure{display:flex;align-items:center;gap:8px;font-size:.92rem;color:var(--muted);font-weight:500}
.jcc-cart-page .back{font-weight:500;color:var(--green)}
.jcc-cart-page .back:hover{color:var(--navy)}
.jcc-cart-page .co{padding:36px 0 70px}
.jcc-cart-page .co h1{font-size:clamp(1.9rem,3.6vw,2.6rem);margin:14px 0 6px}
.jcc-cart-page .co h1 em{color:var(--green);font-style:italic}
.jcc-cart-page .steps-bar{display:flex;gap:10px;flex-wrap:wrap;font-size:.9rem;color:var(--muted);margin:10px 0 28px}
.jcc-cart-page .steps-bar b{color:var(--navy)}
.jcc-cart-page .co-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:32px;align-items:start}
.jcc-cart-page .co-grid>*{min-width:0}
.jcc-cart-page .box{background:var(--white);border-radius:var(--r);padding:28px;box-shadow:var(--shadow);margin-bottom:22px}
.jcc-cart-page .box h2{font-family:var(--serif);font-size:1.3rem;color:var(--navy);margin-bottom:18px}
.jcc-cart-page .sum{position:sticky;top:24px}
.jcc-cart-page .jcc-item{display:flex;gap:16px;padding:20px 0;border-bottom:1px solid #e4e6df}
.jcc-cart-page .jcc-item:first-child{padding-top:0}
.jcc-cart-page .jcc-item:last-child{border-bottom:0;padding-bottom:0}
.jcc-cart-page .jcc-item img{width:92px;height:92px;border-radius:14px;object-fit:cover;background:#fff;border:1px solid #e4e6df;flex-shrink:0}
.jcc-cart-page .jcc-item-main{flex:1;min-width:0}
.jcc-cart-page .jcc-item h3{font-family:var(--serif);font-size:1.05rem;color:var(--navy);line-height:1.3;overflow-wrap:anywhere}
.jcc-cart-page .jcc-item .meta{font-size:.85rem;color:var(--muted);margin:4px 0 10px}
.jcc-cart-page .jcc-item-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.jcc-cart-page .qty{display:inline-flex;align-items:center;border:1.5px solid #cfd5cf;border-radius:999px}
.jcc-cart-page .qty button{width:40px;height:40px;border:0;background:none;font-size:1.2rem;cursor:pointer;color:var(--navy);border-radius:50%}
.jcc-cart-page .qty button:hover{background:var(--sand)}
.jcc-cart-page .qty button:disabled{opacity:.4;cursor:not-allowed}
.jcc-cart-page .qty output{min-width:28px;text-align:center;font-weight:600}
.jcc-cart-page .jcc-line-price{font-weight:600;white-space:nowrap;margin-top:10px;font-size:.97rem}
.jcc-cart-page .jcc-text-button{background:none;border:0;color:var(--green);text-decoration:underline;font:inherit;font-size:.86rem;cursor:pointer;padding:8px 0;min-height:40px}
.jcc-cart-page .jcc-text-button:disabled{opacity:.45;cursor:not-allowed}
.jcc-cart-page .tot{display:flex;justify-content:space-between;gap:16px;padding:7px 0;font-size:.97rem}
.jcc-cart-page .tot.disc{color:var(--green)}
.jcc-cart-page .tot.grand{border-top:1px solid #e4e6df;margin-top:8px;padding-top:16px;font-size:1.25rem;font-weight:600}
.jcc-cart-page .tot.grand span:last-child{font-family:var(--serif);color:var(--navy)}
.jcc-cart-page .jcc-tot-note{font-size:.86rem;color:var(--muted);text-align:right}
.jcc-cart-page .jcc-small{font-size:.87rem;color:var(--muted);margin:12px 0;line-height:1.5}
.jcc-cart-page .jcc-currency{margin:3px 0 18px;text-align:right;font-size:.8rem}
.jcc-cart-page .jcc-wide{width:100%;justify-content:center;white-space:normal;text-align:center}
.jcc-cart-page .trust{display:grid;gap:8px;margin-top:18px;font-size:.85rem;color:var(--muted)}
.jcc-cart-page .trust div::before{content:"✓ ";color:var(--green);font-weight:700}
.jcc-cart-page .jcc-cart-tools{display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid #e4e6df;margin-top:18px;padding-top:8px}
.jcc-cart-page .jcc-bundle-note{background:#f1f6ef;border-radius:14px;padding:16px;margin-top:20px;color:var(--forest);font-size:.88rem}
.jcc-cart-page .fine{font-size:.82rem;color:var(--muted);margin-top:14px;text-align:center}
.jcc-cart-page .fine a{text-decoration:underline}
.jcc-cart-page .jcc-kicker{font-size:.78rem;color:var(--green);text-transform:uppercase;letter-spacing:.06em;font-weight:600;margin-bottom:7px}
.jcc-cart-page .jcc-offer-products{display:grid;gap:14px}
.jcc-cart-page .jcc-offer-product{display:flex;align-items:center;gap:14px;font-size:.95rem}
.jcc-cart-page .jcc-offer-product img{width:68px;height:68px;object-fit:cover;border:1px solid #e4e6df;border-radius:12px}
.jcc-cart-page .jcc-offer-product small{display:block;color:var(--muted);font-size:.85rem}
.jcc-cart-page .jcc-offer-price{font-family:var(--serif);font-size:1.8rem;color:var(--navy);margin:18px 0}
.jcc-cart-page .jcc-field{margin-bottom:18px}
.jcc-cart-page .jcc-field label{display:block;font-size:.9rem;font-weight:600;margin-bottom:6px}
.jcc-cart-page .jcc-field input,.jcc-cart-page .jcc-field select{width:100%;font:inherit;font-size:1rem;padding:13px 14px;border:1.5px solid #cfd5cf;border-radius:12px;background:#fff;color:var(--ink)}
.jcc-cart-page .jcc-field input:focus,.jcc-cart-page .jcc-field select:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(91,138,90,.22)}
.jcc-cart-page .jcc-offer-qty{max-width:125px}
.jcc-cart-page .jcc-size-guide{display:inline-block;color:var(--green);font-size:.84rem;text-decoration:underline;margin-top:7px}
.jcc-cart-page #jccCartEmpty p{margin-bottom:20px}
.jcc-cart-page #jccCartEmpty .btn{white-space:normal;max-width:100%;text-align:center;justify-content:center}
.jcc-cart-page #jccWristChoice{margin-bottom:4px}
.jcc-cart-page .jcc-guides{display:flex;flex-wrap:wrap;gap:0 22px;margin:0 0 18px}
.jcc-cart-page .jcc-offer-price small{display:block;font-family:var(--sans);font-size:1rem;font-weight:600;color:var(--forest);line-height:1.4;margin-top:4px}
.jcc-cart-page #jccShipping{text-align:right}
.jcc-cart-page .jcc-continue{margin:0 0 22px}
.jcc-cart-page .jcc-go-status{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:14px 16px;border-radius:14px;background:#f1f6ef;color:var(--forest);font-weight:600;line-height:1.4}
.jcc-cart-page .jcc-go-status::before{content:"";flex-shrink:0;width:20px;height:20px;border-radius:50%;border:3px solid #cddac8;border-top-color:var(--green);animation:jcc-spin .9s linear infinite}
@keyframes jcc-spin{to{transform:rotate(360deg)}}
/* Notes (a problem, or what to do next) take the progress line's place in the offer card, so nothing moves. */
.jcc-cart-page .jcc-go-status.is-note{display:block;font-weight:500}
.jcc-cart-page .jcc-go-status.is-note::before{content:none}
.jcc-cart-page .jcc-go-status.is-error{background:#fff4eb;color:#743b1b}
.jcc-cart-page .jcc-go-status a{text-decoration:underline;font-weight:600}
.jcc-cart-page #jccOfferTitle:focus{outline:none}
.jcc-cart-page #jccCartItems .is-error,.jcc-cart-page #jccOfferAvailability .is-error{color:#743b1b}
.jcc-cart-page #jccCartItems .is-error a,.jcc-cart-page #jccOfferAvailability .is-error a{text-decoration:underline;font-weight:600}
/* Offer links: checkout.html's head script sets data-jcc-offer/data-jcc-go before the first paint, so the offer card shows
   from the start and nothing jumps when commerce.js fills it (commerce.js removes both attributes when it takes over). */
[data-jcc-offer] #jccOffer[hidden]{display:block!important}
[data-jcc-offer] #jccItemsBox,[data-jcc-offer=bundle] #jccOfferShipping,[data-jcc-offer=socks] #jccWristChoice,[data-jcc-offer=socks] #jccWristGuide,[data-jcc-offer=wrists] #jccSockGuide,[data-jcc-go] #jccOfferForm{display:none}
[data-jcc-go] #jccOfferStatus[hidden]{display:flex!important}
/* Room for what commerce.js and the store fill in later (heights measured with the site fonts). */
[data-jcc-offer=socks] #jccOfferProducts,[data-jcc-offer=wrists] #jccOfferProducts{min-height:68px}
[data-jcc-offer=bundle] #jccOfferProducts{min-height:150px}
[data-jcc-offer=bundle] #jccOfferPrice,#jccOffer[data-offer=bundle] #jccOfferPrice{min-height:72.5px}
.jcc-cart-page .jcc-go-status{min-height:calc(2.8em + 28px)}
@media(max-width:613px){.jcc-cart-page #jccOfferAvailability{min-height:3em}}
@media(max-width:579px){[data-jcc-offer=bundle] #jccOfferPrice,#jccOffer[data-offer=bundle] #jccOfferPrice{min-height:94.8px}}
@media(max-width:561px){.jcc-cart-page .jcc-go-status{min-height:calc(4.2em + 28px)}}
@media(max-width:413px){[data-jcc-offer=socks] #jccOfferProducts{min-height:89.6px}[data-jcc-offer=bundle] #jccOfferProducts{min-height:171.6px}}
@media(max-width:363px){[data-jcc-offer=socks] #jccOfferProducts{min-height:113.9px}[data-jcc-offer=bundle] #jccOfferProducts{min-height:195.9px}}
@media(max-width:361px){[data-jcc-offer=bundle] #jccOfferTitle{min-height:2.3em}}
@media(max-width:359px){[data-jcc-offer=wrists] #jccOfferProducts{min-height:92.1px}[data-jcc-offer=bundle] #jccOfferProducts{min-height:220px}}
@media(max-width:331px){[data-jcc-offer=socks] #jccOfferProducts{min-height:135.6px}[data-jcc-offer=bundle] #jccOfferProducts{min-height:241.8px}[data-jcc-offer=bundle] #jccHeading{min-height:2.3em}}
@media(max-width:329px){.jcc-cart-page #jccOfferAvailability{min-height:4.5em}}
@media(max-width:323px){[data-jcc-offer=bundle] #jccOfferPrice,#jccOffer[data-offer=bundle] #jccOfferPrice{min-height:117.2px}}
@media(prefers-reduced-motion:reduce){.jcc-cart-page .jcc-go-status::before{animation:none}}
@media(max-width:1120px){.jcc-cart-word{display:none}.nav-right{gap:12px}}
@media(max-width:900px){.jcc-cart-page .co-grid{grid-template-columns:1fr;gap:0}.jcc-cart-page .sum{position:static}}
@media(max-width:520px){.jcc-cart-page .box{padding:22px 18px}.jcc-cart-page .co-top{margin:6px}.jcc-cart-page .secure{font-size:.8rem;max-width:95px;line-height:1.35}.jcc-cart-page .jcc-item{gap:12px}.jcc-cart-page .jcc-item img{width:64px;height:64px}.jcc-cart-page .co{padding-top:24px}.jcc-cart-page .jcc-cart-tools{gap:8px 16px}.jcc-cart-page .co-top .logo{width:180px}.jcc-cart-page .co-top .nav{gap:10px}.jcc-cart-page .tot{gap:10px}.jcc-cart-page .jcc-tot-note{max-width:150px}.jcc-cart-page .steps-bar{font-size:.8rem;gap:7px}}
@media(prefers-reduced-motion:reduce){.jcc-cart-page *{scroll-behavior:auto!important}}
/* Keep the existing 1020px menu breakpoint; free room for the cart above it. */
@media(min-width:1021px) and (max-width:1200px){.nav .btn.header-cta{display:none}.nav-right{gap:20px}.nav-right nav ul{gap:20px}}
@media(max-width:400px){.jcc-cart-page .co-top .logo{width:145px}.jcc-cart-page .secure{max-width:90px}}
/* Slide-out cart panel (commerce.js builds it on first use). */
html.jcc-drawer-lock{overflow:hidden}
html.jcc-drawer-lock body{padding-right:var(--jcc-scrollbar,0)}
.jcc-drawer{position:fixed;inset:0;z-index:1000}
.jcc-drawer:not(.is-open){pointer-events:none}
.jcc-drawer :focus-visible{outline-color:var(--navy)}
.jcc-drawer-backdrop{position:absolute;inset:0;background:rgba(20,32,26,.5);opacity:0;transition:opacity .28s ease}
.jcc-drawer-panel{position:absolute;margin:0;padding:0;top:0;right:0;bottom:0;width:min(440px,calc(100% - 40px));display:flex;flex-direction:column;background:#fff;color:var(--ink);box-shadow:-14px 0 40px rgba(29,43,38,.2);transform:translateX(100%);transition:transform .3s ease;outline:none}
.jcc-drawer.is-open .jcc-drawer-backdrop{opacity:1}
.jcc-drawer.is-open .jcc-drawer-panel{transform:none}
.jcc-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 12px 12px 22px;border-bottom:1px solid #e4e6df;background:#fff}
.jcc-drawer-head h2{font-family:var(--serif);font-size:1.4rem;font-weight:600;color:var(--navy);line-height:1.25;margin:0}
.jcc-drawer-head h2:focus{outline:none}
.jcc-drawer-head h2:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.jcc-drawer-close{flex-shrink:0;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--navy);cursor:pointer}
.jcc-drawer-close:hover{background:var(--sand)}
.jcc-drawer-band{margin:0;padding:11px 20px;background:var(--navy);color:#fff;font-weight:600;font-size:1rem;line-height:1.4;text-align:center}
.jcc-drawer-band.is-free{background:var(--forest)}
.jcc-drawer-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 22px 18px}
.jcc-drawer-body .jcc-message{margin:0 0 12px;padding:10px 12px;font-size:1rem;line-height:1.45}
.jcc-drawer-loading{color:var(--muted);font-size:1rem;padding:8px 0}
.jcc-drawer-item{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:14px;padding:16px 0;border-bottom:1px solid #e4e6df}
.jcc-drawer-item:first-child{padding-top:4px}
.jcc-drawer-item img{width:72px;height:72px;border-radius:12px;object-fit:cover;background:#fff;border:1px solid #e4e6df}
.jcc-drawer-item h3{font-family:var(--serif);font-size:1.08rem;font-weight:600;color:var(--navy);line-height:1.3;margin:0;overflow-wrap:anywhere}
.jcc-drawer-item .meta{font-size:.95rem;color:var(--muted);margin-top:3px}
.jcc-drawer-item .meta.is-error{color:#743b1b}
.jcc-drawer-item .qty{display:inline-flex;align-items:center;margin-top:8px;border:1.5px solid #cfd5cf;border-radius:999px}
.jcc-drawer-item .qty button{width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--navy);font-size:1.25rem;line-height:1;cursor:pointer}
.jcc-drawer-item .qty button:hover{background:var(--sand)}
.jcc-drawer-item .qty button:disabled{opacity:.4;cursor:not-allowed}
.jcc-drawer-item .qty output{min-width:26px;text-align:center;font-weight:600}
.jcc-drawer-item-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:8px}
.jcc-drawer-price{font-weight:600;white-space:nowrap}
.jcc-drawer-remove{display:inline-flex;align-items:center;gap:4px;min-width:44px;height:44px;margin-right:-8px;padding:0 8px;border:0;border-radius:999px;background:none;color:var(--ink);font:inherit;font-size:.92rem;text-decoration:underline;cursor:pointer}
.jcc-drawer-remove:hover{background:#fff4eb;color:#743b1b}
.jcc-drawer-remove:disabled{opacity:.4;cursor:not-allowed}
.jcc-drawer-upsell{margin-top:16px;padding:16px;border:1px solid #cddac8;border-radius:16px;background:#f1f6ef}
.jcc-upsell-head{display:flex;gap:12px;align-items:flex-start}
.jcc-upsell-head img{flex-shrink:0;width:56px;height:56px;border-radius:10px;object-fit:cover;background:#fff;border:1px solid #e4e6df}
.jcc-upsell-text strong{display:block;color:var(--forest);font-size:1.05rem;line-height:1.35}
.jcc-upsell-text p{margin:4px 0 0;font-size:.95rem;color:var(--ink);line-height:1.45}
.jcc-upsell-text p.is-fit{font-weight:600}
.jcc-upsell-actions{margin-top:12px}
.jcc-upsell-label{font-size:.95rem;font-weight:600;color:var(--ink);margin:0 0 8px}
.jcc-upsell-sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.jcc-upsell-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-height:52px;padding:8px 6px;border:2px solid var(--navy);border-radius:14px;background:#fff;color:var(--navy);font:inherit;font-weight:600;font-size:1rem;line-height:1.25;text-align:center;cursor:pointer}
.jcc-upsell-add:hover{background:var(--navy);color:#fff}
.jcc-upsell-add small{font-size:.84rem;font-weight:500;white-space:nowrap}
.jcc-upsell-add:disabled{cursor:not-allowed;border-style:dashed;border-color:#8a9590;background:var(--cream);color:var(--muted)}
.jcc-upsell-guide{display:inline-flex;align-items:center;min-height:44px;margin-top:2px;font-size:.95rem;color:var(--forest);text-decoration:underline}
.jcc-drawer-terms{margin:16px 0 0;font-size:.9rem;color:var(--muted);line-height:1.5}
.jcc-drawer-terms a{color:var(--forest);text-decoration:underline}
.jcc-drawer-empty{padding:12px 0;text-align:center}
.jcc-drawer-empty>p:first-child{font-size:1.05rem;margin-bottom:16px}
.jcc-drawer-empty .btn{white-space:normal;justify-content:center}
.jcc-drawer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:0 22px;margin-top:10px;font-size:1rem}
.jcc-drawer-links a{color:var(--forest);text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}
.jcc-drawer-foot{padding:12px 22px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #e4e6df;background:#fff;box-shadow:0 -10px 24px rgba(29,43,38,.06)}
.jcc-drawer-row{display:flex;justify-content:space-between;gap:16px;padding:3px 0;font-size:1rem}
.jcc-drawer-row.is-save{color:var(--forest);font-weight:600}
.jcc-drawer-row.is-total{margin:6px 0 12px;padding-top:9px;border-top:1px solid #e4e6df;font-size:1.2rem;font-weight:600}
.jcc-drawer-row.is-total span:last-child{font-family:var(--serif);color:var(--navy)}
.jcc-drawer-checkout{width:100%;justify-content:center;white-space:normal;text-align:center;min-height:52px;font-size:1.08rem}
.jcc-drawer-pay{display:flex;align-items:flex-start;justify-content:center;gap:6px;margin:8px 0 0;font-size:.88rem;color:var(--muted);text-align:center;line-height:1.4}
.jcc-drawer-pay svg{flex-shrink:0;margin-top:2px}
.jcc-drawer-continue{display:block;margin:0 auto;min-height:44px;padding:6px 12px;border:0;background:none;color:var(--forest);font:inherit;font-size:1rem;font-weight:600;text-decoration:underline;cursor:pointer}
@media(max-width:480px){.jcc-drawer-head{padding-left:16px}.jcc-drawer-body{padding:14px 16px 16px}.jcc-drawer-foot{padding-left:16px;padding-right:16px}.jcc-drawer-item{grid-template-columns:60px minmax(0,1fr) auto;gap:12px;padding:12px 0}.jcc-drawer-item img{width:60px;height:60px}.jcc-drawer-upsell{margin-top:14px;padding:14px}.jcc-drawer-band{padding:9px 16px;font-size:.95rem}}
@media(max-width:360px){.jcc-upsell-sizes{grid-template-columns:1fr}.jcc-upsell-add{flex-direction:row;justify-content:space-between;padding:8px 14px}}
/* Phones and zoomed-in screens: keep the checkout button in reach. Short screens scroll the whole panel as one column. */
@media(max-height:700px){.jcc-drawer-pay{display:none}.jcc-drawer-foot{padding-top:8px}.jcc-drawer-row.is-total{margin:4px 0 8px;padding-top:6px}}
@media(max-height:600px){.jcc-drawer-panel{overflow-y:auto;overscroll-behavior:contain}.jcc-drawer-head{position:sticky;top:0;z-index:1}.jcc-drawer-body{flex:0 0 auto;overflow:visible}.jcc-drawer-foot{box-shadow:none}}
@media(prefers-reduced-motion:reduce){.jcc-drawer-backdrop,.jcc-drawer-panel{transition:none}}
