/**
 * Camerus Product Colors — front-end swatches styling.
 * Bordered rounded box on product detail; neutral circles for sibling variants.
 */

 .camerus-product-colors {
    margin: 16px 0;
}

.camerus-product-colors__header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.camerus-product-colors__label {
    font-weight: 400;
    color: #000000;
    font-size: 14px;
}

.camerus-product-colors__swatches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.camerus-product-colors__swatch-item {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.camerus-product-colors__swatch {
    display: inline-block;
    width: 22px;
    height: 22px;
    padding: 2px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.12s ease;
    box-sizing: border-box;
    position: relative;
}

.camerus-product-colors__swatch:hover {
/*    transform: scale(1.08);*/
    border-color: rgba(0, 0, 0, 0.2);
}

/* .camerus-product-colors__white {
    width: 18px;
    height: 18px;
}
.camerus-product-colors__white.camerus-product-colors__swatch--current {
    width: 22px;
    height: 22px;
} */
/* .camerus-product-colors__white .cr-color {
    border: 1px solid rgba(0, 0, 0, 0.2);
} */

.camerus-product-colors__swatch:focus-visible {
    outline: 1px solid #ec6707;
    outline-offset: 2px;
}

.camerus-product-colors__swatch--current {
    border: 1px solid #222222;
    outline: 1px solid #ffffff;
    outline-offset: -4px;
    cursor: default;
}

.camerus-product-colors__swatch--current:hover {
    transform: none;
}

.camerus-product-colors__swatch--neutral {
    background-color: #cccccc;
}

/* Mini variant — used inside product cards on listing pages.
   No border, no padding, no header. Smaller circles. */
.camerus-product-colors--mini {
    border: 0;
    padding: 0;
    margin: 6px 0 4px;
    background: transparent;
}

.camerus-product-colors--mini .camerus-product-colors__swatches {
    gap: 6px;
}

.camerus-product-colors--mini .camerus-product-colors__swatch {
    width: 14px;
    height: 14px;
    border-width: 1px;
}

.camerus-product-colors--mini .camerus-product-colors__swatch--current {
    border: 1.5px solid #222222;
    outline: 1.5px solid #ffffff;
    outline-offset: -2.5px;
}

.camerus-product-colors--mini .camerus-product-colors__swatch:hover {
    transform: scale(1.15);
}

.camerus-product-colors .cr-color {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border: 2px solid #fff;
    border-radius: 50%;
}

.camerus-product-colors__white .cr-color {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-top: 2px;
    margin-left: 2px;
}

.camerus-product-colors .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Image swatches — fabric/pattern image instead of a solid color
   (two-tone or patterned feature values). */
.camerus-product-colors .cr-color--image,
.camerus-product-colors__image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
