/*reduce padding/margin for small height/landscape mode */
@media screen and (max-height: 800px) {
    .formPanel {
        padding-top: 10px;
        padding-bottom: 17px;
    }
    .errorPanel {
        padding: 10px 20px;
    }
    .formText {
        padding-bottom: 10px;
    }
    .formInput {
        margin-bottom: 10px;
    }
    .changeButton {
        margin-top: 10px;
    }
}

/* adjust max width for XS mobile in portrait mode */
@media screen and (max-width: 350px) and (orientation: portrait) {
    .mainPanel {
        width: 100%;
    }

    .errorPanelWrapper {
        width: 93.4%;
    }

    .formPanelWrapper {
        width: 93.4%;
    }
}

/* reduce height for mobile in landscape mode, don't use viewport vh for heights viewport is smaller than page height*/
@media screen and (max-width: 740px) and (orientation: landscape) {
    html, body {
        height: 570px;
    }

    .productName {
        padding-top: 15px;
        padding-bottom: 22px;
    }

    .footer {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}