.tsi-mobile-purchase-help { display: none; }
@media (max-width: 760px) {
    /* The CSS fallback prevents overlap even before the footer script runs. */
    .tsi-profit-customer-add-line-site-notice,
    .tsi-customer-add-line-site-notice,
    .tsi-texas-ce-account-site-notice,
    .tsi-profit-texas-ce-site-notice,
    .tsi-public-tutor:not(.tsi-public-tutor--embedded) {
        position: relative !important;
        inset: auto !important;
        z-index: auto !important;
        box-sizing: border-box;
        max-width: calc(100% - 32px) !important;
        margin: 16px auto !important;
    }
    .tsi-mobile-purchase-help {
        display: grid;
        gap: 12px;
        width: min(720px, calc(100% - 32px));
        margin: 24px auto;
        clear: both;
    }
    .tsi-mobile-purchase-help:empty { display: none; }
    .tsi-mobile-purchase-help > .tsi-public-tutor,
    .tsi-mobile-purchase-help > aside {
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .tsi-mobile-purchase-help > aside {
        padding: 6px 48px 6px 14px !important;
        box-shadow: none !important;
    }
    .tsi-mobile-purchase-help > aside > button {
        min-width: 44px;
        min-height: 44px;
        top: 6px !important;
        right: 2px !important;
    }
    .tsi-mobile-purchase-offer > summary {
        cursor: pointer;
        min-height: 44px;
        align-content: center;
        color: #173c22;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    .tsi-mobile-purchase-offer > summary:focus-visible {
        outline: 3px solid #087f9d;
        outline-offset: 2px;
    }
    .tsi-mobile-purchase-offer[open] > summary { margin-bottom: 12px; }
    .tsi-mobile-purchase-help .button { white-space: normal; max-width: 100%; }
    .tsi-mobile-purchase-help .tsi-public-tutor__launcher {
        box-shadow: none;
        margin: 0 auto;
    }
    /* Chat opens only by request and retains its native dialog/close behavior. */
    .tsi-mobile-purchase-help .tsi-public-tutor__panel {
        position: fixed;
        z-index: 2147482000;
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        width: min(400px, calc(100% - 24px));
        max-height: calc(100dvh - 24px);
    }
}
