.custom-variation-form {
    width: 100%;
    box-sizing: border-box;
}


.cvf-attribute-label {
    font-size: 13px;
    color: #333;
    margin: 0 0 18px;
}

.cvf-swatch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.cvf-swatch {
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer;
    outline: none !important;
}

/* Botones de texto (Talla) estilo pastilla */
.cvf-swatch--text {
    flex: 0 0 auto !important;
    min-width: 50px !important;
    padding: 8px 14px !important;
    border: none !important;
    border-radius: 30px !important;
    background-color: #f5f5f5 !important;
    color: #333 !important;
    font-size: 13px !important;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}

.cvf-swatch--text:hover,
.cvf-swatch--text:focus,
.cvf-swatch--text:active {
    background-color: #f5f5f5 !important;
    color: #333 !important;
}

.cvf-swatch--text.active {
    background-color: #000 !important;
    color: #fff !important;
}

.cvf-swatch--text.active:hover,
.cvf-swatch--text.active:focus,
.cvf-swatch--text.active:active {
    background-color: #000 !important;
    color: #fff !important;
}

/* Sin stock: visible, clickeable, pero tachado y opaco */
.cvf-swatch--text.no-stock {
    opacity: 0.45 !important;
    background: #f5f5f5 !important;
    color: #333 !important;
}

.cvf-swatch--text.no-stock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 8%;
    width: 84%;
    height: 2px;
    background: #999;
    transform: rotate(-20deg);
    pointer-events: none;
}

.cvf-swatch--text.no-stock.active {
    background: #f5f5f5 !important;
    color: #333 !important;
}

/* Color (círculos) */
.cvf-swatch--color {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 0 1px #ccc !important;
    position: relative;
}

.cvf-swatch--color.active {
    box-shadow: 0 0 0 2px #0e0d0d !important;
}

.cvf-swatch--color.no-stock {
    opacity: 0.45 !important;
}

.cvf-swatch--color.no-stock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 2px;
    background: #999;
    transform: rotate(-20deg) translateY(-50%);
    pointer-events: none;
}



.cvf-stock-status {
    font-size: 13px;
    min-height: 18px;
    margin: 0 0 12px;
}

.cvf-stock-status .stock {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.cvf-stock-status .stock::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    background-size: contain;
    flex-shrink: 0;
}

.cvf-stock-status .stock.in-stock::before {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15'><circle cx='7.5' cy='7.5' r='7.5' fill='rgba(0,128,0,0.3)'/><circle cx='7.5' cy='7.5' r='5' stroke='white' stroke-width='1' fill='rgb(0,128,0)'/></svg>") no-repeat center;
}

.cvf-stock-status .stock.low-stock::before {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15'><circle cx='7.5' cy='7.5' r='7.5' fill='rgba(238,148,65,0.3)'/><circle cx='7.5' cy='7.5' r='5' stroke='white' stroke-width='1' fill='rgb(238,148,65)'/></svg>") no-repeat center;
}

.cvf-stock-status .stock.out-of-stock::before {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15'><circle cx='7.5' cy='7.5' r='7.5' fill='rgba(255,0,0,0.3)'/><circle cx='7.5' cy='7.5' r='5' stroke='white' stroke-width='1' fill='rgb(255,0,0)'/></svg>") no-repeat center;
}

.cvf-add-to-cart-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    width: 100% !important;
    display: block;
    padding: 14px;
    background: #17b6b6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    outline: none !important;
}

.cvf-add-to-cart-btn:hover,
.cvf-add-to-cart-btn:focus,
.cvf-add-to-cart-btn:active {
    background: #17b6b6 !important;
    color: #fff !important;
    width: 100% !important;

}

.cvf-add-to-cart-btn:disabled {
    background: #eeeeee !important;
    color: #aaaaaa !important;
    cursor: not-allowed;
    width: 100% !important;
}