/* Selector de atributo con imagen de combinación */
.attrimgswatch-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 12px;
}

.attrimgswatch-swatch {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 3px;
    background: #fff;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    line-height: 1.1;
    text-align: center;
    box-sizing: content-box;
}

.attrimgswatch-swatch:hover {
    border-color: #bbb;
}

.attrimgswatch-swatch.is-active {
    border-color: #000;
    box-shadow: 0 0 0 1px #000 inset;
}

.attrimgswatch-swatch.is-unavailable {
    opacity: .45;
}

.attrimgswatch-swatch img {
    display: block;
    object-fit: cover;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.attrimgswatch-swatch .attrimgswatch-text {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f7f7f7;
    color: #222;
    font-size: 13px;
    padding: 0 8px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
}

.attrimgswatch-swatch .attrimgswatch-label {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #444;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* El selector original queda oculto pero sigue enviando el valor al formulario */
.attrimgswatch-hidden-original {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
