/* WC Variation Grid — front-end styles */

.wvg-form {
    margin: 1em 0;
}

.wvg-grid {
    width: 100%;
    border-top: 1px solid #e5e5e5;
}

.wvg-group-header {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 0 8px;
    font-size: 13px;
    color: #444;
}

.wvg-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e5e5;
}

.wvg-row-title {
    min-width: 0;
}

.wvg-row-title a {
    color: #000;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wvg-row-title a:hover {
    text-decoration: none;
}

.wvg-row-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.wvg-step {
    width: 32px;
    height: 32px;
    border: 0;
    background: #000;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    user-select: none;
    border-radius: 0;
}

.wvg-step:hover {
    background: #222;
}

.wvg-step:disabled {
    background: #999;
    cursor: not-allowed;
}

.wvg-qty {
    width: 56px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: 0;
    border-right: 0;
    font-size: 14px;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

.wvg-qty::-webkit-outer-spin-button,
.wvg-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wvg-qty:focus {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

.wvg-row-stock {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
}

.wvg-row-oos .wvg-row-stock {
    color: #b32d2e;
    font-weight: 600;
}

.wvg-row-backorder .wvg-row-stock {
    color: #b87b00;
}

.wvg-row-feedback {
    grid-column: 1 / -1;
    font-size: 12px;
    line-height: 1.3;
    min-height: 0;
    color: #b32d2e;
}

.wvg-row-feedback:empty {
    display: none;
}

.wvg-row-feedback.is-info {
    color: #1e6091;
}

.wvg-row-feedback.is-success {
    color: #2e7d32;
}

.wvg-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wvg-bulk-add[disabled],
.wvg-bulk-add.is-loading {
    opacity: 0.7;
    cursor: progress;
}

.wvg-feedback {
    font-size: 13px;
    color: #555;
}

.wvg-feedback.is-success {
    color: #2e7d32;
    font-weight: 600;
}

.wvg-feedback.is-error {
    color: #b32d2e;
    font-weight: 600;
}

.wvg-feedback.is-warning {
    color: #b87b00;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 600px) {
    .wvg-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 0;
    }

    .wvg-row-stepper {
        justify-self: start;
    }

    .wvg-row-stock {
        text-align: left;
        min-width: 0;
    }
}
