/* Общие стили для формы (если нужны) – можно оставить свои */
.tgfi-form-wrapper {
    max-width: 400px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.tgfi-field {
    margin-bottom: 15px;
}
.tgfi-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.tgfi-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.tgfi-form-wrapper button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}
.tgfi-form-wrapper button:hover {
    background: #005a87;
}
/* Старые сообщения – можно не использовать, но оставим для совместимости */
.tgfi-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}
.tgfi-message .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
}
.tgfi-message .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
}

/* ========= НОВЫЙ ТОСТ – СВЕРХУ ========= */
.tgfi-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 24px 48px;
    border-radius: 50px;
    font-size: 24 px;
    font-weight: 500;
    text-align: center;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    word-break: break-word;
    max-width: 90vw;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.tgfi-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.tgfi-toast.success {
    background: rgba(40, 167, 69, 0.9);
}
.tgfi-toast.error {
    background: rgba(220, 53, 69, 0.9);
}
/* Для мобильных устройств – чуть больше отступ сверху, чтобы не наезжало на шапку */
@media (max-width: 768px) {
    .tgfi-toast {
        top: 15px;
        font-size: 14px;
        padding: 10px 20px;
        border-radius: 40px;
    }
}
