.uakc-variant-box {
    margin: 12px 0 14px;
    padding: 10px;
    border: 1px solid #d8d8d8;
    background: #fff;
    clear: both;
}

.uakc-variant-title {
    font-size: 13px;
    margin-bottom: 8px;
    color: #222;
}

.uakc-variant-title span {
    text-transform: lowercase;
}

.uakc-variant-title strong {
    font-weight: 700;
}

.uakc-variant-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.uakc-variant-option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 6px 8px;
    border: 1px solid #cfcfcf;
    background: #fafafa;
    color: #222;
    text-decoration: none;
    line-height: 1.15;
    box-sizing: border-box;
    overflow: hidden;
}

.uakc-variant-option:hover,
.uakc-variant-option:focus {
    border-color: #01b7ef;
    color: #222;
    text-decoration: none;
}

.uakc-variant-option.active {
    border: 2px solid #01b7ef;
    background: #eefbff;
    cursor: default;
}

/* Plain img thumbnail support */
.uakc-variant-thumb,
.uakc-variant-image,
.uakc-variant-option img {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    object-fit: contain !important;
    flex: 0 0 46px !important;
    background: #fff;
}

/* Magento image helper wrapper support */
.uakc-variant-option .product-image-container {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    flex: 0 0 46px !important;
    display: block !important;
    background: #fff;
    overflow: hidden !important;
}

.uakc-variant-option .product-image-wrapper {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.uakc-variant-option .product-image-photo {
    position: static !important;
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.uakc-variant-text {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.uakc-variant-color-name,
.uakc-variant-option span {
    display: block;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
}

.uakc-variant-option small {
    display: block;
    margin-top: 3px;
    color: #666;
    font-size: 10px;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .uakc-variant-options {
        display: block;
    }

    .uakc-variant-option {
        width: 100%;
        margin-bottom: 7px;
    }
}