html.bbd-tg-float-hidden #bbd-tg-float {
    display: none !important;
}

#bbd-tg-float {
    --bbd-tg-blue: #229ed9;
    --bbd-tg-blue-dark: #0088cc;
    --bbd-tg-text: #332929;
    /* Stack above .scrollToTop (base.css: right 5px, bottom 30px, 36×36) */
    --bbd-scrolltop-right: 5px;
    --bbd-scrolltop-size: 36px;
    --bbd-scrolltop-bottom: 30px;
    --bbd-scrolltop-gap: 12px;

    position: fixed;
    right: calc(var(--bbd-scrolltop-right) + env(safe-area-inset-right, 0px));
    bottom: calc(
        var(--bbd-scrolltop-bottom) + var(--bbd-scrolltop-size) + var(--bbd-scrolltop-gap) +
            env(safe-area-inset-bottom, 0px)
    );
    z-index: 10000050;
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--bbd-tg-text);
    pointer-events: none;
}

#bbd-tg-float * {
    box-sizing: border-box;
}

#bbd-tg-float a,
#bbd-tg-float button {
    pointer-events: auto;
}

.bbd-tg-float__fab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 0 0 auto;
    padding: 0;
    border: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
}

.bbd-tg-float__fab:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.bbd-tg-float__fab:focus-visible {
    outline: 2px solid var(--bbd-tg-blue);
    outline-offset: 3px;
}

.bbd-tg-float__fab-ico {
    width: 36px;
    height: 36px;
}

.bbd-tg-float__sparkles {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.bbd-tg-float__sparkles span {
    position: absolute;
    width: 3px;
    height: 9px;
    border-radius: 2px;
    background: linear-gradient(to top, var(--bbd-tg-blue), #5ec8ff);
    opacity: 0.85;
    transform-origin: center bottom;
    animation: bbd-tg-sparkle 2.2s ease-in-out infinite;
}

.bbd-tg-float__sparkles span:nth-child(1) {
    bottom: 0;
    left: 10px;
    transform: rotate(15deg);
    animation-delay: 0s;
}

.bbd-tg-float__sparkles span:nth-child(2) {
    bottom: 2px;
    left: 15px;
    height: 11px;
    transform: rotate(48deg);
    animation-delay: 0.25s;
}

.bbd-tg-float__sparkles span:nth-child(3) {
    bottom: 0;
    left: 18px;
    transform: rotate(78deg);
    animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    .bbd-tg-float__sparkles span {
        animation: none;
    }
}

@keyframes bbd-tg-sparkle {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.bbd-tg-float__panel {
    position: absolute;
    right: 0;
    bottom: calc(58px + 14px);
    width: min(312px, calc(100vw - 32px));
    padding: 16px 16px 18px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: auto;
}

.bbd-tg-float__panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bbd-tg-float__panel::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: -9px;
    width: 18px;
    height: 18px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.06);
    border-radius: 2px;
}

.bbd-tg-float__panel-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding-right: 28px;
}

.bbd-tg-float__gift {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.bbd-tg-float__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.bbd-tg-float__title .bbd-tg-accent {
    color: var(--bbd-tg-blue-dark);
}

.bbd-tg-float__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #9a9a9a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.bbd-tg-float__close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
}

.bbd-tg-float__close:focus-visible {
    outline: 2px solid var(--bbd-tg-blue);
    outline-offset: 2px;
}

.bbd-tg-float__list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.bbd-tg-float__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.bbd-tg-float__list li:last-child {
    margin-bottom: 0;
}

.bbd-tg-float__li-ico {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-top: 1px;
}

.bbd-tg-float__li-text {
    font-size: 14px;
}

.bbd-tg-float__age {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 4px;
    margin-bottom: 6px;
    border-top: 1px solid #e8e8e8;
    font-size: 12px;
    font-weight: 600;
    color: #c62828;
}

.bbd-tg-float__age-ico {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bbd-tg-float__age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #c62828;
    font-size: 11px;
    font-weight: 800;
}

.bbd-tg-float__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
    padding: 13px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(34, 158, 217, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bbd-tg-float__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.5);
}

.bbd-tg-float__cta:focus-visible {
    outline: 2px solid var(--bbd-tg-blue-dark);
    outline-offset: 3px;
}

.bbd-tg-float__cta svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .bbd-tg-float__panel {
        bottom: calc(58px + 10px);
    }
}
