.animated{
    animation-duration: .2s;
}

.xs-header-top,
.xs-header-bot,
.selector-footer {
    display: none;
}

@media (max-width: 767px){

    .step-back {

    }

    .tap-step{
        color: #d2d3d5;
        position: relative; left: 0; top: 0;
        margin-bottom: 20px;
        border: 1px solid #cccccc;
        padding: 14px 50px 14px 20px;
        border-radius: 3px;
        font-size: 18px;
        background-color: white;
        background-image: url('/resources/images/selector-xs-arrow.svg');
        background-repeat: no-repeat;
        background-position: 96% center;
    }

    div.form .tap-step label{
        color: #d2d3d5;
        cursor: default;
    }

    .tap-step label.error{
        color: red;
    }

    .tap-step.active,
    .tap-step.done,
    div.form .tap-step.done label,
    div.form .tap-step.active label{
        color: #4d4e56;
        cursor: pointer;
    }

    .tap-step.active{
        border: 2px solid #00c2df;
    }

    .tap-step.loading{
        background-image: url('/resources/images/loader20.gif');
        background-position: 97% center;
    }

    .tap-step .fa.fa-chevron-right{
        display: block;
        position: absolute; top: 50%; right: 15px;
        margin-top: -10px;
    }

    .tap-step.loading .fa{
        display: none;
    }

    .tap-step .tap-value{
        border: none;
        height: auto;
        font-size: 18px;
        padding: 0;
        font-weight: bold;
    }

    .tap-step .tap-value.error{
        border-color: red;
        color: red;
    }

    .step-wrap{
        display: none;
        margin: 0;
        padding: 0!important;
        position: fixed;
        left: 0; top: 0;
        width: 100%;
        height: 100%!important;
        z-index: 2001;
        background-color: white;
    }

    .step-wrap.expand {
        display: block;
    }

    .tap-step .step-wrap .input-wrap{
        margin: 0 25px;
    }

    .tap-step .step-wrap .input-wrap input{
        height: 38px;
        line-height: 38px;
        width: calc(100% - 30px);
    }

    .step-wrap .options-wrap{
        border-radius: 2px;
        height: 88%;
        margin: 0;
        overflow-y: auto;
    }

    .step-wrap .options-wrap .option-row{
        border: 1px solid #f5f5f5;
        margin: 5px 5px 0 5px;
        padding: 0;
        position: relative; left: 0; top: 0;
        color: #4d4e56;
        font-size: 14px;
    }

    .step-wrap .options-wrap .option-row:last-child{
        margin: 5px 5px 5px 5px;
    }

    .step-wrap .options-wrap .option-row:hover,
    .step-wrap .options-wrap .option-row.active{
        border: 1px solid #00c2df;
        background-color: #aff5ff;
    }

    .step-wrap .options-wrap .option-row input[type=radio]{
        position: absolute; left: 10px; top: 50%; margin-top: -7px;
    }

    .step-wrap .options-wrap .option-row label{
        position: relative; left: 0; top: 0;
        display: block;
        padding: 18px 0 19px 32px;
    }

    .step-wrap .options-wrap .option-row label span.details{
        position: absolute; right: 10px; top: 50%;
        margin-top: -15px;
        color: #00c2df;
        display: block;
        height: 30px;
        line-height: 30px;
        font-weight: normal;
        font-size: 12px;
    }

    .options-wrap .option-row label span.details:hover{
        text-decoration: underline;
        color: #00addf;
    }

    .options-wrap .option-row.custom .in2{
        height: 60px;
        line-height: 60px;
        border-color: #00c2df;
    }

    .options-wrap .option-row.custom label{
        padding-left: 100px;
    }

    .step-wrap  .options-wrap .option-row label .additional{
        font-weight: normal;
        font-size: 12px;
        padding: 5px 10px 0 0;
        color: #4d4e56;
    }

    .options-wrap .option-row.custom input[type=tel].loading{
        background-image: url('/resources/images/ajax-loader-grey.gif');
        background-repeat: no-repeat;
        background-position: 95% 50%;
        border: 1px solid #ccc;
        color: #ccc;
    }


    /* Shapes */

    .options-wrap.shapes .option-row label{
        padding-left: 90px;
        font-weight: normal;
    }

    .options-wrap.shapes .option-row img{
        line-height: inherit;
        display: block;
        position: absolute; left: 37px; top: 50%; margin-top: -18px;
        height: 36px;
    }

    /* Labels */

    .options-wrap.labels .option-row label{
        padding-left: 95px;
        font-weight: normal;
    }

    .options-wrap.labels .option-row img{
        line-height: inherit;
        display: block;
        position: absolute; left: 37px; top: 50%; margin-top: -25px;
        height: 50px;
    }

    /* Materials */

    .options-wrap.materials .option-row img{
        line-height: inherit;
        display: block;
        position: absolute; left: 32px; top: 50%; margin-top: -15px;
        border: 1px solid #cccccc;
        width: 30px; height: 30px;
    }

    .options-wrap.materials .option-row label{
        padding-left: 70px;
        padding-right: 60px;
    }



    /* Directions */

    .options-wrap.directions {
        padding-top: 10px;
    }

    .options-wrap.directions .option-row {
        float: left;
        width: 150px;
        height: 150px;
        margin: 0 10px 10px 0;
        position: relative;
        left: 0;
    }

    .options-wrap.directions .option-row:nth-child(odd) {
        clear: left;
        margin-left: calc((100% - 310px)/2);
    }

    .options-wrap.directions .option-row:nth-child(even) {
        margin: 0 0 10px 0!important;
    }

    .options-wrap.directions .option-row input[type=radio] {
        position: absolute;
        left: -10000px;
    }

    .options-wrap.directions .option-row label {
        background-position: center 34px;
        background-repeat: no-repeat;
        background-size: 70px;
        display: block;
        width: 100%;
        height: 100%;
        text-align: center;
        font-weight: normal;
        padding: 6px 10px 8px 10px;
    }

    .options-wrap.directions .option-row:nth-child(3) label,
    .options-wrap.directions .option-row:nth-child(4) label {
        background-position: center 25px;
    }

    .options-wrap.directions .option-row label div {
        padding: 10px;
        position: absolute;
        bottom: 0;
        left: 0;
        font-size: 11px;
        line-height: 11px;
        text-align: center;
    }

    .options-wrap.directions .option-row.active label {
        background-color: #aff5ff;
    }


    /* Quantity */

    .options-wrap.quantity .option-row label{
        padding-right: 150px;
    }

    .options-wrap.quantity .option-row label.half{
        padding-right: 75px;
    }

    .options-wrap.quantity .option-row label.nopad{
        padding-right: 0;
    }

    .options-wrap.quantity .option-row .cost{
        display: block;
        position: absolute; right: 12px; top: 50%;
        margin-top: -10px;
        line-height: 20px;
    }


    .selector-footer {
        display: flex;
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 2001;
        background-color: #eeeeee;
        width: 100%;
        border-top: 1px solid #ccc;
        font-size: 14px;
        padding: 20px 15px 10px 15px;
    }

    .selector-footer div{
    }

    .selector-footer div:last-child{
        text-align: right;
    }

    .selector-footer .icon-phone:before{
        font-size: 36px;
        vertical-align: middle;
    }

    .xs-header-top{
        display: flex;
        background-color: #eeeeee;
        padding: 15px;
        color: #4d4e56;
    }

    .xs-header-top div:last-child{
        text-align: right;
    }

    .xs-header-top a{
        color: #4d4e56;
    }

    .xs-header-bot {
        display: flex;
        padding: 15px;
    }

    /* Size */
    .step-wrap .options-wrap.size .option-row.custom input[type=tel]{
        margin: 5px 10px;
    }

    .step-wrap .options-wrap.size .option-row.custom div.col-4:last-child input[type=tel]{
        margin: 5px 0px;
    }

    .step-wrap .options-wrap.size .option-row.custom .col-1{
        line-height: 70px;
        text-align: center;
    }

    /* Custom switch in bottom */
    .step-wrap .options-wrap .option-row.custom-switch-bottom{
        padding: 5px 10px 15px 10px;
    }

    .step-wrap .options-wrap .option-row.custom-switch-bottom:hover{
        background-color: white;
    }

    .step-wrap .options-wrap .option-row.custom-switch-bottom label{
        text-decoration: underline;
        font-weight: normal;
        color: #00c2df;
        padding: 0;
    }

    /* Other option */

    .step-wrap .options-wrap .option-row.other.active > input{
        margin-top: -24px;
    }

    .step-wrap .options-wrap .option-row.other.active > label {
        padding-bottom: 10px;
    }

    .step-wrap .options-wrap .option-row.other div{
        padding: 0 5px 15px 5px;
    }

    .step-wrap .options-wrap .option-row.other div input {
        font-size: 16px;
        width: calc(100% - 76px);
        outline: none;
        border: 1px solid grey;
    }

    .step-wrap .options-wrap .option-row.other div input.error {
        border: 1px solid red;
    }

    .step-wrap .options-wrap .option-row.other div button {
        border: 1px solid grey;
        border-radius: 2px;
        width: 70px;
        font-size: 16px;
    }
}