/* Small-screen refinements shared by the theme and the optional OneBikeChat widget. */
.is-ctl-product .ob-chat-greeting,
.is-ctl-checkout #ob-chat,
.is-act-checkoutregisterpage #ob-chat,
.is-active-route-frontend-checkout-register-page #ob-chat {
    display: none !important;
}

@media (max-width: 575.98px) {
    .ob-chat .ob-chat-toggle {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        justify-content: center;
        width: 52px;
        height: 52px;
        padding: 4px;
        border-radius: 50%;
    }
    .ob-chat .ob-chat-avatar { width: 42px; height: 42px; }
    .ob-chat .ob-chat-label,
    .ob-chat .ob-chat-greeting { display: none !important; }
    .ob-chat.is-at-configurator:not(.is-open) .ob-chat-toggle { visibility: hidden; pointer-events: none; }
    body:has(#ob-chat) .scroll-up-container .scroll-up-button { right: 16px; bottom: 80px !important; }

    /* Inline overflow does not clip long configuration names or their screen-reader suffix. */
    .ob-line-item-config__preview {
        display: block;
        position: relative;
        max-width: 100%;
        overflow: hidden;
    }

    .ob-purchase-path-choice { gap: 6px; }
    .ob-purchase-path-choice .ob-purchase-path-choice__button {
        padding: 10px 5px;
        min-height: 62px;
    }
    .ob-purchase-path-choice .ob-purchase-path-choice__label {
        font-size: clamp(10px, 2.9vw, 12px);
        line-height: 1.35;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }
    :is(.is-ctl-checkout, .is-act-checkoutregisterpage, .is-active-route-frontend-checkout-register-page) .checkout h1,
    :is(.is-ctl-checkout, .is-act-checkoutregisterpage, .is-active-route-frontend-checkout-register-page) .checkout .h1 {
        min-width: 0;
        max-width: 100%;
        font-size: clamp(21px, 5.5vw, 28px);
        overflow-wrap: anywhere;
        white-space: normal;
        hyphens: auto;
    }
}
