@media (max-width: 1200px) {
    .shopcart .cart-left {
        width: 67%;
    }

    .payment-method .payment-info ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure mobile fixed cart is always visible on mobile devices */
@media (max-width: 1024px) {
    .mobile_fixed_cart {
        display: block !important;
    }
}

@media (max-width: 1024px) {
    @font-face {
        font-family: 'Montserrat';
        src: url("../font/Montserrat-Medium.ttf");
        font-display: swap
    }

    @font-face {
        font-family: 'Montserrat Bold';
        src: url("../font/Montserrat-Bold.ttf");
        font-display: swap
    }

    @font-face {
        font-family: 'Montserrat Black';
        src: url("../font/Montserrat-Black.ttf");
        font-display: swap
    }

    @font-face {
        font-family: 'Montserrat SemiBold';
        src: url("../font/Montserrat-SemiBold.ttf");
        font-display: swap
    }

    @font-face {
        font-family: 'Oswald';
        src: url("../font/Oswald-Medium.ttf");
        font-display: swap
    }
    .waiting-box {
        width: 90%;
    }

    .waiting-box h2 {
        font-size: 20px;
    }

    .shopcart .ico {
        background-image: url(../pc/image/public_ico.png);
        background-repeat: no-repeat;
        background-size: 200px;
        content: '';
        display: inline-block;
    }

    .shopcart .cart-left,
    .shopcart .cart-right {
        float: none;
    }

    .shopcart .cart-right {
        position: unset;
        width: 100%;
        margin-top: 20px;
        top: 0 !important;
        visibility: visible !important;
    }

    .order-info .checkout-btn {
        display: none;
    }

    .shopcart .cart-left {
        width: 100%;
    }

    .shopcart .pc_cart_list {
        display: none !important;
    }

    .shopcart .goods_li .diyDetailInfo {
        left: -82px;
        width: 300px;
        top: 50px;
    }

    .shopcart .goods_li .diyDetailInfo::after {
        left: 45%;
    }

    .shopcart .goods_li .diyDetailInfo p {
        white-space: normal;
    }

    .mobile_title {
        display: block;
        font-size: 20px;
        padding: 0px 8px 20px;
    }

    .cart-left .common-info {
        padding: 20px 10px;
    }

    .cart-left .information>div {
        width: 100%;
    }

    .cart-left .common-info.delivery-info {
        margin-top: 20px;
        padding: 20px 10px;
    }

    .cart-left .common-info.payment-method {
        padding-right: 10px;
    }

    .payment-method .payment-info ul {
        grid-template-columns: repeat(4, 1fr);
        padding-right: 0;
    }

    .cart-left .information {
        display: block;
    }

    .order-info .order-top {
        display: none;
    }

    .cart-right .order-info {
        padding: 5px 10px 5px;
    }

    .order-info .order-price,
    .order-info h2,
    .order-info .order-coupon {
        padding: 0;
    }



    .mobile_cart_list.common {
        padding: 0;
    }

    .mobile_cart_list li {
        display: flex;
        padding: 15px 19px 15px 10px;
        padding: 15px 10px 15px 10px;
        position: relative;
        border-bottom: 1px solid #07254c;
    }

    .mobile_cart_list li:last-child {
        border: none;
    }

    .mobile_cart_list li .shopCartImages {
        height: 70px;
        width: 70px;
        margin-right: 10px;
        display: flex;
        align-items: center;
        justify-content: center;

    }

    .lang-ar .mobile_cart_list li .shopCartImages {
        margin-right: unset;
        margin-left: 10px;
    }

    .mobile_cart_list li img {
        max-height: 70px;
        max-width: 70px;
        min-width: 70px;
    }

    .mobile_cart_list li .goods-num {
        display: flex;
        align-items: center;
        margin: 12px 0;
    }

    .mobile_cart_list li .goods-num span {
        width: 26px;
        height: 30px;
        background: #072446;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile_cart_list li .goods-num span.sub {
        border-radius: 5px 0 0 5px;
    }

    .mobile_cart_list li .goods-num span.sub i {
        height: 2px;
        background-position: -171px -105px;
        width: 10px;
    }

    .mobile_cart_list li .goods-num span.add {
        border-radius: 0 5px 5px 0;
    }

    .mobile_cart_list li .goods-num span.add i {
        height: 10px;
        background-position: -187px -100px;
        width: 10px;
    }

    .mobile_cart_list li .goods-num input {
        width: 44px;
        height: 30px;
        background: #072446;
        border-left: 1px solid #000;
        border-right: 1px solid #000;
        color: #fff;
        text-align: center;
        font-size: 12px;
    }

    .mobile_cart_list li p {
        color: #e0e1ff;
        font-size: 12px;
    }

    .mobile_cart_list li .price {
        font-size: 16px;
        color: #0b85ea;
        margin-left: auto;
        padding-top: 10px;
        white-space: nowrap;
    }

    .mobile_cart_list li .delete i {
        position: absolute;
        bottom: 19px;
        right: 19px;
        background-position: -161px -56px;
        width: 12px;
        height: 13px;
    }

    .lang-ar .mobile_cart_list li .delete i {
        right: unset;
        left: 19px;
    }

    .shopcart .mobile_cart_list {
        display: block !important;
        background: #060d25;
    }

    .delete-modal-box i {
        background-image: url(../pc/image/public_ico.png)
    }

    .delivery-info li.word-li p {
        padding: 0 10px;
    }

    .delete-modal-box {
        width: 90%;
        padding: 30px 20px 20px;
    }

    .delete-modal-box p {
        margin-bottom: 20px;
    }

    .cart-left .information .common-info .grid_items {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 0px;
    }


    .cart-left .delivery-info .delivery-tips p.grid_img {
        display: block;
    }

    .cart-left .delivery-info .delivery-tips p.grid_img img {
        max-width: 600px;
    }

    /* 支付宝 */
    .alipaycn_payment {
        padding: 30px 10px;
        margin-top: 0;
    }

    .alipaycn_payment .orderDetails {
        display: block;
    }

    .alipaycn_payment .orderDetails>div {
        width: 100%;
        margin-bottom: 20px;
    }

    .alipaycn_payment .alipaycn_payment_instruction ul {
        display: block;
    }



    .payment-success,
    .failed_success.payment-success {
        padding: 30px 10px;
    }

    .failed_success.payment-success h3 {
        display: flex;
        margin-left: 0;
        flex-direction: column;
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .payment-success ul {
        width: 100%;
        padding: 0;
    }

    .payment-success ul li {
        padding: 10px;
    }

    .payment-success ul li span {
        white-space: nowrap;
    }

    .payment-success h3 {
        font-size: 24px;
    }

    .payment-success .order-no {
        margin: 20px 0 40px;
    }

    .payment-success img.success {
        width: 70px;
        display: block;
        margin: 0 auto;
    }

    .payment-success i {
        display: none;
    }


    .orderRePay .goods-info {
        display: block;
        background: #060d25;
    }

    .orderRePay .goods-info.common {
        padding: 0;
    }

    .orderRePay .goods-info li {
        display: flex;
        padding: 15px 19px 15px 10px;
        position: relative;
        border-bottom: 1px solid #07254c;
        justify-content: space-between;
    }

    .orderRePay .goods-info li:last-child {
        border: none;
    }

    .orderRePay .goods-info li .shopCartImages {
        height: 70px;
        width: 70px;
        margin-right: 25px;
        display: flex;
        align-items: center;
        justify-content: center;

    }

    .orderRePay .goods-info li img {
        max-height: 70px;
        max-width: 70px;
    }

    .orderRePay .goods-info li .goods-num {
        display: flex;
        align-items: center;
        margin: 12px 0;
    }

    .orderRePay .goods-info li .goods-num span {
        width: 26px;
        height: 30px;
        background: #072446;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .orderRePay .goods-info li .goods-num span.sub {
        border-radius: 5px 0 0 5px;
    }

    .orderRePay .goods-info li .goods-num span.add {
        border-radius: 0 5px 5px 0;
    }

    .orderRePay .goods-info li .goods-num input {
        width: 75px;
        height: 30px;
        background: #072446;
        border-left: 1px solid #000;
        border-right: 1px solid #000;
        color: #fff;
        text-align: center;
        font-size: 12px;
    }

    .orderRePay .goods-info li p {
        color: #e0e1ff;
        font-size: 12px;
    }

    .orderRePay .goods-info li .price {
        font-size: 16px;
        font-family: 'Montserrat SemiBold';
        color: #0b85ea;
        margin-left: auto;
        padding-top: 10px;
        white-space: nowrap;
    }

    .orderRePay .goods-info li .delete i {
        position: absolute;
        bottom: 18px;
        right: 18px;
        width: 12px;
        height: 13px;
        background-position: -175px -65px;
    }

    .orderRePay .cart-list {
        display: none !important;
    }




    .mobile_fixed_cart {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        z-index: 1002;
        display: none;
        box-shadow: 0px -6px 20px 0px rgba(0, 0, 0, 0.4);
        touch-action: none;
    }

    .mobile_fixed_cart .opacity-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, #0e3070 0%, #102036 100%);
    }

    .mobile_fixed_cart .total-cart {
        position: absolute;
        z-index: 1;
        display: flex;
        align-items: center;
        font-family: 'Montserrat Bold';
        bottom: 0;
        height: 100%;
        width: 100%;
        justify-content: space-between;
        padding: 0 10px 0 10px;
    }

    .mobile_fixed_cart .total-cart p {
        font-size: 16px;
        color: #fff;
        cursor: pointer;
        font-family: Montserrat, Montserrat;
        font-weight: 600;
        font-size: 12px;
    }

    .mobile_fixed_cart .total-cart p .price {
        font-size: 20px;
        color: #FA4905;
        font-family: Montserrat, Montserrat;
        font-weight: bold;
        display: block;
    }

    .mobile_fixed_cart .total-cart p .price i {
        font-weight: bold;
    }

    .mobile_fixed_cart .total-cart p .price-detail-btn {
        margin-left: 6px;
        font-size: 13px;
        color: #62e8a8;
        cursor: pointer;
        /* text-decoration: underline; */
        vertical-align: middle;
        font-weight: 600;
        font-size: 12px;
        color: #0B85EA;
    }

    .mobile_fixed_cart .total-cart button {
        background: linear-gradient(90deg, #53fecd 0%, #2c74c9 100%);
        color: #fff;
        font-family: 'Montserrat Bold';
        font-size: 15px;
        padding: 0 20px;
        height: 40px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile_fixed_cart .total-cart button.noval {
        background: #ccc;
    }

    .anchTips {
        white-space: pre-wrap;
        padding: 10px;
        top: -64px;
    }

    .countryTips {
        left: 0;
        width: auto;
        white-space: nowrap;
    }


    .noCartDiv {
        padding: 50px 0;
    }


    .google_apple--warpper {
        display: block;
        margin-top: 0;
        padding: 20px;
    }

    .google_apple--warpper .google_apple_left {
        width: 100%;
        min-width: auto;
        margin-right: 0;
    }

    .google_apple--warpper .google_apple_right {
        margin-top: 40px;
    }

    .google_apple--warpper .title {
        font-size: 20px;

    }


    /* bt */
    .usdt_payment {
        padding: 20px 12px;
        display: block;
        text-align: center;
    }

    .usdt_payment .usdt_pay_left {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .usdt_payment .usdt_pay_right .pay-note-block {
        text-align: left;
    }

    .usdt_payment .usdt_pay_right ul li {
        font-size: 12px;
    }

    .usdt_payment .usdt_pay_right ul li span {
        text-align: left;
        white-space: nowrap;
        margin-right: 10px;
    }

    .usdt_payment .usdt_pay_right ul li p {
        font-size: 12px;
        word-break: break-all;
        text-align: right;
    }

    .usdt_payment .error_dialog {
        width: 90%;
    }

    .usdt_payment .error_dialog i {
        background-image: url(../pc/image/public_ico.png);
    }
}

@media (max-width: 840px) {
    .payment-method .payment-info li {
        width: 170px;
    }
}

@media (max-width: 768px) {
    .payment-method .payment-info ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .payment-method .payment-info li {
        width: 190px;
    }

    .player__warp .playerContent .playerBox {
        flex-wrap: wrap;
    }

    .player__warp .playerContent .playerBox .player_name {
        width: 100%;
        flex: 1 100%;
    }
    .player__warp .playerContent .playerBox .player_price {
        width: 20%;
    }
}

@media (max-width: 630px) {
    .payment-method .payment-info li {
        width: 170px;
    }

    .cart-left .delivery-info .delivery-tips p.grid_img img,
    .cart-left .delivery-info .delivery-tips img {
        max-width: 100%;
    }
}

@media (max-width: 570px) {
    .payment-method .payment-info ul {
        grid-gap: 10px;
    }

    .payment-method .payment-info li {
        width: 165px;
    }


    .emailErrorTips {
        width: 90%;
    }
}

@media (max-width: 540px) {
    .payment-method .payment-info ul {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px;
    }

    .payment-method .payment-info.other-payment ul {
        height: 360px;
    }

    .payment-method .payment-info li {
        width: 100%;
    }

    .google_apple--warpper .google_apple_right .google_right_payment {
        padding: 20px 10px;
    }

    #pacypay_checkout {
        /*height: 450px;*/
    }

    .player__warp .playerContent .playerBox .player_price {
        width: 48%;
    }
    .player__warp .playerContent .playerBox .duration_select {
        width: 34%;
    }
}

/* 价格详情弹窗 */
.price-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
    touch-action: none;
}
.price-detail-overlay.is-open {
    opacity: 1;
}

.price-detail-modal {
    background: #0d1f3c;
    background: #132A4D;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.price-detail-overlay.is-open .price-detail-modal {
    transform: translateY(0);
}

.price-detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    position: relative;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #1e3a5f;
    touch-action: none;
}

.price-detail-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.price-detail-body {
    flex: 1;
    overflow: hidden;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

.pd-section-title {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    padding: 14px 0 8px;
}

.pd-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    color: #c8d8f0;
    font-size: 13px;
    border-bottom: 1px solid #1a2e50;
}

.pd-items-list li:last-child {
    border-bottom: none;
}

.pd-item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.lang-ar .pd-item-title {
    padding-right: 0;
    padding-left: 10px;
}

.pd-item-qty {
    white-space: nowrap;
    color: #9ab3d4;
}

.pd-divider {
    height: 1px;
    background: #1e3a5f;
    margin: 10px 0;
}

.pd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    color: #c8d8f0;
    font-size: 14px;
}

.pd-row .price {
    font-size: 14px;
    color: #fff;
}

.pd-coupon-price {
    color: #FA4905 !important;
}

.pd-coupon-price strong,
.pd-coupon-price i {
    color: #FA4905;
}

.pd-vip-price {
    color: #f5c518 !important;
}

.pd-vip-price strong,
.pd-vip-price i {
    color: #f5c518;
}

.pd-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 4px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.pd-total-price {
    color: #FA4905 !important;
    font-size: 18px !important;
}

.pd-total-price strong,
.pd-total-price i {
    color: #FA4905;
}

/* 展开时 body 可滚动，隐藏滚动条 */
.price-detail-body.pd-body-expanded {
    overflow-y: auto;
    scrollbar-width: none;
}
.price-detail-body.pd-body-expanded::-webkit-scrollbar {
    display: none;
}

/* 收起时列表撑满剩余空间，内容截断 */
.price-detail-body.pd-body-collapsed .pd-items-list {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* 列表底部渐隐 */
.price-detail-body.pd-body-collapsed .pd-items-list::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, #132A4D);
    pointer-events: none;
}

.pd-items-toggle {
    text-align: center;
    padding: 4px 0 2px;
}

.pd-items-toggle-btn {
    background: none;
    border: none;
    border-radius: 20px;
    color: #9ab3d4;
    font-size: 12px;
    padding: 5px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pd-toggle-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #9ab3d4;
    border-bottom: 2px solid #9ab3d4;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-top: -3px;
}

.pd-items-toggle-btn.expanded .pd-toggle-arrow {
    transform: rotate(-135deg);
    margin-top: 2px;
}
/* ===== 自定义下拉组件移动端适配 ===== */
@media (max-width: 1024px) {
    .diy-select-trigger {
        height: 48px;
        -webkit-tap-highlight-color: transparent;
    }
    .diy-select-text { font-size: 15px; }
    .diy-opt { padding: 13px 14px; font-size: 15px; }
    .diy-select-list { max-height: 240px; }
}

@media (max-width: 768px) {
    .common-info .input-box.diy-select-wrap { width: 100%; }
    .diy-select-trigger { height: 46px; }
}

@media (max-width: 540px) {
    .diy-select-trigger { height: 44px; }
    .diy-select-text { font-size: 14px; }
    .diy-opt { font-size: 14px; padding: 12px 14px; }
}