/**
 * Frontend styles for Bid Auction Haggle
 */

/* Payment Validation Messages */
.dah-payment-validation {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.dah-payment-ready {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.dah-payment-required {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.dah-payment-ready i,
.dah-payment-required i {
    margin-right: 8px;
}

.dah-setup-payment {
    display: inline-block;
    margin-left: 10px;
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
}

.dah-setup-payment:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Button style for payment setup */
.dah-setup-payment.button {
    background-color: #007cba;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    margin-left: 0;
    transition: background-color 0.3s;
}

.dah-setup-payment.button:hover {
    background-color: #005a87;
    color: #fff;
    text-decoration: none;
}

.dah-payment-required small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.8;
}

/* Inline Payment Method Styles */
.dah-inline-payment-section {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.dah-payment-method-selection h4 {
    margin-top: 0;
    color: #2c3e50;
}

.dah-payment-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.dah-payment-methods {
    margin-bottom: 20px;
}

.dah-payment-method-option {
    display: block;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.dah-payment-method-option:hover {
    border-color: #007cba;
    background-color: #f0f8ff;
}

.dah-payment-method-option input[type="radio"] {
    margin-right: 10px;
}

.dah-payment-method-label {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.dah-payment-icon {
    margin-right: 8px;
}

.dah-payment-icon img {
    max-height: 24px;
    width: auto;
}

.dah-payment-description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.dah-payment-method-form {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
}

.dah-payment-form-wrapper h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.woocommerce-payment-form .form-row {
    margin-bottom: 15px;
}

.woocommerce-payment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.woocommerce-payment-form input[type="text"],
.woocommerce-payment-form input[type="email"],
.woocommerce-payment-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.woocommerce-payment-form .form-row .button {
    margin-right: 10px;
}

/* Payment method validation states */
.dah-payment-method-option.selected {
    border-color: #007cba;
    background-color: #e8f4f8;
}

.dah-payment-method-option.selected input[type="radio"] {
    background-color: #007cba;
}

/* Payment form loading states */
.dah-payment-method-form .loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.dah-payment-method-form .error {
    color: #d63638;
    padding: 10px;
    background-color: #ffeaea;
    border: 1px solid #d63638;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dah-inline-payment-section {
        margin: 15px 0;
        padding: 15px;
    }
    
    .dah-payment-method-option {
        padding: 10px;
    }
    
    .woocommerce-payment-form .form-row .button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

.dah-payment-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.dah-refresh-payment {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

.dah-refresh-payment:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Haggle Button */
.dah-haggle-button-wrapper {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.dah-haggle-button {
    margin-left: 0;
    background-color: #2980b9;
    border-color: #2980b9;
    color: #fff;
}

.dah-haggle-button:hover {
    background-color: #1f6fa0;
    border-color: #1f6fa0;
    color: #fff;
}

/* Modal Styles - Simplified and Fixed */
.dah-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    overflow: hidden;
}

/* Modal content container */
.dah-modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Modal header and content scrollable area */
.dah-modal-header {
    padding: 10px 0 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.dah-modal-body {
    padding: 20px 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.dah-modal-footer {
    padding: 20px 0 10px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    background: white;
    border-radius: 0 0 5px 5px;
}

/* Form inputs should have normal cursor */
.dah-modal-content input[type="number"],
.dah-modal-content input[type="text"],
.dah-modal-content input[type="email"],
.dah-modal-content textarea,
.dah-modal-content select {
    cursor: text;
}

/* Only buttons and clickable elements should have pointer cursor */
.dah-modal-content button,
.dah-modal-content .dah-cancel,
.dah-modal-content .dah-modal-close,
.dah-modal-content label {
    cursor: pointer;
}

.dah-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
}

.dah-modal-close:hover,
.dah-modal-close:focus {
    color: #000;
    text-decoration: none;
}

/* Form Styles */
#dah-haggle-form {
    margin-top: 20px;
}

.dah-form-row {
    margin-bottom: 20px;
}

.dah-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.dah-form-row input[type="number"],
.dah-form-row textarea,
.dah-form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.dah-form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.dah-field-note {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.dah-current-price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.dah-trade-section {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 3px;
    margin-top: 20px;
}

.dah-trade-section label {
    cursor: pointer;
}

#dah-trade-options {
    margin-top: 15px;
}

.dah-total-offer {
    padding: 15px;
    background-color: #e8f5e9;
    border-radius: 3px;
    margin-top: 20px;
}

.dah-total-value {
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
}

.dah-form-actions {
    margin-top: 30px;
    text-align: right;
}

.dah-form-actions button {
    margin-left: 10px;
}

.dah-response-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 3px;
    display: none;
}

.dah-response-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dah-response-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Status Labels */
.dah-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.dah-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.dah-status-accepted {
    background-color: #d4edda;
    color: #155724;
}

.dah-status-processing {
    background-color: #fff3cd;
    color: #856404;
}

.dah-status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.dah-status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.dah-status-countered {
    background-color: #d1ecf1;
    color: #0c5460;
}

.dah-status-expired {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Account Page Styles */
.woocommerce-MyAccount-navigation-link--haggle-offers a:before {
    content: "\f02e";
    font-family: WooCommerce;
}

/* Counter Offer Modal */
.dah-counter-offer-modal {
    display: none;
}

.dah-counter-offer-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.dah-counter-offer-details h4 {
    margin-top: 0;
    color: #333;
}

.dah-counter-offer-amount {
    font-size: 24px;
    font-weight: 600;
    color: #ff6b6b;
    margin: 10px 0;
}

.dah-counter-offer-message {
    font-style: italic;
    color: #666;
    padding: 10px;
    background-color: #fff;
    border-left: 3px solid #ff6b6b;
    margin-top: 10px;
}

/* Flicker fix - only disable on modal backdrop, not form elements */
.dah-modal-content > * {
    animation: none;
}

/* Enhanced body scroll lock to prevent page shifts */
body.dah-modal-open {
    overflow: hidden;
    /* Prevent page shift when scrollbar disappears */
    padding-right: var(--scrollbar-width, 0px);
    /* Lock position to prevent jumping */
    position: fixed;
    top: var(--scroll-y, 0);
    left: 0;
    right: 0;
}

/* Form Actions - Always visible at bottom */
.dah-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 15px;
}

.dah-form-actions button {
    min-width: 120px;
}

/* Response message in footer */
.dah-modal-footer .dah-response-message {
    margin-bottom: 15px;
    min-height: 20px;
}

.dah-response-message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
}

.dah-response-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
}

/* Ensure modal scrolls properly on small screens */
@media (max-height: 600px) {
    .dah-modal-content {
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .dah-modal-header {
        padding: 15px 30px 10px;
    }
    
    .dah-modal-body {
        padding: 10px 30px;
    }
    
    .dah-modal-footer {
        padding: 10px 30px 15px;
    }
}

/* Trade section styling */
.dah-trade-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    background-color: #f9f9f9;
}

#dah-trade-options {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .dah-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .dah-modal-header,
    .dah-modal-body,
    .dah-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .dah-modal-header {
        padding-top: 20px;
        padding-bottom: 15px;
    }
    
    .dah-modal-body {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .dah-modal-footer {
        padding-top: 15px;
        padding-bottom: 20px;
    }
    
    .dah-haggle-button {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .dah-form-actions {
        flex-direction: column;
    }
    
    .dah-form-actions button {
        width: 100%;
        margin: 5px 0;
        min-width: auto;
    }
    
    .dah-trade-section,
    #dah-trade-options {
        padding: 10px;
    }
}

/* Haggle Offers Table - Trade Display */
.dah-trade-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dah-trade-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.dah-trade-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.dah-trade-price {
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
}

.dah-trade-unavailable-item {
    color: #666;
}

.dah-trade-unavailable-item del {
    color: #d63638;
}

.dah-trade-warning {
    margin-top: 4px;
}

.dah-no-trade {
    color: #999;
    font-style: italic;
}

.dah-trade-unavailable {
    background-color: #fef7f0;
    border-left: 3px solid #d63638;
}

/* Account table responsive adjustments */
@media (max-width: 1024px) {
    .woocommerce-orders-table.account-orders-table {
        font-size: 0.9em;
    }
    
    .dah-trade-item {
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    .woocommerce-orders-table.account-orders-table th,
    .woocommerce-orders-table.account-orders-table td {
        padding: 8px 4px;
    }
    
    .dah-trade-item {
        font-size: 0.8em;
        gap: 2px;
    }
    
    .dah-trade-price {
        font-size: 0.8em;
    }
}

/* Haggle Offers Tabs */
.dah-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.dah-tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    border: 1px solid transparent;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.dah-tab-link:hover {
    color: #007cba;
    background: #f0f8ff;
    border-color: #e1e5e9;
    text-decoration: none;
}

.dah-tab-link.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
    font-weight: 600;
}

.dah-tab-link.active:hover {
    background: #005a87;
    color: white;
}

.dah-tab-description {
    font-size: 0.85em;
    font-weight: normal;
    margin-top: 2px;
    opacity: 0.8;
}

.dah-tab-content {
    margin-top: 20px;
}

/* Vendor Actions */
.dah-vendor-actions {
    min-width: 200px;
}

.dah-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}

.dah-action-buttons .button {
    font-size: 12px;
    padding: 6px 12px;
    min-width: auto;
    text-align: center;
}

.dah-accept-offer-btn {
    background-color: #00a32a !important;
    border-color: #00a32a !important;
    color: white !important;
    font-weight: 600;
}

.dah-accept-offer-btn:hover {
    background-color: #008a20 !important;
    border-color: #008a20 !important;
}

.dah-counter-offer-btn {
    background-color: #0073aa !important;
    border-color: #0073aa !important;
    color: white !important;
}

.dah-counter-offer-btn:hover {
    background-color: #005a87 !important;
    border-color: #005a87 !important;
}

.dah-reject-offer-btn {
    background-color: #d63638 !important;
    border-color: #d63638 !important;
    color: white !important;
}

.dah-reject-offer-btn:hover {
    background-color: #b32d2e !important;
    border-color: #b32d2e !important;
}

.dah-view-offer-details {
    font-size: 11px !important;
    padding: 4px 8px !important;
}

/* Dokan Dashboard Link */
.dah-dokan-dashboard-link {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.dah-dokan-dashboard-link .button {
    margin-top: 10px;
}

.dah-dokan-dashboard-link .dashicons {
    margin-left: 5px;
    font-size: 16px;
    height: 16px;
    width: 16px;
}

/* Vendor Offers Table */
.dah-vendor-offers-table .dah-vendor-actions {
    text-align: center;
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .dah-tabs-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .dah-tab-link {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .dah-tab-description {
        margin-top: 0;
        margin-left: 10px;
    }
    
    .dah-action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .dah-action-buttons .button {
        flex: 1;
        min-width: 60px;
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .dah-vendor-actions {
        min-width: auto;
    }
}

/* Vendor Modal Styles */
.dah-vendor-counter-modal,
.dah-vendor-details-modal {
    display: none;
}

.dah-offer-summary {
    margin-bottom: 20px;
}

.dah-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.dah-details-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.dah-details-table td:first-child {
    background-color: #f9f9f9;
    font-weight: 600;
    width: 30%;
}

.dah-offer-message {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 3px solid #007cba;
}

.dah-offer-message h4 {
    margin-top: 0;
    color: #333;
}

.dah-offer-activity {
    margin-top: 20px;
}

.dah-offer-activity h4 {
    color: #333;
    margin-bottom: 10px;
}

.dah-offer-activity ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dah-offer-activity li {
    padding: 8px 12px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    border-radius: 3px;
    border-left: 3px solid #e1e5e9;
}

.dah-page-alert {
    animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Trade Shipments Link Styling */
.dah-trade-shipments-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dah-trade-shipments-link:hover {
    color: #ffffff;
    background: #2196F3;
    border-color: #2196F3;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.dah-trade-shipments-link:before {
    content: '📦';
    font-size: 12px;
}

/* Status message enhancements */
small .dah-trade-shipments-link {
    font-size: inherit;
    vertical-align: baseline;
}

/* Improved spacing for haggle offers page status messages */
.woocommerce-account .haggle-offers small {
    display: block !important;
    margin: 12px 0 !important;
    line-height: 1.8 !important;
    padding: 10px 0 !important;
}

/* Better spacing for buttons in actions column */
.woocommerce-account .haggle-offers .button {
    margin-bottom: 10px !important;
    display: inline-block;
}

/* Extra specific targeting for payment complete messages */
.woocommerce-account table small[style*="color: #2196F3"],
.woocommerce-account table small[style*="color:#2196F3"] {
    margin: 15px 0 !important;
    padding: 12px 0 !important;
    line-height: 2 !important;
    display: block !important;
    clear: both !important;
}

/* Specific spacing for payment complete messages with links */
small:has(.dah-trade-shipments-link) {
    margin: 15px 0 !important;
    padding: 12px 0 !important;
    line-height: 2 !important;
    display: block !important;
    clear: both !important;
}

/* Target the specific pattern used in the payment complete message */
.woocommerce-account .haggle-offers td small {
    margin: 15px 0 !important;
    padding: 12px 8px !important;
    line-height: 2 !important;
    display: block !important;
    word-spacing: 0.1em !important;
}

/* Ensure adequate spacing around action buttons and messages */
.woocommerce-account .haggle-offers td {
    vertical-align: top !important;
    padding: 15px 8px !important;
}

/* Direct PayPal Payment Gateway Styles */
.wc-direct-paypal-form {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
}

#direct_paypal-paypal-email {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#direct_paypal-paypal-email:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* PayPal saved payment method display */
.woocommerce-SavedPaymentMethods-token img[src*="paypal"] {
    max-height: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Direct PayPal radio option styling */
input[value="direct_paypal"] {
    margin-right: 8px;
}

/* Add PayPal icon to payment method option */
label[for*="direct_paypal"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Payment method list styling for Direct PayPal */
.woocommerce-MyAccount-paymentMethods .woocommerce-PaymentMethod--direct_paypal .woocommerce-PaymentMethod-cardNumber {
    font-weight: 500;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wc-direct-paypal-form {
        padding: 15px;
    }

    #direct_paypal-paypal-email {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Multi-Select Trade Products Styles */
.dah-trade-products-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
    margin: 10px 0;
}

.dah-trade-product-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.dah-trade-product-item:hover {
    border-color: #007cba;
    background-color: #f0f8ff;
    transform: translateX(3px);
}

.dah-trade-product-item:last-child {
    margin-bottom: 0;
}

.dah-trade-product-checkbox {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.dah-trade-product-checkbox:checked + .dah-trade-product-info {
    font-weight: 600;
    color: #007cba;
}

.dah-trade-product-item:has(.dah-trade-product-checkbox:checked) {
    border-color: #007cba;
    background-color: #e8f4f8;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.1);
}

.dah-trade-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.dah-trade-product-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.dah-trade-product-price {
    font-weight: 600;
    color: #2e7d32;
    font-size: 14px;
    white-space: nowrap;
}

.dah-selected-trades-summary {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #e8f5e9;
    border-radius: 5px;
    border-left: 4px solid #2e7d32;
    font-size: 14px;
}

.dah-selected-count {
    font-weight: 700;
    color: #2e7d32;
    margin: 0 3px;
}

.dah-trade-total-value {
    font-weight: 700;
    color: #2e7d32;
    margin-left: 5px;
}

.dah-trade-total-label {
    margin-left: 8px;
}

/* Empty state for trade products list */
.dah-trade-products-list:empty::after {
    content: 'No products available for trade';
    display: block;
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* Scrollbar styling for trade products list */
.dah-trade-products-list::-webkit-scrollbar {
    width: 8px;
}

.dah-trade-products-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dah-trade-products-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dah-trade-products-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments for multi-select */
@media (max-width: 768px) {
    .dah-trade-products-list {
        max-height: 250px;
    }

    .dah-trade-product-item {
        padding: 10px;
    }

    .dah-trade-product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .dah-selected-trades-summary {
        padding: 10px 12px;
        font-size: 13px;
    }
}