/* Colour swatches of the variation selector (Catalog product page). Themes may override every rule. */
.cw-swatches { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .25rem; }
.cw-swatch {
    width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%; cursor: pointer;
    border: 2px solid #fff; box-shadow: 0 0 0 1px #6c757d; background-clip: padding-box;
}
.cw-swatch:hover:not(:disabled) { box-shadow: 0 0 0 2px #495057; }
.cw-swatch:focus-visible { outline: 3px solid #0d6efd; outline-offset: 2px; }
.cw-swatch.is-selected { box-shadow: 0 0 0 3px #212529; }
/* not only colour: a selected swatch carries a check mark, an unavailable one a diagonal strike */
.cw-swatch.is-selected::after { content: "\2713"; display: block; line-height: 1; font-size: 1rem; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.cw-swatch:disabled { cursor: not-allowed; opacity: .45; position: relative; }
.cw-swatch:disabled::before { content: ""; position: absolute; inset: 50% -2px auto -2px; border-top: 2px solid #212529; transform: rotate(-45deg); }
.cw-swatch-selected { display: block; min-height: 1.25rem; font-size: .875rem; color: #495057; }
