/* Toast Notifications */
.mg-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.mg-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fff;
    border-left: 4px solid #c49a6d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    color: #222;
    max-width: 340px;
    pointer-events: auto;
    animation: mg-toast-in 0.25s ease;
    line-height: 1.4;
}

.mg-toast.mg-toast-error {
    border-left-color: #CA3939;
}

.mg-toast.mg-toast-success {
    border-left-color: #4caf50;
}

.mg-toast.mg-toast-out {
    animation: mg-toast-out 0.25s ease forwards;
}

@keyframes mg-toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes mg-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(12px); }
}

/* Login error popup */
.mg-login-error-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mg-login-error-popup {
    background: #fff;
    padding: 40px 30px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.mg-login-error-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    color: #999;
    transition: color 0.3s;
}
.mg-login-error-popup-close:hover { color: #000; }

.mg-login-error-message {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.4;
    color: #000;
    font-weight: 500;
}

.mg-login-error-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mg-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #c49a6d;
    border: 1px solid #c49a6d;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-weight: 600;
}
.mg-login-btn:hover { background: #c49a6d; color: #fff; }

.mg-login-btn.secondary {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}
.mg-login-btn.secondary:hover { background: #000; border-color: #000; color: #fff; }

/* Shortcode [my_products] pagination — здесь т.к. шорткод может быть на любой странице */
.my-products-pagination .page-numbers {
    text-decoration: none;
    color: #000;
}
.my-products-pagination .page-numbers.current {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Cart header badge */
.mg-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    background: #CA3939;
    border-radius: 50%;
    color: var(--whiteText);
    position: absolute;
    bottom: 0;
    right: 0;
    text-decoration: none;
}
