/* WIM Combination List - Replicando estilos del tema selfpackaging */

/* Bootstrap classes */
.form-control {
    color: black;
}
[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.float-xs-left {
    float: left;
}

.variant-links {
    display: none;
}

.wim-product-variants .product-variants-item {
    margin: 0;
    /* padding: 10px 0; */
    display: block;
    text-align: left;
}

@media(max-width: 768px){
    #category .wim-product-variants .product-variants-item {
        margin: 0;
        padding: 10px 0 0 0;
    }
}

.wim-product-variants .product-variants-item .control-label {
    margin-bottom: 0.25rem;
    display: inline-block;
    display: none;
}

.wim-product-variants .product-variants-item .attribute_group .input-container{
    margin: 4px;
    line-height: 1;
    position: relative;
}

.wim-product-variants .variant-link {
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.wim-product-variants .variant-link .radio-label {
    padding: 6px;
    width: 21px;
    height: 21px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 50%;
    font-family: var(--font-primary);
    font-size: 12px;
    line-height: 10px;
    font-weight: 700;
    color: #434343;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: lowercase;
    border: 1px solid transparent;
}

.wim-product-variants .variant-link:hover .radio-label,
.wim-product-variants .variant-link.active .radio-label {
    border: 1px solid var(--grey-sp, #434343);
}

.wim-product-variants span.sizes{
    width: 21px;
    display: block;
    white-space: nowrap;
    padding-top: 3px;
}

.wim-product-variants .product-variants>.product-variants-item .attribute_group_show {
    width: min-content;
    min-width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.wim-product-variants .product-variants>.product-variants-item ul li:nth-child(1){
    margin-right: 5px;
}

.wim-product-variants .product-variants>.product-variants-item .input-container {
    margin: 4px;
    line-height: 1;
    position: relative;
}

.wim-product-variants .product-variants>.product-variants-item .color {
    margin: 0;
    width: 24px;
    height: 24px;
    border: #ccc 1px solid;
    cursor: pointer;
    border-radius: 50%;
    display: inline-block;
}

.wim-product-variants .product-variants>.product-variants-item .color.texture {
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}

.wim-product-variants .variant-link:hover .color {
    border-color: #24b9d7;
}

.wim-product-variants .product-variants>.product-variants-item .select {
    width: auto;
}

.wim-product-variants .product-variants>.product-variants-item .image {
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}

.product-variants-item-color .attribute_group {
    overflow: hidden;
    margin: 0;
}

.wim-product-variants .attribute_group {
    overflow: hidden;
    margin: 0;
}

/* Clases específicas para el tema selfpackaging */
.wim-product-variants .attribute_group.hidden-sm-down {
    display: block;
}

@media (max-width: 767px) {
    .wim-product-variants .attribute_group.hidden-sm-down {
        display: none;
    }
}

.wim-product-variants .dropdown.hidden-md-up {
    display: none;
}

@media (max-width: 991px) {
    .wim-product-variants .dropdown.hidden-md-up {
        display: block;
    }
    
    .wim-product-variants .product-variants > .product-variants-item .dropdown{
        width: fit-content;
    }
    
    .wim-product-variants .product-variants > .product-variants-item .dropdown-menu-right {
        top: 20px;
        transform: translateY(-105%) translateX(105%);
        min-width: 50px;
        width: auto;
        border: 1px solid #434342;
        padding: 10px;
        background: white;
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    }
    
    .wim-product-variants .product-variants > .product-variants-item .input-container .radio-label{
        border: none;
        background-color: transparent;
    }
    
    .wim-product-variants .product-variants > .product-variants-item .dropdown-toggle{
        font-size: 12px;
        color: #434342;
        background: transparent;
        border: none;
        padding: 0;
        text-decoration: none;
    }
    
    .wim-product-variants .product-variants > .product-variants-item .dropdown-toggle::after{
        content: none;
    }
    
    .wim-product-variants .product-variants > .product-variants-item .dropdown-toggle .open::before{
        content: "+";
        font-size: 12px;
        line-height: normal;
        color: #434342;
        border: 1px solid #434342;
        border-radius: 50%;
        width: 12px;
        height: 12px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 2px;
    }
    
    .wim-product-variants .product-variants > .product-variants-item .dropdown-toggle[aria-expanded="true"] .open::before{
        content: "-";
    }
    
    .wim-product-variants span.sizes{
        width: auto;
        display: block;
    }
    
    .wim-product-variants .dropdown-menu .variant-link{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0.25rem 0.5rem;
        text-decoration: none;
    }
}

.wim-product-variants .dropdown-toggle:hover {
    text-decoration: none;
    color: #434342;
}

.wim-product-variants .dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
}

.wim-product-variants .dropdown-menu .input-container {
    margin: 0;
}

.wim-product-variants .attribute-name.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;
} 