﻿a {
    text-decoration: none;
}

/*複寫原本dialog css*/
.ui-widget-header, .ui-state-default, ui-button {
    background: #b9cd6d;
    border: 1px solid #b9cd6d;
    color: #FFFFFF;
    font-weight: bold;
}

.ui-dialog-titlebar {
    display: none;
}

.dlg-no-close .ui-dialog-titlebar-close {
    display: none;
}

.ui-dialog-content {
    overflow: initial;
}

.ui-widget-overlay {
    background: rgba(0,0,0,0.8);
}

.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    font-family: 微軟正黑體;
}

/*--------------------------------------------*/
.btnClose {
    margin: 15px;
    text-align: center;
}

.fixeddialog {
    position: fixed;
    margin: 0 auto;
    top: 0;
    left: 5vw;
    padding: 5vw;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

/*tab css 設定*/
/* Style the tab */
.tab {
    overflow: hidden;
    display: inline-flex;
}

    /* Style the buttons inside the tab */
    .tab .btn_style {
        background-color: inherit;
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 14px 16px;
        transition: 0.3s;
        font-size: 17px;
        width: 32vw;
    }

    /* Change background color of buttons on hover */
    .tab button:hover {
        color: #6a7884;
    }

    /* Create an active/current tablink class */
    .tab button.active {
        border-style: solid;
        border-color: orange #e7eaf0 #fff #e7eaf0;
        border-width: 0.5333vw 0.2666vw 0.2666vw 0.2666vw;
        color: #6a7884;
        background: #fff;
    }

#tab1 .search-input {
    display: inline-block;
    width: 100%;
    position: relative;
}

#tab2 .search-input {
    display: inline-block;
    /*width: calc(100% - 15vw);*/
}

    #tab2 .search-input:nth-child(2) {
        width: 15vw;
        text-align: right;
    }

.tablinks {
    width: calc(33.3333% - 2.6666vw);
    height: auto;
    display: inline-block;
    margin: 0 0 -0.5333vw;
    padding: 2.6666vw 0 1.3333vw;
    line-height: 5.3333vw;
    text-align: center;
    color: #9faebd;
    border: 0.2666vw solid transparent;
    font-size: 3.7333vw;
    font-weight: 700;
}

/* Style the tab content */
.tabcontent {
    display: none;
    width: 100%;
    border-top: none;
    margin-top: 6px;
}

    .tabcontent input, .tabcontent select {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        height: 11.2vw;
        border-radius: 0.6667vw;
        border: solid 0.2666vw #9faebd;
        font-size: 4.2666vw;
    }

    .tabcontent input {
        margin: 0 0 30px 0;
    }
/*----------------------------------------------------*/

input[type="radio"]:checked + label {
    display: inline-block;
    /*float: left;*/
    position: relative;
    cursor: pointer;
    /*font-size: 3.7333vw;*/
    padding: 0;
    color: #34495e;
    line-height: 5.3333vw;
}

input[type="radio"] {
    cursor: pointer;
}

.radiotype {
    cursor: pointer;
}

.carModel {
    display: none;
}

a.btn_search {
    position: relative;
    width: auto;
    height: auto;
    padding: 3.6vw 3vw;
    font-size: 3.7333vw;
    margin: 0;
    display: inline-block;
    color: #fff;
    background: #188dc8;
    border-radius: 3px;
    border: solid 1px #188dc8;
    cursor: pointer;
}

#DialogBody table {
    border-collapse: collapse;
    border-spacing: 0;
}

    #DialogBody table th:nth-child(1) {
        width: 20%;
    }

    #DialogBody table th:nth-child(2) {
        width: 30%;
    }

    #DialogBody table th:nth-child(3) {
        width: 10%;
    }

    #DialogBody table th:nth-child(4) {
        width: 10%;
    }

    #DialogBody table th:nth-child(5) {
        width: 10%;
    }

    #DialogBody table th:nth-child(6) {
        width: 10%;
    }

    #DialogBody table td {
        text-align: center;
        padding: 10px 5px;
        vertical-align: middle;
        border: solid 1px #e7eaf0;
    }

.formList {
    /*font-size: 3.7333vw;*/
}

    .formList tr {
        border-top: solid 0.2666vw #e7eaf0;
    }

    .formList th {
        background: #008fc7;
        color: #fff;
        height: 8vw;
        vertical-align: middle;
        line-height: 4.8vw;
        font-weight: 400;
        border: solid 0.2666vw #e7eaf0;
    }

    .formList td {
        border-left: solid 0.2666vw #e7eaf0;
        position: relative;
    }

a.btn_check {
    width: 10.666vw;
    height: 5.8666vw;
    line-height: 5.8666vw;
    font-size: 3.7333vw;
    display: inline-block;
    color: #fff;
    background: #188dc8;
    border-radius: 3px;
    margin: 0 5px;
    border: solid 1px #188dc8;
    cursor: pointer;
}

#DialogBody ul {
    padding: 0;
}

    #DialogBody ul a {
        display: inline-block;
        border: solid 0.2666vw #9faebd;
        width: 10.6666vw;
        height: 5.8666vw;
        font-size: 3.7333vw;
        color: #9faebd;
        font-weight: 400;
        text-align: center;
        border-radius: 0.8vw;
        margin: 0 1.3333vw;
        line-height: 6.4vw;
    }

    #DialogBody ul li {
        list-style-type: none;
        width: 100%;
        padding: 5px 0;
        margin: 0;
        border: 0;
    }

#DialogBody span.gray {
    display: block;
    width: 100%;
    font-weight: 700;
    color: #6a7884;
    font-size: 14px;
    margin-bottom: 25px;
}

#DialogBody hr {
    display: block;
    height: 0.2666vw;
    border: none;
    border-top: solid 0.2666vw #e7eaf0;
    margin: 25px 0;
}

#DialogBody strong {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding-left: 2vw;
    color: #fff;
    font-size: 3.7333vw;
    height: 8vw;
    line-height: 8vw;
    background: #f11010;
    background-size: 12.5px;
}

#DialogBody span {

}

#DialogBody li.popularList span.popularListChild {
    width: 100%;
    display: inline-block;
}

#DialogBody li.popularList a img {
    width: 8vw;
}

#DialogBody li.allList a img {
    width: 35px;
    height: 35px;
    vertical-align: middle;
    margin: 0 5px;
}

#DialogBody li.popularList a {
    border: 0;
    width: calc(100% / 4 - 16px);
    margin: 0 4px;
    display: inline-block;
    height: auto;
    text-align: center;
}

    #DialogBody li.popularList a span {
        display: block;
        width: 100%;
        font-size: 3vw;
        color: #34495e;
        line-height: 12px;
        height: auto;
        background: none;
        font-weight: 400;
        margin: 0;
    }

#DialogBody li.allList a {
    border: solid 0.2666vw #9faebd;
    display: inline-block;
    width: calc(100% / 2 - 4%);
    margin: 1%;
    height: auto;
    line-height: 45px;
    text-align: left;
    color: #34495e;
    font-size: 0;
    vertical-align: top;
}

    #DialogBody li.allList a span {
        width: calc(100% - 45px);
        font-size: 3.7333vw;
        vertical-align: middle;
        line-height: 4.8vw;
        padding: 5px 0;
        height: auto;
        margin: 0;
        color: #34495e;
        display: inline-block;
    }

.carLetter {
    background: none;
    display: inline-block;
    float: none;
    width: 100%;
    font-size: 3.7333vw;
    color: #aaa;
    text-align: center;
    border: 0;
}

.allList {
    border-bottom: 1px solid #e7eaf0;
}

.carNameList {
    float: none;
    width: 100%;
}

.carType {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.box {
    margin-top: 15px;
    display: none;
    max-height: 400px;
    height: auto;
    overflow-y: scroll;
}

@media screen and (min-width: 1024px) {
    .tab .btn_style {
        width: 180px;
    }

    #DialogBody hr {
        height: 1px;
        border-top: solid 1px #e7eaf0;
        margin: 25px 0;
    }

    .clearfix {
        clear: both;
    }

    .fixeddialog {
        margin: 10vw auto;
        left: 25vw;
    }

    #DialogBody strong {
        padding-left: 10px;
        font-size: 16px;
        height: auto;
        line-height: 24px;
    }

    a.btn_search {
        font-size: 16px;
        padding: 10px 20px;
    }

    a.btn_check {
        width: 40px;
        height: 22px;
        line-height: 22px;
        font-size: 12px;
    }

    .formList {
        font-size: 16px;
    }

    #DialogBody ul li {
        display: inline-block;
        line-height: 24px;
    }

    #DialogBody li.popularList a img {
        width: 80px;
    }

    #DialogBody li.popularList span.popularListChild {
        display: inline-block;
        width: 50%;
        float: left;
    }

    #DialogBody li.popularList a {
        width: calc(100% / 4 - 13px);
    }

        #DialogBody li.popularList a span {
            font-size: 14px;
        }

    .carLetter {
        font-size: 20px;
        width: 30px;
        margin-top: 20px;
        float: left;
    }

    .carNameList {
        width: calc(100% - 30px);
        float: left;
    }

    #DialogBody li.allList a {
        width: calc(100% / 3 - 22px);
        vertical-align: middle;
        border: solid 1px #9faebd;
        border-radius: 3px;
    }

        #DialogBody li.allList a span {
            font-size: 14px;
            line-height: normal;
        }

    #tab1 .search-input {
        display: inline-block;
        width: calc(50% - 8px);
        float: left;
    }

        #tab1 .search-input:first-child {
            margin: 0 10px 0 0;
        }

    #tab2 .search-input {
        width: calc(100% - 98px);
    }

        #tab2 .search-input:nth-child(2) {
            width: 80px;
        }

    .tabcontent select {
        height: 42px;
        border-radius: 2.5px;
        border: solid 1px #9faebd;
        text-indent: 13px;
        font-size: 16px;
    }

    .tabcontent input {
        display: inline-block;
        height: 42px;
        border-radius: 2.5px;
        border: solid 1px #9faebd;
        font-size: 16px;
        margin: 0 10px 0 0;
    }

    .tablinks {
        display: inline-block;
        width: calc(100%/3 - 28px);
        padding: 15px 0;
        font-size: 16px;
        border-width: 1px;
        border-style: solid;
        border-color: transparent transparent #e7eaf0 transparent;
        line-height: 20px;
    }

    .tab button.active {
        border-width: 2px 1px 2px 1px;
        border-style: solid;
        border-color: orange #e7eaf0 #fff #e7eaf0;
        color: #6a7884;
        background: #fff;
    }

    .CarLogoList {
        margin-top: 15px;
    }
}

@media screen and (max-width: 460px) {
    #DialogBody li.allList a {
        width: 100%;
        margin: 1% 0;
        box-sizing: border-box;
    }

    .fixeddialog {
        top: 10vh;
        padding: 0;
    }

    #DialogBody table th:nth-child(1) {
        display: none;
    }

    #DialogBody table td:nth-child(1) {
        display: none;
    }
}
