﻿
.SwatchSm {
    border: 1px solid #fff;
    height: 24px;
    width: 24px;
    background-position: center center;
    background-size: cover;
    border: 1px solid #999;
    border-radius: 50%;
    color: transparent;
    font-size: 0px;
    cursor: pointer;
}

.SwatchMd {
    border: 1px solid #fff;
    height: 36px;
    width: 36px;
    background-position: center center;
    background-size: cover;
    border: 1px solid #999;
    border-radius: 50%;
    color: transparent;
    font-size: 0px;
    cursor: pointer;
}

.swatch-container {
    display: flex;
    align-items: flex-start;
}

.swatch-label {
    display: none;
}

.swatch-list {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-bottom: 0;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}

    .swatch-list .swatch-item .active {
        outline: 1px solid #555;
    }

    .swatch-list li {
        gap: 8px;
        display: flex;
        align-items: flex-start;
        flex: 0 0 auto;
    }

    .swatch-list.expanded {
        flex-wrap: wrap;
        overflow: visible;
    }

        .swatch-list.expanded::after {
            display: none;
        }


    .swatch-list.list-view {
        flex-direction: column;
        overflow: visible;
    }


        .swatch-list.list-view .swatch-item {
            flex-direction: row;
            align-items: center;
            gap: 10px;
        }


        .swatch-list.list-view .swatch-label {
            display: inline;
            font-size: 13px;
            color: #555;
        }


            .swatch-list.list-view .swatch-label .sml {
                font-size: 11px;
                color: #939393
            }


/* Force active look for swatch accordion */
.SwatchAccordion .accordion-button {
    background-color: var(--bs-accordion-active-bg);
    color: var(--bs-accordion-active-color);
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}

    /* Keep the arrow in the active (rotated) state */
    .SwatchAccordion .accordion-button::after {
        transform: rotate(180deg);
    }

.accordion-fake {
    padding-top: var(--bs-accordion-body-padding-y);
    padding-left: var(--bs-accordion-body-padding-x);
    padding-right: var(--bs-accordion-body-padding-x);
    padding-bottom: var(--bs-accordion-body-padding-y);
}

.more-indicator {
    position: static;
    transform: none;
    height: auto;
    display: flex;
    align-items: center;
    margin-left: 6px;
    cursor: pointer;
    background: white;
}

    .more-indicator svg {
        width: 24px;
        height: auto;
    }

.swatch-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.swatch-new {
    font-size: 8px;
    line-height: 1;
    margin-top: 2px;
}
