/* ADN B2B For WooCommerce - Public/Frontend Styles */
/* Version: 1.0.7 - Black & White Theme */
/* Last Updated: 2026-08-28 */

/* Dealer Application CTA */
.adn-b2b-dealer-cta {
    background: #2c3e50;
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid #34495e;
}

.adn-b2b-dealer-cta-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.adn-b2b-dealer-cta h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.adn-b2b-dealer-cta p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
}

.adn-b2b-benefits {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    text-align: left;
}

.adn-b2b-benefits li {
    font-size: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s;
}

.adn-b2b-benefits li:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.adn-b2b-open-application-popup {
    background: white;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 40px;
    border: 2px solid white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adn-b2b-open-application-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

/* Application Popup/Modal */
.adn-b2b-application-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999999;
    overflow-y: auto;
    padding: 20px;
}

.adn-b2b-application-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.adn-b2b-application-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.adn-b2b-application-header {
    padding: 30px;
    border-bottom: 2px solid #e0e0e0;
    background: #2c3e50;
    color: white;
    border-radius: 12px 12px 0 0;
}

.adn-b2b-application-header h2 {
    margin: 0;
    font-size: 26px;
    color: white;
}

.adn-b2b-application-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.adn-b2b-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.adn-b2b-close-modal:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Form Styling */
.adn-b2b-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #333;
}

.adn-b2b-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.adn-b2b-form-row {
    margin-bottom: 20px;
}

.adn-b2b-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.adn-b2b-form-row label .required {
    color: #d9534f;
}

.adn-b2b-form-row input[type="text"],
.adn-b2b-form-row input[type="email"],
.adn-b2b-form-row input[type="tel"],
.adn-b2b-form-row input[type="number"],
.adn-b2b-form-row input[type="url"],
.adn-b2b-form-row select,
.adn-b2b-form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.adn-b2b-form-row input:focus,
.adn-b2b-form-row select:focus,
.adn-b2b-form-row textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.adn-b2b-form-row .description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.adn-b2b-form-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Submit Button */
.adn-b2b-submit-btn {
    background: #333;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.adn-b2b-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #000;
}

.adn-b2b-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Price Badge */
.adn-b2b-price-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #2c3e50;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #34495e;
}

/* Dealer Info Page */
.adn-b2b-dealer-info {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid #e0e0e0;
}

.adn-b2b-dealer-info h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c3e50;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.adn-b2b-dealer-info h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    padding-left: 15px;
    border-left: 4px solid #2c3e50;
}

.adn-b2b-dealer-info table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.adn-b2b-dealer-info table th {
    background: #f9f9f9;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    width: 35%;
    border-bottom: 2px solid #e0e0e0;
}

.adn-b2b-dealer-info table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.adn-b2b-dealer-info table tr:last-child td {
    border-bottom: none;
}

/* Order Rules Notice */
.woocommerce-info.adn-b2b-order-rules {
    background: #e7f3ff;
    border-top-color: #2271b1;
}

.woocommerce-info.adn-b2b-order-rules::before {
    color: #2271b1;
}

/* Loading State */
.adn-b2b-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: adn-b2b-spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes adn-b2b-spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.adn-b2b-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 15px;
}

.adn-b2b-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.adn-b2b-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dealer Info Page - Modern Cards */
.adn-b2b-dealer-info {
    max-width: 1200px;
}

.adn-b2b-dealer-info .adn-b2b-page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.adn-b2b-dealer-info .adn-b2b-page-title {
    font-size: 32px;
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #000;
}

.adn-b2b-dealer-info .adn-b2b-page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.adn-b2b-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.adn-b2b-info-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.adn-b2b-info-card:hover {
    border-color: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.info-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.info-card-title svg {
    width: 20px;
    height: 20px;
    color: #666;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    text-align: right;
}

.info-value.highlight {
    background: #000;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}

/* Quote Basket Page */
.adn-b2b-quote-basket {
    max-width: 1200px;
}

.adn-b2b-quote-basket .adn-b2b-page-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.adn-b2b-quote-basket .adn-b2b-page-title {
    font-size: 32px;
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #000;
}

.adn-b2b-quote-basket .adn-b2b-page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.adn-b2b-quote-info {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.adn-b2b-quote-info .quote-number,
.adn-b2b-quote-info .quote-date {
    font-size: 14px;
    color: #666;
}

.adn-b2b-quote-info strong {
    color: #000;
    font-weight: 600;
}

.adn-b2b-quote-table {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.adn-b2b-quote-table thead {
    background: #000;
    color: white;
}

.adn-b2b-quote-table th {
    padding: 15px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adn-b2b-quote-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.adn-b2b-quote-table tbody tr:hover {
    background: #f8f9fa;
}

.cart_totals {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.cart_totals h2 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cart_totals .shop_table {
    border: none;
    margin-bottom: 20px;
}

.cart_totals .shop_table th {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    padding: 12px 0;
    text-align: left;
}

.cart_totals .shop_table td {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    padding: 12px 0;
    text-align: right;
}

.cart_totals .order-total th {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.cart_totals .order-total td {
    font-size: 20px;
}

.adn-b2b-quote-notes {
    margin-bottom: 25px;
}

.adn-b2b-quote-notes label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.adn-b2b-quote-notes textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
}

.adn-b2b-quote-notes textarea:focus {
    border-color: #000;
    outline: none;
}

.wc-proceed-to-checkout .button {
    width: 100%;
    background: #000;
    color: white;
    border: 2px solid #000;
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.wc-proceed-to-checkout .button:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Quotes List Page */
.adn-b2b-quotes-list {
    max-width: 1200px;
}

.adn-b2b-quotes-list .adn-b2b-page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.adn-b2b-quotes-list .adn-b2b-page-title {
    font-size: 32px;
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #000;
}

.adn-b2b-quotes-list .adn-b2b-page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Empty State */
.adn-b2b-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 30px;
}

.adn-b2b-empty-state svg {
    width: 64px;
    height: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.adn-b2b-empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px 0;
}

.adn-b2b-empty-state p {
    font-size: 14px;
    color: #666;
    margin: 0 0 25px 0;
}

.adn-b2b-empty-state .button-primary {
    background: #000;
    color: white;
    border: 2px solid #000;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: all 0.3s;
}

.adn-b2b-empty-state .button-primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Quotes Table */
.adn-b2b-quotes-table-wrapper {
    margin-top: 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.adn-b2b-quotes-table {
    width: 100%;
    border-collapse: collapse;
}

.adn-b2b-quotes-table thead {
    background: #000;
    color: white;
}

.adn-b2b-quotes-table th {
    padding: 16px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.adn-b2b-quotes-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.adn-b2b-quotes-table tbody tr:hover {
    background: #f8f9fa;
}

.adn-b2b-quotes-table tbody tr:last-child td {
    border-bottom: none;
}

.adn-b2b-quotes-table .quote-link {
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.adn-b2b-quotes-table .quote-link:hover {
    color: #666;
}

.adn-b2b-quotes-table .quote-total strong {
    color: #000;
    font-size: 15px;
}

/* Status Badges */
.quote-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.quote-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.quote-status-badge.status-processing {
    background: #cfe2ff;
    color: #084298;
}

.quote-status-badge.status-approved {
    background: #d1e7dd;
    color: #0f5132;
}

.quote-status-badge.status-rejected {
    background: #f8d7da;
    color: #842029;
}

.quote-status-badge.status-expired {
    background: #e2e3e5;
    color: #41464b;
}

.quote-status-badge.status-converted {
    background: #d1e7dd;
    color: #0f5132;
}

/* Action Button */
.button-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #000;
    border: 2px solid #e0e0e0;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.button-view svg {
    width: 16px;
    height: 16px;
}

.button-view:hover {
    background: #000;
    color: white;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .adn-b2b-quotes-table {
        display: block;
    }
    
    .adn-b2b-quotes-table thead {
        display: none;
    }
    
    .adn-b2b-quotes-table tbody,
    .adn-b2b-quotes-table tr,
    .adn-b2b-quotes-table td {
        display: block;
        width: 100%;
    }
    
    .adn-b2b-quotes-table tr {
        margin-bottom: 20px;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .adn-b2b-quotes-table td {
        position: relative;
        padding-left: 50%;
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .adn-b2b-quotes-table td:last-child {
        border-bottom: none;
    }
    
    .adn-b2b-quotes-table td:before {
        content: attr(data-title);
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        color: #666;
        font-size: 12px;
        text-transform: uppercase;
    }
    
    .adn-b2b-quotes-table .button-view {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .adn-b2b-info-cards {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-quote-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .adn-b2b-dealer-cta {
        padding: 25px;
    }
    
    .adn-b2b-dealer-cta h3 {
        font-size: 22px;
    }
    
    .adn-b2b-benefits {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-application-modal {
        padding: 10px;
    }
    
    .adn-b2b-application-content {
        margin: 20px auto;
    }
    
    .adn-b2b-application-header,
    .adn-b2b-application-body {
        padding: 20px;
    }
    
    .adn-b2b-form-columns {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-dealer-info {
        padding: 20px;
    }
    
    .adn-b2b-dealer-info table th,
    .adn-b2b-dealer-info table td {
        display: block;
        width: 100%;
        padding: 10px;
    }
    
    .adn-b2b-dealer-info table th {
        background: transparent;
        font-weight: 600;
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .adn-b2b-dealer-info table td {
        padding-top: 0;
        padding-bottom: 15px;
    }
}

/* Print Styles */
@media print {
    .adn-b2b-dealer-cta,
    .adn-b2b-open-application-popup,
    .adn-b2b-application-modal {
        display: none !important;
    }
}

/* Dealer Dashboard Widget (on main dashboard) */
.adn-b2b-dealer-dashboard-widget {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 35px;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.adn-b2b-dealer-dashboard-widget h2 {
    margin: 0 0 30px 0;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.adn-b2b-dealer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.adn-b2b-dealer-stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.adn-b2b-dealer-stat-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.adn-b2b-dealer-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adn-b2b-dealer-stat-card .stat-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.adn-b2b-dealer-stat-card .stat-info {
    flex: 1;
}

.adn-b2b-dealer-stat-card .stat-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.adn-b2b-dealer-stat-card .stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.adn-b2b-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.adn-b2b-quick-actions .button {
    padding: 14px 20px !important;
    text-align: center;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px !important;
    border: none !important;
}

.adn-b2b-quick-actions .button.primary {
    background: white !important;
    color: #2c3e50 !important;
}

.adn-b2b-quick-actions .button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,255,255,0.3) !important;
    background: #f8f9fa !important;
}

.adn-b2b-quick-actions .button.secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.adn-b2b-quick-actions .button.secondary:hover {
    background: white !important;
    color: #2c3e50 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,255,255,0.2) !important;
}

/* Dealer Dashboard - Modern Clean Style */
.adn-b2b-dealer-dashboard {
    max-width: 1200px;
}

/* Page Header */
.adn-b2b-dealer-dashboard .adn-b2b-page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.adn-b2b-dealer-dashboard .adn-b2b-page-title {
    font-size: 32px;
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #000;
}

.adn-b2b-dealer-dashboard .adn-b2b-page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Dashboard Stats - 4 Cards Only */
.adn-b2b-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.adn-b2b-dashboard-stats .stat-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.adn-b2b-dashboard-stats .stat-card:hover {
    border-color: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.adn-b2b-dashboard-stats .stat-icon {
    width: 52px;
    height: 52px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.adn-b2b-dashboard-stats .stat-card:hover .stat-icon {
    background: #000;
}

.adn-b2b-dashboard-stats .stat-icon svg {
    width: 28px;
    height: 28px;
    color: #666;
    transition: all 0.3s;
}

.adn-b2b-dashboard-stats .stat-card:hover .stat-icon svg {
    color: white;
}

.adn-b2b-dashboard-stats .stat-content {
    flex: 1;
}

.adn-b2b-dashboard-stats .stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000;
}

.adn-b2b-dashboard-stats .stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Action Buttons */
.adn-b2b-dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.adn-b2b-action-btn {
    padding: 16px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.adn-b2b-action-btn.primary {
    background: #000;
    color: white;
    border: 2px solid #000;
}

.adn-b2b-action-btn.primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.adn-b2b-action-btn.secondary {
    background: white;
    color: #000;
    border: 2px solid #e0e0e0;
}

.adn-b2b-action-btn.secondary:hover {
    background: #f5f5f5;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.adn-b2b-dealer-dashboard h3 {
    font-size: 20px;
    margin: 30px 0 20px 0;
    color: #000;
    font-weight: 600;
}

.adn-b2b-dealer-dashboard h4 {
    font-size: 16px;
    margin: 20px 0 10px 0;
    color: #666;
}

/* Credit Section */
.adn-b2b-credit-section {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.adn-b2b-credit-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #000;
    font-weight: 600;
}

.credit-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.credit-item {
    display: flex;
    justify-content: space-between;
    padding: 18px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.credit-item.highlight {
    background: #000;
    color: white;
    border-color: #000;
}

.credit-item .label {
    font-size: 14px;
    font-weight: 500;
}

.credit-item .value {
    font-size: 18px;
    font-weight: 700;
}

.credit-progress {
    margin-bottom: 20px;
}

.credit-progress .progress-bar {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

.credit-progress .progress-fill {
    height: 100%;
    background: #000;
    transition: width 0.5s;
}

.credit-progress .progress-labels {
    display: flex;
    justify-content: flex-end;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Tables */
.adn-b2b-transactions-table,
.adn-b2b-monthly-table,
.adn-b2b-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid #e0e0e0;
}

.adn-b2b-transactions-table thead,
.adn-b2b-monthly-table thead,
.adn-b2b-orders-table thead {
    background: #000;
    color: white;
}

.adn-b2b-transactions-table th,
.adn-b2b-monthly-table th,
.adn-b2b-orders-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adn-b2b-transactions-table td,
.adn-b2b-monthly-table td,
.adn-b2b-orders-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.adn-b2b-transactions-table tbody tr:hover,
.adn-b2b-monthly-table tbody tr:hover,
.adn-b2b-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.adn-b2b-transactions-table .negative {
    color: #e74c3c;
    font-weight: 600;
}

.adn-b2b-transactions-table .positive {
    color: #27ae60;
    font-weight: 600;
}

/* Section Boxes */
.adn-b2b-monthly-performance,
.adn-b2b-recent-orders {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .adn-b2b-dealer-stats,
    .adn-b2b-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-dashboard-actions {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-dashboard-stats .stat-card {
        padding: 24px;
    }
    
    .adn-b2b-dashboard-stats .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .adn-b2b-dashboard-stats .stat-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .adn-b2b-dashboard-stats .stat-value {
        font-size: 28px;
    }
    
    .credit-summary {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-quick-actions {
        flex-direction: column;
    }
    
    .adn-b2b-transactions-table,
    .adn-b2b-monthly-table,
    .adn-b2b-orders-table {
        font-size: 13px;
    }
    
    .adn-b2b-transactions-table th,
    .adn-b2b-monthly-table th,
    .adn-b2b-orders-table th,
    .adn-b2b-transactions-table td,
    .adn-b2b-monthly-table td,
    .adn-b2b-orders-table td {
        padding: 8px 10px;
    }
}

/* Accessibility */
.adn-b2b-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Keyboard Navigation */
.adn-b2b-open-application-popup:focus,
.adn-b2b-submit-btn:focus,
.adn-b2b-close-modal:focus {
    outline: 3px solid #2c3e50;
    outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2c3e50;
    outline-offset: 2px;
}


/* ============================================
   Dealer Price Display Styles
   WordPress & Elementor Compatible
   ============================================ */

/* Price badge for dealer group - Base styles with proper specificity */
.adn-b2b-price-badge {
    display: inline-block;
    padding: 4px 12px;
    margin-right: 8px;
    background: #2c3e50;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
    border: 1px solid #34495e;
    line-height: 1.4;
}

/* WooCommerce product loop compatibility */
.woocommerce ul.products li.product .adn-b2b-price-badge,
.woocommerce-page ul.products li.product .adn-b2b-price-badge {
    font-size: 10px;
    padding: 3px 8px;
    margin-right: 6px;
    margin-bottom: 5px;
    display: inline-block;
}

/* Elementor WooCommerce widgets compatibility */
.elementor-widget-woocommerce-products .adn-b2b-price-badge,
.elementor-widget-wc-products .adn-b2b-price-badge,
.elementor-products-grid .adn-b2b-price-badge,
.elementor-wc-products .adn-b2b-price-badge {
    font-size: 10px;
    padding: 3px 8px;
    margin-right: 6px;
}

/* Single product page */
.single-product .summary .adn-b2b-price-badge,
.single-product .product .adn-b2b-price-badge,
.woocommerce div.product .adn-b2b-price-badge {
    font-size: 12px;
    padding: 5px 14px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Elementor single product compatibility */
.elementor-widget-woocommerce-product-price .adn-b2b-price-badge,
.elementor-widget-theme-post-content .adn-b2b-price-badge {
    font-size: 12px;
    padding: 5px 14px;
}

/* Cart page dealer prices */
.woocommerce-cart .adn-b2b-price-badge,
.woocommerce-cart-form .adn-b2b-price-badge {
    font-size: 9px;
    padding: 2px 6px;
    margin-right: 6px;
}

/* Login required message for guests */
.adn-b2b-login-required {
    display: inline-block;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Both prices display mode */
.adn-b2b-price-both {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.adn-b2b-dealer-price {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.adn-b2b-regular-price-label {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

/* Price comparison mode (strikethrough regular) */
.adn-b2b-price-comparison {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.adn-b2b-price-comparison del {
    opacity: 0.6;
    font-size: 18px;
}

.adn-b2b-price-comparison ins {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.adn-b2b-discount-percent {
    display: inline-block;
    padding: 4px 10px;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    vertical-align: middle;
}

/* WooCommerce default price element adjustments */
.woocommerce div.product p.price .adn-b2b-price-badge,
.woocommerce div.product span.price .adn-b2b-price-badge {
    display: inline-block;
    vertical-align: middle;
}

/* Elementor Pro WooCommerce builder compatibility */
.elementor-add-to-cart .adn-b2b-price-badge,
.elementor-button-wrapper .adn-b2b-price-badge {
    margin-right: 8px;
}

/* Grid/List view compatibility - Multiple columns */
.woocommerce.columns-1 .adn-b2b-price-badge,
.woocommerce.columns-2 .adn-b2b-price-badge,
.woocommerce.columns-3 .adn-b2b-price-badge,
.woocommerce.columns-4 .adn-b2b-price-badge,
.woocommerce.columns-5 .adn-b2b-price-badge,
.woocommerce.columns-6 .adn-b2b-price-badge {
    font-size: 10px;
    padding: 3px 8px;
}

/* Related products, upsells, cross-sells */
.related.products .adn-b2b-price-badge,
.upsells.products .adn-b2b-price-badge,
.cross-sells .adn-b2b-price-badge {
    font-size: 10px;
    padding: 3px 8px;
}

/* WooCommerce Blocks compatibility (Gutenberg) */
.wp-block-woocommerce-product-price .adn-b2b-price-badge,
.wc-block-grid__product-price .adn-b2b-price-badge,
.wc-block-components-product-price .adn-b2b-price-badge {
    font-size: 10px;
    padding: 3px 8px;
    margin-right: 6px;
}

/* Quick view modal compatibility */
.woocommerce-quick-view .adn-b2b-price-badge,
.product-quick-view .adn-b2b-price-badge,
.quick-view-modal .adn-b2b-price-badge {
    font-size: 11px;
    padding: 4px 10px;
}

/* Widget compatibility */
.widget_price_filter .adn-b2b-price-badge,
.widget_products .adn-b2b-price-badge,
.woocommerce-widget .adn-b2b-price-badge {
    font-size: 9px;
    padding: 2px 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .adn-b2b-price-badge {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 5px;
    }
    
    .adn-b2b-dealer-price {
        font-size: 20px;
    }
    
    .single-product .summary .adn-b2b-price-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .adn-b2b-price-comparison,
    .adn-b2b-price-both {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .adn-b2b-price-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .adn-b2b-dealer-price {
        font-size: 18px;
    }
    
    .adn-b2b-discount-percent {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ============================================
   Dealer Application Popup/Modal Styles
   ============================================ */

/* Popup Overlay */
#adn-b2b-dealer-application-popup {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.65);
    overflow-y: auto;
    padding: 20px;
}

#adn-b2b-dealer-application-popup.active {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
}

.adn-b2b-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.adn-b2b-popup-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
    margin: 40px auto;
}

.adn-b2b-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 10;
    transition: all 0.3s;
}

.adn-b2b-popup-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.adn-b2b-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px 12px 0 0;
}

.adn-b2b-popup-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: white;
}

.adn-b2b-popup-description {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
}

.adn-b2b-popup-body {
    padding: 30px;
}

/* Form Steps Progress */
.adn-b2b-form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.adn-b2b-form-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.adn-b2b-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    cursor: pointer;
}

.adn-b2b-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.adn-b2b-step .step-title {
    font-size: 13px;
    color: #666;
    text-align: center;
    transition: all 0.3s;
}

.adn-b2b-step.active .step-number {
    background: #333;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.adn-b2b-step.active .step-title {
    color: #333;
    font-weight: 600;
}

.adn-b2b-step.completed .step-number {
    background: #666;
    color: white;
}

.adn-b2b-step.completed .step-title {
    color: #666;
}

/* Form Step Content */
.adn-b2b-form-step {
    display: none;
}

.adn-b2b-form-step.active {
    display: block;
    animation: fadeIn 0.3s;
}

.adn-b2b-form-step[data-step="1"] {
    display: block; /* İlk adım varsayılan olarak görünür */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adn-b2b-form-step h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.adn-b2b-form-step h4 {
    margin: 25px 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.adn-b2b-form-step .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.adn-b2b-form-step hr {
    border: none;
    border-top: 2px solid #f0f0f0;
    margin: 30px 0;
}

/* Form Groups & Rows */
.adn-b2b-form-group {
    margin-bottom: 20px;
}

.adn-b2b-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.adn-b2b-form-group label .required {
    color: #d9534f;
    margin-left: 3px;
}

.adn-b2b-form-group input[type="text"],
.adn-b2b-form-group input[type="email"],
.adn-b2b-form-group input[type="tel"],
.adn-b2b-form-group input[type="number"],
.adn-b2b-form-group input[type="url"],
.adn-b2b-form-group input[type="file"],
.adn-b2b-form-group select,
.adn-b2b-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.adn-b2b-form-group input:focus,
.adn-b2b-form-group select:focus,
.adn-b2b-form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.adn-b2b-form-group input[type="file"] {
    padding: 10px;
}

.adn-b2b-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.adn-b2b-form-group small.description {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.adn-b2b-form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.adn-b2b-form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

/* Form Row Layouts */
.adn-b2b-form-row {
    margin-bottom: 20px;
}

.adn-b2b-form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.adn-b2b-form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Form Navigation Buttons */
.adn-b2b-form-navigation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.adn-b2b-form-navigation .button {
    flex: 1;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.adn-b2b-form-navigation .adn-b2b-prev-step {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
    display: none; /* İlk adımda gizli */
}

.adn-b2b-form-navigation .adn-b2b-prev-step:hover {
    background: #e0e0e0;
}

.adn-b2b-form-navigation .adn-b2b-next-step {
    background: #333;
    color: white;
    border: none;
    display: block;
}

.adn-b2b-form-navigation .adn-b2b-next-step:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: #000;
}

.adn-b2b-form-navigation .adn-b2b-submit-application {
    background: #333;
    color: white;
    border: none;
    display: none; /* Son adıma kadar gizli */
}

.adn-b2b-form-navigation .adn-b2b-submit-application:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: #000;
}

/* Messages */
#adn-b2b-application-messages {
    margin-bottom: 20px;
}

#adn-b2b-application-messages .adn-b2b-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 15px;
}

#adn-b2b-application-messages .adn-b2b-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#adn-b2b-application-messages .adn-b2b-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Shipping Address Toggle */
#shipping-address-fields {
    display: none; /* Varsayılan olarak gizli */
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px dashed #e0e0e0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #adn-b2b-dealer-application-popup {
        padding: 10px;
    }
    
    .adn-b2b-popup-content {
        width: 95%;
        max-height: 95vh;
        margin: 20px auto;
    }
    
    .adn-b2b-popup-header {
        padding: 20px;
    }
    
    .adn-b2b-popup-header h2 {
        font-size: 22px;
    }
    
    .adn-b2b-popup-body {
        padding: 20px;
    }
    
    .adn-b2b-form-steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .adn-b2b-form-steps::before {
        display: none;
    }
    
    .adn-b2b-step {
        flex-direction: row;
        flex-basis: calc(50% - 7.5px);
        gap: 10px;
    }
    
    .adn-b2b-step .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .adn-b2b-step .step-title {
        font-size: 12px;
        text-align: left;
    }
    
    .adn-b2b-form-step h3 {
        font-size: 18px;
    }
    
    .adn-b2b-form-row-2,
    .adn-b2b-form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-form-navigation {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .adn-b2b-popup-close {
        font-size: 28px;
        top: 10px;
        right: 10px;
    }
    
    .adn-b2b-popup-header {
        padding: 15px;
    }
    
    .adn-b2b-popup-header h2 {
        font-size: 20px;
    }
    
    .adn-b2b-popup-body {
        padding: 15px;
    }
    
    .adn-b2b-step {
        flex-basis: 100%;
    }
}


/* ============================================
   DEALER CART & CHECKOUT ENHANCEMENTS
   ============================================ */

/* Dealer Info on Cart Page */
.adn-b2b-cart-dealer-info {
    background: #f8f9fa;
    border-left: 4px solid #000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.adn-b2b-cart-dealer-info h3 {
    margin-top: 0;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.adn-b2b-dealer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.adn-b2b-dealer-info-grid .info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.adn-b2b-dealer-info-grid .info-item strong {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.adn-b2b-dealer-info-grid .info-item span {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

/* Dealer Savings Row in Cart Totals */
tr.adn-b2b-dealer-savings th,
tr.adn-b2b-dealer-savings td {
    background: #e8f5e9 !important;
    font-weight: 600;
    padding: 12px !important;
}

tr.adn-b2b-dealer-savings .savings-amount {
    color: #27ae60;
    font-size: 18px;
    font-weight: 700;
}

tr.adn-b2b-dealer-savings small {
    display: block;
    color: #27ae60;
    font-size: 11px;
    margin-top: 3px;
    font-weight: 400;
}

/* Dealer Info on Checkout Page */
.adn-b2b-checkout-dealer-info {
    background: #000;
    color: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.adn-b2b-checkout-dealer-info strong {
    font-weight: 700;
}

.adn-b2b-checkout-dealer-info .customer-code {
    color: #ccc;
    font-size: 13px;
    margin-left: 10px;
}

/* Dealer Fields Section */
.adn-b2b-dealer-fields {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.adn-b2b-dealer-fields h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 600;
}

.adn-b2b-dealer-fields .form-row {
    margin-bottom: 15px;
}

.adn-b2b-dealer-fields label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.adn-b2b-dealer-fields input[type="text"],
.adn-b2b-dealer-fields textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.adn-b2b-dealer-fields input[type="text"]:focus,
.adn-b2b-dealer-fields textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Dealer Notes Field */
.adn-b2b-dealer-notes {
    margin-top: 20px;
}

.adn-b2b-dealer-notes label {
    font-weight: 600;
    color: #333;
}

.adn-b2b-dealer-notes textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    min-height: 80px;
    resize: vertical;
}

.adn-b2b-dealer-notes textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* SKU in Order Review */
.woocommerce-checkout-review-order-table .product-name small {
    color: #666;
    font-weight: 400;
    display: block;
    margin-top: 3px;
}

/* Thank You Page - Dealer Info */
.adn-b2b-thankyou-dealer-info {
    background: #f8f9fa;
    padding: 25px;
    margin: 25px 0;
    border-left: 4px solid #27ae60;
    border-radius: 4px;
}

.adn-b2b-thankyou-dealer-info h2 {
    margin-top: 0;
    color: #27ae60;
    font-size: 22px;
    margin-bottom: 15px;
}

.adn-b2b-thankyou-dealer-info p {
    margin: 10px 0;
    line-height: 1.6;
}

.adn-b2b-thankyou-dealer-info > div {
    background: #fff;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.adn-b2b-thankyou-dealer-info strong {
    color: #000;
    font-weight: 600;
}

/* Payment Term Field Styling */
.adn-b2b-payment-term-field {
    margin-top: 20px;
}

.adn-b2b-payment-term-field label {
    font-weight: 600;
    color: #333;
}

.adn-b2b-payment-term-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.adn-b2b-payment-term-field select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .adn-b2b-cart-dealer-info,
    .adn-b2b-checkout-dealer-info,
    .adn-b2b-dealer-fields {
        padding: 15px;
    }
    
    .adn-b2b-dealer-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .adn-b2b-checkout-dealer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .adn-b2b-checkout-dealer-info .customer-code {
        margin-left: 0;
    }
    
    .adn-b2b-thankyou-dealer-info {
        padding: 20px 15px;
    }
    
    .adn-b2b-thankyou-dealer-info h2 {
        font-size: 18px;
    }
}

/* Print Styles for Orders */
@media print {
    .adn-b2b-checkout-dealer-info,
    .adn-b2b-dealer-fields,
    .adn-b2b-dealer-notes {
        display: none;
    }
}


/* ============================================
   My Account Orders - Dealer Info
   ============================================ */

/* Dealer badge in orders list */
.adn-b2b-dealer-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Dealer info column in orders list */
.adn-b2b-order-dealer-info {
    font-size: 13px;
    line-height: 1.6;
}

.adn-b2b-order-dealer-info .dealer-info-item {
    margin: 3px 0;
    color: #666;
}

.adn-b2b-order-dealer-info .dealer-info-item strong {
    color: #000;
    font-weight: 600;
}

.adn-b2b-not-dealer-order {
    color: #999;
    font-style: italic;
}

/* Single Order - Dealer Details Section */
.adn-b2b-order-dealer-details {
    margin-top: 30px;
    padding: 0;
}

.adn-b2b-order-dealer-details .woocommerce-order-details__title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

/* Dealer banner on single order */
.adn-b2b-dealer-order-banner {
    background: #000;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
    text-align: center;
}

.dealer-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.dealer-badge-large .icon {
    font-size: 28px;
}

/* Dealer order details table */
.woocommerce-table--dealer-order-details {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.woocommerce-table--dealer-order-details th,
.woocommerce-table--dealer-order-details td {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.woocommerce-table--dealer-order-details th {
    font-weight: 600;
    width: 35%;
    background: #f8f8f8;
}

.woocommerce-table--dealer-order-details tr:last-child th,
.woocommerce-table--dealer-order-details tr:last-child td {
    border-bottom: none;
}

/* Price group badge */
.adn-b2b-price-group-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.adn-b2b-price-group-badge.dealer_a {
    background: #e3f2fd;
    color: #1976d2;
}

.adn-b2b-price-group-badge.dealer_b {
    background: #f3e5f5;
    color: #7b1fa2;
}

.adn-b2b-price-group-badge.distributor {
    background: #e8f5e9;
    color: #388e3c;
}

/* Due date styling */
.due-date {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
}

/* Dealer savings summary */
.adn-b2b-dealer-savings-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
}

.adn-b2b-dealer-savings-summary .savings-icon {
    font-size: 48px;
    line-height: 1;
}

.adn-b2b-dealer-savings-summary .savings-content {
    flex: 1;
}

.adn-b2b-dealer-savings-summary .savings-label {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.adn-b2b-dealer-savings-summary .savings-amount {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3px;
}

.adn-b2b-dealer-savings-summary .savings-percentage {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide dealer info column on mobile, show in order details instead */
    .woocommerce-MyAccount-orders .dealer-info {
        display: none;
    }
    
    .woocommerce-table--dealer-order-details th {
        width: 40%;
        font-size: 13px;
    }
    
    .woocommerce-table--dealer-order-details th,
    .woocommerce-table--dealer-order-details td {
        padding: 12px;
    }
    
    .dealer-badge-large {
        font-size: 16px;
    }
    
    .dealer-badge-large .icon {
        font-size: 24px;
    }
    
    .adn-b2b-dealer-savings-summary {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .adn-b2b-dealer-savings-summary .savings-amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .adn-b2b-dealer-order-banner {
        padding: 15px;
    }
    
    .woocommerce-table--dealer-order-details th,
    .woocommerce-table--dealer-order-details td {
        display: block;
        width: 100%;
        padding: 10px;
    }
    
    .woocommerce-table--dealer-order-details th {
        background: #f0f0f0;
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .woocommerce-table--dealer-order-details td {
        padding-top: 5px;
        padding-bottom: 15px;
    }
    
    .adn-b2b-dealer-savings-summary .savings-amount {
        font-size: 24px;
    }
}


/* ============================================
   QUOTE (TEKLİF) SYSTEM STYLES
   ============================================ */

/* Request Quote Button - Single Product */
.adn-b2b-request-quote-btn {
    background: #2c3e50 !important;
    color: white !important;
    border: 2px solid #2c3e50 !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 15px !important;
    text-transform: none !important;
}

.adn-b2b-request-quote-btn:hover {
    background: #34495e !important;
    border-color: #34495e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3) !important;
}

.adn-b2b-request-quote-btn .icon {
    font-size: 18px;
}

.adn-b2b-request-quote-btn.loading {
    opacity: 0.7;
    cursor: wait;
    position: relative;
}

.adn-b2b-request-quote-btn.loading::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: adn-b2b-spin 0.6s linear infinite;
}

/* Request Quote Button - Product Loop */
.adn-b2b-request-quote-btn-loop {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.adn-b2b-request-quote-btn-loop:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

/* Quote Basket Page */
.adn-b2b-quote-basket {
    max-width: 1200px;
    margin: 0 auto;
}

.adn-b2b-quote-basket h2 {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c3e50;
    color: #2c3e50;
    font-weight: 700;
}

.adn-b2b-quote-info {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    gap: 30px;
    border: 1px solid #e0e0e0;
}

.adn-b2b-quote-info .quote-number,
.adn-b2b-quote-info .quote-date {
    font-size: 14px;
    color: #666;
}

.adn-b2b-quote-info strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Quote Basket Form */
.adn-b2b-quote-basket-form .shop_table {
    margin-bottom: 30px;
}

.adn-b2b-quote-basket-form .remove {
    color: #e74c3c !important;
    font-size: 24px;
    font-weight: 400;
}

.adn-b2b-quote-basket-form .remove:hover {
    color: #c0392b !important;
    text-decoration: none;
}

.adn-b2b-quote-basket-form .product-sku {
    margin-top: 5px;
}

.adn-b2b-quote-basket-form .product-sku small {
    color: #666;
    font-size: 12px;
}

.adn-b2b-quote-basket-form .quantity input {
    width: 80px;
}

/* Quote Notes */
.adn-b2b-quote-notes {
    margin-bottom: 20px;
}

.adn-b2b-quote-notes label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.adn-b2b-quote-notes textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.adn-b2b-quote-notes textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* Submit Quote Button */
.adn-b2b-submit-quote-btn {
    background: #2c3e50;
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.adn-b2b-submit-quote-btn:hover:not(:disabled) {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.adn-b2b-submit-quote-btn:disabled,
.adn-b2b-submit-quote-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.adn-b2b-quote-info-notice {
    margin-top: 15px;
    text-align: center;
}

.adn-b2b-quote-info-notice p {
    margin: 0;
}

.adn-b2b-quote-info-notice small {
    color: #666;
    font-style: italic;
}

/* Quotes List Page */
.adn-b2b-quotes-list {
    max-width: 1200px;
    margin: 0 auto;
}

.adn-b2b-quotes-list h2 {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c3e50;
    color: #2c3e50;
    font-weight: 700;
}

/* Quote Status Badges */
.quote-status-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.quote-status-badge.status-pending {
    background: #ffeaa7;
    color: #856404;
}

.quote-status-badge.status-processing {
    background: #74b9ff;
    color: #004085;
}

.quote-status-badge.status-approved {
    background: #55efc4;
    color: #155724;
}

.quote-status-badge.status-rejected {
    background: #ff7675;
    color: #721c24;
}

.quote-status-badge.status-expired {
    background: #dfe6e9;
    color: #383838;
}

.quote-status-badge.status-converted {
    background: #a29bfe;
    color: #3d3d8e;
}

/* View Quote Page */
.adn-b2b-view-quote {
    max-width: 1200px;
    margin: 0 auto;
}

.adn-b2b-view-quote h2 {
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c3e50;
    color: #2c3e50;
    font-weight: 700;
}

.adn-b2b-view-quote h2 .quote-number {
    color: #666;
    font-size: 24px;
}

/* Quote Header Info Grid */
.adn-b2b-quote-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.quote-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quote-info-grid .info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quote-info-grid .info-item strong {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-info-grid .info-item a {
    color: #2c3e50;
    font-weight: 600;
}

/* Quote Items Table */
.adn-b2b-view-quote .shop_table {
    margin-bottom: 30px;
}

.adn-b2b-view-quote .price-updated {
    margin-top: 8px;
}

.adn-b2b-view-quote .price-updated small {
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.adn-b2b-view-quote .price-updated .original-price {
    color: #999;
    text-decoration: line-through;
}

.adn-b2b-view-quote .price-updated .quoted-price {
    color: #27ae60;
    font-weight: 600;
}

/* Quote Notes Display */
.adn-b2b-quote-notes-display,
.adn-b2b-admin-notes-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #2c3e50;
}

.adn-b2b-quote-notes-display h3,
.adn-b2b-admin-notes-display h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.adn-b2b-quote-notes-display p,
.adn-b2b-admin-notes-display p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.adn-b2b-admin-notes-display {
    background: #fff3cd;
    border-left-color: #856404;
}

.adn-b2b-admin-notes-display h3 {
    color: #856404;
}

/* Quote Actions */
.adn-b2b-quote-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.adn-b2b-quote-actions .button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
}

.adn-b2b-accept-quote-btn {
    background: #27ae60;
    color: white;
    border: none;
}

.adn-b2b-accept-quote-btn:hover:not(:disabled) {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.adn-b2b-accept-quote-btn:disabled,
.adn-b2b-accept-quote-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Notices */
.adn-b2b-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 15px;
    animation: slideInDown 0.3s;
}

.adn-b2b-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.adn-b2b-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.adn-b2b-notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
tr.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .adn-b2b-quote-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .quote-info-grid {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-quote-actions {
        flex-direction: column;
    }
    
    .adn-b2b-quote-actions .button {
        width: 100%;
    }
    
    .adn-b2b-request-quote-btn {
        width: 100%;
        justify-content: center;
    }
    
    .adn-b2b-quote-basket-form .quantity input {
        width: 60px;
    }
}

/* Cart Item Loading */
.cart_item.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.cart_item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(44, 62, 80, 0.3);
    border-top-color: #2c3e50;
    border-radius: 50%;
    animation: adn-b2b-spin 0.6s linear infinite;
}

/* Empty State */
.adn-b2b-quote-basket .woocommerce-message--info,
.adn-b2b-quotes-list .woocommerce-message--info {
    background: #e7f3ff;
    border-top: 3px solid #2271b1;
    padding: 20px;
    border-radius: 6px;
}

/* ========================================
   DEALER QUOTE DETAIL PAGE - MODERN DESIGN
   ======================================== */

/* Page Back Link */
.adn-b2b-view-quote .adn-b2b-page-back {
    margin-bottom: 24px;
}

.adn-b2b-view-quote .adn-b2b-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.adn-b2b-view-quote .adn-b2b-back-link:hover {
    background: #f8f9fa;
    color: #000;
}

.adn-b2b-view-quote .adn-b2b-back-link svg {
    transition: transform 0.2s;
}

.adn-b2b-view-quote .adn-b2b-back-link:hover svg {
    transform: translateX(-3px);
}

/* Quote Hero Section */
.adn-b2b-quote-hero {
    background: linear-gradient(135deg, #000 0%, #2c3e50 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.adn-b2b-quote-hero .quote-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.adn-b2b-quote-hero .quote-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #fff;
}

.adn-b2b-quote-hero .quote-number {
    color: #3498db;
    font-weight: 700;
}

.adn-b2b-quote-hero .quote-meta-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.adn-b2b-quote-hero .quote-status-badge,
.adn-b2b-quote-hero .savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.adn-b2b-quote-hero .quote-status-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.adn-b2b-quote-hero .quote-status-badge.status-approved {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.adn-b2b-quote-hero .quote-status-badge.status-rejected {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.adn-b2b-quote-hero .quote-status-badge.status-pending {
    background: rgba(241, 196, 15, 0.2);
    border-color: rgba(241, 196, 15, 0.3);
    color: #f1c40f;
}

.adn-b2b-quote-hero .quote-status-badge.status-processing {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.adn-b2b-quote-hero .quote-status-badge.status-converted {
    background: rgba(155, 89, 182, 0.2);
    border-color: rgba(155, 89, 182, 0.3);
    color: #9b59b6;
}

.adn-b2b-quote-hero .savings-badge {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.adn-b2b-quote-hero .quote-total-display {
    text-align: right;
}

.adn-b2b-quote-hero .quote-total-display .label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adn-b2b-quote-hero .quote-total-display .amount {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

/* Status Timeline */
.adn-b2b-quote-timeline {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    position: relative;
}

.adn-b2b-quote-timeline::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 32px;
    right: 32px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.adn-b2b-quote-timeline .timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.adn-b2b-quote-timeline .timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.adn-b2b-quote-timeline .timeline-item.completed .timeline-icon {
    background: #2ecc71;
    color: #fff;
}

.adn-b2b-quote-timeline .timeline-item.completed.rejected .timeline-icon {
    background: #e74c3c;
}

.adn-b2b-quote-timeline .timeline-item.active .timeline-icon {
    background: #3498db;
    color: #fff;
    animation: pulse 2s infinite;
}

.adn-b2b-quote-timeline .timeline-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.adn-b2b-quote-timeline .timeline-date {
    font-size: 12px;
    color: #7f8c8d;
}

.adn-b2b-quote-timeline .order-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.adn-b2b-quote-timeline .order-link:hover {
    text-decoration: underline;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
}

/* Info Cards Grid */
.adn-b2b-quote-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.adn-b2b-quote-info-cards .info-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.adn-b2b-quote-info-cards .info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.adn-b2b-quote-info-cards .info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    flex-shrink: 0;
}

.adn-b2b-quote-info-cards .savings-card .info-card-icon {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.adn-b2b-quote-info-cards .info-card-content {
    flex: 1;
}

.adn-b2b-quote-info-cards .info-card-content .label {
    display: block;
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 6px;
    font-weight: 500;
}

.adn-b2b-quote-info-cards .info-card-content .value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.adn-b2b-quote-info-cards .savings-value {
    color: #2ecc71;
}

.adn-b2b-quote-info-cards .savings-percent {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Quote Products Section */
.adn-b2b-quote-products {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.adn-b2b-quote-products .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 24px 0;
}

.adn-b2b-quote-products .section-title svg {
    color: #3498db;
}

/* Products Table */
.products-table-wrapper {
    overflow-x: auto;
    margin: 0 -32px;
    padding: 0 32px;
}

.adn-b2b-products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.adn-b2b-products-table thead th {
    background: #f8f9fa;
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.adn-b2b-products-table thead th:first-child {
    border-top-left-radius: 8px;
}

.adn-b2b-products-table thead th:last-child {
    border-top-right-radius: 8px;
}

.adn-b2b-products-table tbody tr {
    transition: background 0.2s;
}

.adn-b2b-products-table tbody tr:hover {
    background: #f8f9fa;
}

.adn-b2b-products-table tbody tr.has-discount {
    background: rgba(46, 204, 113, 0.03);
}

.adn-b2b-products-table tbody td {
    padding: 20px 16px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

/* Product Image */
.adn-b2b-products-table .product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adn-b2b-products-table .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adn-b2b-products-table .product-thumbnail .no-image {
    color: #bdc3c7;
}

/* Product Info */
.adn-b2b-products-table .product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adn-b2b-products-table .product-link {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.adn-b2b-products-table .product-link:hover {
    color: #3498db;
}

.adn-b2b-products-table .product-sku {
    font-size: 13px;
    color: #7f8c8d;
}

/* Price Comparison */
.adn-b2b-products-table .price-comparison {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding: 12px;
    background: rgba(46, 204, 113, 0.05);
    border-radius: 6px;
    border-left: 3px solid #2ecc71;
}

.adn-b2b-products-table .price-comparison .original-price,
.adn-b2b-products-table .price-comparison .quoted-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.adn-b2b-products-table .price-comparison .label {
    font-weight: 600;
    color: #7f8c8d;
    min-width: 50px;
}

.adn-b2b-products-table .price-comparison .original-price {
    color: #e74c3c;
    text-decoration: line-through;
}

.adn-b2b-products-table .price-comparison .quoted-price {
    color: #2ecc71;
    font-weight: 600;
}

.adn-b2b-products-table .price-comparison .savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #2ecc71;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

/* Quantity Badge */
.adn-b2b-products-table .quantity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

/* Price Display */
.adn-b2b-products-table .price {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.adn-b2b-products-table .total-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

/* Quote Summary Section */
.adn-b2b-quote-summary {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    margin-bottom: 32px;
}

/* Notes Section */
.notes-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.note-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.note-card.user-note {
    border-left: 4px solid #3498db;
}

.note-card.admin-note {
    border-left: 4px solid #e67e22;
}

.note-card .note-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.note-card p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
}

/* Totals Card */
.totals-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #ecf0f1;
}

.totals-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.totals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #ecf0f1;
}

.total-row:last-child {
    border-bottom: none;
}

.total-row .label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.total-row .value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.total-row.discount .discount-value {
    color: #2ecc71;
}

.total-row.grand-total {
    padding-top: 16px;
    border-top: 2px solid #2c3e50;
    border-bottom: none;
    margin-top: 8px;
}

.total-row.grand-total .label {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 700;
}

.total-row.grand-total .value {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

/* Action Buttons */
.adn-b2b-quote-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0;
}

.adn-b2b-quote-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.adn-b2b-quote-actions .button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.adn-b2b-quote-actions .button-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.adn-b2b-quote-actions .button-primary:hover {
    background: #2c3e50;
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.adn-b2b-quote-actions .button-secondary {
    background: #fff;
    color: #2c3e50;
    border-color: #e0e0e0;
}

.adn-b2b-quote-actions .button-secondary:hover {
    background: #f8f9fa;
    border-color: #2c3e50;
}

.adn-b2b-quote-actions .button-outline {
    background: transparent;
    color: #2c3e50;
    border-color: #2c3e50;
}

.adn-b2b-quote-actions .button-outline:hover {
    background: #2c3e50;
    color: #fff;
}

/* Spin animation for loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {
    .adn-b2b-page-back,
    .adn-b2b-quote-actions,
    .adn-b2b-quote-timeline {
        display: none;
    }
    
    .adn-b2b-quote-hero {
        background: #f8f9fa;
        color: #000;
    }
    
    .adn-b2b-products-table {
        page-break-inside: auto;
    }
    
    .adn-b2b-products-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .adn-b2b-quote-summary {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-quote-timeline {
        flex-wrap: wrap;
    }
    
    .adn-b2b-quote-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .adn-b2b-quote-hero .quote-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .adn-b2b-quote-hero {
        padding: 24px;
    }
    
    .adn-b2b-quote-hero .quote-title {
        font-size: 22px;
    }
    
    .adn-b2b-quote-hero .quote-total-display {
        text-align: left;
        width: 100%;
    }
    
    .adn-b2b-quote-hero .quote-total-display .amount {
        font-size: 28px;
    }
    
    .adn-b2b-quote-info-cards {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-quote-products,
    .note-card,
    .totals-card {
        padding: 20px;
    }
    
    .adn-b2b-quote-timeline {
        padding: 20px;
    }
    
    .adn-b2b-quote-timeline .timeline-item {
        font-size: 13px;
    }
    
    .adn-b2b-quote-timeline .timeline-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile Table */
    .products-table-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .adn-b2b-products-table thead {
        display: none;
    }
    
    .adn-b2b-products-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ecf0f1;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .adn-b2b-products-table tbody td {
        display: block;
        text-align: left;
        padding: 12px 16px;
        border-bottom: 1px solid #ecf0f1;
    }
    
    .adn-b2b-products-table tbody td:last-child {
        border-bottom: none;
    }
    
    .adn-b2b-products-table tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 600;
        color: #7f8c8d;
        display: inline-block;
        margin-right: 8px;
    }
    
    .adn-b2b-products-table .product-image::before {
        display: none;
    }
    
    .adn-b2b-products-table .product-thumbnail {
        width: 100%;
        height: 200px;
        border-radius: 0;
    }
    
    .adn-b2b-products-table .product-name {
        background: #f8f9fa;
    }
    
    .adn-b2b-products-table .product-total {
        background: #f8f9fa;
        font-size: 18px;
    }
    
    .adn-b2b-quote-actions {
        flex-direction: column;
    }
    
    .adn-b2b-quote-actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .adn-b2b-quote-hero .quote-meta-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .adn-b2b-quote-timeline .timeline-item {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
}


/* Accept Quote Modal */
.adn-b2b-accept-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.adn-b2b-accept-modal.active {
    opacity: 1;
    visibility: visible;
}

.adn-b2b-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.adn-b2b-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.adn-b2b-accept-modal.active .adn-b2b-modal-content {
    transform: scale(1);
}

.adn-b2b-modal-content .modal-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.adn-b2b-modal-content .modal-header svg {
    color: #10b981;
    margin-bottom: 15px;
}

.adn-b2b-modal-content .modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.adn-b2b-modal-content .modal-body {
    padding: 30px;
}

.adn-b2b-modal-content .modal-body > p {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.confirmation-checklist {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.check-item:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.check-item svg {
    color: #10b981;
    flex-shrink: 0;
}

.check-item span {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.modal-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
}

.modal-warning svg {
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-warning span {
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.modal-actions {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions .button {
    margin: 0;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-actions .button-secondary {
    background: #f3f4f6;
    color: #374151;
    border: none;
}

.modal-actions .button-secondary:hover {
    background: #e5e7eb;
}

.modal-actions .button-primary {
    background: #10b981;
    color: white;
    border: none;
}

.modal-actions .button-primary:hover {
    background: #059669;
}

.modal-actions .button-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modal responsive adjustments */
@media screen and (max-width: 768px) {
    .adn-b2b-modal-content {
        max-width: 95%;
    }
    
    .adn-b2b-modal-content .modal-header {
        padding: 24px;
    }
    
    .adn-b2b-modal-content .modal-body {
        padding: 24px;
    }
    
    .modal-actions {
        padding: 16px 24px;
        flex-direction: column;
    }
    
    .modal-actions .button {
        width: 100%;
    }
}


/* ===================================
   CHECKOUT PAGE REDESIGN
   =================================== */

/* Checkout Container */
.woocommerce-checkout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Page Header */
.woocommerce-checkout .woocommerce-checkout-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

/* Main Layout */
#customer_details,
#order_review_heading,
#order_review {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* Two Column Layout */
.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Section Headers */
.woocommerce-checkout h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-checkout h3:before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Form Fields */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.woocommerce-checkout .form-row label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.woocommerce-checkout textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox & Radio */
.woocommerce-checkout input[type="checkbox"],
.woocommerce-checkout input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

/* Order Review Section */
#order_review {
    position: sticky;
    top: 20px;
}

#order_review_heading {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 25px;
}

/* Order Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 25px;
}

.woocommerce-checkout-review-order-table thead th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.woocommerce-checkout-review-order-table .product-quantity {
    color: #6b7280;
    font-size: 14px;
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

/* Order Totals */
.woocommerce-checkout-review-order-table tfoot tr {
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding: 15px;
    font-size: 15px;
}

.woocommerce-checkout-review-order-table tfoot th {
    font-weight: 600;
    color: #6b7280;
}

.woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
}

/* Subtotal Row */
.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout-review-order-table .cart-subtotal td {
    color: #6b7280;
}

/* Order Total */
.woocommerce-checkout-review-order-table .order-total {
    border-top: 2px solid #e5e7eb !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.woocommerce-checkout-review-order-table .order-total th {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a !important;
}

.woocommerce-checkout-review-order-table .order-total td {
    font-size: 24px;
    font-weight: 700;
    color: #667eea !important;
}

/* Dealer Savings Badge */
.adn-b2b-checkout-savings {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.adn-b2b-checkout-savings-icon {
    font-size: 36px;
    line-height: 1;
}

.adn-b2b-checkout-savings-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.adn-b2b-checkout-savings-content .savings-amount {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.adn-b2b-checkout-savings-content .savings-percentage {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 3px;
}

/* Payment Methods */
#payment {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
}

#payment ul.payment_methods {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

#payment ul.payment_methods li {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#payment ul.payment_methods li:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

#payment ul.payment_methods li.selected,
#payment ul.payment_methods li input:checked ~ label {
    border-color: #667eea;
    background: #f0f4ff;
}

#payment ul.payment_methods li label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    margin: 0;
}

#payment .payment_box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

/* Dealer Payment Terms */
.adn-b2b-payment-term-field {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.adn-b2b-payment-term-field label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 15px;
}

.adn-b2b-payment-term-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.adn-b2b-payment-term-field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.adn-b2b-payment-term-info {
    margin-top: 12px;
    padding: 12px 15px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

/* Place Order Button */
#place_order {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

#place_order:active {
    transform: translateY(0);
}

#place_order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Terms & Conditions */
.woocommerce-terms-and-conditions-wrapper {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.woocommerce-terms-and-conditions {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

/* Dealer Info Box */
.adn-b2b-checkout-dealer-info {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.adn-b2b-checkout-dealer-info h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.adn-b2b-checkout-dealer-info h3:before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.dealer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.dealer-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dealer-info-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dealer-info-value {
    font-size: 16px;
    font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
    }
    
    #order_review {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .woocommerce-checkout {
        padding: 20px 15px;
    }
    
    #customer_details,
    #order_review_heading,
    #order_review {
        padding: 20px;
    }
    
    .dealer-info-grid {
        grid-template-columns: 1fr;
    }
    
    .adn-b2b-checkout-savings {
        flex-direction: column;
        text-align: center;
    }
    
    .woocommerce-checkout-review-order-table tbody td,
    .woocommerce-checkout-review-order-table tfoot th,
    .woocommerce-checkout-review-order-table tfoot td {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .woocommerce-checkout-review-order-table .order-total td {
        font-size: 20px;
    }
}

/* Loading State */
.woocommerce-checkout.processing {
    position: relative;
    pointer-events: none;
}

.woocommerce-checkout.processing:after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error Messages */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-error {
    border-left-color: #e74c3c;
    color: #c0392b;
}

.woocommerce-message {
    border-left-color: #10b981;
    color: #059669;
}

.woocommerce-info {
    border-left-color: #3498db;
    color: #2980b9;
}


/* ===================================
   ORDER DETAIL PAGE REDESIGN (DEALER ORDERS)
   =================================== */

/* Only apply enhanced styles when dealer info box is present */
.woocommerce-order:has(.adn-b2b-order-dealer-info) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Order Header - Enhanced for Dealer Orders */
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    align-items: start;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview__order {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview__order strong {
    font-size: 28px;
    font-weight: 700;
    color: white;
    display: inline-block;
    margin: 0;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview__date,
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview__total,
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview__payment-method {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview li strong {
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-top: 8px;
}

/* Order Status Badge - Enhanced for Dealer Orders */
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 12px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-status.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-status.status-on-hold {
    background: #fce7f3;
    color: #9f1239;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-status.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-status.status-cancelled {
    background: #f3f4f6;
    color: #374151;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-status.status-refunded {
    background: #fee2e2;
    color: #991b1b;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-status.status-failed {
    background: #fecaca;
    color: #7f1d1d;
}

/* Order Details Section - Enhanced for Dealer Orders */
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-details,
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-customer-details {
    background: white;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-details h2,
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-customer-details h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-details h2:before,
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-customer-details h2:before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Order Table - Enhanced for Dealer Orders */
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details thead {
    background: #f8f9fa;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tbody tr:hover {
    background: #fafafa;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tbody td {
    padding: 20px;
    vertical-align: middle;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details .product-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details .product-name img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details .product-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    flex: 1;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details .product-name a:hover {
    color: #667eea;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details .product-name dl {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details .product-name .variation {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 5px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details .product-quantity {
    display: inline-block;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details .product-total {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

/* Order Totals - Enhanced for Dealer Orders */
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tfoot {
    background: #f8f9fa;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tfoot tr {
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tfoot th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 15px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tfoot td {
    padding: 15px 20px;
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

/* Order Total Row */
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tfoot .order-total {
    border-top: 2px solid #e5e7eb !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tfoot .order-total th {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a !important;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tfoot .order-total td {
    font-size: 24px;
    font-weight: 700;
    color: #667eea !important;
}

/* Customer Details Grid - Enhanced for Dealer Orders */
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-customer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-customer-details address {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    font-style: normal;
    line-height: 1.8;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-customer-details h2 {
    grid-column: 1 / -1;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-customer-details address p {
    margin: 8px 0;
}

/* Dealer Order Info Box */
.adn-b2b-order-dealer-info {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.adn-b2b-order-dealer-info h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.adn-b2b-order-dealer-info h3 svg {
    width: 24px;
    height: 24px;
}

.dealer-order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dealer-order-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dealer-order-info-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.dealer-order-info-value {
    font-size: 18px;
    font-weight: 700;
}

/* Order Actions - Enhanced for Dealer Orders */
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-actions .button {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-actions .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-actions .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-actions .button-secondary {
    background: white;
    color: #374151;
    border-color: #e5e7eb;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-actions .button-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Order Notes - Enhanced for Dealer Orders */
.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-notes {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-notes h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-notes .note {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-notes .note .note-date {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-notes .note .note-content {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* Original Order Actions (for non-dealer orders) */
.woocommerce-order-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.woocommerce-order-actions .button {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-order-actions .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.woocommerce-order-actions .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.woocommerce-order-actions .button-secondary {
    background: white;
    color: #374151;
    border-color: #e5e7eb;
}

.woocommerce-order-actions .button-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Order Notes */
.woocommerce-order-notes {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.woocommerce-order-notes h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.woocommerce-order-notes .note {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.woocommerce-order-notes .note .note-date {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.woocommerce-order-notes .note .note-content {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* Payment Info */
.adn-b2b-payment-info {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.adn-b2b-payment-info h4 {
    margin: 0 0 12px 0;
    color: #92400e;
    font-size: 16px;
    font-weight: 700;
}

.adn-b2b-payment-info p {
    margin: 8px 0;
    color: #78350f;
    font-size: 14px;
    line-height: 1.6;
}

.adn-b2b-payment-info strong {
    color: #92400e;
}

/* Responsive Design - Enhanced for Dealer Orders */
@media screen and (max-width: 768px) {
    .woocommerce-order:has(.adn-b2b-order-dealer-info) {
        padding: 20px 15px;
    }
    
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview {
        padding: 25px;
    }
    
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview__order strong {
        font-size: 22px;
    }
    
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-details,
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-customer-details,
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-notes {
        padding: 25px 20px;
    }
    
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details {
        font-size: 14px;
    }
    
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details thead {
        display: none;
    }
    
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 15px;
    }
    
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tbody td {
        display: block;
        padding: 8px 0;
        text-align: left !important;
        border: none;
    }
    
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tbody td:before {
        content: attr(data-title) ": ";
        font-weight: 600;
        color: #6b7280;
        display: inline-block;
        margin-right: 8px;
    }
    
    .dealer-order-info-grid,
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-customer-details {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-table--order-details tfoot .order-total td {
        font-size: 20px;
    }
}

/* Print Styles - Enhanced for Dealer Orders */
@media print {
    .woocommerce-order-actions,
    .woocommerce-MyAccount-navigation {
        display: none;
    }
    
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-overview,
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-order-details,
    .woocommerce-order:has(.adn-b2b-order-dealer-info) .woocommerce-customer-details {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* ================================================================
   FLOATING CART WIDGET - DEALER ONLY (Minimal Black & White)
   ================================================================ */

/* Floating Cart Button */
.adn-b2b-floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
}

.adn-b2b-floating-cart-trigger {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #000000;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.adn-b2b-floating-cart-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.adn-b2b-floating-cart-trigger svg {
    color: #ffffff;
    width: 24px;
    height: 24px;
}

.adn-b2b-floating-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #ffffff;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.adn-b2b-floating-cart-badge.has-items {
    opacity: 1;
    transform: scale(1);
}

/* Floating Cart Popup */
.adn-b2b-floating-cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.adn-b2b-floating-cart-popup.active {
    opacity: 1;
    pointer-events: all;
}

.adn-b2b-floating-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.adn-b2b-floating-cart-popup .popup-container {
    position: absolute;
    bottom: 110px;
    right: 30px;
    width: 400px;
    max-height: 580px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.adn-b2b-floating-cart-popup.active .popup-container {
    transform: translateY(0) scale(1);
}

.adn-b2b-floating-cart-popup .popup-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.adn-b2b-floating-cart-popup .popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.adn-b2b-floating-cart-popup .popup-header h3 svg {
    color: #000000;
    width: 20px;
    height: 20px;
}

.adn-b2b-floating-cart-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666666;
}

.adn-b2b-floating-cart-close:hover {
    background: #f5f5f5;
    color: #000000;
}

.adn-b2b-floating-cart-popup .popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    max-height: 380px;
    background: #ffffff;
}

/* Scrollbar Styling */
.adn-b2b-floating-cart-popup .popup-body::-webkit-scrollbar {
    width: 6px;
}

.adn-b2b-floating-cart-popup .popup-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.adn-b2b-floating-cart-popup .popup-body::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

.adn-b2b-floating-cart-popup .popup-body::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Loading Spinner */
.popup-body .loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.popup-body .loading-spinner svg {
    color: #000000;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty Cart */
.popup-body .empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.popup-body .empty-cart svg {
    color: #cccccc;
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
}

.popup-body .empty-cart span {
    display: block;
    font-size: 15px;
    font-weight: 500;
}

/* Cart Items - Simplified */
.floating-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-cart-items .cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.floating-cart-items .cart-item:hover {
    background: #f5f5f5;
}

.floating-cart-items .item-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e5e5;
}

.floating-cart-items .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-cart-items .item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.floating-cart-items .item-details h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.floating-cart-items .item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.floating-cart-items .item-meta .quantity {
    font-weight: 500;
    color: #666666;
}

.floating-cart-items .item-meta .price {
    color: #000000;
    font-weight: 700;
}

/* Cart Footer - Simplified */
.floating-cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.floating-cart-footer .cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.floating-cart-footer .cart-total span {
    color: #666666;
    font-weight: 500;
}

.floating-cart-footer .cart-total strong {
    color: #000000;
    font-size: 20px;
    font-weight: 700;
}

.floating-cart-footer .adn-b2b-view-full-cart {
    width: 100%;
    padding: 14px 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.floating-cart-footer .adn-b2b-view-full-cart:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

.floating-cart-footer .adn-b2b-view-full-cart svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .adn-b2b-floating-cart {
        bottom: 20px;
        right: 20px;
    }
    
    .adn-b2b-floating-cart-trigger {
        width: 56px;
        height: 56px;
    }
    
    .adn-b2b-floating-cart-popup .popup-container {
        right: 20px;
        left: 20px;
        bottom: 90px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .adn-b2b-floating-cart-popup .popup-container {
        right: 10px;
        left: 10px;
        bottom: 80px;
    }
    
    .adn-b2b-floating-cart-popup .popup-body {
        max-height: 300px;
    }
}