/* ============================================
   FBCTX UI — SAFE, NON-DESTRUCTIVE MOBILE PATCH
   ============================================ */
@media (max-width: 768px) {

    /* Prevent horizontal scroll on phones */
    .FBCTX-UI {
        overflow-x: hidden;
    }

        /* Make inputs tappable */
        .FBCTX-UI input,
        .FBCTX-UI select,
        .FBCTX-UI textarea {
            height: 42px;
            padding: 10px;
            font-size: 15px;
        }

        /* Icons scale down slightly on mobile */
        .FBCTX-UI .icon svg {
            width: 20px;
            height: 20px;
        }
}

/* Extra-small screens (optional but recommended) */
@media (max-width: 480px) {

    /* Reduce padding to avoid squeezing */
    .FBCTX-UI .card,
    .FBCTX-UI .banner,
    .FBCTX-UI .membership-card-note,
    .FBCTX-UI .emergency-contact-note,
    .FBCTX-UI .info-box {
        padding: 12px;
    }

    /* Stacking on very small phones */
    .FBCTX-UI .total-bar {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    /* Avoid overflow for buttons in small actions groups */
    .FBCTX-UI .actions {
        flex-wrap: wrap;
        gap: 8px;
    }
}
