@keyframes loGiftBob {
    0%, 100% { transform: translateY(0) rotate(-2deg) }
    50% { transform: translateY(-10px) rotate(2deg) }
}

@keyframes loTagWiggle {
    0%, 100% { transform: rotate(-12deg) scale(1) }
    40% { transform: rotate(-6deg) scale(1.06) }
    70% { transform: rotate(-14deg) scale(.98) }
}

.floating-btn {
    position: fixed;
    right: 20px;
    left: auto;
    bottom: 108px;
    top: auto;
    z-index: 39;
    width: 72px;
    height: 72px;
    display: block;
    text-decoration: none;
    cursor: pointer;
    animation: loGiftBob 2.6s ease-in-out infinite
}

.floating-btn__tag {
    position: absolute;
    top: -6px;
    right: -10px;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 3px 8px 3px 8px;
    background: linear-gradient(135deg, #ffd24d, #e6a800);
    color: #1a1012;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    border: 1px dashed rgba(0, 0, 0, .25);
    box-shadow: 0 4px 12px rgba(255, 210, 77, .45);
    animation: loTagWiggle 2.2s ease-in-out infinite;
    pointer-events: none
}

.floating-btn__gift {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 16px 4px 16px;
    background:
        linear-gradient(145deg, #ff3a47 0%, #e30613 55%, #8a040c 100%);
    border: 2px dashed rgba(255, 210, 77, .55);
    box-shadow:
        0 12px 28px rgba(227, 6, 19, .45),
        inset 0 1px 0 rgba(255, 255, 255, .2);
    transition: transform .2s ease, box-shadow .2s ease
}

.floating-btn__gift::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 10px;
    margin-left: -5px;
    background: linear-gradient(180deg, #ffd24d, #e6a800);
    opacity: .9;
    pointer-events: none
}

.floating-btn__gift::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 10px;
    margin-top: -5px;
    background: linear-gradient(90deg, #ffd24d, #e6a800);
    opacity: .9;
    pointer-events: none
}

.floating-btn__gift img {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4))
}

.floating-btn:hover {
    animation-play-state: paused
}

.floating-btn:hover .floating-btn__gift {
    transform: scale(1.08);
    box-shadow: 0 16px 34px rgba(227, 6, 19, .65)
}

.floating-btn:hover .floating-btn__tag {
    animation-duration: 1.1s
}

@media (min-width: 1500px) {
    .floating-btn {
        right: calc((100vw - 1440px) / 2 + 10px)
    }
}

@media (max-width: 768px) {
    .floating-btn {
        right: 12px;
        bottom: 96px;
        width: 60px;
        height: 60px
    }

    .floating-btn__gift img {
        width: 22px;
        height: 22px
    }

    .floating-btn__tag {
        font-size: 10px;
        padding: 2px 6px;
        right: -8px
    }
}
