/* ── Download App Floating Button ─────────────────────────────────────────── */
#pd-download-app-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 50px;
    background: #111111;
    color: #ffd000;
    border: 2px solid #ffd000;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 208, 0, 0.4);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

#pd-download-app-btn:hover {
    background: #ffd000;
    color: #111111;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 208, 0, 0.35);
}

#pd-download-app-btn:active {
    transform: translateY(-1px) scale(1.02);
}

#pd-download-app-btn svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    transition: transform 0.25s ease;
}

#pd-download-app-btn:hover svg {
    transform: translateY(-2px);
}

#pd-download-app-btn .pd-download-label {
    white-space: nowrap;
}

/* Pulse ring animation on idle */
#pd-download-app-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    border: 2px solid rgba(255, 208, 0, 0.3);
    animation: pd-download-pulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes pd-download-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.12);
        opacity: 0;
    }
    100% {
        transform: scale(1.12);
        opacity: 0;
    }
}

/* Mobile — compact pill with icon + text */
@media (max-width: 768px) {
    #pd-download-app-btn {
        bottom: 80px;
        right: 16px;
        padding: 12px 18px;
        font-size: 14px;
        gap: 8px;
    }

    #pd-download-app-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Very small screens — icon only */
@media (max-width: 380px) {
    #pd-download-app-btn .pd-download-label {
        display: none;
    }

    #pd-download-app-btn {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* Hide on desktop when mobile-only mode */
#pd-download-app-btn.pd-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    #pd-download-app-btn.pd-mobile-only {
        display: inline-flex;
    }
}

/* Product page — keep above sticky cart bar */
.pd-product-page #pd-download-app-btn {
    bottom: 90px;
}

@media (max-width: 768px) {
    .pd-product-page #pd-download-app-btn {
        bottom: 100px;
    }
}
