/* assets/css/frontend.css */

/* Limit notice */
.mpl-limit-notice {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mpl-notice-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpl-icon {
    flex-shrink: 0;
    color: #f57c00;
}

.mpl-notice-text {
    color: #e65100;
    font-weight: 600;
}

.mpl-cart-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ffc107;
    color: #795548;
    font-size: 13px;
}

/* Toast notification */
.mpl-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: mplSlideIn 0.3s ease-out;
    direction: rtl;
}

.mpl-toast.mpl-toast-error {
    border-right: 4px solid #f44336;
}

.mpl-toast.mpl-toast-warning {
    border-right: 4px solid #ff9800;
}

.mpl-toast.mpl-toast-info {
    border-right: 4px solid #2196f3;
}

.mpl-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.mpl-toast-error .mpl-toast-icon {
    color: #f44336;
}

.mpl-toast-warning .mpl-toast-icon {
    color: #ff9800;
}

.mpl-toast-info .mpl-toast-icon {
    color: #2196f3;
}

.mpl-toast-content {
    flex: 1;
}

.mpl-toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.mpl-toast-message {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.mpl-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #999;
    transition: color 0.2s;
}

.mpl-toast-close:hover {
    color: #333;
}

@keyframes mplSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes mplSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.mpl-toast.mpl-toast-hiding {
    animation: mplSlideOut 0.3s ease-in forwards;
}

/* Quantity input warning state */
.quantity input.mpl-limit-exceeded {
    border-color: #f44336 !important;
    background-color: #ffebee !important;
}

/* Inline warning message */
.mpl-inline-warning {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mpl-inline-warning svg {
    width: 14px;
    height: 14px;
}

/* RTL Support */
[dir="rtl"] .mpl-toast,
.rtl .mpl-toast {
    right: auto;
    left: 20px;
    border-right: none;
    border-left-width: 4px;
    border-left-style: solid;
}

[dir="rtl"] .mpl-toast.mpl-toast-error,
.rtl .mpl-toast.mpl-toast-error {
    border-left-color: #f44336;
}

[dir="rtl"] .mpl-toast.mpl-toast-warning,
.rtl .mpl-toast.mpl-toast-warning {
    border-left-color: #ff9800;
}

[dir="rtl"] .mpl-toast.mpl-toast-info,
.rtl .mpl-toast.mpl-toast-info {
    border-left-color: #2196f3;
}