/* Main drawer container */
#wcInquiryDrawer{
    position: fixed;
    bottom: -100%; /* Start off-screen */
    right: 20px;
    width: 350px;
    max-height: 90%;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: bottom 0.3s ease-in-out;
    border-radius: 8px 8px 0 0;
    display: flex; /* Use flexbox for content arrangement */
    flex-direction: column;
    overflow: hidden; /* Hide scrollbars for the main drawer, content will scroll */
}

#wcInquiryDrawer.open {
    bottom: 0; /* Slide in */
}

.wc-inquiry-drawer-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height of the drawer */
}

.wc-inquiry-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.wc-inquiry-drawer-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.wc-close-drawer {
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.wc-selected-products-list {
    max-height: 150px; /* Limit height for scrollable product list */
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px; /* For scrollbar spacing */
}

.wc-selected-products-list h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
}

#wc-inquiry-selected-products {
    list-style: none;
    padding: 0;
    margin: 0;
}

#wc-inquiry-selected-products li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 8px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
}

#wc-inquiry-selected-products li .product-name {
    flex-grow: 1;
}

#wc-inquiry-selected-products li .remove-product {
    cursor: pointer;
    color: #cc0000;
    margin-left: 10px;
    font-size: 0.9em;
}

#wcInquiryForm {
    flex-grow: 1; /* Allow form to take remaining space */
    display: flex;
    flex-direction: column;
}

#wcInquiryForm input,
#wcInquiryForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#wcInquiryForm textarea {
    flex-grow: 1; /* Allow textarea to expand */
    resize: vertical;
    min-height: 60px;
}

/* Inquiry Button on product pages */
.wc-inquiry-btn {
    background-color: #036738 !important;
    color: #fff !important;
}

#wcInquiryForm button[type="submit"] {
    background: #036738;
    color: #fff;
    border: 0;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
    margin-top: 10px;
}

#wcInquiryForm button[type="submit"]:hover {
    background: #024d2a;
}