/* Укрупненное состояние плашки, устойчивое к ограничениям фреймворка */
.custom-toast {
    position: fixed !important;
    top: 2rem !important;                   
    right: 2rem !important;                 
    background-color: #44abeb !important;   
    color: #1e1e1e !important;            
    
    /* Сбрасываем жесткие ограничения по высоте и отображению контента */
    height: auto !important;
    min-height: 1rem !important;
    max-height: none !important;
    overflow: visible !important; /* Разрешаем тексту выходить за рамки старых границ */
    
    /* Увеличенные отступы, создающие "воздух" вокруг текста */
    padding: 1.25rem 2.5rem !important;          
    
    /* Принудительно увеличиваем шрифт и задаем свободное межстрочное расстояние */
    font-size: 1.2rem !important;          
    font-family: Arial, sans-serif !important;
    font-weight: 500 !important;            
    line-height: 1.6 !important; /* Дает строкам больше места в высоту */
    
    border-radius: 0.625rem !important;       
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4) !important; 
    
    /* Задаем свободу по ширине, отключая фиксированные пиксели */
    width: auto !important;
    min-width: 20rem !important;  /* Минимальная базовая ширина окна */
    max-width: 35rem !important;  /* Максимальная ширина, чтобы текст красиво ложился в строки */
    
    z-index: 999999999 !important; 
    
    opacity: 0;
    transform: translateY(-2rem); 
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Состояние при появлении */
.custom-toast.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Полная адаптивность для мобильных телефонов (экраны менее 767px) */
@media (max-width: 767px) {
    .custom-toast {
        top: auto !important;
        bottom: 1.5rem !important;          
        left: 1.5rem !important;              
        right: 1.5rem !important;
        width: calc(100% - 3rem) !important; /* Растягивается по ширине экрана с зазорами */
        max-width: none !important;
        padding: 1rem 1.5rem !important;
        font-size: 1.05rem !important;         
        text-align: center !important;
        transform: translateY(2rem) !important; 
    }
}
