
/*
 FYNDA P10B.2D
 Android registration scrolling correction.

 Scoped exclusively to .register-page.
 Does not modify seller, courier, chat,
 map, dashboard or financial interfaces.
*/

.register-page {
    box-sizing: border-box !important;

    position: relative !important;
    inset: auto !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    width: 100% !important;

    height: 100vh !important;
    height: 100svh !important;
    height: 100dvh !important;

    min-height: 0 !important;
    max-height: 100dvh !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    -webkit-overflow-scrolling: touch !important;

    touch-action: pan-y !important;

    overscroll-behavior-y: contain !important;

    scroll-padding-block: 24px 90px;

    padding-top:
        max(14px, env(safe-area-inset-top)) !important;

    padding-bottom:
        max(42px, env(safe-area-inset-bottom)) !important;
}

/* Prevent the registration card from being clipped. */

.register-page > .register-card {
    box-sizing: border-box !important;

    flex: 0 0 auto !important;
    align-self: center !important;

    height: auto !important;
    max-height: none !important;
    max-width: 100% !important;

    overflow: visible !important;

    margin-block: 0 !important;
    margin-inline: auto !important;
}

/* Keep every registration field accessible. */

.register-page .register-fields {
    box-sizing: border-box !important;

    min-width: 0 !important;
    max-height: none !important;

    overflow: visible !important;
}

/* Keep inputs inside the Android screen width. */

.register-page .register-fields
:is(input, textarea, select) {
    box-sizing: border-box !important;

    max-width: 100% !important;
    min-width: 0 !important;

    scroll-margin-block: 72px 110px;
}

/* Additional protection for very narrow phones. */

@media (max-width: 360px) {
    .register-page {
        padding-inline: 10px !important;
    }

    .register-page > .register-card {
        padding-inline: 12px !important;
    }
}
