.mv-table-wrap {
    width: 100%;
}
.mv-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: #222;
}

/* row container */
.mv-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin: 12px 0 30px;
	border-bottom:1px solid #dfdfdf;
	padding:0 0 30px;
}

.mv-row:last-child{	border-bottom:none;}

/* variation area */
.mv-variation-block {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    flex: 1 1 320px; /* flexible but allowed to shrink */
    min-width: 220px;
}

/* swatch */
.mv-swatch {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    border: 1px solid #ddd;
    box-shadow: 0 0 0 3px #fff;
    margin-right: 8px;
    flex: 0 0 47px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
}
.mv-swatch-empty {
    background: #f5f5f5;
}

/* select */
.mv-variation-select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    min-width: 160px;
    width: 100%;
    box-sizing: border-box;
}

/* qty + remove button area: keep these inline together */
.mv-qty-block {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 110px;
    white-space: nowrap; /* prevent internal wrapping */
}
.mv-qty {
    width: 110px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.mv-stock {
    font-size: 13px;
    color: #2e8b57;
    min-height: 16px;
}

/* remove button kept as a compact inline-flex element */
.mv-remove-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: 8px;
}

/* actions block */
.mv-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
    width: 100%;
	gap:20px;
}

/* buttons */
button.mv-add-btn,
button.mv-quote-btn,
button.mv-remove-row {
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    background-color: #343B96;
    padding: 8px 15.04px;
    font-size: 15px;
    text-transform: uppercase;
    border-radius: 25px;
    line-height: 1.3;
    border: none;
    min-height: 40px;
    box-sizing: border-box;
}
button.mv-add-btn:hover,
button.mv-quote-btn:hover,
button.mv-remove-row:hover {
    background-color: #269993;
}

/* Responsive adjustments */
@media (max-width: 880px) {
    .mv-row {
        gap: 12px;
    }

    /* allow variation block to share row with qty+remove instead of forcing full width */
    .mv-variation-block {
        flex: 1 1 45%;
        min-width: 0;
        align-items: center;
        gap: 12px;
    }

    /* make qty + remove share a single non-wrapping group */
    .mv-qty-block {
        flex: 0 0 auto;
        width: auto;
        max-width: 75%;
        min-width: 0;
    }
    .mv-qty {
        width: 90px;
    }
    .mv-stock {
        font-size: 13px;
        min-height: 16px;
        width: auto;
    }

    /* keep remove button immediately after qty */
    .mv-remove-row {
        order: 0;
        margin-left: 8px;
    }

    /* actions */
    .mv-actions {
        justify-content: space-between;
    }

    button.mv-add-btn,
    button.mv-quote-btn,
    button.mv-remove-row {
        width: auto;
        min-width: 0;
    }
}

/* very small screens */
@media (max-width: 480px) {
    .mv-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .mv-variation-block {
        flex: 1 1 55%;
        gap: 8px;
    }
    .mv-qty-block {
        gap: 6px;
    }
    .mv-qty {
        width: 76px;
        padding: 6px;
    }
    button.mv-add-btn,
    button.mv-quote-btn,
    button.mv-remove-row {
      
        font-size: 13px;
        border-radius: 20px;
    }
}

/* focus styles */
.mv-variation-select:focus,
.mv-qty:focus,
button.mv-add-btn:focus,
button.mv-quote-btn:focus,
button.mv-remove-row:focus {
    outline: 3px solid rgba(52, 59, 150, 0.18);
    outline-offset: 2px;
}
