/* ─────────────────────────────────────────────────────
   WQE Variant Switcher
   ───────────────────────────────────────────────────── */

.wqe-vs-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px; /* overridden by Elementor control */
}

/* Attribute group */
.wqe-vs-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Label row */
.wqe-vs-label-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
}

.wqe-vs-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wqe-vs-label-value {
    font-size: 0.875rem;
    font-weight: 400;
    color: #555;
    line-height: 1.4;
    min-height: 1.4em; /* reserve space even when empty */
}

/* Options row */
.wqe-vs-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* overridden by Elementor control */
}

/* Base button */
.wqe-vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f5f5f5;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color            0.18s ease,
        border-color     0.18s ease,
        transform        0.12s ease,
        box-shadow       0.18s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Hover (only when not selected and not OOS) */
.wqe-vs-btn:hover:not(.is-selected):not(.is-oos) {
    background-color: #ebebeb;
    border-color: #ccc;
}

/* Selected */
.wqe-vs-btn.is-selected {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

/* Out of stock */
.wqe-vs-btn.is-oos {
    color: #aaa;
    background-color: #fafafa;
    border-color: #e0e0e0;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

/* Strikethrough diagonal line for OOS */
.wqe-vs-btn.is-oos::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        transparent calc(50% - 0.5px),
        #ccc calc(50% - 0.5px),
        #ccc calc(50% + 0.5px),
        transparent calc(50% + 0.5px)
    );
    pointer-events: none;
}

/* Focus visible */
.wqe-vs-btn:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Placeholder in editor */
.wqe-vs-placeholder {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
}
