.mobile-buy-button {
    display: none;
}

@media screen and (max-width: 767px) {

    .mobile-buy-button {
        position: fixed;
        z-index: 9998;
        right: 50%;
        bottom: calc(16px + env(safe-area-inset-bottom));
        transform: translate(50%, 130%);
        
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;

        width: 90%;
        max-width: 520px;
        min-height: 62px;
        padding: 12px 24px;
        box-sizing: border-box;

        direction: rtl;
        color: #fff;
        background: linear-gradient(135deg, #e9760b 0%, #c95605 100%);

        border: 2px solid rgba(255, 255, 255, 0.22);
        border-radius: 18px;

        font-size: 19px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;

        box-shadow:
            0 12px 30px rgba(38, 68, 31, 0.32),
            0 4px 10px rgba(0, 0, 0, 0.18);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            transform 0.4s ease,
            opacity 0.35s ease,
            visibility 0.35s ease,
            box-shadow 0.25s ease;
    }

    .mobile-buy-button.is-visible {
        transform: translate(50%, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-buy-button:active {
        transform: translate(50%, 2px) scale(0.98);
        box-shadow:
            0 7px 18px rgba(38, 68, 31, 0.28),
            0 3px 7px rgba(0, 0, 0, 0.15);
    }

    .mobile-buy-button__text {
        display: block;
    }

    .mobile-buy-button__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
    }

    .mobile-buy-button__icon svg {
        display: block;
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-buy-button {
        transition: opacity 0.15s ease;
    }
}