/*
Theme Name: Jicko Auto Design
Theme URI: https://freshdigital.co.th/web-design/
Template: hello-elementor
Author: Fresh Digital
Author URI: https://freshdigital.co.th/
Description: Theme for Jicko Auto Design
Version: 1.0.0.1669855674
Updated: 2022-12-01 00:47:54

*/

.sitepopup.elementor-popup-modal .dialog-message {
    padding: 0;
    overflow-y: auto;
    direction: ltr;
    scrollbar-color: #0087E1 #e4e4e4;
    scrollbar-width: 10px;
}

.sitepopup.elementor-popup-modal .dialog-message::-webkit-scrollbar {
    width: 10px;
}

.sitepopup.elementor-popup-modal .dialog-message::-webkit-scrollbar-track {
    background-color: #e4e4e4;
}

.sitepopup.elementor-popup-modal .dialog-message::-webkit-scrollbar-thumb {
    border-radius: 100px;
    border: 6px solid rgba(0, 0, 0, 0.18);
    border-left: 0;
    border-right: 0;
    background-color: #0087E1;
}

.primary-color {
    color: var(--e-global-color-primary);
}

a:hover {
    filter: brightness(0.8);
}

header .elementor-widget-theme-site-logo img {
    transition: all 0.2s ease-out;
}

header.elementor-sticky--effects .elementor-widget-theme-site-logo img {
    max-width: 70px !important;
    ;
}

.swiper-image-stretch .swiper-slide .swiper-slide-inner {
    line-height: 0 !important;
}

.pvc_stats.total_only {
    font-size: 40px;
    font-weight: 700;
    padding: 0 !important;
    margin-bottom: 0 !important;
    float: unset;
    text-align: center;
    line-height: 1;
}

.pvc_stats .pvc-stats-icon {
    display: none !important;
}

.box-title-left .elementor-icon-box-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.box-title-left .elementor-icon-box-content .elementor-icon-box-title {
    position: relative;
    padding-right: 15px;
    line-height: 1;
}

.box-title-left .elementor-icon-box-content .elementor-icon-box-title:before {
    content: '';
    display: block;
    width: 3px;
    height: 25px;
    position: absolute;
    top: 50%;
    right: 0;
    background-color: var(--e-global-color-primary);
    transform: translateY(-50%);
}

.service-box {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.service-box>div {
    position: relative;
    height: 200px;
}

.service-box>div:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
    background-color: rgb(1 167 229 / 35%);
    opacity: 1;
    transition: all 0.5s ease-out;
}

.service-box:hover>div:before,
.service-box.active>div:before {
    opacity: 0;
}

.service-box .service-title {
    position: relative;
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(128deg, black, white);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.25s ease-out;
}

.service-box:hover .service-title,
.service-box.active .service-title {
    background: linear-gradient(318deg, black, #787878);
}

.service-box .service-title .elementor-heading-title {
    font-size: 14px !important;
}

.service-box .service-image {
    margin: 0 !important;
    height: 100%;
}

.service-box .service-image>div {
    height: 100%;
}

.service-box .service-image a {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-box:hover .service-image a {
    z-index: 3;
}

.service-box .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.toggle-container {
    transition: height 1s ease-in-out;
    overflow: hidden;
    display: none;
}

.toggle-container.active {
    height: auto;
}

.toggle-container.elementor-element-edit-mode {
    display: block;
}

.section-toggle>.elementor-container {
    flex-direction: column;
}

.section-toggle>.elementor-container>div {
    width: 100% !important;
}

footer a {
    color: inherit !important;
}

@media screen and (max-width: 1024px) {
    .pvc_stats.total_only {
        font-size: 30px;
    }
}

@media screen and (max-width: 767px) {
    .service-box>div {
        height: 150px;
    }
}


/**************** car slider ********************/

.car-wrapper {
    background-color: var(--e-global-color-secondary);
}

.fade {
    opacity: 1;
    transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out;
    -webkit-transition: opacity .25s ease-in-out;
}

.fade:hover {
    opacity: 0;
}

.desc {
    display: none;
    margin-top: 20px;
}

.product_player>.wrapper {
    width: 100%;
    max-width: 710px;
    height: 384px;
    position: absolute;
}

.comp,
.main_car {
    width: 100%;
    max-width: 710px;
    height: 384px;
    position: absolute;
    opacity: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% !important;
}

.main_car {
    opacity: 1;
}

.product_player {
    display: inline-block;
    width: 100%;
    max-width: 710px;
    height: 384px;
}

.newproduct_ls {
    margin-top: 30px;
}

.newproduct_ls img {
    width: 400px;
    margin-right: 30px;
}

.product_list {
    margin-top: 50px;
}

.product_list>div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.product_list .item {
    position: relative;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    height: auto !important;
    cursor: pointer;
}

.product_list .item a {
    display: block;
    width: 100%;
    height: 100%;
}

.product_list .item img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 2;
}

.product_list .item:not(.active) a:before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgb(1 167 229 / 35%);
    position: absolute;
    z-index: 3;
    transition: all 0.3S ease-out;
}

.product_list .item .service-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(128deg, black, white);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 10px;
}

.product_list .item .service-content h3 {
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    color: #fff;
    margin: 0;
}

.car-center {
    text-align: center;
    height: 384px;
}

.gform_heading .gform_title {
    font-size: 35px;
    text-align: center;
    color: #000;
    font-weight: 500;
}

.gform_heading .gform_required_legend {
    display: none;
}

.gform_wrapper.gravity-theme .gfield_label {
    font-weight: 300 !important;
}

.gform_footer .gform_button {
    width: 100%;
    border: 0;
}

.gform_confirmation_wrapper {
    text-align: center;
    color: #000;
    font-size: 16px;
}

.gform_confirmation_wrapper #gforms_confirmation_message {
    font-size: 22px;
}

.facebook-page-section {
    text-align: center;
}

.facebook-page-section .elementor-facebook-widget.fb-page.fb_iframe_widget {
    max-width: 500px !important;
}

.white-popup-block {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px 20px 15px;
}

.mfp-close-btn-in .mfp-close {
    color: #333;
    font-size: 18px;
    padding: 0 !important;
    width: 25px !important;
    height: 25px !important;
    line-height: 1;
}

@media (max-width: 899px) {
    .product_list>div>.item:nth-of-type(odd):last-of-type {
        grid-column: span 2;
    }
}

@media (min-width: 900px) {
    .product_list>div {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .product_list>div {
        grid-template-columns: repeat(7, 1fr);
    }
}