/* MixVariation module: e-commerce attribute selector and compact size chips */
.mix_storefront {
    width: 100%;
}
.mix_storefront_card {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
}
.mix_storefront_card .mix_sf_step {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
}
.mix_storefront_card .mix_sf_select {
    width: 100%;
    height: 28px;
    padding: 0 4px;
    font-size: 12px;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}
.mix_storefront_card .mix_sf_select:disabled {
    background-color: #f5f5f5;
    color: #aaa;
}
.mix_storefront_card .mix_sf_stock {
    flex: 1 1 100%;
    min-height: 16px;
    font-size: 11px;
    color: #20B2AA;
}
.mix_storefront_single .mix_sf_step {
    margin-bottom: 10px;
}
.mix_storefront_single .mix_sf_label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.mix_storefront_single .mix_sf_values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mix_storefront_single .mix_sf_value {
    display: inline-block;
    min-width: 38px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}
.mix_storefront_single .mix_sf_value:hover,
.mix_storefront_single .mix_sf_value.active {
    color: #fff;
    background-color: #9370DB;
    border-color: #9370DB;
    text-decoration: none;
}
.mix_storefront_single .mix_sf_values li.mix_sf_unavailable {
    display: none;
}
.mix_storefront_single .mix_sf_stock {
    margin: 4px 0 8px;
    font-weight: 600;
    color: #20B2AA;
}
.mix_sf_stock.mix_sf_out {
    color: #dc3545;
}

/* Homepage product cards: size chips wrap in at most two compact lines instead of one long row */
.product-default .variations .config-size-list.gt_compact_sizes {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start;
    gap: 3px;
    max-height: 58px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.product-default .variations .config-size-list.gt_compact_sizes li {
    margin: 0;
}
.product-default .variations .config-size-list.gt_compact_sizes li a {
    margin: 0 !important;
    min-width: 26px;
    padding: 2px 5px !important;
    font-size: 11px !important;
    line-height: 18px;
    white-space: nowrap;
}
@media (max-width: 576px) {
    .product-default .variations .config-size-list.gt_compact_sizes,
    .mix_storefront_card {
        justify-content: center !important;
    }
    .mix_storefront_card .mix_sf_step {
        flex-basis: 100%;
    }
}
