/* 弹出样式 */
body .masks {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* PC 默认弹窗右侧滑出 */
body .masks .box {
    background-color: #fff;
    width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    padding: 0;
    top: 0px;
    z-index: 9999;
    left: unset;
    right: 0;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}
#coupons_list .sc-coupon{
    width: 100% !important;
}
/* 弹窗展示时的类（JS添加） */
body .masks .box.show {
    transform: translateX(0);
    /* 从右侧滑入 */
}

body .masks .box .head {
    width: 100%;
    text-align: center;
    margin: auto;
    line-height: 40px;
    font-family: Urbanist, Urbanist;
    font-weight: 600;
    font-size: 20px !important;
    color: #222222;
    position: relative;
	border-bottom: 1px solid #E8E8E8 !important;
}


body .masks .box .head .close {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 8px;
    right: 0px;
    transform: unset;
}

body .masks .box .head .close img {
    width: 100%;
    height: 100%;
}

body .masks .box .head .close img:hover {
    cursor: pointer;
    transform: scale(1.2);
}


body .masks .box .discount-details {
    background-color: unset;
	padding-bottom:40px;
}

body .masks .box .discount-details::-webkit-scrollbar {
    display: none;
}

body .masks .box .discount-details #coupons_list {
    padding: 15px 24px;
    display: flex;
    flex-direction: column;
    gap: 15px !important;
    top: 60px;
    border-bottom: unset;
}

body .masks .box .discount-details #coupons_list .coupon {
    width: 100% !important;
}

.sc-coupon .text-off {
    margin-top: 0px !important;
}



@media (max-width: 1024px) {
    body .masks .box .head {
        font-size: 18px !important;
    }

    body .masks .box .discount-details #coupons_list {
        padding: 15px 12px;
        top: 70px;
    }
}

@media(max-width: 768px) {
    body .masks .box {
        width: 100%;
        height: 90%;
        bottom: 0;
        left: 0;
        top: auto;
        border-radius: 10px 10px 0 0;
        transform: translateY(100%);
    }

    body .masks .box .discount-details #coupons_list {
        width: 60%;
        left: 50%;
        transform: translateX(-50%);
    }

    body .masks .box.show {
        transform: translateY(0);
    }

    .overflow-cou {
        width: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
    }
	 body .masks .box .head {
        border-bottom: none;
    }
    .text-discount {
        font-size: 30px;
        /*margin-top: 20px;*/
    }

    .sc-coupon .code {
        font-size: 12px !important;
        line-height: 28px;
    }
}

@media (max-width: 560px) {
    .sc-coupon .text-xl,
    .sc-coupon .text-4xl,
    .items-center .percent {
        font-size: 50px !important;
        line-height: 50px !important;
    }

    body .masks .box {
        width: 100%;
        height: 90%;
        top: 10%;
        left: 0;
        border-radius: 10px 10px 0px 0px;
    }

    body .masks .box .discount-details #coupons_list {
        width: 100%;
        transform: unset;
    }

    body .masks .box .head {
        border-bottom: none;
    }

    body .masks .box .head .close {
        top: 4px;
    }

}