/* ////////////////////////// General Modal Styles /////////////////////////// */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Dark background */
    font-family: Arial, sans-serif; /* General font */
}

.custom-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    width: 90%;
    max-width: 600px;
    position: relative;
    box-sizing: border-box; /* Ensures padding is included in total width */
}

/* Close Button Styles */
.custom-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
    color: #000;
}

/* Modal Title */
.custom-modal-content h2 {
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid #ddd; /* Bottom border for title */
    padding-bottom: 10px;
}

/* Table Styles */
.custom-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.custom-modal-content th,
.custom-modal-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Bottom border for rows */
}

.custom-modal-content th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Radio Button Styles */
.custom-modal-content input[type="radio"] {
    margin-right: 10px;
}

/* Modal Button Styles */
.modal-buttons {
    margin-top: 20px;
    text-align: center;
}

.modal-buttons .button {
    background-color: #0073aa; /* WordPress blue */
    color: #fff;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px; /* Rounded corners */
    cursor: pointer;
}

.modal-buttons .button:hover {
    background-color: #005a87; /* Darker blue on hover */
}

/* Cancel Button Styles */
.modal-buttons .cancel-vendor {
    background-color: #a0a0a0; /* Gray background */
}

.modal-buttons .cancel-vendor:hover {
    background-color: #808080; /* Darker gray on hover */
}

/* Responsive Styles */
@media screen and (max-width: 600px) {
    .custom-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }

    .custom-modal-content h2 {
        font-size: 1.5em;
    }

    .custom-modal-content th,
    .custom-modal-content td {
        padding: 8px;
        font-size: 0.9em;
    }

    .modal-buttons .button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}


/* ///////////////////// Quantity field made bigger */

/* Highly specific rule to override WooCommerce default styles */
/* General rule for quantity inputs */
.quantity .qty {
    width: auto !important; /* Remove fixed width constraint */
}

/* Specifically target the quantity input field in your example */
.quantity input.qty {
    width: auto !important; /* Remove fixed width constraint */
}


/* //////////////////////// Hide total column ///////////////////// */
/* Hide the 'Total' column header and cells */
.shop_table .product-subtotal {
    display: none;
}

/* Hide only the 'Total' column header and its cells */
.shop_table thead th.product-subtotal,
.shop_table tbody td.product-subtotal {
    display: none;
}

/* Ensure the table layout is adjusted for the remaining columns */
.shop_table {
    width: 100%;
    border-collapse: collapse; /* Ensure borders are properly collapsed */
}

/* Ensure remaining columns align properly */
.shop_table th,
.shop_table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd; /* Add borders for better visibility */
}

/* Ensure alignment of the table header and body cells */
.shop_table thead th {
    border-bottom: 2px solid #ddd; /* Add a bottom border to headers */
}

/* Ensure actions row spans the correct number of columns */
.shop_table .actions {
    text-align: right;
    padding: 10px;
}

/* Adjust column width and layout for alignment */
.shop_table thead th:nth-child(1),
.shop_table tbody td:nth-child(1) {
    width: 5%; /* Adjust width as needed */
}

.shop_table thead th:nth-child(2),
.shop_table tbody td:nth-child(2) {
    width: 40%; /* Adjust width as needed */
}

.shop_table thead th:nth-child(3),
.shop_table tbody td:nth-child(3) {
    width: 20%; /* Adjust width as needed */
}

/* Align the quantity column title and content correctly */
.shop_table thead th.product-quantity,
.shop_table tbody td.product-quantity {
    text-align: center; /* Center align quantity column title and content */
}

/* Add spacing between columns for better readability */
.shop_table th,
.shop_table td {
    padding: 10px;
}
