/* === Базовий стиль === */
.tg-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(145deg, #1c1c1c, #111);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 24px 20px 20px;
    max-width: 300px;
    color: #f5f5f5;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    animation: fadeInUp 0.5s ease-out;
}

.tg-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.tg-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    font-family: 'Georgia', serif;
    color: #eaeaea;
    text-shadow: 0 0 4px #000;
}

.tg-subtitle {
    font-size: 14px;
    margin: 0;
    color: #aaa;
    line-height: 1.4;
}

.tg-popup.hidden {
    display: none;
}

.tg-btn {
    text-align: center;
    background: #7289da;
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tg-btn:hover {
    background: #5b6eae;
}

.tg-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2a2a2a;
    color: #bbb;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    transition: background 0.2s;
    z-index: 1;
}

.tg-close:hover {
    background: #444;
    color: #fff;
}

/* === Адаптив для мобільних === */
@media (max-width: 480px) {
    .tg-popup {
        margin-bottom: 70px;
        max-width: 250px;
        right: 15px;
        padding: 16px 14px 14px;
        border-radius: 12px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    }

    .tg-title {
        font-size: 16px;
    }

    .tg-subtitle {
        font-size: 12px;
    }

    .tg-btn {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 10px;
    }

    .tg-close {
        width: 24px;
        height: 24px;
        font-size: 16px;
        top: 8px;
        right: 8px;
    }
}
