.rvpm-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.rvpm-modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    position: relative;
}

.rvpm-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.rvpm-close-button:hover,
.rvpm-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#rvpm-product-list {
    list-style: none;
    padding: 0;
}

#rvpm-product-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

#rvpm-product-list li:last-child {
    border-bottom: none;
}

#rvpm-product-list a {
    text-decoration: none;
    color: #333;
}

#rvpm-product-list a:hover {
    color: #0073aa; /* WordPress blue */
}

/* Styling for individual product items */
#rvpm-product-list li a {
    display: flex; /* Align image and text side-by-side */
    align-items: center; /* Vertically align items in the center */
    flex-grow: 1; /* Allows the link to take up available space before the button */
    margin-right: 10px; /* Add some space between product info and button */
}

.rvpm-product-image {
    margin-right: 15px; /* Space between image and text */
}

.rvpm-product-image img,
.rvpm-product-image img.wp-post-image {
    max-width: 60px; /* Adjust size as needed */
    height: auto;
    border-radius: 4px; /* Slightly rounded corners for images */
}

.rvpm-product-name {
    font-size: 1em;
}

/* Add a bit more spacing and a subtle hover effect for list items */
#rvpm-product-list li:hover {
    background-color: #f9f9f9;
}

/* Styling for Add to Cart and Select Options buttons */
.rvpm-add-to-cart,
.rvpm-select-options {
    margin-left: auto; /* Pushes button to the right */
    padding: 12px;
    font-size: 0.9em;
    text-decoration: none;
    background-color: #0073aa; /* WordPress blue */
    color: white !important; /* Important to override default link color */
    border-radius: 4px;
    white-space: nowrap; /* Prevent button text from wrapping */
}

.rvpm-add-to-cart:hover,
.rvpm-select-options:hover {
    background-color: #005a87; /* Darker shade of blue on hover */
}

/* Style for the cart icon itself */
.rvpm-add-to-cart .dashicons-cart {
    font-size: 18px; /* Adjust icon size as needed */
    line-height: 1; /* Align icon nicely within the button padding */
}

/* Ensure the main li element also uses flex to align link and button */
#rvpm-product-list li {
    display: flex;
    align-items: center;
    /* padding: 5px 0; from previous styling */
    /* border-bottom: 1px solid #eee; from previous styling */
} 