/**
 * BIOMER Mobile Sticky CTA Bar v1.0.0
 * Scoped mobile-only bottom bar (<768px) to reduce mobile bounce rate and convert smartphone visitors.
 * Compliant with WCAG 2.5.5 (44px touch targets), WCAG 2.4.11 (Focus Not Obscured),
 * and safe-area-inset handling.
 */

.biomer-mob-sticky-bar {
    display: none;
}

@media (max-width: 767px) {
    html {
        scroll-padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    .site-footer {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    .biomer-mob-sticky-bar {
        display: flex;
        align-items: center;
        gap: 6px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99999;
        max-width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid #d7e2f0;
        box-shadow: 0 -4px 18px rgba(15, 31, 56, 0.14);
        padding-top: 6px;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
        padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
    }

    .biomer-mob-sticky-bar__actions {
        display: flex;
        align-items: center;
        gap: 5px;
        flex: 0 0 auto;
    }

    .biomer-mob-sticky-bar__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 10px;
        box-sizing: border-box;
        text-decoration: none !important;
        transition: transform 0.15s ease, filter 0.15s ease;
    }

    .biomer-mob-sticky-bar__btn:active {
        transform: scale(0.92);
    }

    .biomer-mob-sticky-bar__btn--call {
        background: #eef4fc;
        color: #1a4d8f !important;
        border: 1px solid #c6daf3;
    }

    .biomer-mob-sticky-bar__btn--wa {
        background: #e8fbf0;
        color: #25d366 !important;
        border: 1px solid #b7f2ce;
    }

    .biomer-mob-sticky-bar__btn--tg {
        background: #e9f5fc;
        color: #229ed9 !important;
        border: 1px solid #c0e5f7;
    }

    .biomer-mob-sticky-bar__btn--max {
        background: #f0eefd;
        color: #5b51d8 !important;
        border: 1px solid #d4cff9;
    }

    .biomer-mob-sticky-bar__kp {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex: 1 1 auto;
        min-inline-size: 0;
        min-block-size: 44px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 13.5px;
        font-weight: 700;
        line-height: 1.15;
        text-decoration: none !important;
        box-sizing: border-box;
        background: #059669;
        color: #ffffff !important;
        border: 1px solid #047857;
        overflow-wrap: break-word;
        white-space: nowrap;
        transition: background-color 0.18s ease, transform 0.12s ease;
    }

    .biomer-mob-sticky-bar__kp:active {
        transform: scale(0.98);
        background: #047857;
    }

    .biomer-mob-sticky-bar__badge {
        display: inline-block;
        background: rgba(255, 255, 255, 0.25);
        color: #ffffff;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 4px;
        margin-left: 2px;
    }

    @media (pointer: coarse) {
        .biomer-mob-sticky-bar__call,
        .biomer-mob-sticky-bar__kp {
            min-block-size: 46px;
        }
    }
}
