/* =============================================================================
   Xufa Virtual Variations PRO — Estilos del selector
   ========================================================================== */

.xvv-box {
    border: 1px solid rgba(0,0,0,.08);
    padding: 18px 20px;
    border-radius: 12px;
    margin: 18px 0;
    background: #fafafa;
}

.xvv-title {
    font-weight: 600;
    margin-bottom: 14px;
    font-size: 15px;
    color: #1a1a1a;
}

.xvv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

@media (max-width: 600px) {
    .xvv-grid {
        grid-template-columns: 1fr;
    }
}

.xvv-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xvv-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(0,0,0,.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.xvv-select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.18);
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s;
    width: 100%;
}

.xvv-select:hover { border-color: rgba(0,0,0,.35); }
.xvv-select:focus { outline: none; border-color: #2271b1; box-shadow: 0 0 0 2px rgba(34,113,177,.15); }

/* ----- Color swatches ----- */
.xvv-swatches {
    margin-bottom: 14px;
}

.xvv-swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.xvv-swatch {
    position: relative;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.15);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 10px;
    transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
    text-transform: uppercase;
    color: #1a1a1a;
}

.xvv-swatch:hover:not(.is-disabled) {
    border-color: rgba(0,0,0,.5);
    transform: scale(1.06);
}

.xvv-swatch.is-active {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a1a1a;
}

.xvv-swatch.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.xvv-swatch.is-disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 2px;
    background: rgba(0,0,0,.5);
    transform: rotate(-45deg);
}

/* Swatches con color sólido: oculta el texto */
.xvv-swatch[style*="background-color"] {
    color: transparent;
    padding: 0;
    min-width: 38px;
}

/* ----- Status messages ----- */
.xvv-status {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.15s;
}

.xvv-status:empty { display: none; }

.xvv-status.is-info {
    background: #eef4fb;
    color: #1d4f8b;
    border-left: 3px solid #2271b1;
}

.xvv-status.is-ok {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #2e7d32;
}

.xvv-status.is-warn {
    background: #fff3e0;
    color: #e65100;
    border-left: 3px solid #e65100;
}

.xvv-status.is-err {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
}

/* ----- Selects: opciones deshabilitadas ----- */
.xvv-select option:disabled {
    color: #bbb;
    background: #f5f5f5;
}

/* ----- Loading state ----- */
.xvv-box.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.xvv-box.is-loading .xvv-status {
    background: #f5f5f5;
    color: #666;
}
