.wqm-container {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Header */
.wqm-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wqm-logo-small {
    max-height: 50px;
    /* Limit logo height */
    width: auto;
}

.wqm-company-meta {
    text-align: right;
    font-size: 0.9em;
    color: #666;
}

.wqm-company-meta p {
    margin: 0;
}

/* Sections */
.wqm-section {
    margin-bottom: 30px;
}

.wqm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.wqm-col {
    flex: 1;
    min-width: 200px;
}

.wqm-col-half {
    width: 48%;
    /* Adjust for gap */
}

.wqm-col label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.wqm-input-full {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc !important;
    /* Darker border for visibility */
    border-radius: 4px;
    background-color: #fff;
}

/* Table */
#wqm-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

#wqm-items-table th {
    background: #f9f9f9;
    font-weight: 600;
    text-align: left;
}

#wqm-items-table th,
#wqm-items-table td {
    border: 1px solid #eee;
    padding: 10px;
    vertical-align: top;
}

#wqm-items-table input.wqm-product-search {
    width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
}

#wqm-items-table input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
}

#wqm-items-table textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #ddd;
    font-size: 0.9em;
}

/* Autocomplete */
.wqm-search-results {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 400px;
    /* Fixed width for better visibility */
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wqm-search-results li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.wqm-search-results li:hover {
    background: #f0f0f0;
}

.wqm-remove-row {
    color: #a00;
    cursor: pointer;
}

.wqm-totals {
    text-align: right;
    font-size: 1.2em;
    margin-top: 20px;
    border-top: 2px solid #eee;
    padding-top: 10px;
}

.wqm-actions {
    margin-top: 30px;
    text-align: right;
}

/* My Account Icon */
/* My Account Icon - High Specificity Override */
/* My Account Icon - High Specificity Override */
.woocommerce .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--quotations a:before {
    content: "\e601" !important;
    /* tb-icon-menu */
    font-family: "simple-line-icons", "tb-icon", sans-serif !important;
    margin-right: 17px;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.woocommerce .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--attendance a:before {
    content: "\e075" !important;
    /* User Requested Calendar Icon */
    font-family: "simple-line-icons", "tb-icon", sans-serif !important;
    margin-right: 17px;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

/* Pagination */
.wqm-pagination {
    margin-top: 20px;
    text-align: center;
}

.wqm-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    gap: 5px;
}

.wqm-pagination li a,
.wqm-pagination li span {
    display: block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.wqm-pagination li span.current {
    background: #eee;
    font-weight: bold;
}

/* Discount Radio Buttons */
.wqm-discount-type-wrapper {
    display: inline-flex;
    background: #f0f0f1;
    border-radius: 4px;
    padding: 2px;
}

.wqm-discount-type-wrapper label {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin: 0;
    transition: background 0.2s;
}

/* Hide actual radio */
.wqm-discount-type-wrapper input[type="radio"] {
    display: none;
}

/* Selected State */
.wqm-discount-type-wrapper input[type="radio"]:checked+span {
    background: #007cba;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wqm-discount-type-wrapper span {
    padding: 2px 8px;
}

/* UI Polish 1.6.4 */

/* Filter Box */
.wqm-filter-box {
    background: #fff;
    border: 1px solid #ddd;
    /* Light grey border */
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Lighter Dropdown Borders */
.wqm-filters select {
    border: 1px solid #ccc !important;
    /* Lighter than default black */
    color: #444;
}

/* Button Colors */
.wqm-btn-green,
.woocommerce a.button.wqm-btn-green {
    background-color: #71AE49 !important;
    /* Custom Green */
    color: #fff !important;
    border: none;
}

.wqm-btn-green:hover,
.woocommerce a.button.wqm-btn-green:hover {
    background-color: #5a8c3a !important;
    color: #fff !important;
}

/* Red Delete Button (Softer) */
.wqm-btn-red-soft,
.woocommerce a.button.wqm-btn-red-soft {
    background-color: #ef5350 !important;
    /* Material Red 400 */
    color: #fff !important;
    border: none;
}

.wqm-btn-red-soft:hover,
.woocommerce a.button.wqm-btn-red-soft:hover {
    background-color: #e53935 !important;
    color: #fff !important;
}