.rm-color-variants {
    margin: 18px 0 4px;
    padding: 16px;
    border: 1px solid #dfe5ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(7, 21, 70, .055);
}

.rm-color-variants__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #101a35;
}

.rm-color-variants__heading span {
    font-size: 14px;
    font-weight: 700;
}

.rm-color-variants__heading strong {
    color: #173b91;
    font-size: 14px;
    font-weight: 800;
}

.rm-color-variants__list {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 2px 7px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #b8c4dc transparent;
    -webkit-overflow-scrolling: touch;
}

.rm-color-variant {
    position: relative;
    display: flex;
    flex: 0 0 88px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    border: 1px solid #dce3ee;
    border-radius: 11px;
    padding: 7px 6px 8px;
    background: #fff;
    color: #17213b;
    text-align: center;
    text-decoration: none !important;
    transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.rm-color-variant:hover,
.rm-color-variant:focus-visible,
.rm-color-variant.is-previewing {
    border-color: #5573bd;
    color: #101a35;
    box-shadow: 0 6px 17px rgba(15, 48, 125, .13);
    transform: translateY(-1px);
}

.rm-color-variant:focus-visible {
    outline: 3px solid rgba(23, 59, 145, .2);
    outline-offset: 2px;
}

.rm-color-variant.is-current {
    border: 2px solid #071546;
    padding: 6px 5px 7px;
    box-shadow: 0 5px 15px rgba(7, 21, 70, .13);
}

.rm-color-variant__visual {
    position: relative;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    margin-bottom: 7px;
    border-radius: 8px;
    background: #f5f7fb;
}

.rm-color-variant__visual img {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: contain;
}

.rm-color-variant__swatch {
    display: block;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(14, 25, 51, .18);
    border-radius: 50%;
    background: linear-gradient(135deg, #e3e8f2 0 50%, #c5cede 50% 100%);
}

.rm-color-variant__check {
    position: absolute;
    right: -4px;
    top: -4px;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #071546;
    color: #fff;
    font-size: 9px;
}

.rm-color-variant__label {
    display: block;
    overflow: hidden;
    width: 100%;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rm-color-variant small {
    display: block;
    margin-top: 3px;
    color: #27835d;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

.rm-color-variant.is-out-of-stock:not(.is-current) {
    background: #fafbfc;
}

.rm-color-variant.is-out-of-stock small {
    color: #9a5762;
}

.rm-color-variants__note {
    margin: 6px 0 0;
    color: #7a859c;
    font-size: 10px;
    line-height: 1.35;
}

@media (max-width: 575.98px) {
    .rm-color-variants {
        margin-top: 14px;
        padding: 13px 12px;
    }

    .rm-color-variant {
        flex-basis: 82px;
    }

    .rm-color-variant__visual,
    .rm-color-variant__visual img {
        width: 66px;
        height: 66px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rm-color-variant {
        transition: none;
    }
}
