﻿@media only screen and (max-width: 767px) {
    .KX_checkout {
        display: inline-block !important;
    }

        .KX_checkout .KX_area_payment {
            border-radius: 0 0 6px 6px !important;
        }

            .KX_checkout .KX_area_payment hr {
                margin-top: 7px !important;
            }

            .KX_checkout .KX_area_payment .KX_MOP_button, .KX_checkout.KX_direct .KX_MOP_button {
                width: 80px;
                height: 100px;
                margin: 8px;
            }

        .KX_checkout .KX_area_details {
            max-width: 100% !important;
            width: 100%;
            border-radius: 6px 6px 0 0 !important;
            border-right: none !important;
            border-bottom: 1px solid #e6e6e6;
        }

            .KX_checkout .KX_area_details table.KX_content td {
                padding: initial !important;
            }

            .KX_checkout .KX_area_details hr {
                margin-top: 7px !important;
            }

            .KX_checkout .KX_area_details h6 {
                margin-bottom: 0 !important;
            }

    .form_pay_header {
        border-radius: initial !important;
    }

    .KX_checkout .KX_area_payment hr {
        margin-right: 10px;
        margin-left: 10px;
    }

    .KX_checkout .KX_area_payment > .form_content {
        border-radius: 0 0 6px 6px !important;
    }

    .KX_checkout .KX_area_payment .KX_card .col-md-2, .KX_checkout.KX_direct .KX_card .col-md-2 {
        -ms-flex: 0 0 16.666667%;
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .KX_checkout .KX_area_payment .KX_card .col-md-3, .KX_checkout.KX_direct .KX_card .col-md-3 {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }

    .KX_checkout .KX_area_payment .KX_card .col-md-4, .KX_checkout.KX_direct .KX_card .col-md-4 {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .KX_checkout .KX_area_payment .KX_card .col-md-5, .KX_checkout.KX_direct .KX_card .col-md-5 {
        -ms-flex: 0 0 41.666667%;
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .KX_checkout .KX_area_payment .KX_card .col-md-6, .KX_checkout.KX_direct .KX_card .col-md-6 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .KX_checkout .KX_area_payment .KX_card .col-md-9, .KX_checkout.KX_direct .KX_card .col-md-9 {
        -ms-flex: 0 0 75%;
        flex: 0 0 75%;
        max-width: 75%;
    }

    .container {
        /*max-width: 90%;*/
        text-align: center;
        padding: 0 10px !important;
    }

    .KX_checkout .KX_area_payment .form_pay_header {
        min-height: 36px !important;
        padding: 5px !important;
        margin-bottom: 0 !important;
    }

    .KX_checkout.KX_direct .KX_header .KX_input_group{
        width:45%;
    }
}

@media (min-width: 576px) {
    .container {
        /*max-width: 90%;*/
    }
}

@media (max-width: 539px) {
    .KX_checkout .KX_area_payment .KX_card .col-md-2, .KX_checkout.KX_direct .KX_card .col-md-2 {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }

    .KX_checkout .KX_area_payment .KX_card .col-md-5.hidden_element, .KX_card .col-md-4.hidden_element,
    .KX_checkout.KX_direct .KX_card .col-md-5.hidden_element {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 470px) {
    .KX_checkout .KX_area_payment .KX_card .col-md-2, .KX_checkout .KX_area_payment .KX_card .col-md-3,
    .KX_checkout.KX_direct .KX_card .col-md-2, .KX_checkout.KX_direct .KX_card .col-md-3 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .KX_checkout .KX_area_payment .KX_card .col-md-6, .KX_checkout.KX_direct .KX_card .col-md-6 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .KX_checkout .KX_area_payment .KX_card .col-md-5.hidden_element, .KX_checkout .KX_area_payment .KX_card .col-md-4.hidden_element,
    .KX_checkout.KX_direct .KX_card .col-md-5.hidden_element, .KX_checkout.KX_direct .KX_card .col-md-4.hidden_element {
        display: none;
    }

    .KX_checkout .KX_area_payment .KX_card input, .KX_card select, .KX_checkout.KX_direct .KX_card input {
        font-size: .9rem;
        padding: .275rem .65rem;
        max-width: initial;
    }

    .KX_checkout .KX_area_payment .KX_card .cvv_field_1, .KX_checkout.KX_direct .KX_card .cvv_field_1 {
        display: none !important;
    }

    .KX_checkout .KX_area_payment .KX_card .cvv_field_2, .KX_checkout.KX_direct .KX_card .cvv_field_2 {
        display: block !important;
    }

    .KX_checkout .KX_area_payment .KX_card .col-md-2.cvv_field, .KX_checkout.KX_direct .KX_card .col-md-2.cvv_field {
        margin-left: auto;
        -ms-flex: 0 0 33.3333%;
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
