/* Modal container */
.wcm-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.4);
}
.yith-wcwl-add-to-wishlist-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 19px;
}
.yith-wcwl-add-to-wishlist-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 41px;
}
/* Modal content */
.wcm-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%; /* Default width for larger screens */
    max-width: 600px; /* Set a maximum width */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative; /* For close button positioning */
    border-radius: 8px; /* Optional for a smoother look */
}

/* Close button styling */
.wcm-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px; /* Make it larger */
    font-weight: bold;
    color: #333; /* Darker color for better visibility */
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%; /* Optional for rounded look */
    transition: background-color 0.3s ease;
}

/* Hover effect on the close button */
.wcm-close:hover {
    background-color: #f2f2f2; /* Light gray background on hover */
    color: #000; /* Slightly darker color on hover */
}

/* Textarea styling */
textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    resize: none; /* Disable resizing for better layout control */
}

/* Button styling */
.button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-right: 10px; /* Add some space between buttons */
}

/* Button hover effect */
.button:hover {
    background-color: #005f8a; /* Darker blue on hover */
}

/* Styling for the 'Agregar Productos al Carrito' button */
#wcm-open-modal.button {
    padding: 10px 20px;
    background-color: #25231e; /* Button background color */
    color: #fff; /* Text color */
    border: none; /* Remove border */
    border-radius: 5px; /* Optional rounded corners */
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#wcm-open-modal.button:hover {
    background-color: #1f1d1a; /* Slightly darker shade on hover */
}

#wcm-open-modal.button:focus {
    outline: 2px solid #fff; /* Optional focus outline */
}

/* Responsive Design */

/* Adjust modal for smaller screens (tablets, mobiles) */
@media (max-width: 768px) {
    .wcm-modal-content {
        width: 80%; /* Reduce width for smaller screens */
        margin: 20% auto; /* Increase top margin to better center the modal */
    }
}

@media (max-width: 480px) {
    .wcm-modal-content {
        width: 95%; /* Almost full width on small screens */
        padding: 15px; /* Reduce padding for better fit */
    }

    .wcm-close {
        font-size: 20px; /* Adjust close button size for smaller screens */
    }

    /* Adjust button size and spacing */
    .button {
        padding: 8px 16px;
        font-size: 14px;
        margin-bottom: 10px; /* Add space between buttons on mobile */
        display: block; /* Make buttons stack vertically on mobile */
        width: 100%; /* Make the buttons full width on mobile */
    }

    /* Adjust textarea height */
    textarea {
        height: 100px; /* Slightly smaller for small screens */
    }
}


/* Responsive Table Styles */
.table-responsive {
    overflow-x: auto; /* Enable horizontal scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for touch devices */
}

/* Ensure the table fills the container */
.custom-cart-layout {
    min-width: 600px; /* Set a minimum width for better visibility on small devices */
}

/* Custom WooCommerce Cart Layout Styles */
.custom-cart-layout {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.custom-cart-layout th,
.custom-cart-layout td {
    padding: 15px; /* Padding for table cells */
    text-align: center; /* Align text to the left */
    vertical-align: middle; /* Center align vertically */
    border: 1px solid #ddd; /* Border for cells */
}

/* Override the product-name header position */
.custom-cart-layout th{
   position: static !important;
    left: auto;
    display: table-cell;
    background-color: #cccccc;
    color: #000;

}


/* Zebra striping for even rows */
.custom-cart-layout tbody tr:nth-child(even) {
    background-color: #f2f2f2; /* Light background for even rows */
}

/* Hover effect for table rows */
.custom-cart-layout tbody tr:hover {
    background-color: #e0e0e0; /* Darker background on hover */
}

/* Set widths for specific columns */
.product-checkbox {
    width: 50px; /* Checkbox column width */
}

.product-thumbnail {
    width: 100px; /* Image column width */
}

.product-sku {
    width: 110px; /* SKU column width */
}

.product-name {
    width: 280px; /* Product name column width */
}

.product-price {
    width: 120px; /* Price column width */
}

.product-weight {
    width: 80px; /* Weight column width */
}

.product-quantity {
    width: 80px; /* Quantity column width */
}

.product-subtotal {
    width: 100px; /* Subtotal column width */
}

.product-remove {
    width: 90px; /* Remove action column width */
}

/* Style for checkout button container */
.custom-cart-checkout {
    margin-top: 20px; /* Space above the checkout button */
    text-align: right; /* Align checkout button to the right */
}

/* Checkout button styles */
.custom-cart-checkout .checkout-button {
    background-color: #4CAF50; /* Checkout button background color */
    color: white; /* Checkout button text color */
    padding: 10px 20px; /* Button padding */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth background color transition */
}

.custom-cart-checkout .checkout-button:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Custom styles for cart layout buttons and quantity input field */
#custom-cart-form {
    display: flex;
    flex-direction: column;
}



#custom-cart-form input[type="number"] {
    margin-left: 10px; /* Space between label and input */
    padding: 5px; /* Add some padding for better appearance */
    width: 100px; /* Set a specific width for the input field */
}

#custom-cart-form .button {
    background-color: #25231e; /* Red background for buttons */
    color: white; /* White text color for buttons */
    border: none; /* Remove border */
    padding: 10px 15px; /* Padding for buttons */
    margin-left: 10px; /* Space between buttons */
    cursor: pointer; /* Change cursor on hover */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

#custom-cart-form .button:hover {
    background-color: darkred; /* Darker red on hover */
}