body {
    /* background: #fafdff; */
    background: white;
}
.scrollbar::-webkit-scrollbar{
    height: 8px;
    width: 8px;
}
.scrollbar::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0);
    border-radius: 10px;
    /* margin: 0 10px; */
}
.scrollbar::-webkit-scrollbar-thumb{
    border-radius: 10px;
    background-color: rgba(0,0,0,.04);
    /* border-bottom: 1px solid rgba(0,0,0,0.1); */
}
.hr {
    position: relative;
    text-align: center;
    margin: 2.5rem 0;
}

.hr .name {
    position: relative;
    display: inline-block;
    background-color: white;
    padding: 0.5rem 1.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.hr:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.focus-notify .item {
    height: 280px;
}

.focus-notify.main .flex-box:nth-child(1) .item {
    height: 180px;
}

.focus-notify.main .flex-box:nth-child(2) .item {
    height: 160px;
}

.flex-box {
    display: flex;
    /* justify-content: space-between; */
    gap: 0.5rem;
    /* margin: 1rem 0; */
}
.flex-gap-1{
    gap: 0.5rem;
}
.d-block{
    display: block;
}

.inline-flex-box {
    display: inline-flex;
    /* justify-content: space-between; */
    align-items: center;
    /* gap: .5rem; */
}

.inline-flex-box.flex-direction-column {
    flex-direction: column !important;
}
.d-inline-block{
    display: inline-block;
}

.inline-flex-box .item a{
    padding: 0.25rem 0.75rem;
}

.inline-flex-box .item.active a{
    background-color: #8a8a8a;
    color: white;
}

.inline-flex-box .item a:hover{
    background-color: #84754d;
    color: white;
}

.flex-box .item {
    position: relative;
}


.flex-box.direction-column {
    flex-direction: column;
}

.justify-content-between{
    justify-content: space-between;
}
.justify-content-end{
    justify-content: flex-end;
}
.align-items-center{
    align-items: center;
}
.ml-3{
    margin-left: 1.5rem;
}
.mx-3{
    margin: 0 1.5rem;
}
.mt-3{
    margin-top: 1.5rem;
}
.m-3{
    margin: 1.5rem 0;
}

.ty-sort-container {
    border-top: none;
    /* text-align: right; */
}

.border-1 {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.img-bg.ex1 {
    background-image: url('/images/front_page/notify_ex1.jpg');
    background-repeat: no-repeat;
    background-position: center center;
}

.img-bg.ex2 {
    background-image: url('/images/front_page/notify_ex2.jpg');
    background-repeat: no-repeat;
    background-position: center center;
}

.img-bg {
    background-size: cover;
}

.ty-blog-grid .ty-blog__items .ty-blog__item .ty-blog__img-block {
    /* border: 1px solid #ccc; */
}

.ty-form-builder__checkbox-label,
.ty-form-builder__radio-label {
    margin: 0 15px 0 0;
}

#pagination_contents{
    margin-top: 40px;
}

.table-cell {
    margin-bottom: 30px
}

.ty-form-builder {
    border-top: 1px #cfcfcf solid !important;
}

.ty-mainbox-body {
    /* background: #f5f5f5; */
    /* padding: 2.5rem 1rem !important; */
    /* padding: 2.5rem 0 !important; */
}

.ty-mainbox-body.post-body{
    padding: 0 !important;
}

.ty-mainbox-body label {
    /* margin-right: 15px; */
}

.ty-mainbox-body input {
    width: 21rem;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    border-radius: 0;
}

.ty-btn {
    padding: 4px 14px;
}

.ty-blog__items.general .ty-blog__date{
    left: 13px !important;
}

.ty-blog__items.general .ty-blog__date,
.ty-blog__items.focus .ty-blog__date {
    width: initial !important;
}

.ty-blog__date .month,
.ty-blog__date .date-comma,
.ty-blog__date .date {
    display: inline-block !important;
}

.ty-blog__date .date {
    font-size: 14px !important;
}

.ty-blog__date .no-wrap {
    white-space: nowrap !important;
}

.ty-blog__date .year {
    display: block !important;
}

.ty-blog__date.no-wrap .year {
    display: inline-block !important;
}

.ty-blog__items .ty-blog__item:before {
    height: 0 !important;
    margin-bottom: 0 !important;
}

.grid_inquiry-title{
    margin: 0;
}

.ty-blog__item.main-banner{
    width: 100% !important;
}
.ty-blog__item.main-banner a{
    overflow: hidden;
}
.ty-blog__item.main-banner a img{
    /* min-height: 256px; */
    /* object-fit: cover; */
}

.banner{
    border: 1px solid #ccc !important;
    /* height: 230px; */
}

.ty-blog-grid .ty-blog__items .ty-blog__item .ty-blog__img-block a {
    display: block;
    height: unset !important;
    padding: unset !important;
    overflow: hidden;
}

.result {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 3rem 0 6rem 0;
}

textarea {
    vertical-align: text-top;
}

.wire-input-wrapper {
    position: relative;
}

.wire-input {
    position: relative;
    z-index: 2;
}

.wire-input-detail {
    /* display: block; */
}

.wire-input-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* background-color: rgba(0,0,0,0.05); */
}

.wire-dropdown-menu {
    list-style-type: none !important;
    position: absolute;
    top: calc(100% - 1px);
    border: 1px solid #adadad;
    background-color: white;
    width: calc(100% - 2px);
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2;
}

.wire-dropdown-menu li {
    padding: 0.5rem;
    cursor: pointer;
}

.wire-dropdown-menu li.active,
.wire-dropdown-menu li:hover {
    background-color: #9e9067;
    color: white;
}

.header-nav .ty-menu__item {
    margin: 0;
}

.grid_inquiry-content .ty-control-group__title {
    padding: 1rem;
}

.barcode {
    font-family: 'Libre Barcode 39', sans-serif;
    /* font-size: 24pt; */
    position: absolute;
    right: 0;
    /* top: -10px; */
}

.print{
    width: 100%;
    max-width: 950px;
    height: 100%;
    position: relative;
    /* padding: 12pt; */
    /* border: 1px solid rgba(0,0,0,0.1); */
    /* margin: auto;
    max-width: 800px; */
    margin: 0 auto;
}

.print label{
    font-weight: bold;
}

.print .table thead th{
    white-space: nowrap;
}
.print .table tbody td span{
    display: inline-block;
    text-align: left;
}
.nowrap{
    white-space: nowrap;
}

.other-notes{
    border-top: 1px solid rgba(0,0,0,0.25);
    padding: 0.5rem 0;
    text-align: right;
}

label{
    margin-right: 5px;
}

.print-btn-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
    height: 100px;
}
.print-btn-container .note{
    text-align: left;
    line-height: 1.5rem;
}
.print-btn-container .ty-btn{
    width: 200px;
    height: 60px;
    border-radius: 5px;
}

.table, tr, th, td{
    border-collapse: collapse;
    border: 1px solid rgba(0,0,0,0.5);
    text-align: center;
}
.table th,
.table td{
    padding: 0.5rem;
}

.table span,
.table small{
    vertical-align: middle;    
}
.table th{
    font-weight: initial;
}

.table.progress,
.table.progress tr,
.table.progress th,
.table.progress td{
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}
.table.progress th{
    background-color: #8a8a8a;
    color: white;
}

.text-left{
    text-align: left;
}
.total-price{
    margin: 0 !important;
}
.recommend{
    font-size: 0.8rem;
}
.recommend li:first-child{
    list-style: none;
}
.recommend li{
    list-style-position: outside;
    list-style-type: disc;
    margin-left: 1.1rem;
}

/* .ty-breadcrumbs {
    font-size: 15px;
} */
/* .row-fluid .main-content-grid_inquiry .post-container{
    max-width: 100%;
} */

.post-body img{
    width: 640px !important;
}

#after_sales_service_terms{
    border: 1px solid #cfcfcf;
    max-width: 900px;
    padding: 1.5rem;
    margin: 0 auto;
    text-align: left;
}

#after_sales_service_terms a.ty-btn{
    display: inline-block;
    margin: 1.5rem auto;
}

#privacy-policy{
    border: 1px solid #cfcfcf;
    overflow-y: auto;
    padding: 1.5rem;
    height: 300px;
    margin: 1.5rem auto;
}

#agree{
    margin: 1rem auto;
}
#agree label{
    font-size: 1.2rem;
}
#agree input{
    width: 1.2rem;
    height: 1.2rem;
}
.ty-btn.pay{
    background-color: unset;
    color: #9e9067;
}

.tygh-footer {
    margin-top: 6rem;
}

.header-top-wrap {
    /* background: #9f8f6d; */
    background: rgb(159 143 109 / 80%);
    color: white;
}

.ty-blog-grid .ty-blog__items .ty-blog__item .ty-blog__description .ty-blog_content {
    -webkit-line-clamp: 2;
}
.ty-blog-grid .ty-blog__items .ty-blog__item h2.ty-blog__post-title a {
    font-size: 1.25rem;
}

.repair-prices{
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 991px;
}

.repair-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}
.repair-item.title{
    font-weight: bold;
    justify-content: center;
}
.repair-item:not(.title):hover{
    background-color: #f5f5f5;
}
.product-image{
    max-width: 500px;
}
.print.qrcodes{
    height: 100vh;
    width: 100vw;
}
.print .qrcode svg{
    width: 90%;
    height: auto;
}
.print .qrcode .txt:nth-child(1){
    font-size: 3rem;
    line-height: 3rem;
}
.print .qrcode .txt{
    font-size: 2rem;
    line-height: 3rem;
}

.header-servicenumber-wrap{
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
#sys_banner{
    display: inline-block;
    background-color: rgba(255,255,255,0.8);
    color: black;
    padding: 2px;
    margin: 4px;
    border-radius: 8px;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .ty-blog__items.general .ty-blog__date {
        left: 6px !important;
    }
}

@media (max-width: 1199px) {

}

@media (max-width: 991px) {

    .flex-box,
    .inline-flex-box {
        flex-wrap: wrap;
    }

    .flex-box .item,
    .inline-flex-box .item {
        flex-wrap: wrap;
    }

    .ty-pagination__text {
        display: none;
    }

    /* .ty-blog-grid .ty-blog__items .ty-blog__item {
        width: 48%;
    } */

    .header-nav {
        display: none;
    }

    .ver-nav {
        display: block;
        z-index: 100;
        position: relative;
    }
    
    .ty-blog__items.general .ty-blog__date {
        left: 0 !important;
    } 

}

@media (max-width: 767px) {
    .ty-blog-grid .ty-blog__items .ty-blog__item {
        width: 100%;
    }

    .form-box * {
        width: 100%;
    }

    .ty-mainbox-body input {
        width: 100%;
    }

    .print-title{
        text-align: left;
    }
    
}

@media (max-width: 600px) {
    .grid_inquiry-content .ty-control-group__title {
        padding: 0;
    }
    .print label.ml-3{
        margin-left: 0;
    }
    .order-number{
        margin-right: 1.5rem;
    }

    .barcode {
        position: relative;
    }
    #privacy-policy{
        margin-top: 0;
    }
    
}

@media (max-width: 480px) {
    .ty-blog-grid .ty-blog__items .ty-blog__item:before {
        display: none;
    }

    .other-notes {
        text-align: left;
    }

    .print .qrcode .txt:nth-child(1){
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
    .print .qrcode .txt{
        font-size: 1.25rem;
        line-height: 1.25rem;
    }
    
}

@media (min-width: 991px) {
    .ty-blog-grid .general.ty-blog__items .ty-blog__item {
        width: unset;
        float: unset;
        display: flex;
    }

    .ty-blog-grid .general.ty-blog__items .ty-blog__item .ty-blog__img-block {
        flex: 0 0 300px;
    }
}

/* 列印使用 */
@media print {

    /* 主要設定 */

    @page {
        /* size: A4 landscape; */
        size: A4 portrait;
        margin: 1.5cm;
        widows: 2;
        orphans: 4;
    }

    *{
        padding: 0 !important;
        margin: 0 !important;
    }

    html, body{
        position: relative;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
    }

    body {
        float: none;
        line-height: 1.5;
        font-size: 12pt !important;
        -webkit-print-color-adjust: exact;
        background: #fff;
        /* background-image: url('...') !important; */
        /*如果背景圖沒顯示請加必殺技 !important*/        
    }

    .print{
        position: relative;
        width: 210mm;
        height: 297mm;
        /* border: 1px solid black; */
    }

    /* 如架構本身用一組一組的 DIV 包住，也可強制設定每組 DIV 會各自切成一頁 */
    /* auto | always | avoid */
    div.page-break {
        page-break-after: always;
    }

    /* 針對列印頁特定元素的設定 */

    .logo-container{
        padding: 1.5rem 0 !important;
    }

    .logo{
        display: block;
    }
    .logo img{
        height: 2.5rem;
    }

    label.ml-3{
        margin-left: 1.5rem !important;
    }

    #tygh_container{
        min-height: unset !important;
    }

    .fill-space{
        display: none;
    }

    .table th,
    .table td{
        padding: 5px !important;
    }

    h3.title{
        margin-top: 1.5rem !important;
    }

    .other-notes{
        padding: 0.5rem 0 !important;
    }

    .recommend{
        position: absolute;
        font-size: 0.7rem;
        left: 0;
        bottom: 0;
    }

    .recommend li{
        list-style-position: inside;
        margin-left: 0;
    }

    header nav,
    footer,
    video,
    audio,
    object,
    embed,
    .tygh-header,
    .breadcrumbs-grid,
    .ty-breadcrumbs,
    .ty-mainbox-container.grid_inquiry-title,
    .tygh-footer {
        display: none;
    }

    /* 其餘css設定 */

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
        page-break-inside: avoid
    }

    h1+p,
    h2+p,
    h3+p {
        page-break-before: avoid;
    }

    a {
        page-break-inside: avoid
    }

    img {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    table,
    blockquote {
        page-break-inside: avoid;
    }

    ul,
    ol,
    dl {
        page-break-before: avoid;
    }

    img {
        max-width: 100%;
    }

    /*顯示連結網址並避免網址過長超出頁面*/
    /* a:link,
    a:visited,
    a {
        background: transparent;
        color: #222;
        font-weight: bold;
        text-decoration: underline;
        text-align: left;
        word-wrap: break-word;
    }
    a[href^="http://"]:after,
    a[href^="https://"]:after {
        content: " (" attr(href) ") ";
    } */

    /* 表格即使分頁也會顯示表頭 */
    thead {
        display: table-header-group;
    }
}