.tg-widget {
    box-sizing: border-box;
    position: fixed;
    z-index: 100000000000;
    left: 50%;
    bottom: 0;

    width: calc(100% - 40px);
    max-width: 1320px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 20px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));

    background: linear-gradient(90deg, #38BDF8 0%, #229ED9 100%);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);

    opacity: 0;
    transform: translate3d(-50%, 20px, 0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tg-widget--visible {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
}

.tg-widget--hiding {
    animation: tg-widget-hide 0.3s ease forwards;
}

@keyframes tg-widget-hide {
    to {
        opacity: 0;
        transform: translate3d(-50%, 30px, 0);
    }
}

.tg-widget * {
    box-sizing: border-box;
}

.tg-widget__icon {
    flex-shrink: 0;
    width: 41px;
    height: 41px;
    object-fit: contain;
}

.tg-widget__text {
    display: flex;
    align-items: baseline;
    flex: 1;
    margin: 0 12px;

    min-width: 0;

    text-decoration: none;
    color: #fff;
    line-height: 1;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.tg-widget__text:hover {
    text-decoration: none;
}

.tg-widget__text:hover .tg-widget__text-regular {
    text-decoration: underline;
}

.tg-widget__text-bold,
.tg-widget__text-regular {
    font-family: Arial, sans-serif;
    font-style: normal;
    letter-spacing: 0;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

.tg-widget__text-regular {
    font-weight: 400;
}

.tg-widget__text-bold {
    font-weight: 700;
}

.tg-widget__text-regular {
    font-size: clamp(18px, 2.9vw, 18px);
}

.tg-widget__text-bold {
    font-size: clamp(18px, 2.9vw, 18px);
}

.tg-widget__cross {
    flex-shrink: 0;
    position: relative;
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.tg-widget__cross:hover {
    opacity: 1;
}

.tg-widget__cross::before,
.tg-widget__cross::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 16px;
    background-color: #fff;
    border-radius: 1px;
    transform-origin: center;
}

.tg-widget__cross::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.tg-widget__cross::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.tg-widget {
    display: none;
}

@media (max-width: 768px) {
    .tg-widget {
        display: flex;
        width: calc(100% - 24px);
        padding: 10px 14px;
    }

    .tg-widget__icon {
        width: 36px;
        height: 36px;
    }

    .tg-widget__text {
        margin: 0 10px;
    }
}

@media (max-width: 360px) {
    .tg-widget {
        padding: 10px 12px;
    }

    .tg-widget__icon {
        width: 34px;
        height: 34px;
    }

    .tg-widget__cross {
        width: 14px;
        height: 14px;
    }

    .tg-widget__cross::before,
    .tg-widget__cross::after {
        height: 14px;
    }
}