/* ============================================
   DASHBOARD HEADER STYLES
   Professional & Modern Design
   ============================================ */

.qb2b-customer-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Main Dashboard Header Container */
.qb2b-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.25);
    overflow: hidden;
    position: relative;
}

.qb2b-dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Dashboard Welcome Section */
.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    position: relative;
    z-index: 1;
}

.welcome-content {
    flex: 1;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.company-info {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
    font-weight: 500;
}

/* Customer Group Badge */
.customer-group-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.customer-group-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Group-specific badge colors */
.customer-group-badge.group-vip,
.customer-group-badge.group-platinum {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2c3e50;
    border: none;
}

.customer-group-badge.group-gold {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #2c3e50;
    border: none;
}

.customer-group-badge.group-silver {
    background: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%);
    color: #2c3e50;
    border: none;
}

/* Welcome Actions */
.welcome-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.welcome-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.welcome-actions .button-primary {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.welcome-actions .button-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.welcome-actions .button-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.welcome-actions .button-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.welcome-actions .button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

/* Dashboard Notifications */
.dashboard-notifications {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.notification:last-child {
    margin-bottom: 0;
}

.notification:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Notification Types */
.notification.info {
    border-left: 4px solid #3498db;
}

.notification.success {
    border-left: 4px solid #27ae60;
}

.notification.warning {
    border-left: 4px solid #f39c12;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

/* Notification Icon */
.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification.info .notification-icon::before {
    content: 'ℹ';
    color: #3498db;
    font-weight: bold;
    font-size: 16px;
}

.notification.success .notification-icon::before {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
    font-size: 16px;
}

.notification.warning .notification-icon::before {
    content: '⚠';
    color: #f39c12;
    font-weight: bold;
    font-size: 16px;
}

.notification.error .notification-icon::before {
    content: '✕';
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

/* Notification Message */
.notification-message {
    flex: 1;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.5;
    font-weight: 500;
}

/* Notification Dismiss Button */
.notification-dismiss {
    background: transparent;
    border: none;
    color: #95a5a6;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-dismiss:hover {
    background: #ecf0f1;
    color: #e74c3c;
    transform: rotate(90deg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .welcome-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .welcome-actions .button {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .qb2b-customer-dashboard {
        padding: 15px;
    }
    
    .qb2b-dashboard-header {
        margin-bottom: 24px;
    }
    
    .dashboard-welcome {
        padding: 24px 20px;
    }
    
    .dashboard-title {
        font-size: 24px;
    }
    
    .company-info {
        font-size: 14px;
    }
    
    .dashboard-notifications {
        padding: 15px 20px;
    }
    
    .notification {
        padding: 12px 14px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dashboard-title {
        font-size: 20px;
    }
    
    .welcome-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .welcome-actions .button {
        width: 100%;
    }
    
    .customer-group-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* ============================================================================
   Account Overview Widget Styles - Professional Edition
   ============================================================================ */

/* Main Widget Container */
.qb2b-dashboard-widget {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px 0px 20px 0px;
}

.qb2b-dashboard-widget:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    border-color: #d5d8dc;
    transform: translateY(-2px);
}

/* Widget Sizes */
.qb2b-dashboard-widget.widget-size-small {
    grid-column: span 1;
}

.qb2b-dashboard-widget.widget-size-medium {
    grid-column: span 2;
}

.qb2b-dashboard-widget.widget-size-large {
    grid-column: span 3;
}

.qb2b-dashboard-widget.widget-size-full {
    grid-column: 1 / -1;
}

/* Widget Header */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px 24px;
    background: #ffffff;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.widget-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
}

.widget-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.widget-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.widget-refresh,
.widget-minimize {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.widget-refresh:hover,
.widget-minimize:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    transform: scale(1.05);
}

.widget-refresh .dashicons,
.widget-minimize .dashicons {
    color: #64748b;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.widget-refresh:hover .dashicons,
.widget-minimize:hover .dashicons {
    color: #3b82f6;
}

.widget-refresh.loading .dashicons {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Widget Content */
.widget-content {
    padding: 28px 24px;
    background: #ffffff;
}

/* Account Overview Specific Styles */
.qb2b-widget-account-overview {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Welcome Section */
.account-welcome {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.account-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
}

.account-welcome h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.account-welcome .company-info {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

/* Account Stats Grid */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-value .woocommerce-Price-amount {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value .woocommerce-Price-currencySymbol {
    font-size: 24px;
    color: #94a3b8;
    margin-right: 2px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    text-align: center;
}

/* Minimized State */
.qb2b-dashboard-widget.minimized .widget-content {
    display: none;
}

.qb2b-dashboard-widget.minimized {
    grid-row: span 1;
}

/* Widget Variants for Different Account Overview Types */
.widget-account_overview .widget-header {
    background: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .qb2b-dashboard-widget.widget-size-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .qb2b-dashboard-widget.widget-size-large,
    .qb2b-dashboard-widget.widget-size-medium {
        grid-column: span 1;
    }
    
    .widget-header {
        padding: 20px 20px 16px 20px;
    }
    
    .widget-title {
        font-size: 17px;
    }
    
    .widget-content {
        padding: 24px 20px;
    }
    
    .account-welcome {
        padding: 20px;
    }
    
    .account-welcome h3 {
        font-size: 22px;
    }
    
    .account-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 20px 16px;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .stat-value .woocommerce-Price-amount {
        font-size: 32px;
    }
    
    .stat-value .woocommerce-Price-currencySymbol {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .widget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .widget-controls {
        align-self: flex-end;
    }
    
    .widget-content {
        padding: 20px 16px;
    }
    
    .account-welcome {
        padding: 16px;
    }
    
    .account-welcome h3 {
        font-size: 20px;
    }
    
    .stat-item {
        padding: 18px 14px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

/* Print Styles */
@media print {
    .widget-controls {
        display: none;
    }
    
    .qb2b-dashboard-widget {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
    
    .stat-item {
        border-color: #d1d5db;
    }
}

/* Loading State */
.widget-content.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.widget-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================================================
   Recent Orders Widget Styles - Beautiful Card Layout Edition
   ============================================================================ */

/* Widget Header - Clean white with accent */
.widget-recent_orders .widget-header {
    background: #ffffff;
}

.widget-recent_orders .widget-header::after {
    background: linear-gradient(90deg, #0891b2 0%, #06b6d4 100%);
}

/* Recent Orders Widget Content */
.qb2b-widget-recent-orders {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Orders List Container - Grid Layout */
.orders-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
}

/* Individual Order Item - Card Style */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.order-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0891b2 0%, #06b6d4 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-item:hover {
    border-color: #0891b2;
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.12);
    transform: translateY(-4px);
}

.order-item:hover::before {
    transform: scaleX(1);
}

/* Order Header Section */
.order-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-number {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.order-number a {
    color: #0891b2;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.order-number a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0891b2;
    transition: width 0.3s ease;
}

.order-number a:hover {
    color: #0e7490;
}

.order-number a:hover::before {
    width: 100%;
}

.order-date {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-date::before {
    content: '📅';
    font-size: 14px;
}

/* Order Details Section */
.order-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Order Status Badge */
.order-status {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.order-status.status-processing {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.order-status.status-processing:hover {
    background: #bfdbfe;
    border-color: #60a5fa;
}

.order-status.status-completed {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.order-status.status-completed:hover {
    background: #a7f3d0;
    border-color: #34d399;
}

.order-status.status-on-hold {
    background: #fed7aa;
    color: #92400e;
    border-color: #fdba74;
}

.order-status.status-on-hold:hover {
    background: #fdba74;
    border-color: #fb923c;
}

.order-status.status-pending {
    background: #e5e7eb;
    color: #4b5563;
    border-color: #d1d5db;
}

.order-status.status-pending:hover {
    background: #d1d5db;
    border-color: #9ca3af;
}

.order-status.status-cancelled,
.order-status.status-failed {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.order-status.status-cancelled:hover,
.order-status.status-failed:hover {
    background: #fecaca;
    border-color: #f87171;
}

.order-status.status-refunded {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #a5b4fc;
}

.order-status.status-refunded:hover {
    background: #c7d2fe;
    border-color: #818cf8;
}

/* Order Total */
.order-total {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.order-total .woocommerce-Price-amount {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-total .woocommerce-Price-currencySymbol {
    font-size: 15px;
    color: #94a3b8;
    margin-right: 2px;
}

/* Widget Footer */
.widget-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #ffffff;
    color: #0891b2;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #0891b2;
    letter-spacing: 0.3px;
}

.view-all-link:hover {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.25);
    border-color: transparent;
}

.view-all-link::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.view-all-link:hover::after {
    transform: translateX(6px);
}

/* Empty State */
.orders-list:empty::before {
    content: 'No recent orders found';
    display: block;
    text-align: center;
    padding: 56px 24px;
    color: #94a3b8;
    font-style: italic;
    font-size: 14px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 1.5px dashed #a7f3d0;
    line-height: 1.6;
}

/* Loading State */
.orders-list.loading {
    position: relative;
    min-height: 200px;
}

.orders-list.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid #e2e8f0;
    border-top-color: #0891b2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .order-details {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .order-total {
        font-size: 18px;
    }
    
    .order-total .woocommerce-Price-amount {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .order-item {
        padding: 16px;
    }
    
    .order-number {
        font-size: 15px;
    }
    
    .order-date {
        font-size: 12px;
    }
    
    .order-status {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .order-total {
        font-size: 16px;
    }
    
    .view-all-link {
        padding: 12px 24px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}

/* Widget Size Adjustments for Recent Orders */
.widget-recent_orders.widget-size-small .orders-list {
    max-height: 300px;
    overflow-y: auto;
}

.widget-recent_orders.widget-size-medium .orders-list {
    max-height: 400px;
    overflow-y: auto;
}

.widget-recent_orders.widget-size-large .orders-list {
    max-height: 500px;
    overflow-y: auto;
}

/* Custom Scrollbar for Orders List */
.orders-list::-webkit-scrollbar {
    width: 8px;
}

.orders-list::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

.orders-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0891b2 0%, #06b6d4 100%);
    border-radius: 10px;
}

.orders-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0e7490 0%, #0891b2 100%);
}

/* Animation for new orders */
@keyframes slideInOrder {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.order-item.new-order {
    animation: slideInOrder 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print Styles */
@media print {
    .widget-footer {
        display: none;
    }
    
    .order-item {
        border: 1px solid #d1d5db;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .order-item::before {
        display: none;
    }
    
    .orders-list {
        max-height: none !important;
        overflow: visible !important;
    }
}


/* ============================================================================
   Quote Status Widget Styles - Professional Edition
   ============================================================================ */

/* Widget Header - Clean white with purple accent */
.widget-quote_status .widget-header {
    background: #ffffff;
}

.widget-quote_status .widget-header::after {
    background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%);
}

/* Quote Status Widget Content */
.qb2b-widget-quote-status {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Quotes Summary Section */
.quotes-summary {
    display: flex;
    justify-content: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #e9d5ff;
    position: relative;
    overflow: hidden;
}

.quotes-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 50%, #c4b5fd 100%);
}

.quote-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quote-count .count {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.quote-count .label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Quotes List Container */
.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

/* Individual Quote Item */
.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e8eaed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.quote-item:last-child {
    border-bottom: none;
}

.quote-item:hover {
    background: linear-gradient(90deg, #faf5ff 0%, #ffffff 100%);
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 10px;
}

.quote-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #7c3aed 0%, #a78bfa 100%);
    opacity: 0;
    border-radius: 0 4px 4px 0;
    transition: opacity 0.3s ease;
}

.quote-item:hover::before {
    opacity: 1;
}

/* Quote Header Section */
.quote-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-number {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.quote-number:hover {
    color: #7c3aed;
    cursor: pointer;
}

.quote-date {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Quote Details Section */
.quote-details-wid {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Quote Status Badge */
.quote-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-block;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}

.quote-status.status-pending {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.quote-status.status-pending:hover {
    background: #bfdbfe;
    border-color: #60a5fa;
}

.quote-status.status-approved {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.quote-status.status-approved:hover {
    background: #a7f3d0;
    border-color: #34d399;
}

.quote-status.status-rejected {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.quote-status.status-rejected:hover {
    background: #fecaca;
    border-color: #f87171;
}

.quote-status.status-under-review {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.quote-status.status-under-review:hover {
    background: #fde68a;
    border-color: #fbbf24;
}

.quote-status.status-expired {
    background: #e5e7eb;
    color: #4b5563;
    border-color: #d1d5db;
}

.quote-status.status-expired:hover {
    background: #d1d5db;
    border-color: #9ca3af;
}

/* Quote Total */
.quote-total {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.quote-total .woocommerce-Price-amount {
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quote-total .woocommerce-Price-currencySymbol {
    font-size: 13px;
    color: #94a3b8;
    margin-right: 2px;
}

/* Empty State */
.quotes-list:empty::before {
    content: 'No quote requests found';
    display: block;
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
    font-style: italic;
    font-size: 14px;
    background: #faf5ff;
    border-radius: 10px;
    border: 1px dashed #e9d5ff;
}

.qb2b-widget-quote-status .no-quotes {
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
    background: #faf5ff;
    border-radius: 10px;
    border: 1px dashed #e9d5ff;
}

.no-quotes .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    color: #e9d5ff;
    margin-bottom: 16px;
}

.no-quotes p {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
}

.no-quotes .button {
    margin-top: 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-quotes .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
}

/* Action Buttons */
.quote-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.quote-item-actions .button {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Loading State */
.quotes-list.loading {
    position: relative;
    min-height: 200px;
}

.quotes-list.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Widget Size Adjustments */
.widget-quote_status.widget-size-small .quotes-list {
    max-height: 250px;
    overflow-y: auto;
}

.widget-quote_status.widget-size-medium .quotes-list {
    max-height: 350px;
    overflow-y: auto;
}

.widget-quote_status.widget-size-large .quotes-list {
    max-height: 450px;
    overflow-y: auto;
}

/* Custom Scrollbar */
.quotes-list::-webkit-scrollbar {
    width: 8px;
}

.quotes-list::-webkit-scrollbar-track {
    background: #faf5ff;
    border-radius: 10px;
}

.quotes-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed 0%, #a78bfa 100%);
    border-radius: 10px;
}

.quotes-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6d28d9 0%, #7c3aed 100%);
}

/* Animation for new quotes */
@keyframes slideInQuote {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-item.new-quote {
    animation: slideInQuote 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Urgent/Priority Quote Indicator */
.quote-item.urgent {
    border-left: 3px solid #ef4444;
}

.quote-item.urgent::after {
    content: '!';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quotes-summary {
        padding: 24px 16px;
    }
    
    .quote-count .count {
        font-size: 44px;
    }
    
    .quote-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 0;
    }
    
    .quote-details-wid {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .quote-total {
        font-size: 15px;
    }
    
    .quote-total .woocommerce-Price-amount {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .quotes-summary {
        padding: 20px 14px;
    }
    
    .quote-count .count {
        font-size: 40px;
    }
    
    .quote-count .label {
        font-size: 12px;
    }
    
    .quote-number {
        font-size: 14px;
    }
    
    .quote-date {
        font-size: 12px;
    }
    
    .quote-status {
        padding: 5px 12px;
        font-size: 10px;
    }
}

/* Print Styles */
@media print {
    .quotes-summary {
        background: #faf5ff;
        border: 1px solid #e9d5ff;
    }
    
    .quotes-summary::before {
        display: none;
    }
    
    .quote-count .count {
        -webkit-text-fill-color: #7c3aed;
    }
    
    .quote-item:hover::before {
        opacity: 0;
    }
    
    .quotes-list {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .quote-status {
        border: 1px solid #333;
    }
}

/* Special Styling for Different Quote Statuses */
.quote-item.status-approved {
    background: linear-gradient(90deg, transparent, #d1fae508);
}

.quote-item.status-rejected {
    background: linear-gradient(90deg, transparent, #fee2e208);
}

.quote-item.status-under-review {
    background: linear-gradient(90deg, transparent, #fef3c708);
}

/* ============================================================================
   Quick Reorder Widget Styles - Professional Edition
   ============================================================================ */

/* Widget Header - Clean white with green accent */
.widget-quick_order .widget-header {
    background: #ffffff;
}

.widget-quick_order .widget-header::after {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

/* Quick Order Widget Content */
.qb2b-widget-quick-order {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Search Section */
.quick-order-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-order-search input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #e8eaed;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.quick-order-search input[type="text"]:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.quick-order-search .search-button {
    padding: 12px 28px;
    background: #ffffff;
    color: #059669;
    border: 2px solid #059669;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.quick-order-search .search-button:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
    border-color: transparent;
}

/* Frequently Ordered Section */
.frequently-ordered {
    margin-bottom: 20px;
}

.frequently-ordered h4 {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.frequent-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.frequent-product-item {
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.frequent-product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.frequent-product-item:hover {
    border-color: #10b981;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.12);
    transform: translateY(-4px);
}

.frequent-product-item:hover::before {
    opacity: 1;
}

.frequent-product-item .product-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e8eaed;
}

.frequent-product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frequent-product-item .product-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
    line-height: 1.3;
}

.frequent-product-item .product-sku {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 500;
}

.frequent-product-item .quick-add-btn {
    width: 100%;
    padding: 9px 12px;
    background: #ffffff;
    color: #059669;
    border: 1.5px solid #059669;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.frequent-product-item .quick-add-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Quick Add Form */
.quick-add-form {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 1.5px solid #d1fae5;
}

.quick-add-form input[type="text"] {
    flex: 2;
    padding: 11px 14px;
    border: 1.5px solid #d1fae5;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.quick-add-form input[type="text"]:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.quick-add-form input[type="number"] {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #d1fae5;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    background: #ffffff;
    transition: all 0.3s ease;
}

.quick-add-form input[type="number"]:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.quick-add-form .add-button {
    padding: 11px 28px;
    background: #ffffff;
    color: #059669;
    border: 2px solid #059669;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.quick-add-form .add-button:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
    border-color: transparent;
}

/* Recently Added */
.recently-added {
    margin-top: 20px;
}

.recently-added h4 {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.recently-added-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recently-added-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recently-added-item:hover {
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #d1fae5;
    transform: translateX(4px);
}

.recently-added-item .product-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.recently-added-item .product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e8eaed;
    flex-shrink: 0;
}

.recently-added-item .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recently-added-item .product-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recently-added-item .product-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.recently-added-item .product-qty {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.recently-added-item .reorder-btn {
    padding: 8px 18px;
    background: #ffffff;
    color: #059669;
    border: 1.5px solid #059669;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.recently-added-item .reorder-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Placeholder State (current) */
.qb2b-widget-quick-order > p {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
    margin: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 1.5px dashed #d1fae5;
    line-height: 1.6;
}

/* Empty State */
.quick-order-empty {
    text-align: center;
    padding: 48px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 1.5px dashed #d1fae5;
}

.quick-order-empty .dashicons {
    font-size: 72px;
    width: 72px;
    height: 72px;
    color: #d1fae5;
    margin-bottom: 16px;
}

.quick-order-empty h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
}

.quick-order-empty p {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.quick-order-empty .button {
    background: #ffffff;
    color: #059669;
    border: 2px solid #059669;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.quick-order-empty .button:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

/* Loading State */
.quick-order-loading {
    text-align: center;
    padding: 48px;
}

.quick-order-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Success Message */
.quick-order-success {
    padding: 14px 18px;
    background: #d1fae5;
    border: 1.5px solid #10b981;
    border-radius: 10px;
    color: #065f46;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.quick-order-success .dashicons {
    color: #10b981;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .frequent-products {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .frequent-product-item {
        padding: 14px;
    }
    
    .frequent-product-item .product-image {
        width: 70px;
        height: 70px;
    }
    
    .quick-add-form {
        flex-direction: column;
    }
    
    .quick-order-search {
        flex-direction: column;
    }
    
    .quick-order-search .search-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .frequent-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recently-added-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .recently-added-item .reorder-btn {
        width: 100%;
        text-align: center;
    }
    
    .quick-add-form {
        padding: 16px;
    }
}

/* Print Styles */
@media print {
    .quick-add-form,
    .recently-added-item .reorder-btn,
    .quick-order-search .search-button {
        display: none;
    }
    
    .frequent-product-item,
    .recently-added-item {
        border: 1px solid #d1d5db;
    }
}

/* ============================================================================
   Favorite Products Widget Styles - Professional Edition
   ============================================================================ */

/* Widget Header - Clean white with purple accent */
.widget-favorite_products .widget-header {
    background: #ffffff;
}

.widget-favorite_products .widget-header::after {
    background: linear-gradient(90deg, #9333ea 0%, #c084fc 100%);
}

/* Favorite Products Widget Content */
.qb2b-widget-favorite-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Individual Favorite Product Card */
.favorite-product-card {
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.favorite-product-card:hover {
    border-color: #c084fc;
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.12);
    transform: translateY(-4px);
}

/* Product Image Section */
.favorite-product-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f8fafc;
    overflow: hidden;
    border-bottom: 1px solid #e8eaed;
}

.favorite-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorite-product-card:hover .favorite-product-image img {
    transform: scale(1.08);
}

/* Heart Icon (Remove from Favorites) */
.remove-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid #e8eaed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
}

.remove-favorite:hover {
    background: #ffffff;
    border-color: #9333ea;
    transform: scale(1.1);
}

.remove-favorite .dashicons {
    color: #9333ea;
    font-size: 20px;
}

.remove-favorite:hover .dashicons {
    color: #7c3aed;
}

/* Stock Badge */
.stock-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1.5px solid transparent;
}

.stock-badge.in-stock {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.stock-badge.low-stock {
    background: #fed7aa;
    color: #92400e;
    border-color: #fdba74;
}

/* Product Info Section */
.favorite-product-info {
    padding: 16px;
}

.favorite-product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 38px;
}

.favorite-product-sku {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.favorite-product-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.favorite-product-price .woocommerce-Price-currencySymbol {
    font-size: 14px;
    color: #94a3b8;
}

/* Quick Actions */
.favorite-product-actions {
    display: flex;
    gap: 8px;
}

.favorite-product-actions .quick-add {
    flex: 2;
    padding: 10px 12px;
    background: #ffffff;
    color: #9333ea;
    border: 1.5px solid #9333ea;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.favorite-product-actions .quick-add:hover {
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
}

.favorite-product-actions .view-details {
    flex: 1;
    padding: 10px 12px;
    background: #f8fafc;
    color: #64748b;
    border: 1.5px solid #e8eaed;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-product-actions .view-details:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #475569;
}

/* Empty State (current) */
.qb2b-widget-favorite-products > p {
    text-align: center;
    padding: 64px 20px;
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    border: 1.5px dashed #e9d5ff;
    position: relative;
    line-height: 1.6;
}

.qb2b-widget-favorite-products > p::before {
    content: '♥';
    display: block;
    font-size: 72px;
    color: #e9d5ff;
    margin-bottom: 16px;
}

/* Enhanced Empty State */
.favorites-empty {
    text-align: center;
    padding: 56px 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    border: 1.5px dashed #e9d5ff;
}

.favorites-empty .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #e9d5ff;
    margin-bottom: 20px;
}

.favorites-empty h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.favorites-empty p {
    margin: 0 0 24px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.favorites-empty .browse-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #ffffff;
    color: #9333ea;
    border: 2px solid #9333ea;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.favorites-empty .browse-button:hover {
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.25);
}

/* Favorites Stats */
.favorites-stats {
    display: flex;
    justify-content: space-around;
    padding: 24px 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e9d5ff;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Quick Filter Tabs */
.favorites-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 9px 18px;
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.filter-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
}

.filter-tab.active {
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Loading State */
.favorites-loading {
    text-align: center;
    padding: 64px;
}

.favorites-loading::after {
    content: '';
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 3px solid #e2e8f0;
    border-top-color: #9333ea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .favorite-product-image {
        height: 160px;
    }
    
    .favorite-product-info {
        padding: 14px;
    }
    
    .favorites-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .favorites-filters {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .favorite-product-card {
        display: flex;
    }
    
    .favorite-product-image {
        width: 130px;
        height: auto;
        border-bottom: none;
        border-right: 1px solid #e8eaed;
    }
    
    .favorite-product-info {
        flex: 1;
    }
    
    .qb2b-widget-favorite-products > p {
        padding: 56px 20px;
    }
    
    .qb2b-widget-favorite-products > p::before {
        font-size: 56px;
    }
    
    .favorites-empty {
        padding: 48px 20px;
    }
}

/* Print Styles */
@media print {
    .remove-favorite,
    .favorite-product-actions {
        display: none;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .favorite-product-card {
        border: 1px solid #d1d5db;
    }
}

/* Special Effects */
.favorite-product-card.recently-added {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Heart Animation on Add/Remove */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

.remove-favorite.animate-heart {
    animation: heartBeat 0.6s ease;
}

/* Additional professional touch - hover effect on image */
.favorite-product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9333ea 0%, #c084fc 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.favorite-product-card:hover::after {
    opacity: 1;
}

/* ============================================================================
   Order History Summary Widget Styles - Professional Edition
   ============================================================================ */

/* Widget Header - Clean white with slate accent */
.widget-order_history_summary .widget-header {
    background: #ffffff;
}

.widget-order_history_summary .widget-header::after {
    background: linear-gradient(90deg, #475569 0%, #64748b 100%);
}

/* Order History Widget Content */
.qb2b-widget-order-history {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* History Stats Grid */
.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* Individual Stat Card */
.history-stats .stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.history-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #475569 0%, #64748b 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-stats .stat-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 8px 24px rgba(100, 116, 139, 0.12);
    transform: translateY(-4px);
}

.history-stats .stat-card:hover::before {
    transform: scaleY(1);
}

/* Stat Icon */
.stat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid #e8eaed;
}

.stat-icon .emoji {
    width: 36px;
    height: 36px;
    font-size: 36px;
}

.stat-icon img {
    width: 36px;
    height: 36px;
}

/* Stat Content */
.stat-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-content h4 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-content p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Order Timeline */
.order-timeline {
    margin-top: 20px;
}

.order-timeline h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, #cbd5e0 0%, #e8eaed 100%);
}

.timeline-item {
    position: relative;
    padding: 15px 0;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 18px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #e8eaed;
    z-index: 1;
}

.timeline-date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.timeline-content {
    background: #ffffff;
    padding: 16px;
    border-radius: 10px;
    border: 1.5px solid #e8eaed;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 16px rgba(100, 116, 139, 0.08);
    transform: translateX(4px);
}

.timeline-order-number {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 14px;
}

.timeline-order-status {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Order Chart Section */
.order-chart-section {
    margin-top: 24px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid #e8eaed;
}

.order-chart-section h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.chart-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    color: #94a3b8;
    font-style: italic;
    border: 1px solid #e8eaed;
}

/* Top Products Section */
.top-products {
    margin-top: 24px;
}

.top-products h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.top-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-product-item:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 16px rgba(100, 116, 139, 0.08);
    transform: translateX(4px);
}

.top-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-product-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.top-product-details .product-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    font-size: 14px;
}

.top-product-details .product-meta {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.top-product-stats {
    text-align: right;
}

.order-count {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    letter-spacing: -0.5px;
}

.total-spent {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Monthly Breakdown */
.monthly-breakdown {
    margin-top: 24px;
}

.monthly-breakdown h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.month-card {
    padding: 16px;
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.month-card:hover {
    border-color: #94a3b8;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.1);
}

.month-name {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.month-orders {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* Empty State */
.order-history-empty {
    text-align: center;
    padding: 56px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1.5px dashed #cbd5e0;
}

.order-history-empty .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.order-history-empty h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.order-history-empty p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .history-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .history-stats {
        grid-template-columns: 1fr;
    }
    
    .history-stats .stat-card {
        padding: 18px;
    }
    
    .stat-icon {
        width: 56px;
        height: 56px;
    }
    
    .stat-icon .emoji,
    .stat-icon img {
        width: 32px;
        height: 32px;
        font-size: 32px;
    }
    
    .stat-content h4 {
        font-size: 28px;
    }
    
    .timeline {
        padding-left: 32px;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    .timeline-item::before {
        left: -29px;
    }
    
    .top-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .top-product-stats {
        text-align: left;
        width: 100%;
    }
    
    .months-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .stat-content h4 {
        font-size: 24px;
    }
    
    .order-chart-section {
        padding: 20px;
    }
    
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-placeholder {
        height: 200px;
        font-size: 13px;
    }
    
    .order-history-empty {
        padding: 48px 20px;
    }
}

/* Print Styles */
@media print {
    .history-stats .stat-card::before {
        transform: scaleY(1);
    }
    
    .order-chart-section {
        break-inside: avoid;
    }
    
    .history-stats .stat-card,
    .timeline-content,
    .top-product-item,
    .month-card {
        border: 1px solid #d1d5db;
    }
}

/* Loading Animation */
.order-history-loading {
    text-align: center;
    padding: 64px 20px;
}

.order-history-loading::after {
    content: '';
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 3px solid #e2e8f0;
    border-top-color: #64748b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================================================
   Account Manager Widget Styles - Professional Edition
   ============================================================================ */

/* Widget Header - Clean white with teal accent */
.widget-account_manager .widget-header {
    background: #ffffff;
}

.widget-account_manager .widget-header::after {
    background: linear-gradient(90deg, #0d9488 0%, #14b8a6 100%);
}

/* Account Manager Widget Content */
.qb2b-widget-account-manager {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Manager Card */
.manager-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid #e8eaed;
    position: relative;
}

.manager-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid #14b8a6;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.15);
    background: #f8fafc;
}

.manager-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manager-avatar-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.15);
}

.manager-avatar-placeholder .dashicons {
    font-size: 44px;
    color: #ffffff;
}

.manager-info {
    margin-bottom: 16px;
}

.manager-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.manager-title {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.manager-email,
.manager-phone {
    font-size: 14px;
    color: #0d9488;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.manager-email:hover,
.manager-phone:hover {
    color: #0f766e;
    transform: translateX(2px);
}

.manager-email .dashicons,
.manager-phone .dashicons {
    font-size: 18px;
}

/* Contact Actions */
.manager-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}

.manager-actions .button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.manager-actions .contact-button {
    background: #ffffff;
    color: #0d9488;
    border: 2px solid #0d9488;
}

.manager-actions .contact-button:hover {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}

.manager-actions .schedule-button {
    background: #f8fafc;
    color: #64748b;
    border: 1.5px solid #e8eaed;
}

.manager-actions .schedule-button:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #475569;
}

/* Availability Status */
.manager-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #d1fae5;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

.availability-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.availability-dot.available {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.availability-dot.busy {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.availability-dot.offline {
    background: #94a3b8;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* No Manager State (current) */
.no-manager {
    text-align: center;
    padding: 56px 24px;
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 1.5px dashed #d1fae5;
    position: relative;
    line-height: 1.6;
}

.no-manager::before {
    content: '👤';
    display: block;
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Enhanced Empty State */
.manager-empty {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 1.5px dashed #d1fae5;
}

.manager-empty .dashicons {
    font-size: 72px;
    width: 72px;
    height: 72px;
    color: #a7f3d0;
    margin-bottom: 16px;
}

.manager-empty h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.manager-empty p {
    margin: 0 0 24px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.manager-empty .request-button {
    padding: 12px 28px;
    background: #ffffff;
    color: #0d9488;
    border: 2px solid #0d9488;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.manager-empty .request-button:hover {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}

/* Quick Stats */
.manager-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1.5px solid #e8eaed;
}

.stat-item-small {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

.stat-item-small .stat-value {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.stat-item-small .stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

/* Response Time Badge */
.response-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #d1fae5;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #0d9488;
    margin-top: 12px;
}

.response-time .dashicons {
    font-size: 16px;
}

/* Social Links */
.manager-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid #e8eaed;
}

.social-link:hover {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

/* Loading State */
.manager-loading {
    text-align: center;
    padding: 64px 24px;
}

.manager-loading::after {
    content: '';
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 3px solid #e2e8f0;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .manager-card {
        padding: 24px 20px;
    }
    
    .manager-avatar,
    .manager-avatar-placeholder {
        width: 76px;
        height: 76px;
    }
    
    .manager-avatar-placeholder .dashicons {
        font-size: 40px;
    }
    
    .manager-name {
        font-size: 18px;
    }
    
    .manager-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .no-manager {
        padding: 48px 20px;
    }
    
    .no-manager::before {
        font-size: 48px;
    }
    
    .manager-empty {
        padding: 40px 20px;
    }
    
    .manager-stats {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .manager-actions,
    .widget-controls {
        display: none;
    }
    
    .manager-card {
        background: #ffffff;
        border: 1px solid #d1d5db;
    }
}

/* Badge for VIP/Priority Account Manager */
.manager-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    color: #ffffff;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ============================================================================
   Announcements Widget Styles - Professional Edition
   ============================================================================ */

/* Widget Header - Clean white with indigo accent */
.widget-announcements .widget-header {
    background: #ffffff;
}

.widget-announcements .widget-header::after {
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
}

/* Announcements Widget Content */
.qb2b-widget-announcements {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Announcement Items List */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Individual Announcement Item */
.announcement-item {
    padding: 18px 20px;
    background: #ffffff;
    border-left: 4px solid #6366f1;
    border-radius: 10px;
    border: 1.5px solid #e8eaed;
    border-left: 4px solid #6366f1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.announcement-item:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
    transform: translateX(6px);
    border-color: #c7d2fe;
}

.announcement-item.unread {
    background: linear-gradient(90deg, #eef2ff 0%, #ffffff 100%);
    border-left-width: 5px;
}

.announcement-item.unread::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    animation: pulse 2s infinite;
}

/* Announcement Header */
.announcement-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.announcement-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-icon .dashicons {
    font-size: 20px;
    color: #6366f1;
}

.announcement-title-section {
    flex: 1;
}

.announcement-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.announcement-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.announcement-date .dashicons {
    font-size: 16px;
    color: #94a3b8;
}

.announcement-category {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
    border: 1.5px solid transparent;
}

.announcement-category.urgent {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.announcement-category.info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.announcement-category.update {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

/* Announcement Content */
.announcement-content {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* Announcement Actions */
.announcement-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1.5px solid #f1f5f9;
}

.announcement-actions .button {
    padding: 8px 16px;
    font-size: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.announcement-actions .read-more {
    background: #ffffff;
    color: #6366f1;
    border: 1.5px solid #6366f1;
}

.announcement-actions .read-more:hover {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: #ffffff;
    border-color: transparent;
}

.announcement-actions .dismiss {
    background: #f8fafc;
    color: #64748b;
    border: 1.5px solid #e8eaed;
}

.announcement-actions .dismiss:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    color: #475569;
}

/* Empty State (current) */
.qb2b-widget-announcements > p {
    text-align: center;
    padding: 56px 24px;
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 12px;
    border: 1.5px dashed #ddd6fe;
    position: relative;
    line-height: 1.6;
}

.qb2b-widget-announcements > p::before {
    content: '📢';
    display: block;
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.6;
}

/* Enhanced Empty State */
.announcements-empty {
    text-align: center;
    padding: 56px 24px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 12px;
    border: 1.5px dashed #ddd6fe;
}

.announcements-empty .dashicons {
    font-size: 72px;
    width: 72px;
    height: 72px;
    color: #ddd6fe;
    margin-bottom: 20px;
}

.announcements-empty h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.announcements-empty p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Priority/Pinned Announcement */
.announcement-item.pinned {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
}

.announcement-item.pinned .announcement-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.announcement-item.pinned .announcement-icon .dashicons {
    color: #f59e0b;
}

/* Badge for Pinned/Important */
.announcement-badge {
    position: absolute;
    top: -10px;
    right: 18px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #ffffff;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Announcement Attachments */
.announcement-attachments {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f8fafc;
    border: 1.5px solid #e8eaed;
    border-radius: 8px;
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.attachment-link:hover {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: #ffffff;
    border-color: transparent;
}

.attachment-link .dashicons {
    font-size: 16px;
}

/* Filter Tabs */
.announcements-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 9px 18px;
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.filter-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
}

.filter-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Loading State */
.announcements-loading {
    text-align: center;
    padding: 64px 24px;
}

.announcements-loading::after {
    content: '';
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* View All Link */
.view-all-announcements {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1.5px solid #f1f5f9;
}

.view-all-announcements a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.view-all-announcements a:hover {
    color: #4f46e5;
}

.view-all-announcements a::after {
    content: '→';
    transition: transform 0.3s ease;
    font-size: 16px;
}

.view-all-announcements a:hover::after {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .announcement-item {
        padding: 16px 18px;
    }
    
    .announcement-header {
        gap: 12px;
    }
    
    .announcement-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .announcement-actions {
        flex-direction: column;
    }
    
    .announcement-actions .button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .announcements-filters {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .qb2b-widget-announcements > p {
        padding: 48px 20px;
    }
    
    .qb2b-widget-announcements > p::before {
        font-size: 48px;
    }
    
    .announcements-empty {
        padding: 48px 20px;
    }
    
    .announcement-icon {
        width: 36px;
        height: 36px;
    }
    
    .announcement-icon .dashicons {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .announcement-actions,
    .announcements-filters,
    .view-all-announcements {
        display: none;
    }
    
    .announcement-item {
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
}

/* Slide-in animation for new announcements */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.announcement-item.new-announcement {
    animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}




/* ============================================================================
   Others
   ============================================================================ */

.widget-content.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
    min-height: 100px;
}

.widget-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.widget-refresh .dashicons.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error-message {
    padding: 20px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    text-align: center;
    margin: 20px;
}

/* ============================================================================
   Customize Modal
   ============================================================================ */

   /* ============================================================================
   Dashboard Customization Panel - Modal Overlay
   ============================================================================ */

.qb2b-dashboard-customization {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    overflow: auto;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.qb2b-dashboard-customization[style*="display: block"],
.qb2b-dashboard-customization.active {
    display: flex !important;
}

/* Customization Panel Content */
.customization-panel {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Panel Header */
.panel-header {
    padding: 24px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    flex-shrink: 0;
}

.panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.panel-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: #64748b;
    transition: all 0.2s ease;
    padding: 0;
}

.panel-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: rotate(90deg);
}

/* Panel Content - Scrollable */
.panel-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Customization Sections */
.customization-section {
    margin-bottom: 32px;
}

.customization-section:last-child {
    margin-bottom: 0;
}

.customization-section h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Layout Options */
.layout-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.layout-options label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.layout-options label:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.layout-options input[type="radio"] {
    margin-bottom: 12px;
}

.layout-options input[type="radio"]:checked + .layout-preview {
    border-color: #3b82f6;
    background: #dbeafe;
}

.layout-preview {
    width: 80px;
    height: 60px;
    border: 2px solid #e8eaed;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.layout-preview.grid-preview {
    background: repeating-linear-gradient(
        45deg,
        #f8fafc,
        #f8fafc 5px,
        #e8eaed 5px,
        #e8eaed 10px
    );
}

.layout-preview.list-preview {
    background: repeating-linear-gradient(
        0deg,
        #f8fafc,
        #f8fafc 8px,
        #e8eaed 8px,
        #e8eaed 10px
    );
}

/* Widget Toggles */
.widget-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-toggle {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1.5px solid #e8eaed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.widget-toggle:hover {
    background: #ffffff;
    border-color: #cbd5e0;
}

.widget-toggle input[type="checkbox"] {
    margin-right: 12px;
}

.widget-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Widget Order List */
.widget-order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-order-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 8px;
    cursor: move;
    transition: all 0.2s ease;
}

.widget-order-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.drag-handle {
    margin-right: 12px;
    color: #94a3b8;
    font-size: 20px;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.widget-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.widget-order-placeholder {
    border: 2px dashed #3b82f6;
    background: #dbeafe;
    border-radius: 8px;
}

/* Panel Footer */
.panel-footer {
    padding: 20px 24px;
    border-top: 2px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    flex-shrink: 0;
}

.panel-footer .button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.panel-footer .button-secondary {
    background: #ffffff;
    color: #64748b;
    border: 1.5px solid #e8eaed;
}

.panel-footer .button-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
}

.panel-footer .button-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
}

.panel-footer .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .qb2b-dashboard-customization {
        padding: 10px;
    }
    
    .customization-panel {
        max-height: 95vh;
    }
    
    .panel-header,
    .panel-content {
        padding: 20px;
    }
    
    .layout-options {
        grid-template-columns: 1fr;
    }
    
    .panel-footer {
        flex-direction: column;
    }
    
    .panel-footer .button {
        width: 100%;
    }
}




/* ============================================
   FLOATING ACTION BUTTON (FAB) STYLES
   ============================================ */

.qb2b-floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
}

/* FAB Trigger Button */
.fab-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 9999;
}

.fab-trigger:hover {
    background: linear-gradient(135deg, #135e96 0%, #0d4a73 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.fab-trigger .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    line-height: 28px;
}

.fab-trigger.active {
    transform: rotate(45deg) scale(1.1);
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
}

/* FAB Menu Container */
.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab-menu:not([style*="display: none"]) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* FAB Menu Items */
.fab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    text-decoration: none;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
}

.fab-item:hover {
    background: #2271b1;
    color: #fff;
    transform: translateX(-8px);
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.3);
}

.fab-item:hover .dashicons {
    color: #fff;
}

.fab-item .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    color: #2271b1;
    flex-shrink: 0;
    transition: color 0.2s;
}

/* Animation for individual items */
.fab-menu .fab-item:nth-child(1) {
    animation: fadeInUp 0.3s ease 0.1s backwards;
}

.fab-menu .fab-item:nth-child(2) {
    animation: fadeInUp 0.3s ease 0.2s backwards;
}

.fab-menu .fab-item:nth-child(3) {
    animation: fadeInUp 0.3s ease 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .qb2b-floating-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-menu {
        min-width: 180px;
    }
    
    .fab-item {
        padding: 12px 14px;
        font-size: 13px;
    }
}


#fab-menu.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* ============================================================================
   Quick Quote Modal Styles - Professional Edition
   ============================================================================ */

/* Modal Overlay */
.qb2b-modal {
    display: none;
    position: fixed;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6) !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qb2b-modal[style*="display: flex"],
.qb2b-modal[style*="display: block"] {
    display: flex !important;
}

/* Modal Content Container */
.qb2b-modal-content {
    position: relative;
    background-color: #ffffff;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000000 !important;
    animation: modalFadeIn 0.3s ease-out;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header */
.qb2b-modal-header {
    padding: 24px 28px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.qb2b-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.qb2b-modal-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qb2b-modal-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: rotate(90deg);
}

/* Modal Body - Scrollable */
.qb2b-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

/* Custom Scrollbar */
.qb2b-modal-body::-webkit-scrollbar {
    width: 8px;
}

.qb2b-modal-body::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

.qb2b-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
}

.qb2b-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
}

/* Modal Footer */
.qb2b-modal-footer {
    padding: 20px 28px;
    border-top: 2px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

.qb2b-modal-footer .button {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.3px;
}

.qb2b-modal-cancel {
    background: #ffffff;
    color: #64748b;
    border: 1.5px solid #e8eaed !important;
}

.qb2b-modal-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e0 !important;
    color: #475569;
}

.qb2b-modal-footer .button-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
}

.qb2b-modal-footer .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.qb2b-modal-footer .button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Styles */
.qb2b-form .form-row {
    margin-bottom: 24px;
}

.qb2b-form .form-group {
    display: flex;
    flex-direction: column;
}

.qb2b-form .form-group.full-width {
    width: 100%;
}

.qb2b-form .form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 14px;
}

.qb2b-form input[type="text"],
.qb2b-form input[type="search"],
.qb2b-form textarea {
    padding: 12px 16px;
    border: 1.5px solid #e8eaed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.qb2b-form input[type="text"]:focus,
.qb2b-form input[type="search"]:focus,
.qb2b-form textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.qb2b-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Search Results Container */
.search-results {
    position: relative;
    margin-top: 10px;
}

.quote-search-results-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1.5px solid #e8eaed;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Individual Search Result */
.quote-search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.quote-search-result-item:last-child {
    border-bottom: none;
}

.quote-search-result-item:hover {
    background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%);
}

.product-info-quick {
    flex: 1;
}

.product-name-quick {
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
    font-size: 14px;
}

.product-sku-quick,
.product-price-quick {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.add-to-quote-btn {
    padding: 8px 18px;
    background: #ffffff;
    color: #3b82f6;
    border: 1.5px solid #3b82f6;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-to-quote-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Selected Products Section */
.selected-products {
    margin-top: 24px;
}

.quote-product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 1.5px solid #e8eaed;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.quote-product-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.quote-product-details {
    flex: 1;
}

.quote-product-details .product-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 14px;
}

.quote-product-details .product-meta {
    font-size: 13px;
    color: #64748b;
}

/* Quantity Input */
.quote-product-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-product-quantity label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.quote-quantity-input {
    width: 70px;
    padding: 8px 12px;
    border: 1.5px solid #e8eaed;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quote-quantity-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Remove Button */
.remove-quote-product {
    background: #fee2e2;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-quote-product:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: scale(1.1);
}

/* No Results / Error Messages */
.no-results,
.error {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 10px 0;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qb2b-modal {
        padding: 10px;
    }
    
    .qb2b-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .qb2b-modal-header,
    .qb2b-modal-body,
    .qb2b-modal-footer {
        padding: 20px;
    }
    
    .quote-search-result-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .add-to-quote-btn {
        width: 100%;
        text-align: center;
    }
    
    .quote-product-item {
        flex-wrap: wrap;
    }
    
    .quote-product-quantity {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .qb2b-modal-header h3 {
        font-size: 18px;
    }
    
    .qb2b-modal-footer {
        flex-direction: column;
    }
    
    .qb2b-modal-footer .button {
        width: 100%;
    }
}

/* Loading State */
.qb2b-modal-body.loading {
    position: relative;
    min-height: 200px;
    pointer-events: none;
}

.qb2b-modal-body.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================================
   Dashboard Layouts - Grid & List Views
   ============================================================================ */

/* Default Grid Layout */
.qb2b-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Widget Sizing in Grid Layout */
.qb2b-dashboard-widgets[data-layout="grid"] .widget-size-small {
    grid-column: span 1;
}

.qb2b-dashboard-widgets[data-layout="grid"] .widget-size-medium {
    grid-column: span 1;
}

.qb2b-dashboard-widgets[data-layout="grid"] .widget-size-large {
    grid-column: span 2;
}

/* List Layout */
.qb2b-dashboard-widgets[data-layout="list"] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qb2b-dashboard-widgets[data-layout="list"] .qb2b-dashboard-widget {
    grid-column: span 1;
    width: 100%;
}

/* Compact widgets in list view */
.qb2b-dashboard-widgets[data-layout="list"] .widget-content {
    max-height: 400px;
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .qb2b-dashboard-widgets[data-layout="grid"] {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .qb2b-dashboard-widgets[data-layout="grid"] .widget-size-large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .qb2b-dashboard-widgets {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .qb2b-dashboard-widgets[data-layout="grid"] .widget-size-small,
    .qb2b-dashboard-widgets[data-layout="grid"] .widget-size-medium,
    .qb2b-dashboard-widgets[data-layout="grid"] .widget-size-large {
        grid-column: span 1;
    }
}

/* Layout Preview Styles */
.layout-preview {
    width: 80px;
    height: 60px;
    border: 2px solid #e8eaed;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.layout-preview.grid-preview {
    background: #ffffff;
    position: relative;
}

/* Grid pattern */
.layout-preview.grid-preview::before,
.layout-preview.grid-preview::after {
    content: '';
    position: absolute;
    background: #3b82f6;
    border-radius: 2px;
}

.layout-preview.grid-preview::before {
    width: 30px;
    height: 20px;
    top: 8px;
    left: 8px;
}

.layout-preview.grid-preview::after {
    width: 30px;
    height: 20px;
    top: 8px;
    right: 8px;
}

.layout-preview.list-preview {
    background: #ffffff;
    position: relative;
}

/* List pattern */
.layout-preview.list-preview::before,
.layout-preview.list-preview::after {
    content: '';
    position: absolute;
    background: #3b82f6;
    border-radius: 2px;
    left: 8px;
    right: 8px;
    height: 8px;
}

.layout-preview.list-preview::before {
    top: 12px;
}

.layout-preview.list-preview::after {
    bottom: 12px;
}

/* Selected state */
.layout-options input[type="radio"]:checked + .layout-preview {
    border-color: #3b82f6;
    background: #dbeafe;
}

.layout-options input[type="radio"]:checked + .layout-preview.grid-preview::before,
.layout-options input[type="radio"]:checked + .layout-preview.grid-preview::after,
.layout-options input[type="radio"]:checked + .layout-preview.list-preview::before,
.layout-options input[type="radio"]:checked + .layout-preview.list-preview::after {
    background: #2563eb;
}

/* ============================================================================
   Layout-Specific Widget Heights
   ============================================================================ */

/* LIST VIEW - Expanded, no scrollbars */
.qb2b-dashboard-widgets[data-layout="list"] .widget-content {
    max-height: none !important;
    overflow: visible !important;
}

/* Remove all nested scrollbars in list view */
.qb2b-dashboard-widgets[data-layout="list"] .orders-list,
.qb2b-dashboard-widgets[data-layout="list"] .quotes-list,
.qb2b-dashboard-widgets[data-layout="list"] .widget-content > * {
    max-height: none !important;
    overflow: visible !important;
}

/* Hide scrollbars in list view */
.qb2b-dashboard-widgets[data-layout="list"] .widget-content::-webkit-scrollbar,
.qb2b-dashboard-widgets[data-layout="list"] .orders-list::-webkit-scrollbar {
    display: none !important;
}

.qb2b-dashboard-widgets[data-layout="list"] .widget-content,
.qb2b-dashboard-widgets[data-layout="list"] .orders-list {
    scrollbar-width: none !important;
}

/* Ensure widgets expand to full height in list view */
.qb2b-dashboard-widgets[data-layout="list"] .qb2b-dashboard-widget {
    height: auto !important;
    min-height: auto !important;
}

/* Remove widget size restrictions in list view */
.qb2b-dashboard-widgets[data-layout="list"] .widget-size-small .orders-list,
.qb2b-dashboard-widgets[data-layout="list"] .widget-size-medium .orders-list,
.qb2b-dashboard-widgets[data-layout="list"] .widget-size-large .orders-list {
    max-height: none !important;
    overflow: visible !important;
}

/* Responsive - Mobile always acts like list view */
@media (max-width: 768px) {
    .qb2b-dashboard-widgets .widget-content {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .qb2b-dashboard-widgets .widget-content::-webkit-scrollbar {
        display: none !important;
    }
}


/* Disabled Quick Quote Button */
.fab-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.fab-item.disabled::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 5px;
}

.fab-item.disabled:hover::after {
    opacity: 1;
}

.feature-disabled-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Alternative: Show a notice instead */
.fab-quick-quote.disabled .dashicons {
    opacity: 0.5;
}


/* Quick Reorder Widget Styles */
.qb2b-widget-quick-order .quick-order-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quick-order-item:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quick-order-item .product-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.quick-order-item .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.quick-order-item .product-info {
    flex: 1;
    min-width: 0;
}

.quick-order-item .product-title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
}

.quick-order-item .product-title a {
    color: #333;
    text-decoration: none;
}

.quick-order-item .product-sku,
.quick-order-item .order-frequency {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.quick-order-item .product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.quick-order-item .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.quick-reorder-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quick-reorder-form .quantity-input {
    width: 60px;
}

.quick-reorder-form input.qty {
    width: 100%;
    padding: 6px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quick-reorder-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px !important;
    font-size: 13px;
    white-space: nowrap;
}

.quick-reorder-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.quick-order-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.view-all-orders {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.qb2b-widget-quick-order .empty-state {
    text-align: center;
    padding: 40px 20px;
}

.qb2b-widget-quick-order .empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

/* Favorite Products Widget Styles */
.qb2b-widget-favorite-products .favorite-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.favorite-product-card {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.favorite-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.favorite-product-card .remove-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.favorite-product-card .remove-favorite:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.favorite-product-card .remove-favorite .dashicons {
    color: #e74c3c;
    font-size: 18px;
    transition: color 0.3s ease;
}

.favorite-product-card .remove-favorite:hover .dashicons {
    color: #fff;
}

.favorite-product-card .product-image {
    margin-bottom: 12px;
    text-align: center;
}

.favorite-product-card .product-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.favorite-product-card .product-details {
    margin-bottom: 12px;
}

.favorite-product-card .product-name {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.favorite-product-card .product-name a {
    color: #333;
    text-decoration: none;
}

.favorite-product-card .product-name a:hover {
    color: #0073aa;
}

.favorite-product-card .product-sku {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.favorite-product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.favorite-product-card .stock-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.favorite-product-card .stock-status.in-stock {
    background: #d4edda;
    color: #155724;
}

.favorite-product-card .stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.favorite-product-card .stock-status .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.favorite-product-card .product-actions {
    margin-top: 12px;
}

.favorite-product-card .add-to-cart-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.favorite-product-card .qty-input {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.favorite-product-card .button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px !important;
    font-size: 13px;
}

.favorite-product-card .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.favorites-footer {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.favorites-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Empty State */
.qb2b-widget-favorite-products .empty-state {
    text-align: center;
    padding: 40px 20px;
}

.qb2b-widget-favorite-products .empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.qb2b-widget-favorite-products .empty-state .help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Notifications */
.qb2b-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.qb2b-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.qb2b-notification.success {
    border-left: 4px solid #28a745;
}

.qb2b-notification.error {
    border-left: 4px solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .qb2b-widget-favorite-products .favorite-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Announcements Widget Styles */
.qb2b-widget-announcements .announcements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-item {
    position: relative;
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-left: 4px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.announcement-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Announcement Types */
.announcement-info {
    border-left-color: #3498db;
}

.announcement-success {
    border-left-color: #27ae60;
}

.announcement-warning {
    border-left-color: #f39c12;
}

.announcement-alert {
    border-left-color: #e74c3c;
}

.announcement-update {
    border-left-color: #9b59b6;
}

.announcement-promotion {
    border-left-color: #e67e22;
}

.announcement-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.announcement-info .announcement-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.announcement-success .announcement-icon {
    background: #e8f5e9;
    color: #2e7d32;
}

.announcement-warning .announcement-icon {
    background: #fff3e0;
    color: #f57c00;
}

.announcement-alert .announcement-icon {
    background: #ffebee;
    color: #c62828;
}

.announcement-update .announcement-icon {
    background: #f3e5f5;
    color: #7b1fa2;
}

.announcement-promotion .announcement-icon {
    background: #fbe9e7;
    color: #d84315;
}

.announcement-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.announcement-content {
    flex: 1;
    min-width: 0;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.announcement-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.announcement-date {
    font-size: 12px;
    color: #7f8c8d;
    white-space: nowrap;
}

.announcement-message {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.announcement-message p {
    margin: 0 0 10px;
}

.announcement-message p:last-child {
    margin-bottom: 0;
}

.announcement-action {
    margin-top: 12px;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.announcement-link:hover {
    color: #005177;
}

.announcement-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.announcement-expiry {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 8px;
}

.announcement-expiry .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.dismiss-announcement {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #95a5a6;
    transition: all 0.3s ease;
}

.dismiss-announcement:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.dismiss-announcement .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.announcements-footer {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.dismiss-all-announcements {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 13px;
}

.dismiss-all-announcements:hover {
    color: #e74c3c;
}

/* Empty State */
.qb2b-widget-announcements .empty-state {
    text-align: center;
    padding: 40px 20px;
}

.qb2b-widget-announcements .empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #95a5a6;
    margin-bottom: 15px;
}

.qb2b-widget-announcements .empty-state .help-text {
    color: #7f8c8d;
    font-size: 14px;
}

/* Admin Announcements Manager */
.qb2b-announcements-manager {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.announcements-header {
    margin-bottom: 20px;
}

.announcement-editor {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.announcement-editor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    cursor: move;
}

.drag-handle {
    color: #95a5a6;
    font-size: 20px;
    cursor: grab;
}

.announcement-title-input {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.announcement-editor-body {
    padding: 20px;
}

.form-row.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .announcement-item {
        flex-direction: column;
    }
    
    .dismiss-announcement {
        top: 10px;
        right: 10px;
    }
    
    .form-row.two-columns {
        grid-template-columns: 1fr;
    }
}

/* Account Manager Widget Styles */
.qb2b-widget-account-manager .manager-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.manager-avatar {
    flex-shrink: 0;
}

.manager-avatar img {
    border-radius: 50%;
    border: 0px solid rgba(255, 255, 255, 0.3);
}

.manager-info {
    flex: 1;
}

.manager-name {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.manager-title {
    margin: 0 0 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.manager-bio {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.manager-contact {
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-item .dashicons {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.manager-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.manager-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.manager-actions .button-primary {
    background: #fff;
    color: #667eea;
}

.manager-actions .button-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.manager-actions .button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.manager-actions .button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.manager-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Empty State */
.qb2b-widget-account-manager .empty-state {
    text-align: center;
    padding: 40px 20px;
}

.qb2b-widget-account-manager .empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #95a5a6;
    margin-bottom: 15px;
}

.qb2b-widget-account-manager .empty-state .help-text {
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .qb2b-widget-account-manager .manager-card {
        flex-direction: column;
        text-align: center;
    }
    
    .manager-actions {
        flex-direction: column;
    }
    
    .manager-actions .button {
        width: 100%;
        justify-content: center;
    }
}
