/* Px Leasing Calculator */

[v-cloak] {
    display: none;
}

.px-loader {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    transform: scale(1.68);
}

/* Fixed */
html,
body {
    width: 100%;
    height: 100%;
}

#mainContent {
    width: 100%;
    height: 100%;
}

.main {
    width: 100%;
    height: calc(100% - 102px);
    padding-top: 0px;
}

.px-fadeArea {
    position: absolute;
    width: 100%;
    height: 120px;
    bottom: 0px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8)60%, rgba(255, 255, 255, 1) 100%);
}

.px-prevStep {
    content: '';
    position: absolute;
    top: 33px;
    left: 40px;
    border-top: 3px solid #222;
    border-left: 3px solid #222;
    display: inline-block;
    width: 12px;
    height: 12px;
    -webkit-transform: rotate(315deg);
    -ms-transform: rotate(315deg);
    transform: rotate(315deg);
    visibility: visible;
    margin: 0 0 0 5px;
    cursor: pointer;
}

.px-step05 .px-prevStep {
    top: 7px;
    border-top-color: #fff;
    border-left-color: #fff;
}

.px-disabled-highlight {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.txt-styleNumber {
    font-family: 'Kanit', Helvetica, Arial, sans-serif;
font-weight:700;
    font-size: 17px;
}

.txt-bold {
    font-weight: bold;
}

/* Template */
.px-calc {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.px-calc.cloak {
    display: none;
}

.px-calc-container {
    display: -ms-grid;
    display: grid;
    height: 100%;
    grid-template-columns: 75% 25%;
    grid-template-rows: 0px 100%;
    grid-template-areas:
        "header header"
        "stage control";
}

.px-calc-header {
    grid-area: header;
    background-color: #222;
}

.px-calc-stage {
    position: relative;
    grid-area: stage;
    background: url(../img/bg-preview-car.jpg) #fff center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.px-calc-control {
    position: relative;
    grid-area: control;
    overflow: hidden;
    background: #fff;
    background-repeat: no-repeat;
}

.px-calc-control.result {
    background-color: #ea212e;
    background-image: none;
}

.px-calc-bgViewer {
    visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url(../img/bg-cal-summary.jpg) #fff center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1);
    filter: brightness(0%);
    transition-property: transform, filter;
    transition-duration: 720ms;
    transition-timing-function: ease-out;
}

.px-calc-bgViewer.anim {
    visibility: visible;
    transform: scale(1.05);
    filter: brightness(100%);
}

@media all and (-ms-high-contrast:none) {
    .px-calc-container {
        display: -ms-grid;
        -ms-grid-columns: 75% 25%;
        -ms-grid-rows: 85px calc(100% - 85px);
    }

    .px-calc-header {
        -ms-grid-row: 1;
        -ms-grid-row-span: 1;
        -ms-grid-col: 1;
        -ms-grid-col-span: 2;
    }

    .px-calc-stage {
        -ms-grid-row: 2;
        -ms-grid-row-span: 1;
        -ms-grid-col: 1;
        -ms-grid-col-span: 1;
    }

    .px-calc-control {
        -ms-grid-row: 2;
        -ms-grid-row-span: 1;
        -ms-grid-col: 2;
        -ms-grid-col-span: 1;
    }

}

/**/
.srpite-car {
    position: relative;
    text-align: center;
    margin-top: 12vh;
    z-index: 1;
}

.srpite-car > img {
    max-width: 100%;
    max-height: 46vh;
}

.px-calc-paginate {
    display: flex;
    width: calc(100% + 30px);
    flex-direction: row;
    /*    border-bottom: 1px solid #ddd;*/
    transform: translateX(-15px) skew(-25deg) rotate(0deg);
    background-color: #f2f4f5;
    color: #bbb;
    font-family: 'Kanit', Helvetica, Arial, sans-serif;
font-weight:700;
    font-size: 12px;
    line-height: 20px;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.35);
}

.px-calc-control.result .px-calc-paginate {
    display: none;
}

.px-calc-paginate li {
    text-align: center;
    width: 22%;
    padding: 20px 0 20px 0px;
    box-sizing: border-box;
}

.px-calc-paginate li:first-child,
.px-calc-paginate li:last-child {
    width: 28%;
}

.px-calc-paginate li:first-child {
    padding-left: 12px;
}

.px-calc-paginate span {
    display: inline-block;
    transform: skew(25deg) rotate(0deg);
}

.px-calc-paginate li.ready {
    color: #fff;
    background-color: #222;
    cursor: pointer;
}

.px-calc-paginate li.current {
    color: #fff;
    background-color: #ea212e;
}

.px-calc-wrapper {
    overflow: auto;
    height: calc(100% - 60px);
}

.px-calc-control.result .px-calc-wrapper {
    height: 100%;
}

.px-calc-control.result .px-calc-wrapper::before {
    display: block;
    content: ' ';
    width: 100%;
    height: 35px;
    background-color: #ea212e;
    background-size: 100% 35px;
    background-repeat: no-repeat;
}

.px-calc-barTitle {
    position: relative;
    padding: 26px 0 20px 0;
    text-align: center;
    font-family: 'KanitBold';
    font-size: 22px;
    line-height: 25px;
    color: #222;
}

.px-calc-control.result .px-calc-barTitle {
    color: #fff;
}

.px-calc-control.result .px-calc-barTitle {
    padding-top: 0px;
}

.px-calc-carList {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 15px 15px 60px 15px;
}

.px-calc-carList li {
    position: relative;
    width: 50%;
    padding: 5px 10px;
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;

}

.px-calc-carList li > img {
    max-width: 90%;
}

.px-calc-carList h4 {
    font-family: 'KanitBold';
    font-size: 15px;
    letter-spacing: 0.6px;
    word-break: break-all;
}

.px-calc-carList li.selected .check-hover,
.px-calc-list li.selected .check-hover {
    -webkit-transition: ease-in-out .2s;
    -o-transition: ease-in-out .2s;
    transition: ease-in-out .2s;
    opacity: 1;
}

.check-hover {
    position: absolute;
    right: 8px;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: #ea212e;
    text-align: center;
    border-radius: 50%;
    opacity: 0;
}

.check-hover:after {
    content: '';
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    display: inline-block;
    width: 7px;
    height: 12px;
    -webkit-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
    transform: rotate(225deg);
    visibility: visible;
    margin: 0 0 0 5px;
    position: absolute;
    top: 7px;
    right: 11px;
}

.px-calc-barBottom {
    display: block;
    position: absolute;
    width: 100%;
    height: 60px;
    bottom: 0px;
    text-align: center;

    transform: translateY(100px);
    transform: translateY(100px);
}

.btn-more:after {
    top: 19px;
}

.px-calc-barBottom .btn.btn-white {
    width: 200px;
    height: 45px;
    /*    box-shadow: 0px 0px 0px 3px rgba(255, 255, 255, 1);*/
}

.px-calc-barBottom.show {
    transform: translateY(0px);
    transition-duration: 150ms;
    transition-property: transform;
}

.px-calc-list {
    color: #222;
    padding-bottom: 120px;
}

.px-calc-list li {
    position: relative;
    padding: 16px 40px 0px 40px;
    /*    border-top: 1px solid #eee;*/
    cursor: pointer;
}

.px-step02 .px-calc-list li {
    padding: 21px 40px 0px 40px;
}

.px-lineBreak {
    width: 100%;
    padding-top: 16px;
    border-bottom: 1px solid #eee;
}

.px-step02 .px-lineBreak {
    padding-top: 21px;
}

.px-calc-list li.selected {
    cursor: default;
}

.px-calc-list li:last-child {
    /*    border-bottom: 1px solid #eee;*/
}

.px-calc-list li.selected,
.px-calc-list li:hover {
    background-color: #f2f4f5;
}

.px-calc-list h3 {
    font-family: 'KanitBold';
    font-size: 20px;
    margin-bottom: 7px;
}

.px-step03 .px-calc-list h3 {
    font-size: 30px;
}

.px-step04 .px-calc-list h3 {
    font-size: 30px;
}

.px-calc-list .txt-subPrice {
    margin: 0px 6px;
}

.txt-subList {
    font-family: 'Kanit';
    font-size: 13px;
    /*    font-size: 1.42vw;*/
    line-height: 1;
}

.txt-subPrice {
    font-family: 'KanitBold';
    font-size: 14px;
    line-height: 1;
}

.txt-stylePercent {
    font-size: 0.5em;
    margin-left: 2px;
}

.px-calc-list .check-hover {
    margin-top: auto;
    margin-bottom: auto;
    top: 0;
    bottom: 0;
    right: 20px;
}

.px-calc-control.result .px-fadeArea {
    display: none;
}

.px-calc-results {
    color: #222;
}

.px-calc-results li {
    position: relative;
    padding: 22px 40px 18px 40px;
    border-bottom: 1px solid #e5859c;
    cursor: pointer;
}

.px-calc-results li::after {
    content: '';
    position: absolute;
    top: 45%;
    right: 40px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    display: inline-block;
    width: 12px;
    height: 12px;
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
    visibility: visible;
    margin: 0 0 0 5px;
}

.px-calc-results h3 {
    font-family: 'KanitBold';
    font-size: 20px;
    color: #e5859c;
}

.px-calc-badge {
    display: inline-block;
    width: auto;
    height: 23px;
    margin-right: 10px;
    padding: 0px 12px;
    color: #222;
    font-size: 13px;
    line-height: 23px;
    background-color: #fff;
    text-align: center;
    transform: skew(-25deg) rotate(0deg);
}

.px-calc-badge span {
    display: inline-block;
    transform: skew(25deg) rotate(0deg);
}

.px-calc-results h3 {
    margin-bottom: 4px;
}

.px-calc-results h3 .sc-hover-model {
    font-size: 14px;
    font-family: Helvetica, Arial, sans-serif;
    color: #e5859c;
    margin-left: -7px;
}

.px-calc-results h3 .sc-hover-txt {
    top: -8px;
    left: 7px;
    transform: translate(-50%, -100%);
    color: #fff;
    line-height: 1.3em;
}

.px-calc-results h3 .arrow-hover-txt {
    top: initial;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.txt-subPMT,
.txt-subBalloon {
    font-family: 'Kanit', Helvetica, Arial, sans-serif;
font-weight:700;
    font-size: 32px;
    /*    font-size: 2.94vw;*/
    color: #fff;
}

.txt-subPMT .txt-small {
    font-size: 14px;
    font-family: 'Kanit', Helvetica, Arial, sans-serif;
font-weight:700;
}

.txt-subBalloon {
    font-size: 12px;
    /*    font-style: italic;*/
    margin-top: -10px;
    color: #e5859c;
}

.txt-subBalloon span {
    color: #fff;
    font-size: 13px;
}

.px-calc-renew {
    margin-top: 10px;
    text-align: center;
}

.px-calc-renew .btn {
    font-family: 'KanitBold';
    line-height: 34px;
}

.btn-cal:before {
    top: 0px;
    margin-left: -3px;
    font-size: 16px;
}

.btn-cal span {
    padding-left: 20px;
}

.px-calc-bar {
    display: grid;
    position: absolute;
    width: 91.7142857%;
    height: calc(100% - 60vh);
    max-height: 270px;
    left: 0;
    right: 0;
    bottom: 15px;
    grid-template-columns: 32% 32% 32%;
    grid-template-rows: 100%;
    grid-column-gap: 2%;
    margin-left: auto;
    margin-right: auto;
}

.boxList {
    display: grid;
    min-height: 180px;
    grid-template-columns: 100%;
    grid-template-rows: auto 50px;
    background: rgba(255, 255, 255, 0.85);
    padding: 25px 25px 15px;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    border-bottom: 4px solid transparent;
    z-index: 2;
}

.boxList.current {
    border-bottom-color: #ea212e;
}

.px-calc-bar .boxContent {
    text-align: center;
    align-self: center;
}

.px-calc-bar h3 {
    font-size: 3.64vw;
}

.px-calc-bar h4 {
    font-size: 15px;
    margin: 5px 0;
}

.px-calc-bar h3.txt-smallSize {
    font-size: 2vw;
}

.px-calc-bar h4.txt-smallTitle {
    font-size: 14px;
    line-height: 20px;
}

.px-calc-bar .boxSub {
    display: grid;
    height: 50px;
    grid-template-columns: 50px auto 30px;
    grid-template-rows: 50% 50%;
    grid-column-gap: 4px;
    font-family: 'Kanit';
    font-size: 15px;
    border-top: 1px solid #eee;
    color: #222;
    padding-top: 6px;
    align-items: baseline;
}

.txt-right {
    text-align: right;
}

.inVis {
    visibility: hidden !important;
}

/* Transitions */
#carsImage {
    transform-origin: 100% 30%;
}

.animApp-enter-active {
    transition: opacity 1200ms;
}

.animApp-enter {
    opacity: 0;
}

.animCar-enter-active {
    transition: all 560ms;
}

.animCar-enter {
    opacity: 0;
    transform: scale(0.85);
}

.animCar-leave-active {
    visibility: hidden;
}

.animBox-enter-active,
.animBox-leave-active {
    transition: all 280ms;
}

.animBox-enter,
.animBox-leave-to {
    opacity: 0;
    transform: translateY(100px);
}




/* MEDIA QUERY */
@media only screen and (max-width: 1024px) {

    html,
    body {
        width: 100%;
        height: 100%;
    }

    .main {
        height: 100%;
    }

    .px-calc {
        width: 100%;
        height: 100%;
    }

    .px-calc-container {
        width: 100%;
        height: 100%;
        grid-template-columns: 100%;
        grid-template-rows: 60px 40% calc(60% - 60px);
        grid-template-areas:
            "header"
            "stage"
            "control";
    }

    .px-calc-header {
        height: 60px;
    }

    .srpite-car {
        height: 100%;
        margin-top: 3vh;
    }

    .srpite-car > img {
        max-height: 80%;
        max-width: 66%;
    }

    .px-calc-bar {
        bottom: 120px;
        grid-template-columns: 32% 32% 32%;
        grid-column-gap: 2%;
    }

    .boxList {
        min-height: 110px;
        padding: 10px 10px;
    }

    .px-calc-bar h4.txt-smallTitle {
        font-size: 12px;
        line-height: 20px;
        margin-bottom: 4px;
    }

    .px-calc-bar h3.txt-smallSize {
        font-size: 14px;
        line-height: 13px;
    }

    .px-calc-bar .boxSub {
        display: none;
    }

    .px-calc-bar h4 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .px-calc-bar h3 {
        font-size: 30px;
    }

    .boxContent h3 span {
        font-size: 0.5em;
        margin-left: 4px;
    }

    .px-calc-control {
        box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);
        z-index: 5;
        background: #fff;
    }

    .px-calc-paginate {
        height: 45px;
        font-size: 18px;
        box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.35);
    }

    .px-calc-paginate li {
        padding: 14px 0 10px 0px;
    }

    .px-calc-barTitle {
        font-size: 24px;
        padding: 16px 0px;
    }

    .px-calc-wrapper {
        overflow: hidden;
        height: calc(100% - 45px);
    }

    .px-calc-carList,
    .px-calc-list {
        display: block;
        width: 100%;
        height: calc(80% - 70px);
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0px 20px;
    }

    .px-calc-carList li {
        display: inline-block;
        width: 42%;
        margin-bottom: 0px;
        padding: 5px 5px;
        /*        width: auto;*/
    }

    .px-calc-carList li > img {
        max-width: 100%;
    }

    .px-calc-carList h4 {
        font-size: 13px;
    }

    .px-calc-list {
        display: flex;
        padding-bottom: 0px;
    }

    .px-calc-list li {
        flex: 0 0 auto;
        width: 44%;
        height: 100%;
        margin-right: 2%;
        border: 1px solid #eee;
        padding: 20px 22px;
        white-space: normal;
    }

    .px-step02 .px-calc-list li {
        width: 46%;
        padding: 20px 22px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .px-step03 .px-calc-list li {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

    .px-step04 .px-calc-list li {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

    .px-calc-list li:last-child {
        margin-right: 20px;
    }

    .px-calc-list h3 {
        margin-bottom: 10px;
    }

    .px-step02 .px-calc-list h3 {
        font-size: 18px;
    }

    .px-step03 .px-calc-list h3,
    .px-step04 .px-calc-list h3 {
        font-size: 32px;
    }

    .px-step04 .px-calc-list h3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .px-calc-list .check-hover {
        top: 10px;
        bottom: initial;
        right: 10px;
    }

    .txt-stylePercent {
        font-size: 0.5em;
    }

    .px-calc-barBottom {
        height: 54px;
    }

    .px-calc-barBottom .btn.btn-white {
        width: 80%;
        padding: 0px;
        text-align: center;
        max-width: 220px;
    }

    .px-calc-control.result {
        background-color: #ea212e;
        background-size: 100% 35px;
        background-repeat: no-repeat;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .px-calc-control.result .px-calc-wrapper {
        overflow: visible;
    }

    .px-calc-results {
        width: 90%;
        margin: 0 auto;
    }

    .px-calc-results li {
        padding: 12px 20px;
        border: 2px solid #eee;
        border-radius: 40px;
        margin-bottom: 10px;
    }

    .px-calc-results li::after {
        display: none;
    }

    .px-calc-control.result a {
        display: grid;
        width: 100%;
        grid-template-columns: 50% 50%;
        grid-template-rows: 30px 20px;
    }

    .txt-subBalloon {
        /*        grid-column: 1 / span 2;*/
    }

    .sc-hover-model {
        display: none;
    }

    .px-calc-results h3 {
        display: flex;
        align-items: center;
        grid-row: 1 / span 2;
        margin-bottom: 0px;
    }

    .px-calc-control.result .px-calc-wrapper::before {
        background: none;
    }

    .summary .car-choose:before {
        background: none;
    }

    .txt-subPMT {
        display: flex;
        justify-content: flex-end;
        font-size: 30px;
    }

    .txt-subPMT .txt-small {
        position: relative;
        top: 14px;
    }

    .px-2line .txt-subPMT {
        margin-top: -9px;
    }

    .txt-subBalloon {
        display: flex;
        justify-content: flex-end;
        font-size: 15px;
        margin-top: -3px;
    }

    .px-calc-results h3 {
        margin-bottom: 0px;
    }

    .px-calc-control.result .px-calc-barBottom {
        display: none;
    }

    .px-fadeArea,
    .px-prevStep,
    .px-lineBreak {
        display: none;
    }

    .px-initTxt {
        font-size: 30px;
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .px-calc-paginate {
        font-size: 14px;
    }

    .px-calc-barTitle {
        font-size: 20px;
    }

    .px-step02 .px-calc-list li {
        width: 50%;
    }

    .px-calc-carList li {
        width: 50%;
    }

    .txt-subPMT {
        font-size: 26px;
    }

    .px-calc-results li {
        padding: 5px 20px 3px;
    }

}

@media only screen and (max-width: 375px) {
    .px-calc-carList li {
        width: 45%;
    }
}
