.price-reference-page {
    width: 100%;
    max-width: 1400px;
    margin: auto;
}

.price-reference-page .index-search-modal {
    min-height: 540px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 40px;
}

.price-reference-page .index-search-modal::after {
    content: '';
    display: block;
    width: 50%;
    height: 540px;
    background: url('/wp-content/themes/southchip-pro/assets/img/page/history/history-search.webp');
    background-size: cover;

}

.price-reference-page .index-search-modal .modal-text {
    width: 50%;
}

.price-reference-page .index-search-modal .modal-text .modal-title {
    font-size: 54px;
    font-weight: 900;
}

.price-reference-page .index-search-modal .modal-text .modal-subtitle {
    font-size: 14px;
    color: rgba(60, 60, 67, 0.6);
    margin: 20px 0 40px;
}

.price-reference-page .input-box {
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #848484;
    padding: 8px;
    width: 86%;
}

.price-reference-page .input-box input.text-input {
    border: none;
    width: calc(100% - 166px);
}

.price-reference-page .input-box .submit-btn {
    padding: 0;
    background: #E93636;
}

.price-reference-page .input-box .submit-btn:hover {
    background: #A30008;
}

.price-reference-page #chart {
    width: 100%;
    height: 400px;
}
.price-reference-container {
    display: none;
}

.price-reference-container.no-data .chart-container{
    display: none;
}
.price-reference-container.no-data .history-price-box{
    display: none;
}
.price-reference-container.no-data .pager{
    display: none;
}
.price-reference-container.no-data .page-message-container{
    display: block;
}
.price-reference-container .search-product-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0px 8px 2px 0px rgba(62, 89, 134, 0.01), 0px 22px 18px 0px rgba(62, 89, 134, 0.02), 0px 53px 68px 0px rgba(62, 89, 134, 0.03), 0px 175px 282px 0px rgba(62, 89, 134, 0.04);
    border-radius: 4px 4px 4px 4px;
    border: 1px solid rgba(116, 116, 128, 0.08);
    margin:10px 0 20px;
}
.price-reference-container .pager li{
    color: #1D1D1F;
}
.price-reference-container .pager ul{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}
.price-reference-container .pager ul li{
    padding: 4px 20px;
    margin: 4px;
    border: 1px solid #1D1D1F;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}
.price-reference-container .pager ul li:hover{
    color: #FFFFFF;
    background: #1D1D1F;
}
.price-reference-container .pager ul li.active{
    color: #FFFFFF;
    background: #1D1D1F;
}
.price-reference-container .search-product-container .product-img {
    padding: 10px;
    border-right: 1px solid rgba(116, 116, 128, 0.08);
}

.price-reference-container .search-product-container .product-img img {
    width: 78px;
    height: 80px;
}

.price-reference-container .search-product-container .product-data {
    margin-left: 20px;
    flex: 1;
}

.price-reference-container .search-product-container .product-data .product-link-text {
    font-size: 20px;
    font-weight: 900;
}

.price-reference-container .search-product-container .product-data .product-desc-text {
    font-size: 14px;
    color: rgba(60, 60, 67, 0.6);
}

.price-reference-page .search-from-container .input-box {
    padding: 0;
    margin-right: 30px;
    border: none;
    width: calc(100% - 30px);

}

.price-reference-page .search-from-container {
    width: 30%;
    text-align: right;
}

.price-reference-page .search-from-container .input-box .submit-btn {
    width: 90px;
    background: #DD000B;
}

.price-reference-page .search-from-container .input-box .submit-btn:hover {
    background: #A30008;
}

.price-reference-page .search-from-container .input-box input.text-input {
    width: calc(100% - 120px);
    border: 1px solid rgba(60, 60, 67, 0.18);
}

.price-reference-page .chart-container {
    background: #FFFFFF;
    border: 1px solid rgba(116, 116, 128, 0.08);
    padding: 16px 20px 40px;
    margin-bottom: 40px;
}

.chart-container .container-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
}

.chart-container .container-time {
    font-size: 14px;
    color: rgba(60, 60, 67, 0.6);
}
.chart-container .container-time span{
    font-size: 14px;
    color: rgba(60, 60, 67, 0.6);
}
.history-price-box {
    margin-bottom: 40px;
    overflow: auto;
}

.history-price-box table {
    width: 100%;
    color: #1D1D1F;
    min-width: 1200px;
}

.history-price-box table {
    border: 1px solid #DBDBDD;
    border-width: 1px 1px 0;
    border-collapse: collapse;
}

.history-price-box table thead tr {
    height: 40px;
    font-size: 12px;
    font-weight: 900;
    border-bottom: 1px solid #DBDBDD;
    background: rgba(116,116,128,0.08);
}

.history-price-box table tbody tr {
    font-size: 14px;
    height: 40px;
    border-bottom: 1px solid #DBDBDD;
}
.history-price-box table tbody tr:nth-child(2n){
    background: #F9F9F9;
}
.history-price-box table tr td:nth-child(1) {
    padding-left: 15px;
    width: 12%;
}

.history-price-box table tr td:nth-child(2) {
    width: 22%;
}

.history-price-box table tr td:nth-child(3) {
    width: 22%;
}

.history-price-box table tr td:nth-child(4) {
    width: 14%;
}

.history-price-box table tr td:nth-child(5) {
    width: 10%;
}

.history-price-box table tbody tr td:nth-child(1) {
    color: rgba(60, 60, 67, 0.6);
}

.history-price-box table tbody tr td:nth-child(2) {
    font-size: 14px;
    text-decoration: underline;
}

.history-price-box table tbody tr td:nth-child(4) {

    color: #FF3B30;
}

.price-reference-page .page-message-container {
    background-color: #FFFFFF;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid rgba(116, 116, 128, 0.08);
    margin-bottom: 34px;
    padding: 20px 0 56px;
}

.history-price-box .sort-btn::after {
    content: '';
    position: absolute;
    left: 115px;
    top: 17px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #DDDDDD;
}
.history-price-box .sort-btn.sort-quote::after{
    left: 80px;
}
.history-price-box .sort-btn.sort-quote::before{
    left: 80px;
}
.history-price-box .sort-btn {
    position: relative;
    cursor: pointer;
}
.history-price-box .sort-btn::before {
    content: '';
    position: absolute;
    left: 115px;
    top: 23px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #DDDDDD;
    transform: rotateX(180deg);
}
.history-price-box .sort-btn.sort::before {
    border-bottom: 4px solid #333333;
}
.history-price-box .sort-btn.sort-reverse::after {
    border-bottom: 4px solid #333333;
}


@media screen and (max-width: 768px) {
    .price-reference-page{
        width: calc(100% - 20px);
    }
    .price-reference-page .index-search-modal{
        flex-direction: column-reverse;
    }
    .price-reference-page .index-search-modal::after{
        width: 100%;
        height: 239px;
    }
    .price-reference-page .index-search-modal .modal-text{
        margin: 40px 0 60px;

        width: 100%;
    }
    .price-reference-page .index-search-modal .modal-text .modal-title{
        font-size: 28px;
    }
    .price-reference-page .input-box .submit-btn{
        width: 60px;
        margin: 0;
    }
    .price-reference-page .input-box{
        width: 100%;
        box-sizing: border-box;
        padding: 4px;
    }
    .price-reference-page .input-box input.text-input{
        width:calc(100% - 66px);
        box-sizing: border-box;
    }
    .price-reference-page .search-from-container .input-box input.text-input{
        width: calc(100% - 95px);
    }
    .price-reference-page .chart-container{
        padding: 16px 10px 20px
    }
    .price-reference-page #chart{
        height: 250px;
    }
    .price-reference-container .search-product-container{
        flex-wrap: wrap;
    }
    .price-reference-page .search-from-container{
        width: 100%;
    }
    .price-reference-page .search-from-container .input-box{
        border-top: 1px solid rgba(116,116,128,0.08);
        padding: 20px 0;
        margin: 0 10px;
        width: calc(100% - 20px);
    }
    .history-price-box table tbody tr td:nth-child(2){
        font-size: 14px;
    }
}