.offcanvas {
    position: fixed;
    bottom: 0;
    z-index: 1050;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    max-width: 80%;
    visibility: hidden;
    background-color: #1a1a1a;
    background-clip: padding-box;
    outline: 0;
    -webkit-transition: -webkit-transform .3s ease-in-out;
    transition: -webkit-transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out,-webkit-transform .3s ease-in-out
}

@media(prefers-reduced-motion:reduce) {
    .offcanvas {
        -webkit-transition: none;
        transition: none
    }
}

.offcanvas-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem
}

.offcanvas-title {
    margin-bottom: 0;
    line-height: 1.5
}

.offcanvas-body {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    padding: 1rem 1rem;
    overflow-y: auto;
}

.offcanvas-start {
    top: 0;
    left: 0;
    width: 400px;
    border-right: 0 solid rgba(0,0,0,0.2);
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%)
}

.offcanvas-end {
    top: 0;
    right: 0;
    width: 400px;
    border-left: 0 solid rgba(0,0,0,0.2);
    -webkit-transform: translateX(100%);
    transform: translateX(100%)
}

.offcanvas-top {
    top: 0;
    right: 0;
    left: 0;
    height: 30vh;
    max-height: 100%;
    border-bottom: 0 solid rgba(0,0,0,0.2);
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%)
}

.offcanvas-bottom {
    right: 0;
    left: 0;
    height: 30vh;
    max-height: 100%;
    border-top: 0 solid rgba(0,0,0,0.2);
    -webkit-transform: translateY(100%);
    transform: translateY(100%)
}

.offcanvas.show {
    -webkit-transform: none;
    transform: none
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000
}

.modal-backdrop.fade {
    opacity: 0
}

.modal-backdrop.show {
    opacity: .5
}

/* Accordion */
.accordion-item:not(:last-child) { border-bottom: 1px solid #64646480;}
.accordion-button { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; width: 100%;}
.accordion-button .title { display: flex; align-items: center; gap: 1rem; flex-grow: 1; transition: .3s;}
.accordion-button ion-icon { transition: .3s;}
.accordion-button.collapsed ion-icon { transform: rotate(-90deg); }
.accordion-button:not(.collapsed) .title { color: #ebbc6b;}
.accordion-button .title b { background-color: #d4d4d8; transition: .3s;}
.accordion-button:not(.collapsed) .title b { background-color: #ebbc6b;}
.collapse.show { display: block; visibility: visible;}
.collapse:not(.show) { display: none; }
.accordion-body { padding-bottom: 2rem;}

/* FCK editor */
.fck-box p { line-height: 2; }
.fck-box p:not(:last-child) { margin-bottom: 1rem; }

/* Magnific Popup*/
.mfp-bg { background-color: #000000e6 !important; opacity: 1 !important; backdrop-filter: blur(5px);}
@media screen and (max-width:480px) {
    .mfp-iframe-scaler { padding-top: 80vh !important;}
    .mfp-close { font-size: 40px !important;}
}
/* Icons */
.cls-1{fill:#232323;}
.cls-2{fill:#E3D4A0;}
.cls-3{fill:#ef4444;}

/* Product */
.prodThumbs .swiper-slide { opacity: .4;}
.prodThumbs .swiper-slide-thumb-active { opacity: 1; }

/* Spotlight */
.image{
    width: 30vw;
    max-width: 300px;
    margin: 1vh 1vw;
}
.image{
    display: inline-block;
    height: 20vw;
    max-height: 200px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.spotlight.image{
    cursor: pointer;
}

/* Chatbubble */

/* Table */
.rwd-table { min-width: 12.5rem; max-width: 100%; overflow-x: auto;}
@media screen and (max-width:480px) {
    .rwd-table { min-width: none;}
}

/* Vip */
.table-list thead tr { background-color: #262214;}
.table-list th,
.table-list td { padding: 0.75rem 0.5rem; text-align: center; border: 1px solid #3f3f46;}
.table-list tr td:first-child { padding: 0;}
.table-list td a { text-align: left;}
.table-list td .meta-name { margin-bottom: .5rem; opacity: .65;}
@media screen and (max-width:480px) {
    .table-list tbody tr { display: flex; flex-wrap: wrap; margin-bottom: 1rem;}
    .table-list tbody tr td:first-child,
    .table-list tbody tr td:last-child { flex: 1 1 100%;}
    .table-list tbody tr td:nth-child(2),
    .table-list tbody tr td:nth-child(3),
    .table-list tbody tr td:nth-child(4),
    .table-list tbody tr td:nth-child(5),
    .table-list tbody tr td:nth-child(6),
    .table-list tbody tr td:nth-child(7)  { flex: 1 1 50%;}
}

.table-order thead tr { background-color: #262214;}
.table-order th,
.table-order td { padding: 0.75rem 0.5rem; text-align: center; border: 1px solid #3f3f46;}
.table-order td a { text-align: left;}
@media screen and (max-width:480px) {
    .table-order tbody tr { display: flex; flex-wrap: wrap; margin-bottom: 1rem;}
    .table-order tbody tr td { flex: 1 1 100%; display: flex; justify-content: space-between;}
}

.history-list { width: 100%; }
.history-list thead tr { background-color: #262214;}
.history-list th,
.history-list td { padding: 0.75rem 0.5rem; text-align: center; border: 1px solid #3f3f46;}
.history-list th { background-color: #E3D4A0; color: #232323;}
.history-list tbody tr:hover { background-color: #232323; transition: .3s; }
.history-list td:first-child { width: 6rem;}
.history-list td:nth-child(3) { width: 10rem;}
.history-list td:last-child { width: 10rem;}
.history-list td .meta-name { display: block; text-align: left;}
.history-list td .images { margin: 0 auto;}
@media screen and (max-width:480px) {
    .history-list thead { display: none;}
    .history-list tbody tr { display: grid; grid-template-columns: 5rem auto auto; margin-bottom: 1rem; padding: 1rem; background-image: url(../img/main-bg.png); background-size: 300px auto; border: 0; border-radius: 0.5rem;}
    .history-list tbody tr:hover { color: white;}
    .history-list th,
    .history-list td { padding: 0; border: 0 !important;}
    .history-list tbody tr { background-color: white; color: #1a1a1a;}
    .history-list tbody tr td { display: flex; justify-content: space-between; border: 0;}
    .history-list td:first-child { grid-row-start: 1; grid-row-end: 3;}
    .history-list td:nth-child(2) { grid-column-start: 2; grid-column-end: 4;}
    .history-list td:nth-child(3),
    .history-list td:last-child { width: auto; }
    .history-list .images { margin: 0 !important; }
    .history-list .meta-name { margin-bottom: .5rem; font-size: 1.125rem; font-weight: 600;}
    .history-list .meta-price, .history-list .meta-date { display: flex; flex-direction: column; width: 100%; text-align: left;}
    .history-list .meta-price { font-weight: bold; font-size: 1.25rem;}
    .history-list .meta-price:before { content: "參考價格："; margin-bottom: .25rem; color: #828287; font-size: 0.825rem; font-weight: normal;}
    .history-list .meta-date:before { content: "時間："; margin-bottom: .25rem; color: #828287; font-size: 0.825rem; font-weight: normal;}
}


.table-search thead tr { background-color: #262214;}
.table-search th,
.table-search td { padding: 0.75rem 0.5rem; text-align: center; border: 1px solid #3f3f46;}
.table-search tr td:first-child { padding: 0;}
.table-search td a { text-align: left;}
.table-search td .meta-name { margin-bottom: .5rem; opacity: .65;}
@media screen and (max-width:480px) {
    .table-search tbody tr { display: flex; flex-wrap: wrap; margin-bottom: 1rem;}
    .table-search tbody tr td:first-child,
    .table-search tbody tr td:nth-child(2),
    .table-search tbody tr td:nth-child(3),
    .table-search tbody tr td:last-child { flex: 1 1 100%; }
    .table-search tbody tr td:nth-child(4),
    .table-search tbody tr td:nth-child(5),
    .table-search tbody tr td:nth-child(6) { flex: 1 1 0%;}
}