/* MW Swatches - dark-store look: square corners, thin grey outline, white selected ring.
   Tweak from theme CSS with these variables. */
.mws,.mws-archive{--mws-size:46px;--mws-radius:2px;--mws-gap:10px;--mws-ring:3px;--mws-ring-gap:3px;--mws-border:#a8a8a8}
.mws select{display:none!important}
.mws-items,.mws-archive{display:flex;flex-wrap:wrap;gap:var(--mws-gap);list-style:none;margin:0;padding:0}
.mws-items{padding:7px} /* room for the selected ring */
.mws-archive{--mws-size:34px;--mws-gap:8px;--mws-ring:2px;--mws-ring-gap:2px;margin:8px 0 4px;padding:6px 0}
.mws-item,.mws-more a{box-sizing:border-box;width:var(--mws-size);height:var(--mws-size);border-radius:var(--mws-radius)}
.mws-item{position:relative;margin:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:outline-color .12s;touch-action:manipulation;-webkit-tap-highlight-color:transparent;list-style:none}
.mws-item::marker{content:none}
.mws-swatch{position:absolute;inset:0;border-radius:var(--mws-radius);background:var(--mws-c,transparent);display:flex;align-items:center;justify-content:center}
.mws-type-color .mws-swatch{box-shadow:inset 0 0 0 1px rgba(128,128,128,.22)} /* keeps white swatches visible on a white page */
.mws-type-image .mws-swatch{background:var(--mws-i,#ccc) center/cover no-repeat}
.mws-type-button .mws-item{box-shadow:0 0 0 1px var(--mws-border);width:auto;min-width:var(--mws-size);padding:0 14px;font-size:14px;font-weight:600;line-height:1;text-transform:none}
.mws-type-button .mws-swatch{position:static;background:none;white-space:nowrap}
/* selected: a thick ring in the text colour, set off from the swatch by a gap (works on light and dark stores) */
.mws-item[aria-checked=true]{outline:var(--mws-ring) solid currentColor;outline-offset:var(--mws-ring-gap)}
.mws-item:active{opacity:.8}
.mws-item:focus-visible{outline:2px solid #289cd6;outline-offset:3px}
/* fade the swatch and its outline, never the whole item, so the hover tooltip stays fully opaque */
.mws-oos .mws-swatch,.mws-unavail .mws-swatch{opacity:.4}
.mws-na .mws-swatch{opacity:.3}
.mws-oos,.mws-unavail{--mws-border:rgba(168,168,168,.4)}
.mws-na{--mws-border:rgba(168,168,168,.2);cursor:not-allowed}
/* two-tone diagonal so it reads on light and dark swatches; also on options with no buyable variation (disabled) */
.mws-oos::after,.mws-na::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.75;background:linear-gradient(to top right,transparent calc(50% - 2px),#000 calc(50% - 2px),#000 calc(50% - .5px),#fff calc(50% - .5px),#fff calc(50% + 1px),transparent calc(50% + 1px))}
.mws-more{display:inline-flex;list-style:none}
.mws-more a{display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;line-height:1;color:inherit;text-decoration:none;box-shadow:0 0 0 1px var(--mws-border)}
.mws-more-m{display:none}
/* display-only dots (simple products, single colour) and the empty row that keeps card titles aligned */
.mws-static .mws-item{cursor:default}
.mws-static .mws-item:active{opacity:1}
.mws-empty{box-sizing:content-box;height:var(--mws-size)}
@media (hover:hover){.mws-item[data-title]:hover::before{content:attr(data-title);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:#fff;color:#000;font-size:12px;font-weight:600;line-height:1;padding:6px 8px;border-radius:2px;white-space:nowrap;pointer-events:none;z-index:5}}
@media (min-width:769px){.mws,.mws-archive{--mws-size:50px}.mws-archive{--mws-size:32px;--mws-gap:8px}}
/* phones: one tidy row on 2-column cards - 3 colours plus a "+N" chip */
@media (max-width:600px){.mws-hm{display:none}.mws-more-m{display:inline-flex}.mws-more-d{display:none}}

/* shop cards: keep the add-to-cart button full width while it is adding (the default loading style shrinks it) */
.products .product a.add_to_cart_button.loading,.products .product a.add_to_cart_button.added{display:block;width:100%;box-sizing:border-box;text-align:center}
.products .product a.add_to_cart_button.loading{pointer-events:none}
