.CNY-icon::before {
    content: '¥';
    font-size: inherit;
    margin-right: 2px;
}

.USD-icon::before {
    content: '$';
    font-size: inherit;
    margin-right: 2px;
}

.main-container {
    all: initial;
    display: block;
    position: relative;
    min-height: calc(100vh - 120px);
    padding: 32px 20px;
    box-sizing: border-box;
}

.page-card {
    width: fit-content;
    margin: 0 auto;
    box-shadow: none;
}

.subscribe-protitle,
.subscribe-subtitle {
    margin: 0;
    padding: 8px 0;
    font-size: 28px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.subscribe-subtitle {
    font-size: 16px;
}

.subscribe-container {
    margin: 30px auto;
}

.subscribe-container .currency-select {
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
    line-height: 30px;
}

.subscribe-container .currency-select select {
    min-width: 100px;
    padding: 6px 4px;
    border-radius: 4px;
    border: 1px solid #9ca3af;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.subscribe-container .switch-box {
    display: none !important;
    position: relative;
    width: 95%;
    height: 46px;
    margin-bottom: 16px;
    padding: 3px;
    box-sizing: border-box;
    background: #f5f7fa;
    border: 1px solid #dcdfe630;
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.subscribe-container .switch-box::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    bottom: 3px;
    width: 50%;
    border-radius: 20px;
    background-color: #009c4c;
    transition: all .3s ease-in-out;
}

.subscribe-container .switch-box>[class*="-type"] {
    flex: 1 1 0%;
    position: relative;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    font-size: 15px;
    color: #333;
    text-align: center;
    transition: all .3s ease-in-out;
    cursor: pointer;
}

.subscribe-container[month] .switch-box::before {
    left: calc(50% - 3px);
}

.subscribe-container[year] .switch-box .year-type,
.subscribe-container[month] .switch-box .month-type {
    color: #fff;
    font-weight: 600;
}



.subscribe-container .card-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 350px));
    grid-template-areas: "free month year";
    grid-gap: 20px;
}

.subscribe-container .card-box {
    padding: 40px 30px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    transition: all .3s;
    cursor: default;
}

.subscribe-container .card-box:hover {
    box-shadow: 0 4px 40px #00234c24;
}

.subscribe-container .card-title {
    font-size: 20px;
    color: #333;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: center;
}

.subscribe-container .price-container {
    height: 60px;
    padding: 12px 0 4px;
    box-sizing: border-box;
    font-size: 36px;
    color: #009c4c;
    font-weight: 600;
}

.subscribe-container .price-container span:last-child {
    font-size: 18px;
}

.subscribe-container .oPrice-container {
    height: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.subscribe-container .oPrice-container span.through-line {
    color: #999999;
    text-decoration: line-through;
}

.subscribe-container button {
    width: 100%;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(66deg, #222 19%, #696969 94.25%);
    font-size: 15px;
    color: #ffc736;
    font-weight: 600;
    cursor: pointer;
}

.subscribe-container button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.subscribe-container button.text {
    border: 1px solid #009c4c;
    background: transparent;
    color: #009c4c;
}

.subscribe-container .desc-container {
    width: 100%;
    padding: 40px 10px 0;
    box-sizing: border-box;
    text-align: left;
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
}

.subscribe-container .desc-container .desc-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 2;
}

.subscribe-container .desc-container ul {
    position: relative;
    padding-inline-start: 32px;
    list-style: none;
}

.subscribe-container .desc-container ul li {
    padding-bottom: 12px;
}

.subscribe-container .desc-container ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    width: 20px;
    height: 20px;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAVlJREFUOE/tlC9IQ1EUxr/zeEzGC0aNa4bBY+/e+4JrYpggIhiW7Qo2gwpqtogDq0mDA4UFg8E6HrxzWTHYxGYxGoS9I082GHPbY3+Cwdu/3/3u+b5zCTM+NGMe/h6wWCzm8vl8TUSemfliKodBECw7jlMjoq84jsvp+CYGGmN2RaQGoM7M1W4WEwG11lcAtgHcM/NWb7ADgb7ve57nzTWbzY/+FhhjGiKyAeCl3W6vtVqt15HAUqlUcF33BsCniBwyc9QVaK3PAez9zIpoPY7jh/4LfzlUSvlEdAtgCcCbiBxYa6+VUidEdJwCRGTfWns2qMMDnxwEgXEcpw6g0AGcdmEAHpm5MmwhhoYShmE5SZI7AAu9YhFZtdY+jQ1MBVrrlTRJAPMdwCUz74xa18zaKKUqRNQAkHNddzGKovepgKnYGLOZJElorT3K+kwyHWYBMmszLuAfiG81XG4VxvM9GwAAAABJRU5ErkJggg==") center center/contain no-repeat;
}

.subscribe-container .desc-container ul li span {
    display: inline-block;
    padding-left: 4px;
    font-size: 12px;
    color: #999999;
}

.subscribe-dialog .subscribe-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #f7f7f7;
    color: #5c5c5c;
    font-size: 15px;
    padding: 10px 12px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.subscribe-dialog .subscribe-info .price-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.subscribe-dialog .subscribe-info .price-text span:nth-child(1) {
    font-size: 17px;
}

.subscribe-dialog .subscribe-info .price-text span:nth-child(2) {
    font-size: 13px;
    color: #a9afbf;
    text-decoration: line-through;
}

.subscribe-dialog .coupon-container {
    margin-top: 12px;
}

.subscribe-dialog .coupon-wrapper {
    position: relative;
}

.subscribe-dialog .coupon-wrapper input {
    width: 160px;
    height: 36px;
    box-sizing: border-box;
    border: 1px solid #dcdfe6;
    background-color: #fff;
    transition: all .3s;
    cursor: pointer;
}

.subscribe-dialog .coupon-wrapper input:not(:focus)::placeholder,
.subscribe-dialog .coupon-wrapper input:not(:placeholder-shown)::placeholder {
    color: #222;
}

.subscribe-dialog .coupon-wrapper input:focus,
.subscribe-dialog .coupon-wrapper input:not(:placeholder-shown) {
    width: 100%;
    border: 1px solid #c0c4cc;
    cursor: text;
}

.subscribe-dialog .coupon-wrapper #coupon-btn {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 36px;
    padding: 0 8px;
    border: none;
    background-color: transparent;
    outline: none;
    font-size: 15px;
    color: #009c4c;
    line-height: 1;
    cursor: pointer;
}

.subscribe-dialog .coupon-wrapper #coupon-btn[disabled]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border: 2px solid #009c4c;
    border-top-color: transparent;
    border-radius: 50%;
    animation: coupon-loading 1s linear infinite;
}

.subscribe-dialog .coupon-wrapper.show-btn #coupon-btn {
    display: flex;
    align-items: center;
}

.subscribe-dialog .coupon-msg {
    padding: 4px;
    font-size: 13px;
    color: #dc2727;
}

.subscribe-dialog .row {
    padding-bottom: 16px;
}

.subscribe-dialog .row-title {
    padding-bottom: 8px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.subscribe-dialog .pay-type_content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.subscribe-dialog .pay-type-item {
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.subscribe-dialog .pay-type-item.checked {
    border: 1px solid #6c6c6c;
}

.subscribe-dialog .confirm-btn {
    width: 100%;
    height: 45px;
    margin-top: 80px;
    border: none;
    border-radius: 4px;
    background: rgb(0, 112, 186);
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    transition: box-shadow 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-dialog .confirm-btn:hover {
    box-shadow: 0 6px 10px 0 rgba(0, 116, 212, 0.2);
}

.subscribe-dialog .payment-msg {
    margin-top: 12px;
    font-size: 13px;
    color: #5e5e5e;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .page-card {
        width: auto;
    }

    .subscribe-container .switch-box {
        display: flex !important;
    }

    .subscribe-container .card-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: "year" "month" "free";
        grid-gap: 20px;
    }

    .subscribe-container .card-box {
        padding: 30px 20px;
    }

    .subscribe-container[year] .card-container {
        grid-template-areas: "year" "free";
    }

    .subscribe-container[year] .card-box[month] {
        display: none !important;
    }

    .subscribe-container[month] .card-container {
        grid-template-areas: "month" "free";
    }

    .subscribe-container[month] .card-box[year] {
        display: none !important;
    }
}

@keyframes coupon-loading {
    to {
        transform: rotate(360deg);
    }
}