/* ============================================================================
   Floating "Buy Digital Gaming Goods" promo bar — the web equivalent of the
   Flutter app's GamingStoreFloatingBar. A fixed, gently bobbing gradient pill
   (violet→indigo→blue) linking to the admin-configured Gaming Store URL.
   Hidden on cart/checkout so it never covers the purchase CTAs, and
   dismissible (remembered in localStorage).
   ========================================================================== */

.gaming-float-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(0);
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(420px, calc(100% - 32px));
    padding: 10px 14px;
    border-radius: 40px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #6D28D9, #4F46E5, #2563EB);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.45), 0 4px 8px rgba(2, 6, 23, 0.18);
    animation: gf-bob 1.8s ease-in-out infinite;
}
.gaming-float-bar:hover,
.gaming-float-bar:focus {
    color: #fff;
}

@keyframes gf-bob {
    0%, 100% { transform: translateX(-50%) translateY(-4px); }
    50%      { transform: translateX(-50%) translateY(4px); }
}

.gaming-float-bar .gf-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.gaming-float-bar .gf-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    flex: 1 1 auto;
}
.gaming-float-bar .gf-title {
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gaming-float-bar .gf-sub {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gaming-float-bar .gf-arrow {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.gaming-float-bar .gf-close {
    position: absolute;
    top: -8px;
    right: -6px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0F172A;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Keep clear of the purchase CTAs. */
body.page-cart .gaming-float-bar,
body.page-checkout .gaming-float-bar {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .gaming-float-bar { animation: none; transform: translateX(-50%); }
}
