.d-flex {
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
}
.d-flex .inline-input {
    flex: 1;
    margin-right: 10px;
}

.white-space-line {
    white-space: pre-line;
}

@media (max-width: 1024px) {
    .spec-list a.spec-item:hover {
        border-color: #cacaca !important;
        color: #666 !important;
    }
    .spec-list a.spec-item.active {
        border-color: #ff4242 !important;
        color: #ff4242 !important;
    }
}

.spec-list a.spec-item.disabled {
    cursor: no-drop;
    opacity: .5;
}
.spec-list a.spec-item.disabled:hover,
.spec-list a.spec-item.disabled.active {
    border-color: #cacaca;
    color: #666;
}

/* web.inapp.html */
.page-transition {
    width: 90%;
    text-align: center;
    padding-bottom: 50px;
    margin: 0 auto;
}
.page-transition h2 {
    padding-bottom: 15px;
}
.page-transition a {
    display: inline-block;
    background: #54be66;
    color: #fff;
    padding: 12px 18px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 3px;
    transition: 0.3s;
}
.page-transition a:hover {
    background: #408a4d;
}
.page-transition .images-box {
    margin-bottom: 20px;
}
.page-transition img {
    width: 80px;
}
.page-transition-content .block {
    margin: 0 auto;
}
.page-transition .note {
    font-size: 13px;
    line-height: 1.5em;
}
.page-transition .v-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
@media(max-width: 576px) {
    .page-transition .v-note {
        text-align: left;
    }
}

footer .scrollToTop {
    bottom: 90px;
    right: 28px;
    background: #b7c4d4;
}

/* slick */
.slick-prev, .slick-next {
    z-index: 9;
    top: 28%;
}
.pdviewbox .slick-next.slick-arrow {
    right: -15px;
}
.pdviewbox .slick-prev.slick-arrow {
    left: -15px;
}
.product-details .pdviewbox {
    width: unset;
}
/* Toast */
.toast {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: center;
    background: #eee;
    font-size: 14px;
    /* display: none; */
    z-index: 2;
}
.close-toast {
    background: #333;
    color: #fff;
    cursor: pointer;
    padding: 6px 9px 7px 11px;
    border-radius: 3px;
    margin-left: 15px;
    font-size: 13px;
    transition: 0.3s;
}
.close-toast:hover {
    opacity: 0.9;
}
@media (max-width: 576px) {
    .close-toast {
        display: block;
        margin: 10px auto 0;
        width: 80px;
    }
}

/* social media */
.menu-list.social-icon-list ul.nav > li > a {
    font-size: 28px;
}

.menu-list ul.nav > li > a.icon-fb {
    color: #2781ef;
}
p.social-icon-fb a {
    display: inline-block;
    font-size: 16px;
    background: #2781ef;
    color: #fff;
    width: 30px;
    line-height: 30px;
    border-radius: 50%;
    text-align: center;
    margin-top: 5px;
}
/* breadcrumb */
.page__breadcrumb {
    margin-top: 10px;
}
.breadcrumb__item {
    display: -webkit-inline-flex;
    display: inline-flex;
    align-items: center;
}
    .breadcrumb__item::after {
        content: url(../images/icons/chevron-right.svg);
        height: 18px;
        opacity: 0.5;
    }
    .breadcrumb__item:last-child::after {
        content: '';
    }


/* Checkbox / Radio Button */
.option-wrap {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 15px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
  
.option-wrap input[type="radio"],
.option-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    cursor: pointer;
    z-index: 1;
}
.option-label {
    letter-spacing: 4px;
}
.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 1px;
}
  
.option-wrap:hover > input[type="radio"] ~ .checkmark,
.option-wrap:hover > input[type="checkbox"] ~ .checkmark  {
    background-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.option-wrap input[type="radio"]:checked ~ .checkmark,
.option-wrap input[type="checkbox"]:checked ~ .checkmark {
    border-color: #f08300;
    background-color: #f08300;
}
.option-wrap input[type="radio"]:checked ~ .checkmark:after,
.option-wrap input[type="checkbox"]:checked ~ .checkmark:after {
   display: block;
   background-color: #f08300;
}
.option-wrap input:disabled ~ .checkmark {
    background-color: #eee !important;
}

.option-wrap .checkmark:after {
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.d-flex.option-wrap {
    display: -webkit-flex;
    display: flex;
    cursor: default;
}

/* product grid */
.grid {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
}
.grid-2 .item {
    width: 50%;
    padding: 5px 15px;
}
.grid-3 .item {
    width: 33.333333%;
    padding: 5px;
}
.grid-4 .item {
    width: 25%;
}

.panic-buying {
    position: absolute;
    top:15px;
    right: 0;
    z-index: 1;
    display: block;
    margin-bottom:10px;
    padding: 2px 10px;
    background-color: #d0011b;
    color: #fff;
    letter-spacing: 1px;
    font-size: 14px;
}
.hot {
    position: absolute;
    top:15px;
    left: 0;
    z-index: 1;
    display: block;
    margin-bottom:10px;
    padding: 2px 10px;
    background-color: #d0011b;
    color: #fff;
    letter-spacing: 1px;
    font-size: 14px;
}
.price-row {
    flex-wrap: wrap;
}
.shop-now a {
    padding: 6px 26px;
    color: #fff;
    background-color: #0c1e36;
    border-radius: 2px;
}
figure.pdlist {
    height: 95%;
}
@media (max-width: 1024px) {
    .price-row {
        flex-direction: column;
    }
    .shop-now {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .grid-3 .item,
    .grid-4 .item {
        width: 50%;
    }
    .shop-now {
        flex: 1;
    }
    figure.pdlist {
        min-height: unset !important;
    }
    
}


/* checkout */
.cartlist .info a {
    color: #337ab7;
}


.freight-desc {
    background-color: #eee;
    font-size: 15px;
}

    .freight-desc-text {
        white-space: pre-line;
    }


/* third party Login */
.thirdparty-login-wrapper {
    display: -webkit-flex;
    display: flex;
    margin-top: 35px;
    margin-left: -5px;
    margin-right: -5px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}
.thirdparty-login {
    flex: 1;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 3px;
    transition: .3s;
}
.fb-login {
    background-color: #1778f2;
}
.fb-login:hover {
    background-color: #186eda;
}
.line-login {
    background-color: #00b900;
}
.line-login:hover {
    background-color: #03a503;
}
    .thirdparty-login a {
        display: -webkit-flex;
        display: flex;
        align-items: center;
        color: #fff;
        padding: 6px 20px;
    }
    .thirdparty-login a:hover,
    .thirdparty-login a:focus {
        color: #fff;
    }
    .thirdparty-login i {
        font-size: 28px;
    }
    .thirdparty-login .text {
        padding-left: 10px;
        margin-left: 10px;
    }
    .line-login .text {
        border-left: 1px solid #b9e7b9;
    }
    .fb-login .text {
        border-left: 1px solid #92bef5;
    }

.thirdparty-login-wrapper.above {
    margin-top: 0;
    margin-bottom: 35px;
    padding-top: 0;
    padding-bottom: 25px;
    border-top: none;
    border-bottom: 1px solid #eee;
}
@media (min-width: 992px) and (max-width: 1199px) {
    .thirdparty-login-wrapper {
        flex-direction: column;
    }
    .thirdparty-login {
        margin-bottom: 15px;
    }
}
@media (max-width: 576px) {
    .thirdparty-login-wrapper {
        flex-direction: column;
    }
    .thirdparty-login {
        margin-bottom: 15px;
    }
}

/* header top */
.header-link {
    margin-right: 20px;
}
.translate {
    position: absolute;
    right: 30px;
    top: 6px;
    padding: 5px;
    text-align: right;
    z-index: 999;
}
.translate i {
    color: #5190cc;
}
.translate .drop__content {
    /* position: absolute; */
    left: 0;
    padding-top: 9px;
    padding-left: 0;
    display: none;
}
.translate .drop__content li {
    list-style: none;
}
.translate .drop__content a {
    display: block;
    background-color: #313131;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    text-align: left;
}
.drop.translate:hover .drop__content {
    display: block;
}
@media (max-width: 991px) {
    .translate {
        top: 18px;
        right: 20px;
    }
}
@media (max-width: 576px) {
    .header-link {
        margin-right:20px;
    }
    .translate {
        top: 19px;
        right: 10px;
    }
    .drop.translate:hover .drop__content {
        right: 0;
        left: unset;
        padding-top: 20px;
    }
    .translate .drop__content a {
        padding: 6px 10px;
    }
    .translate i {
        color: #525252;
    }
    
}

/* message */
.message__container {
    min-height: 520px;
    text-align: center;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.message__content {
    font-size: 36px;
    margin-bottom: 60px;
}
.message__content i {
    position: relative;
    top: 4px;
    color: #68c188;
    font-size: 60px;
    margin-right: 5px;
}
.message__content .desc {
    font-size: 24px;
}
.message__container .btn {
    min-width: 110px;
    padding: 8px;
    font-size: 14px;
}

/* grid */
.grid {
    display: -webkit-flex;
    display: flex;
    margin-left: -15px;
    margin-right: -15px;
    flex-wrap: wrap;
}
    .grid-2 > .grid__item {
        width: 50%;
    }
    .grid__item {
        padding-left: 15px;
        padding-right: 15px;
    }

.m-d-show {
    display: none;
}
@media (max-width: 1200px) {
    .m-d-none {
        display: none !important;
    }
    .m-d-show {
        display: block;
    }
}
@media (max-width: 767px) {
    .grid-2 .grid__item {
        width: 100%;
    }
}

/* coupons */
.coupon-listing .shipping {
    background-color: #01bc77;
}
.coupon-listing .checkout {
    background-color: #f59755;
}
.coupon-listing .purchase {
    background-color: #2d49c3;
}
.coupon-listing .optional_rebate {
    background-color: #eb5b70;
}
.coupon-listing .optional_discount {
    background-color: #f5b421;
}

.coupon-listing {
    width: 960px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
    .coupon-card-grid {
        flex-wrap: wrap;
    }
    .coupon-card {
        width: 420px;
        min-height: 260px;
        color: #fff;
        font-family: "Microsoft JhengHei";
        padding: 15px 25px;
        border-radius: 15px;
        margin: 20px auto;
    }
    .coupon-card .title {
        color: #fff;
        text-align: left;
        font-size: 24px;
        margin-top: 5px;
        margin-bottom: 5px;
        padding-top: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgb(255 255 255 / 20%);
    }
    .coupon-card .text-col {
        width: 270px;
        padding-top: 5px;
        padding-bottom: 20px;
        padding-right: 0;
    }
    .coupon-card .img-col {
        margin-left: auto;
        margin-top: auto;
        margin-bottom: auto;
    }
    .coupon-card .type {
        font-size: 28px;
    }
    .code-box {
        margin-top: 10px;
    }
        .code-box .text {
            font-size: 14px;
            margin-bottom: 2px;
        }
        .code-box .code {
            position: relative;
            display: table;
            background-color: #eee;
            color: #333;
            padding: 5px;
            border-radius: 3px;
            font-size: 15px;
            min-width: 120px;
            text-align: center;
        }

    .coupon-card .note {
        font-size: 14px;
        border-top: 1px solid rgb(255 255 255 / 20%);
        padding-top: 5px;
    }
    .button-copy {
        position: absolute;
        top: 5px;
        right: 8px;
        color: #aaa;
    }

@media (max-width: 991px) {
    .grid__item {
        width: 100%;
    }
    .coupon-card > .grid {
        flex-wrap: wrap;
    }
    .coupon-card {
        display: -webkit-flex;
        display: flex;
        flex-direction: column;
        height: 90%;
        text-align: center;
        width: calc(100% - 100px);
    }
        .code-box .code {
            margin-left: auto;
            margin-right: auto;
        }
        .coupon-card .title {
            text-align: center;
        }
        .coupon-card .note {
            margin-top: auto;
        }
}

@media (max-width: 767px) {
    .coupon-card .text-col {
        width: 100%;
        padding-right: 15px;
    }
}


/* Image Container */
.thumb-image-container {
    display: flex !important;
}
.thumb-image-wrapper {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    line-height: 0;
}
.thumb-image-wrapper.ratio-16-9 {
    padding-bottom: 56.25%;
}
.thumb-image-wrapper.ratio-4-3 {
    padding-bottom: 75%;
}
.thumb-image-wrapper.ratio-3-2 {
    padding-bottom: 66.66%;
}

.thumb-image {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}
.thumb-image img {
    width: 100%;
    height: 100%;
    object-position: 50% 50%;
    object-fit: cover;
}
.thumb-image img.object-fit-contain {
    object-fit: contain;
}

/* button */
.button-arrow {
    display: -webkit-flex;
    display: flex;
    align-items: center;
    font-size: 15px;
}
    .button-arrow svg {
        stroke: #333;
        width: 18px;
        height: 18px;
        opacity: 0.6;
        margin-left: 8px;
    }
    .button-arrow.back svg {
        margin-left: 0;
        margin-right: 8px;
    }

/* ======= Sidebar ======= */
.page__sidebar {
    width: 180px;
    margin-right: 60px;
}
.page__sidebar-title {
    font-size: 14px;
    margin-bottom: 5px;
    padding: 0 10px;
}
.page__sidebar a {
    display: block;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
}
    .page__sidebar a.active,
    .page__sidebar a:hover,
    .page__sidebar li.active a {
        color: #5190cc;
    }
    .page__sidebar ul {
        padding-top: 5px;
        padding-bottom: 15px;
        padding-left: 0;
        margin-bottom: 0;
    }
    .page__sidebar > ul {
        border-top: 1px solid #c5d0dd;
    }
        .page__sidebar li {
            list-style: none;
        }
        .post-count {
            font-size: 13px;
            color: #888;
        }

.page__sidebar .collapse__button {
    position: relative;
}
    .page__sidebar .collapse__button svg {
        position: absolute;
        top: 9px;
        right: 10px;
        width: 14px;
        height: 14px;
        stroke: #888;
        fill: none;
    }
    .page__sidebar .collapse__button.active svg {
        transform: rotate(180deg);
    }

.page__sidebar .collapse__content {
    padding-left: 12px;
}
.page__sidebar .collapse__content > li.active a {
    padding-left: 12px;
    background-color: #e7f2ff;
}
.page__sidebar .collapse__item.open > .collapse__button {
    background-color: #f7f7f7;
}

/* page mobile menu */
.page__mobile__menu {
    width: 100%;
    background-color: #333;
    margin-bottom: 40px;
    text-align: center;
}
    .page__mobile__menu .collapse__button {
        position: relative;
        justify-content: center;
        line-height: 42px;
        color: #fff;
    }
    .page__mobile__menu .collapse__button::after {
        position: absolute;
        content: url(images/icons/ios-arrow-down.png);
        top: 17px;
        right: 15px;
    }
    .page__mobile__menu .collapse__content {
        text-align: center;
        background-color: #fbfbfb;
        border-bottom: 1px solid #dbdbdb;
    }
    .page__mobile__menu .collapse__content a {
        display: inline-block;
        padding: 8px;
        color: #333;
    }

/* Collapse */
.collapse__content {
    display: none;
}
    .collapse__svg {
        display: none;
    }
    .collapse__item svg {
        display: block;
    }
    .collapse__button {
        display: -webkit-flex;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .collapse__button svg {
        width: 12px;
        height: 12px;
        fill: #a3a3a3;
        transition: .3s;
    }
    .collapse__button.active svg {
        transform: rotate(90deg);
    }
    .collapse__button svg.down {
        transform: rotate(90deg);
        transition: none;
    }
    .collapse__button.active svg.down {
        transform: rotate(-90deg);
    }
    .collapse__button .text {
        flex: 1;
        max-width: 150px;
    }

.collapse__content ul {
    padding-left: 0;
    margin: 0;
}
.collapse__content li {
    list-style: none;
}

/* page */
.page-cols-container {
    display: -webkit-flex;
    display: flex;
}
.page-cols-container .page__content {
    width: calc(100% - 240px);
}
.page__title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    color: #333;
    margin-top: 40px;
    margin-bottom: 60px;
}
.post {
    margin-bottom: 60px;
    letter-spacing: 1px;
}
.post .inner-text {
    border-bottom: 1px solid #aaa;
    padding-bottom: 20px;
}
    .inner-text-header {
        margin-top: 5px;
        margin-bottom: 15px;
        min-height: 25px;
    }
        .post .date {
            font-size: 14px;
            opacity: 0.8;
        }
        .post .category__wrapper {
            margin-top: 5px;
        }
        .post .category__wrapper,
        .post .category {
            display: -webkit-inline-flex;
            display: inline-flex;
        }
        .post .category {
            background-color: #f0f7ff;
            padding: 2px 10px;
            margin-right: 3px;
            border-radius: 3px;
        }
        .post .category__item {
            position: relative;
            color: #80aee4;
            margin-left: 2px;
            margin-right: 2px;
            font-size: 14px;
        }
        /* .post .category__item::before {
            position: absolute;
            content: '';
            width: 1px;
            height: 68%;
            top: 17%;
            left: -10px;
            background-color: #888;
        } */

    .post .title {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 15px;
        line-height: 1.5em;
    }
    .post .summary {
        height: 66px;
        font-size: 15px;
        overflow:hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        white-space: normal;
    }
    .post .button-wrapper {
        margin-top: 30px;
    }
    .post .thumb-image-wrapper {
        padding-bottom: 66.66%;
    }
    .tags {
        display: -webkit-flex;
        display: flex;
        flex-wrap: wrap;
        margin-top: 10px;
    }
        .tag {
            font-size: 12px;
            background-color: #f7f7f7;
            border-radius: 2px;
            padding: 3px 8px;
            margin-right: 5px;
            margin-bottom: 5px;
        }

.blog .pagination {
    margin-bottom: 60px;
}
.blog-post .heading {
    margin-top: 20px;
    margin-bottom: 40px;
    line-height: 1.5em;
    padding: 0;
    text-align: left;
}
.blog-post .thumb-image-container {
    margin-top: 20px;
    margin-bottom: 20px;
}
.blog-post .content {
    border-bottom: 1px solid #ddd;
    padding-bottom: 60px;
}
.blog-post .button-wrapper {
    margin-top: 80px;
}

@media (max-width: 1200px) {
    .page-cols-container {
        flex-direction: column;
    }
    .page-cols-container .page__content {
        width: 100%;
    }
}

/* promo code */
.promo-code-box {
    background-color: #fdaf00;
    border-radius: 2px;
    padding: 3px 8px;
    margin-top: 6px;
    margin-right: 10px;
}
    .promo-code {
        color: #fff;
        display: inline-block;
        margin-right: 5px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    .remove-promo-code {
        margin-top: 1px;
        display: inline-block;
        vertical-align: middle;
        color: #fff;
    }
    .remove-promo-code:hover {
        color: #fff;
        opacity: 0.8;
    }


/* checkout receipt field */
.receipt-field {
    padding: 10px 15px;
}

.receipt-field .option-wrap {
    cursor: default;
    padding-left: 25px;
}

.receipt-field > .option-wrap {
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.receipt-field .inner-option-wrap {
    margin-bottom: 20px;
}

.receipt-field .option-wrap input[type="radio"],
.receipt-field .option-wrap input[type="checkbox"] {
    width: 35px;
}

.inner-option-wrap:hover > input[type="radio"] ~ .checkmark,
.inner-option-wrap:hover > input[type="checkbox"] ~ .checkmark  {
    background-color: #fff;
}

.inner-option-wrap input[type="radio"]:checked ~ .checkmark,
.inner-option-wrap input[type="checkbox"]:checked ~ .checkmark {
    border-color: #f08300;
    background-color: #f08300;
}

.receipt-field .block-label {
    margin-right: 20px;
    width: 110px;
}
.receipt-field .option-label {
    letter-spacing: 0;
}

.receipt-field .inner-option-wrap input[type="text"],
.receipt-field .inner-block select,
.receipt-field .inner-block input[type="text"] {
    font-size: 14px;
    height: 26px;
    padding: 0 10px;
    flex: 1;
}
.receipt-field .checkmark {
    top: 2px;
}
.receipt-field .block-content {
    width: 100%;
}
.receipt-field .inner-block {
    flex-wrap: nowrap;
    margin-bottom: 10px;
}
.receipt-field .input-label {
    margin-bottom: 8px;
    margin-right: 10px;
    flex-shrink: 0;
}
.receipt-field .demo-image {
    width: 160px;
    margin-left: 25px;
    margin-bottom: 20px;
}
@media (max-width: 576px) {
    .receipt-field {
        padding: 10px 5px;
    }
    .receipt-field > .option-wrap {
        flex-wrap: wrap;
    }
    .receipt-field .inner-option-wrap input[type="text"],
    .receipt-field .inner-block select,
    .receipt-field .inner-block input[type="text"] {
        height: 30px;
    }
}
