/*Override native layout for responsive transitions*/
html {
    min-width: 720px;
    overflow: hidden;
    
    /*very important for scrolling to work properly on inputs in mobile web browsers*/
    -webkit-overflow-scrolling: touch;
}

body{
    overflow: hidden;
}

#navigation_bar {
    min-width: 0;
    z-index: 100;
}

#content{
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior: none;
    
    /*very important for scrolling to work properly on inputs in safari mobile*/
    -webkit-transform: translate3d(0,0,0);
}

#contentRight {
    min-width: 0;
}

.content {
    padding: 0;
}

#basecommerce_logo, #content, #navigation_bar, .header_container,
#contentRight, .progress_container, .merchantAppInfoContainer, h2 {
    transition: all .4s ease-out;
}



/*Over: Desktop, Under: Tablet Horizontal*/
@media screen and (max-width: 1024px) {
    
    /*********** Docs portal progress container - tablet **************/
    #docs_progress .progress_icon_container{
        padding-top: 15px;
        width: calc((100%/5) - 5px);
    }
    
    #docs_progress  .progress_icon_container:nth-child(5n+5) {
        padding-right: 0;
        width: calc(100%/5);
    }
    /*********** End of docs portal progress container - tablet **************/
    
    
    
    /******* Container styles - tablet ********/
    .merchantAppContent {
        width: 100%;
    }
    
    #merchantAppPageContainer .kba_container{
        min-height: 225px;
        width: calc(100% - 20px);
        font-size: 1.1em;
    }
    
    #bank_card_submission_types_container .checkbox_container{
        line-height: 40px;
    }
    /******* End of container styles - tablet ********/
    
    
    
    /******* Error handling styles - tablet ********/
    #errorIconMessage {
        width: 88%;
        padding: 0 3px 10px;
    }
    /******* End of error handling styles ******/
    
    
    
    /********** Form fields and text styles - tablet ********/
    #merchantAppPageContainer .container_threeQuarter{
        width: calc(100% - 20px);
    }
    
    #merchantAppPageContainer .container_twoThird, 
    #merchantAppPageContainer .container_third,
    #merchantAppPageContainer .container_quarter{
        width: calc(50% - 20px);
    }
    
    #merchantAppPageContainer .tablet_container_quarter{
        width: calc(25% - 20px);
    }
    
    #merchantAppPageContainer input[type="checkbox"] + label{
        margin: 3px 0;
        font-size: 1.1em;
        line-height: 1.2em;
        transition: all .4s ease-out;
    }
    
    .checkbox_container > input[type="checkbox"] + label span {
        width: 16px;
        height: 16px;
        margin: -3px 8px 0 0;
    }
    
    #merchantAppPageContainer input[type="checkbox"] + label a{
        font-size: 1.1em;
        line-height: 1.2em;
    }
    
    .kba_container input[type="radio"] {
        margin: 10px 10px 10px 0;
    }
    
    #merchantAppPageContainer .additional_information{
        padding: 10px 0 20px 10px;
    }
    /********** End of form field and text styles - tablet ********/
    
    
    
    
    /***** Helper styles - tablet ******/
    .tablet_linebreak::before {
        white-space: pre;
        content: "\A";
    }
    
    .tablet_spacer{
        padding-top: 15px;
    }
    /***** End of helper styles ******/
    
    
    /******* Button styles - tablet ********/
    #save_buttons{
        width:100%;
        transition: all .4s ease-out;
    }
    
    #save_buttons .tablet_half_left{
        width: calc( 50% - 5px );
        margin-left: 0;
    }
    
    #save_buttons .tablet_half_right{
        width: calc( 50% - 5px );
        margin-right: 0;
    }
    
    #save_buttons .tablet_full{
        width: 100%;
        margin: 15px 0 0;
    }
    /***** End of button styles ********/
    
}

/*Over: Tablet Horizontal, Under: Tablet Vertical*/
@media only screen and (max-width: 720px){
    
    
    /**** Main dom elements and navigation - mobile ****/
    html {
        min-width: 320px;
    }

    #navigation_bar {
        height: 60px;
        min-width: 0;
    }
    
    #navigation_bar > ul > li:first-child{
        height: 60px;
    }
    
    #basecommerce_logo {
        height: 38px;
    }
    
    .logoSpace{
        padding-bottom: 0;
    }
    /**** End of main dom and navigation ****/
    
    
    
    
    /*********** Progress bar styles - mobile ***********/
    /***** Docs portal - mobile ********/
    #docs_progress .progress_icon_container{
        width: calc((100%/3) - 5px);
    }
    #docs_progress  .progress_icon_container:nth-child(3n+3) {       
        padding-right: 0;
        width: calc(100%/3);
    }
    
    #docs_progress .progress_icon_container:nth-child(5n+5) {
        padding-right: 5px;
        width: calc((100%/3) - 5px);
    }
    /***** End of docs portal ********/
    
    .progress_container{
        margin-top: 5px;
        margin-bottom: 35px;
    }
 
    #slingshot_progress .progress_bar_text {
        height: 40px;
    }
    /************* End of progress bar **************/
    
    
    
    
    /***** Error handling styles - mobile ******/
    #applicationContainer #headerMessageContainer {
        width: calc( 100% - 40px ) !important;
        padding: 0 20px;
    }
    
    #applicationContainer #headerMerchAppMessage{
        padding: 20px 10px;
        width: calc( 100% - 20px );
        margin: 30px 0;
    }
    
    #applicationContainer #headerMessage.successHeaderMessage{
        width: calc( 100% - 30px);
        margin: 30px 0;
    }
    
    #errorIcon{
        margin-right: 10px;
    }
    
    #exitIcon{
        margin-top: 0;
    }
    
    #errorIconMessage span:nth-child(2) b{
        font-size: .85em;    
    }
    
    #headerMerchAppMessageContent ul li {
        font-size: .85em;
    }
    /****** End of error handling styles ******/
    
    
    
    
    /********* Containers styles - mobile ********/
    #content {
        height: calc(100vh - 60px);
        padding-top: 60px;
    }
      
    #applicationContainer #contentRight {
        width: calc(100% - 40px) !important;
        padding: 0 20px 70px;
    }
    
    .merchantAppContent {
        margin-top: 0;
    }
    
    .header_container {
        margin-top: 45px;
    }
    
    .merchantAppInfoContainer{
        padding: 10px 20px 20px;
        width: calc(100% - 42px);
    }
    
    #merchantAppPageContainer .kba_container{
        min-height: 250px;
    }
    
    #bank_card_submission_types_container .checkbox_container{
        line-height: 0;
        height: 0;
    }
    /********* End of containers styles ********/
    
    
    
    
    /******** Icon styles - mobile *******/
    .icon_container{
        height: 50px;
    }
    
    .ownerIcon, .businessIcon, .accountIcon, .feesIcon{
        width: 50px;
        height: 50px;
        margin: 0 10px 0 -10px;
    }
    
    .accountIcon, .feesIcon{
        margin: 0 10px 0 -5px;
    }
    /******** End of icons *********/
   
    
    
    
    /**** Form fields and headers styles - mobile ***/ 
    .merchantAppInfoContainer h2{
        font-size: 1.2em;
        line-height: 1.2em;
        height: unset;
        padding: 0;
    }
    
    #merchantAppPageContainer h2{
        font-size: 1.4em;
        line-height: 1.4em;
        margin-top: 20px;
    }
    
    .merchantAppContent:first-of-type h3{
        padding-top: 0;
    }
    
    .merchantAppContent h3 {
        padding-left: 0;
        padding-top: 15px
    }
    
    .container_full, .container_threeQuarter, .container_twoThird, 
    .container_half, .container_third, .container_quarter{
        width: 100%;
        padding: 5px 0;
    }
    
    #merchantAppPageContainer .additional_information{
        padding-left: 0;
        line-height: 1.2em;
    }
    
    .slingshotFeesTextContainer{
        padding: 10px 0;
    }
    
    .slingshotFeesTextContainer > p {
        font-size: .9em;
    }
    
    .slingshotFeesSubheader {
        padding: 15px 0 5px;
    }
    
    .fieldLabel{
        margin-top: 15px;
    }
    
    .formFieldInnerLabel label {
        font-size: 0.9em;
    }
    
    .formFieldInnerLabel.smallest_label label{
        font-size: 0.65em;
    }
    
    .formFieldInnerLabel.smaller_label label{
        font-size: 0.7em;
    }
    
    .formFieldInnerLabel.small_label label{
        font-size: 0.8em;
    }
    
    #slingshotAppForm #container_same_as_legal_address {
        padding-left: 0;
    }
    
    #same_as_legal_address + label{
        font-size: .9em;
    }
    
    .checkbox_container.vertical_input_align{
        line-height: 0;
        height: unset;
    }
    /**** End of form fields and headers styles - mobile ***/ 
    
    
    
    
    
    /****** Docs page 9, doc upload, styles - mobile ******/
    .documentTypeDescription{
        float: none;
    }
    
    .documentFileUploaded{
        margin-right: 50px;
        padding-top: 5px;
    }

    .fileControlBrowse {
        padding-top: 5px;
    }
    
    .documentFileName{
        float: left;
        width: 100% !important;
        padding: 3px 0;
    }
    
    .fileControlDelete, .fileControlRemove, .fileControlDownload{
        float: left;
    }
    
    .documentTypeDescription .vertical_bar{
        display: none;
    }
    
    .completedContainer{
        padding-left: 0;
    }
    
    .uploadedDocs {
        background: #fff;
        padding-left: 0;
        line-height: 1.2em;
    }
    .uploadedDocs .doc_file_text{
        background-color: #fff;
    }
    .uploadedDocs .documentFileUploaded{
       height: 20px;
       line-height: 10px;
    }
    
    .uploadedDocs .documentFileName{
        height: 30px;
    }
    /****** End of docs page 9, doc upload, styles ******/
    
    
    /********************  Info page styles  *********************/
    #info_content{
        width: auto;
        padding: 0 30px 0;
        transition: all .25s ease-out;
    }
    
    #slingshot_header, #basecommerce_header{
        margin-bottom: 30px;
        font-size: 1.8em;
    }
    
    #info_return_image{
        max-width: 280px;
    }
    /********************  End of info page styles  *********************/
    
        
    
    /***** Helper styles - mobile ******/
    .linebreak::before {
        white-space: pre;
        content: "\A";
    }
    /***** End of helper styles ******/
    
}



/*Over: Tablet vertical, Under: Mobile*/
@media screen and (max-width: 480px) {
    
    #headerMessage {
        height: 35px;
    }
    
    div[aria-describedby="newSimpleACHTransactionDialog"] .ui-dialog-title,
    div[aria-describedby="displayBankAccountTransactionDialog"] .ui-dialog-title{
        font-size: 1.2em;
    }
    
    #displayBankAccountTransactionContent h3 {
        font-size: 1.2em;
    }
    
    #displayBankAccountTransactionContent .management td {
        font-size: .9em;
    }
    
    #displayBankAccountTransactionContent .management td label{
        font-size: 1em;
    }
    
    #newSimpleACHTransactionForm .container_full:first-of-type h3{
        margin-top:0;
    }
    #newSimpleACHTransactionForm h3{
        margin-top: 20px;
    }
    
    #newSimpleACHTransactionForm .container_full, #newSimpleACHTransactionForm .container_half{
        width: 100%;
        padding: 5px 0;
    }
    
    .ui-datepicker{
        width: 15.5em !important;
    }
}
