/* Live Quote Calculator Styles */

.mqb-live-calculator {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e0e0e0;
}

.mqb-live-calculator.sticky {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    z-index: 9999;
    animation: slideInRight 0.4s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mqb-live-calculator.updating {
    border-color: #4caf50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.mqb-calc-header {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mqb-calc-icon {
    font-size: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.mqb-calc-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mqb-calc-body {
    padding: 20px;
}

.mqb-calc-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.mqb-calc-label {
    color: #666;
    font-weight: 500;
}

.mqb-calc-value {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.mqb-calc-modifier {
    font-size: 14px;
    padding: 8px 12px;
    margin: 4px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.mqb-calc-modifier .mqb-calc-label {
    font-size: 13px;
    color: #667eea;
}

.mqb-calc-modifier .mqb-calc-value {
    font-size: 14px;
    color: #667eea;
}

.mqb-calc-modifiers {
    margin: 8px 0;
    display: none;
}

.mqb-calc-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e0e0e0 50%, transparent 100%);
    margin: 12px 0;
}

.mqb-calc-subtotal .mqb-calc-value {
    font-size: 18px;
}

.mqb-calc-vat {
    opacity: 0.8;
    font-size: 13px;
}

.mqb-calc-total {
    padding: 16px 0 8px;
}

.mqb-calc-total .mqb-calc-label {
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.mqb-calc-total-value {
    font-size: 28px !important;
    color: #4caf50 !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.mqb-calc-footer {
    background: #f8f9fa;
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.mqb-calc-footer small {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* Pulse animation when updating */
.mqb-live-calculator.updating .mqb-calc-total-value {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Number change animation */
.mqb-calc-value span {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .mqb-live-calculator.sticky {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .mqb-calc-total-value {
        font-size: 24px !important;
    }
    
    .mqb-calc-header {
        padding: 14px 16px;
    }
    
    .mqb-calc-body {
        padding: 16px;
    }
}

/* Compact mode for small screens */
@media (max-width: 480px) {
    .mqb-calc-line {
        padding: 8px 0;
        font-size: 14px;
    }
    
    .mqb-calc-value {
        font-size: 15px;
    }
    
    .mqb-calc-total-value {
        font-size: 22px !important;
    }
}

/* Print styles */
@media print {
    .mqb-live-calculator.sticky {
        position: static !important;
    }
}

