.my-toast-container {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    width: 100%;
    max-width: 400px;
}

.my-toast {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    width: 100%;
    min-width: 320px;
    max-width: 400px;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Inter';
    font-size: 16px;
    line-height: 1.5;
    color: #1E293B;
    animation: myToastFadeIn 0.3s ease-out;
}

.my-toast-icon {
    width: 24px;
    height: 24px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.my-toast-message {
    flex: 1;
    font-weight: 400;
    color: #1E293B;
    padding-top: 2px;
}

.my-toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 8px;
    transition: transform 0.15s ease, opacity 0.15s ease;
    font-size: 20px;
}

.my-toast-close i {
    pointer-events: none;
}

.my-toast-close:hover {
    opacity: 0.8;
}

.my-toast-success .my-toast-close {
    color: #20795b;
}
.my-toast-error .my-toast-close {
    color: #C62828;
}

.my-toast-success {
    background-color: #E8F5E9;
    border: 2px solid #20795b;
}

.my-toast-success .my-toast-icon {
    background: transparent;
    color: #20795b;
    font-size: 20px;
}

.my-toast-error {
    background-color: #f8d7da;
    border: 2px solid #C62828;
}

.my-toast-error .my-toast-icon {
    background: transparent;
    color: #C62828;
    font-size: 20px;
}

@keyframes myToastFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 991px) {
    .my-toast-container {
        position: fixed;
        bottom: 20px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-width: 400px;
        pointer-events: none; /* fondamentale */
    }

    .my-toast {
        pointer-events: auto; /* i toast restano cliccabili */
    }
}