/* Negotiation Modal Styles */
.inflow-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.inflow-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 500px;
    max-width: 90%;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.inflow-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.inflow-modal-close:hover,
.inflow-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.inflow-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.inflow-form-row {
    margin-bottom: 15px;
}

.inflow-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.inflow-form-row input,
.inflow-form-row select,
.inflow-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.inflow-form-actions {
    margin-top: 20px;
    text-align: right;
}

#inflow-negotiation-msg {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9em;
}

/* Style the Submit Button inside the modal to match shape only */
#inflow-negotiation-form button[type="submit"] {
    border-radius: 14px !important;
}

/* --------------------------------------------------------- */
/* PRODUCT PAGE CLEANUP & LAYOUT                             */
/* --------------------------------------------------------- */

/* 1. Hide Quantity Input for B2B products */
.post-type-archive-product .quantity, 
.single-product .quantity {
    display: none !important;
}

/* 2. Hide WCFM "Ask a Question" Button */
.wcfm_catalog_enquiry,
.wcfm_catalog_enquiry_button,
.wcfm_ask_question_button,
.wcfm_enquiry_button {
    display: none !important;
}

/* 3. Hide Seller Store Logo & "Marketplace:" Label */
.wcfmmp_sold_by_logo,
.wcfmmp_sold_by_label {
    display: none !important;
}

/* 4. Flexbox Alignment for Seller Info Row */
/* Ensures Name and Button sit in a clean row */
.wcfmmp_sold_by_wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 15px; /* Space between name and button */
    flex-wrap: wrap;
}

/* 5. Relocated Button Styling */
.inflow-relocated-btn-wrapper {
    /* No extra styles needed, flex handles layout */
}

.inflow-relocated-btn-wrapper .single_add_to_cart_button {
    margin-top: 0 !important;
    padding: 10px 20px !important;
    /* Theme handles colors and shape */
    text-transform: none !important; 
}

/* Ensure the seller name link is bold and aligned */
.wcfm_dashboard_item_title {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    text-decoration: none;
}