.wna-eec-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.wna-eec-variation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 15px;
    flex: 1 1 60%;
}
/*
* This CSS is designed to make the variation widget compact and list-like.
* It modifies the layout to place the image on the left and the product details on the right.
*/

/* Main wrapper - No major changes needed here, still a flex container for the grid and summary */
.wna-eec-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Variation grid - Made the columns smaller for a more compact list view */
.wna-eec-variation-grid {
    display: grid;
    /* Reduced minmax value to make the columns smaller */
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 10px; /* Reduced gap */
    flex: 1 1 60%;
}

/*
* Variation card - THIS IS THE KEY CHANGE
* It's now a horizontal flex container to align items side-by-side.
*/
.wna-eec-variation {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px; /* Reduced padding for a smaller size */
    background: #fff;
    /* Changed from text-align: center to a flex container */
    display: flex;
    align-items: center; /* Vertically centers all items */
    gap: 10px; /* Space between the image and the text */
}

/* Product image - Set a fixed size for the image container */
.wna-eec-image {
    width: 200px;
    /* height: 50px; */
    flex-shrink: 0; /* Prevents the image from shrinking */
}

.wna-eec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container without distortion */
    border-radius: 4px;
}

/* Container for the text content (title, price, quantity) */
.wna-eec-info-wrapper {
    display: flex;
    flex-direction: column; /* Stack the elements vertically */
    flex-grow: 1; /* Allows this section to take up available space */
}

/* Title */
.wna-eec-info h4 {
    margin: 0; /* Removed margin to make it tighter */
    font-size: 13px; /* Reduced font size */
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis; /* Added to handle long titles */
    text-align: left; /* Aligned text to the left */
}

/* Price */
.wna-eec-price {
    font-size: 12px; /* Reduced font size */
    font-weight: 500;
    margin: 3px 0; /* Adjusted margin */
    text-align: left; /* Aligned text to the left */
}

/* Select and quantity container */
.wna-eec-select {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto; /* Pushes the quantity control to the bottom */
}

/* Quantity input field */
.wna-eec-qty {
    width: 45px; /* Made the input field smaller */
    padding: 2px;
    text-align: center;
    font-size: 12px;
    border-radius: 4px;
}

/* Summary section - No changes needed, but added for completeness */
.wna-eec-summary {
    flex: 1 1 35%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: #fafafa;
    height: fit-content;
}

/* Checkout form - No changes needed */
.wna-eec-checkout-form {
    width: 100%;
    margin-top: 20px;
}

form#woocommerce-checkout-form-coupon {
    max-width: 48% !important;
}

div#customer_details {
    max-width: 50%;
    width: 50%;
    float: left;
}

div#order_review {
    float: right;
    max-width: 48%;
}

h3#order_review_heading {
    display: none;
}

.main-checkbox-label {
    display: flex;
    gap: 5px;
    margin-right: 10px;
    text-transform: uppercase;
}

.wna-eec-select input{
    max-width: 100px;
}

.wna-eec-checkout-form .woocommerce-form-coupon-toggle {
    display: none;
}

.wna-eec-checkout-form  div#order_review{
    border-bottom: none !important;
    border-right: none !important;
    border-top: none !important;

}

.wna-eec-variation .wna-eec-info p {
    margin: 0;
    margin-top: 20px;
}

.wna-eec-variation .wna-eec-info .wna-eec-add-to-cart {
    margin-top: 10px;
}

button#place_order {
    background: rgb(255,108,0);
    width: 100%;
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
    padding: 15px;
}

@media (max-width:992px) {
    form#woocommerce-checkout-form-coupon {
        max-width: 48% !important;
    }

    div#customer_details {
        max-width: 100%;
        width: 100%;
        float: none;
    }

    div#order_review {
        float: none;
        max-width: 100%;
    }

    .wna-eec-checkout-form  div#order_review{
        border: none !important;
    }

    .wna-eec-variation {
        /* flex-direction: column;
        justify-content: left;
        align-items: baseline; */
    }

    .wna-eec-price {
        margin-bottom: 0 !important;
    }

    .wna-eec-variation-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .wna-eec-image{
        width: 50px;
    }
}