@font-face {
    font-family: 'PingFang-SC-Regular';
    src: url('/font/me/PINGFANGREGULAR.TTF');
}

@font-face {
    font-family: 'PingFang-SC-Medium';
    src: url('/font/me/PINGFANGMEDIUM.TTF');
}

@font-face {
    font-family: 'PingFang-SC-Heavy';
    src: url('/font/me/PINGFANGHEAVY.TTF');
}

@font-face {
    font-family: 'PingFang-SC-Bold';
    src: url('/font/me/PINGFANGBOLD.TTF');
}

*,
:after,
:before {
    box-sizing: border-box;
    border: 0 solid #e5e7eb;
}

body {
    font-family: 'PingFang-SC-Medium';
    margin: 0;
    font-size: 0.35rem;
}

img {
    max-width: 100%;
    max-height: 100%;
}

.smb-input.error {
    border: 0.02rem solid #ff0000;
    background-image: url('/template-common/checkout41/images/error.png');
    background-size: auto 0.31rem;
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-x: calc(100% - 0.5rem);
    background-position-y: 50%;
}

.smb-select.error {
    background-image: url(/template-common/checkout41/images/error.png);
    background-size: auto 0.31rem;
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-x: calc(100% - 0.5rem);
    background-position-y: 50%;
}

.loading-box {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,.8);
    z-index: 9999;
    transition: opacity 1s linear;
}

.loading-gif {
    width: 100px;
    height: 100px;
    background-image: url(/template-common/checkout1/images/spinner-1s-200px.svg);
    background-size: 100px;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: calc(50% - 50px);
    right: calc(50% - 50px);
}

.split-line {
    min-height: auto;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #dfdfdf;
    margin: 0 auto 30px;
    width: 100%;
    position: relative;
    display: flex;
}

.split-content {
    text-align: center;
    font-size: 14px;
    padding: 0 15px;
    background-color: #fff;
    display: inline-block;
    margin: 0 auto;
    position: absolute;
    font-family: AvenirNext-Demi;
}

.split-line-safe {
    display: flex;
    min-height: auto;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #00d2be;
    margin: 35px auto 0;
    max-width: 380px;
    width: 100%;
}

.split-line-safe-content {
    margin: -12px 0 0;
    text-align: center;
    font-size: 14px;
    padding: 0 10px;
    background-color: #fff;
    display: inline-block;
    font-family: Avenir Next Bold;
}

.paypal-wrapper {
    display: flex;
    min-height: auto;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    padding: 0 0 40px;
}

.checkout-content {
    display: none;
    min-height: 100px;
    padding: 20px 0 0;
}

.checkout-content form{
    padding: 0;
    margin: 0;
}

header {
    background: #F9F8F8;
}

.header-container {
    position: relative;
    box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.1);
}

.header-content {
    width: 24rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    height: 1.5rem;
}

.safe-chekout-logo {
    height: 1.5rem;
}

.smb-discount-applied {
    text-align: center;
    background-color: #46bc40;
    color: #fff;
    padding: 10px;
    font-weight: bold;
}

.mb-block {
    display: none;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
}

.left-section {
    background-color: white;
    padding: 50px 50px 70px 0;
    display: flex;
    justify-content: end;
}

.right-section {
    padding: 50px 0 70px 50px;
    background-color: rgb(243, 244, 246);
}

.left-section-container {
    padding-left: 24px;
    max-width: 600px;
    width: 100%;
}

.right-section-container {
    margin: 0 auto;
    max-width: 600px;
}

.hurry-discount-section {
    padding: 12px 25px;
    background-color: rgb(255, 241, 175);
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.discount-item {
    background-image: url(/template-common/checkout41/images/hurry-discount-bg.png);
    background-repeat: no-repeat;
    background-size: 63px;
    background-position: center;
}

.discount-image {
    width: 63px;
    height: 63px;
    font-size: 17px;
    font-weight: 800;
    line-height: 19px;
    text-align: center;
    color: white;
    padding: 13px 12px 0 10px;
}

.hurry-discount-right {
    color: #000;
    flex: 1;
}

.hurry-discount-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}

.hurry-discount-desc {
    margin-top: 5px;
    margin-bottom: 0;
}

.hurry-discount-desc svg {
    color: rgb(239, 68, 68);
    width: 20px;
    display: inline-block;
    margin: -3px 6px 0 8px;
    vertical-align: middle;
}

.hurry-discount-countdown-timer {
    font-weight: 800;
}

.select-quantity-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.select-quantity-section-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.select-quantity-section-title {
    display: flex;
    align-items: center;
}

.select-quantity-section-title img {
    max-width: 100%;
    height: auto;
    color: transparent;
}

.select-quantity-section-title-text {
    text-align: left;
    padding-left: 10px;
    color: #000;
    flex: 1;
}

.select-quantity-section-title-text h3 {
    font-size: 28px;
    line-height: 28px;
}

.select-quantity-section-title-text p {
    font-size: 15px;
    margin-top: 5px;
    letter-spacing: .3px;
    line-height: 21px;
}

.select-quantity-section-review {
    font-size: 15px;
    line-height: 18px;
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 2px;
    background-color: #ffe9d4;
}

.select-quantity-section-review svg {
    width: 20px;
    display: inline-block;
}

.select-quantity-item {
    border: 2px solid #c2c2c2;
    border-radius: 5px;
    position: relative;
    min-height: 100px;
    padding: 18px;
}

.select-quantity-item:hover {
    border-color: #88b4de;
}

.select-quantity-item.is-select {
    background-color: #ffffcb;
    border-color: #126abc;
}

.select-quantity-item .select-quantity-item-attribute {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    flex-shrink: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.select-quantity-item.is-select .select-quantity-item-attribute {
    max-height: 1000px;
    opacity: 1;
    margin-top: 24px;
}

.select-quantity-item-checkbox {
    width: 22px;
    height: 22px;
    border: 1px solid #000;
    border-radius: 5px;
}

.select-quantity-item.is-select .select-quantity-item-checkbox {
    background-color: #000;
}

.select-quantity-item-product-name {
    font-size: 20px;
    line-height: 28px;
}

.select-quantity-item-prodcut-image {
    margin-top: 20px;
    position: relative;
}

.select-quantity-item-prodcut-image img {
    max-width: 120px;
    width: auto;
    max-height: 200px;
}

.discount-position {
    position: absolute;
    right: -45px;
    top: -10px;
}

.best-seller-tag {
    position: absolute;
    top: -29px;
    left: 50px;
    letter-spacing: .5px;
    line-height: 12px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    padding: 9px 12px 7px 12px;
    background-color: #257bca;
    border-radius: 8px 8px 0 0;
}

.default-seller-margin-top {
    margin-top: 25px;
}

.best-seller-margin-top {
    margin-top: 45px;
}

.best-seller-tag svg {
    color: rgb(253, 224, 71);
    width: 14px;
    display: inline-block;
    margin-top: -4px;
    margin-right: 8px;
    vertical-align: middle;
}

.product-old-price {
    font-size: 17px;
    display: inline-block;
    position: relative;
}

.product-old-price::after {
    content: "";
    position: absolute;
    border-top: 2px solid #ff0000;
    transform: rotate(-10deg);
    width: calc(100% + 10px);
    margin-left: -5px;
    top: calc(100% / 2);
    left: 0;
}

.product-new-price {
    font-size: 30px;
    line-height: 30px;
}

.product-save-money {
    font-size: 19px;
    line-height: 19px;
    color: #26b80e;
    font-weight: 700;
}

.select-quatify-item-attribute-label {
    font-size: 18px;
    line-height: 18px;
}

.select-quatify-item-attribute-checkbox-value {
    flex-wrap: wrap;
}

.select-quatify-item-attribute-checkbox-value .attr-value {
    padding: 8px 32px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 16px;
    background-color: transparent;
    border: 1px solid #000;
}

.select-quatify-item-attribute-checkbox-value .attr-value.is-select-attr {
    background-color: #000;
    color: #fff;
}

.select-quatify-item-attribute-select-label {
    text-transform: uppercase;
    font-size: 14px;
}

.select-quatify-item-attribute-value-content {
    max-width: 50%;
}

.select-quatify-item-attribute-select-value select {
    border: 1px solid #000;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    background-color: #ffffdd;
}

.select-quantity-detail-attr-chart {
    margin-top: 24px;
}

.smb-place-order-section {
    padding-left: 0;
    padding-right: 0;
}

.smb-payment-block {
    margin-top: 20px;
}

.smb-payment-block-section {
    text-align: center;
}

.smb-payment-block-title {
    font-size: 18px;
    line-height: 20px;
    vertical-align: top;
    text-align: center;
    padding: 0 20px;
    display: inline-block;
    margin-top: -12px;
}

.payment-img {
    display: block;
    margin-top: 20px;
}

.smb-customer-info-section {
    margin-top: 32px;
}

.smb-form-sction {
    margin-top: 32px;
}

.smb-customer-info-content {
    padding-top: 24px;
}

.smb-form-content {
    padding-top: 24px;
}

.smb-customer-info-title {
    padding-bottom: 24px;
}

.smb-form-content-title {
    padding-bottom: 24px;
}

.smb-customer-info-title img {
    max-width: 50px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    margin-left: 4px;
}

.smb-form-content-title img {
    max-width: 50px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    margin-left: 4px;
}

.smb-customer-info-title-text {
    text-align: left;
    padding-left: 10px;
}

.smb-form-content-title-text {
    text-align: left;
    padding-left: 10px;
}

.smb-customer-info-title-text h3 {
    font-size: 28px;
    line-height: 28px;
    font-weight: 700;
}

.smb-form-content-title-text h3 {
    font-size: 28px;
    line-height: 28px;
    font-weight: 700;
}

.smb-customer-info-title-text p {
    font-size: 15px;
    letter-spacing: .3px;
    line-height: 21px;
    margin-top: 1px;
}

.smb-form-content-title-text p {
    font-size: 15px;
    letter-spacing: .3px;
    line-height: 21px;
    margin-top: 1px;
}

.form-item .smb-label {
    font-size: 16px;
    padding-bottom: 4px;
}

.form-item input,select {
    font-size: 14px;
    padding: 16px 8px;
    border: 1px solid #999;
    border-radius: 6px;
    margin-bottom: 8px;
}

.view-cvv-image {
    text-decoration-line: underline;
    color: rgb(59 130 246);
    background: transparent;
}

.popup-overlay {
    display: flex;
    background-color: rgba(0, 0, 0, .5);
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 50;
    inset: 0;
    padding: 16px;
}

.popup-content {
    padding: 16px;
    box-shadow: 0 3px 4px 0 #000;
    position: relative;
    border-radius: 8px;
}

.close-popup-btn {
    color: rgb(107 114 128);
    font-size: 24px;
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    background-color: transparent;
}

.view-cvv-popup {
    object-fit: contain;
}

.smb-payment-info-footer {
    margin-top: 32px;
    font-size: 15px;
    color: #333;
}

.smb-payment-info-footer a {
    text-decoration-line: underline;
    color: rgb(147 197 253);
    cursor: pointer;
}

.submit-block {
    margin-top: 20px;
}

.submit-button {
    font-size: 28px;
    color: white;
    font-weight: 700;
    background-color: #00af3a;
    border: 1px solid #77d496;
    border-radius: 5px;
    height: 75px;
    display: inline-block;
    margin: 0;
}

.checkout-button {
    font-size: 0.5rem;
    font-family: 'PingFang-SC-Bold';
    color: #FFFFFF;
    background: #46BC40;
    box-shadow: 0.02rem 0rem 0.17rem 0rem rgba(0, 0, 0, 0.18);
    border-radius: 0.21rem;
    padding: 0.25rem 0;
    text-align: center;
    width: 100%;
    border: none;
    outline: 0;
    font-weight: bold;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.submit-button svg {
    width: 18px;
    display: inline-block;
    margin-left: 17px;
}

.smb-gsc-section {
    padding: 0;
    margin-top: 32px;
}

.smb-gsc-section img {
    color: transparent;
    max-width: 100%;
    height: auto;
}

/* right section */

.right-section-container {
    padding: 0 24px 24px 8px;
}

.order-summary-collapse-panel {
    padding: 16px;
    background-color: rgb(249 250 251);
    border: 2px solid rgb(229 231 235);
    border-radius: 6px;
    overflow: hidden;
}

.order-summary-collapse-panel-header {
    padding-bottom: 8px;
}

.border-b {
    border-bottom: 1px solid #e5e7eb;
}

.order-summary-collapse-panel-header svg {
    width: 24px;
    height: 24px;
}

.order-summary-collapse-panel-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    flex-shrink: 0;
    /* 关键：防止flex item压缩 */
    transition:
        max-height 0.3s ease,
        opacity 0.3s ease;
}

.order-summary-collapse-panel-content.expanded {
    max-height: 500px;
    /* 足够大的值 */
    opacity: 1;
    /* 恢复自动高度 */
    padding-top: 16px;
}

.order-summary-product-image {
    border: 1px solid rgb(107 114 128);
    border-radius: 6px;
    width: 96px;
    height: 96px;
    position: relative;
}

.order-nums-tag {
    background-color: rgb(59 130 246);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    position: absolute;
    top: -8px;
    right: -8px;
}

.order-summary-product-name {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    padding: 0 16px;
    flex: 1;
}

.order-summary-product-price .old-price {
    text-decoration-line: line-through;
    color: rgb(55 65 81);
    font-size: 14px;
}

.order-summary-product-price .new-price {
    font-weight: 500;
}

.order-summary-product-subtotal {
    margin-top: 28px;
    line-height: 24px;
}

.order-summary-product-shipping {
    padding-bottom: 16px;
    line-height: 24px;
    margin-top: 4px;
}

.order-summary-product-shipping-insurance {
    padding-bottom: 16px;
    line-height: 24px;
    margin-top: 4px;
}

.order-summary-product-total-content {
    padding-top: 24px;
    border-top: 2px solid rgb(229 231 235);
}

.order-summary-product-saving-total {
    line-height: 24px;
    margin-top: 4px;
}

.order-summary-product-total {
    font-size: 20px;
    line-height: 28px;
    margin-top: 4px;
}

.order-summary-product-saving {
    color: rgb(34 197 94);
}

.smb-guarantee-section {
    margin-top: 32px;
}

.smb-guarantee-header {
    position: relative;
}

.smb-guaramtee-header-divider-line {
    position: absolute;
    inset: 0;
}

/* 分割线标题 */
.divider-line-header {
    position: relative;
    width: 100%;
}

.divider-line-header-content {
    position: absolute;
    inset: 0;
}

.divider-line {
    border-top: 1px solid rgb(209 213 219);
    width: 100%;
}

.divider-line-header-text {
    position: relative;
    width: 100%;
    background-color: transparent;
}

.divider-line-header-text h3 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    padding: 0 16px;
    background-color: rgb(243 244 246);
}

.smb-guarantee-header-text {
    position: relative;
}

.smb-guarantee-header-text h3 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    padding: 0 16px;
    background-color: rgb(243 244 246);
    margin: 0;
}

.smb-guarantee-item {
    margin-top: 16px;
}

.smb-guarantee-item-image {
    width: 100px;
}

.smb-guarantee-item-info {
    padding-left: 16px;
}

.smb-guarantee-item-info h4 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    padding-bottom: 8px;
}

.smb-guarantee-mb-section {
    display: none;
}

.customer-reviews-section {
    margin-top: 32px;
}

.customer-reviews-item {
    position: relative;
    margin-top: 48px;
}

.customer-reviews-item-tag {
    position: absolute;
    left: 16px;
    top: -16px;
}

.customer-reviews-item-tag img {
    width: 32px;
}

.customer-reviews-item-content {
    padding: 24px;
    border: 2px solid #000;
    border-radius: 8px;
}

.customer-reviews-item-title h3 {
    font-size: 18px;
    font-weight: 700;
}

.customer-reviews-star-content {
    margin-top: 4px;
}

.customer-reviews-star-content img {
    width: 14px;
}

.customer-reviews-item-text {
    font-style: italic;
    font-size: 18px;
    margin: 16px 0;
}

.customer-reviews-item-info .customer-name {
    font-weight: 600;
}

.customer-reviews-item-info .customer-level svg {
    color: rgb(34 197 94);
    width: 16px;
    height: 16px;
}

.faq-container {
    width: 24rem;
    margin: 1rem auto;
    background: #F9F8F8;
    border-radius: 0.31rem;
    padding: 0.6rem 0.4rem;
}

.faq-title {
    margin-bottom: 0.8rem;
    font-family: 'PingFang-SC-Bold';
    font-weight: bold;
    text-align: center;
}

.dt_lists {
    background: #FFFFFF;
    font-weight: 500;
    padding: 0.35rem 0.4rem;
    cursor: pointer;
}

.dd_items {
    display: none;
    font-size: 0.29rem;
    padding: 0.6rem 0.42rem;
    margin: 0;
    font-weight: 400;
}

.footer-container {
    padding: 1rem;
    background-color: #FFF;
    border-width: 1px;
}

.terms-block {
    text-align: center;
}

.terms-block .smb-a {
    display: inline-block;
    padding: 0 .5rem;
    margin: 0;
}

.terms-block .smb-a+.smb-a {
    border-left: 0.02rem solid #000;
}

.terms-block .smb-a a {
    text-decoration: none;
    color: #000;
}

.dmca_logo {
    margin-top: .6rem;
    text-align: center;
}

.copyright-block {
    font-size: .42rem;
    margin-bottom: .6rem;
}

@media (max-width: 767px) {
    body {
        font-size: 0.8rem;
    }

    .smb-input.error {
        background-size: auto 0.9rem;
        background-position-x: 93%;
        background-position-x: calc(100% - 1.4rem);
    }

    .smb-select.error {
        background-size: auto 0.9rem;
        background-position-x: 93%;
        background-position-x: calc(100% - 1.4rem);
    }

    .mb-block {
        display: block;
        position: relative;
        box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.1);
    }

    .header-container {
        display: none;
    }

    .mb-logo {
        margin: 0;
        height: 3.03rem;
        padding: 0.5rem 0;
        text-align: center;
        background-color: #fff;
    }

    .mb-logo img {
        height: 100%;
    }

    .smb-discount-applied {
        font-family: 'PingFang-SC-Bold';
        font-size: 0.93rem;
    }

    .content-section {
        grid-template-columns: 1fr;
    }

    .left-section,
    .right-section {
        padding: 24px 8px;
    }

    .left-section-container {
        padding-left: 0;
    }

    .right-section-container {
        padding: 0;
    }

    .discount-item {
        background-size: 45px;
    }

    .discount-position {
        right: -20px;
    }

    .discount-image {
        width: 45px;
        height: 45px;
        padding: 11px 12px 0 10px;
        font-size: 12px;
        line-height: 12px;
    }

    .hurry-discount-section {
        padding: 12px;
    }

    .hurry-discount-right {
        font-size: 14px;
    }

    .hurry-discount-title {
        font-size: 14px;
    }

    .select-quantity-section-title img {
        width: 50px;
    }

    .select-quantity-section-title-text h3 {
        font-size: 23px;
    }

    .select-quantity-section-title-text p {
        font-size: 12px;
    }

    .select-quantity-section-review {
        display: none;
    }

    .select-quantity-item-product-name {
        font-size: 18px;
        line-height: 24px;
    }

    .product-new-price {
        font-size: 24px;
    }

    .product-save-money {
        font-size: 14px;
    }

    .best-seller-tag {
        font-size: 12px;
        line-height: 12px;
        padding: 9px 12px 7px 12px;
    }

    .smb-guarantee-mb-section {
        display: flex;
        padding: 16px 0;
        margin: 0 -8px;
    }

    .smb-guarantee-mb-section-item {
        width: calc(100% / 3);
        padding: 0 4px;
        text-align: center;
    }

    .smb-guarantee-mb-section-second-item h5 {
        padding: 0 4px;
        border-left-width: 1px;
        border-right-width: 1px;
        border-style: solid;
        border-color: rgb(229 231 235);
    }

    .smb-guarantee-mb-section-item img {
        width: 70px;
        object-fit: scale-down;
    }

    .smb-guarantee-mb-section-item h5 {
        font-size: 13px;
        margin-top: 16px;
        font-weight: 500;
    }

    .smb-guarantee-mb-section-footer {
        font-size: 14px;
        line-height: 21px;
        font-weight: 700;
        padding: 5px 12px;
        margin-top: 0;
    }

    .smb-guarantee-mb-section-footer svg {
        width: 16px;
        height: 16px;
    }

    .smb-form-content-title-text h3 {
        font-size: 23px;
    }

    .smb-form-content-title-text p {
        font-size: 12px;
    }

    .smb-payment-info-footer {
        font-size: 14px;
    }

    .submit-button {
        font-size: 20px;
    }

    .smb-gsc-section {
        padding: 0 32px;
        margin-top: 16px;
    }

    .smb-guarantee-section {
        display: none;
    }

    .customer-reviews-item {
        margin-top: 32px;
    }

    .faq-wrapper {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    .faq-container {
        width: 100%;
        box-sizing: border-box;
        margin: 1.3rem 0;
        border-radius: 0.5rem;
        padding: 1.5rem 0.47rem 0.8rem;
    }
    .faq-title {
        font-family: 'PingFang-SC-Heavy';
        margin-bottom: 1.23rem;
        font-weight: normal;
        font-size: 1.07rem;
    }
    .dt_lists {
        font-family: 'PingFang-SC-Bold';
        font-weight: 400;
        padding: 0.47rem 0.9rem;
        font-size: 1rem;
    }
    .dd_items {
        font-family: 'PingFang-SC-Regular';
        font-size: 1rem;
        padding: 0.67rem 0.9rem;
    }

    .copyright-block {
        font-size: .8rem;
    }

    .terms-block .smb-a {
        margin: .5rem 0;
        font-family: 'PingFang-SC-Bold';
        margin-bottom: 1rem;
    }
}