.layout__content {
    min-height: calc(100vh - var(--header-height));
}

.layout__content > header {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.layout__content h1.title {
    font-size: 1.75rem;
    color: #222;
    font-weight: 600;
    text-align: center;
}

.layout__content p.desc {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.version-select {
    display: block;
    width: fit-content;
    margin: 0.5rem auto 0;
    font-size: 1.375rem;
    color: #f28a1f;
    cursor: pointer;
}

.version-select input[type="checkbox"] {
    display: none;
}

.version-select input[type="checkbox"] + span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.version-select input[type="checkbox"] + span::before {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
    margin-right: 0.5rem;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #ffffff;
    text-align: center;
}

.version-select input[type="checkbox"]:checked + span::before {
    content: "\2714";
    background-color: #f28a1f;
}

.currency-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 1rem;
}

.currency-select select {
    min-width: 6rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #9ca3af;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
}

@media screen and (min-width: 768px) {
    .currency-select {
        flex-direction: row;
    }
}

.plan-wrap {
    position: relative;
    width: 100%;
    max-width: 40rem;
    margin: 1rem auto 0;
}

.plan-select {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    background: #f5f7fa;
    border: 1px solid #dcdfe630;
    border-radius: 4rem;
    display: flex;
    align-items: center;
}

.plan-select::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    border-radius: 4rem;
    background-color: #f28a1f;
    transition: all .3s ease-in-out;
}

.plan-select .plan-item {
    flex: 1 1 0%;
    position: relative;
    height: 3rem;
    line-height: 3rem;
    margin: 0 1rem;
    padding: 0 0.5rem;
    border-radius: 4rem;
    font-size: 1rem;
    color: #333;
    text-align: center;
    transition: all .3s ease-in-out;
    overflow: hidden;
    outline: none;
    cursor: pointer;
}

.plan-wrap[data-target="year"] .plan-select::before {
    left: 4px;
}

.plan-wrap[data-target="month"] .plan-select::before {
    left: 50%;
}

.plan-wrap[data-target="year"] .plan-item[data-target="year"],
.plan-wrap[data-target="month"] .plan-item[data-target="month"] {
    color: #fff;
    font-weight: 600;
}

@media screen and (min-width: 1080px) {
    .plan-wrap {
        max-width: unset;
    }

    .plan-select {
        display: none;
    }
}

.plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "year"
        "month"
        "free";
}

.plan-card {
    position: relative;
    margin: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    background: #fff;
    transition: all .3s;
}

.plan-card:hover {
    box-shadow: 0 2px 24px -6px #00234c24;
}

.plan-wrap[data-target="year"] .plan-card[month],
.plan-wrap[data-target="month"] .plan-card[year] {
    display: none;
}

.plan-card * {
    cursor: default;
}

.plan-card h2 {
    margin: 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.plan-card__price {
    position: relative;
    height: 7rem;
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plan-card__price-box:first-child {
    width: 100%;
    min-height: 2.5rem;
    line-height: 2.5rem;
    font-size: 2.25rem;
    color: #f28a1f;
    font-weight: 600;
    text-align: center;
}

.plan-card__price-box:first-child em {
    font-size: 1.2rem;
    font-style: normal;
}

.plan-card__price-box:last-child {
    margin-top: 0.5rem;
    width: 100%;
    min-height: 1.5rem;
    line-height: 1.5rem;
    font-size: 0.9375rem;
    color: #333333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-card__price-box:last-child .line-through {
    color: #999999;
    text-decoration: line-through;
}

.plan-card__subscribe-btn {
    width: 100%;
    height: 2.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 0 0 1px #f28a1f;
    font-size: 1rem;
    color: #f28a1f;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.plan-card__subscribe-btn[primary] {
    background: linear-gradient(66deg, #222, #696969);
    box-shadow: none;
    color: #ffc736;
}

.plan-card__subscribe-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.plan-card__features {
    padding: 1rem 0.75rem 0;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.5;
    text-align: left;
}

.plan-card__features p:first-child {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 2;
}

.plan-card__features ul {
    position: relative;
    margin: 0;
    padding-inline-start: 2rem;
    list-style: none;
}

.plan-card__features ul li {
    margin-bottom: 0.75rem;
}

.plan-card__features ul li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    width: 1.4rem;
    height: 1.4rem;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAVlJREFUOE/tlC9IQ1EUxr/zeEzGC0aNa4bBY+/e+4JrYpggIhiW7Qo2gwpqtogDq0mDA4UFg8E6HrxzWTHYxGYxGoS9I082GHPbY3+Cwdu/3/3u+b5zCTM+NGMe/h6wWCzm8vl8TUSemfliKodBECw7jlMjoq84jsvp+CYGGmN2RaQGoM7M1W4WEwG11lcAtgHcM/NWb7ADgb7ve57nzTWbzY/+FhhjGiKyAeCl3W6vtVqt15HAUqlUcF33BsCniBwyc9QVaK3PAez9zIpoPY7jh/4LfzlUSvlEdAtgCcCbiBxYa6+VUidEdJwCRGTfWns2qMMDnxwEgXEcpw6g0AGcdmEAHpm5MmwhhoYShmE5SZI7AAu9YhFZtdY+jQ1MBVrrlTRJAPMdwCUz74xa18zaKKUqRNQAkHNddzGKovepgKnYGLOZJElorT3K+kwyHWYBMmszLuAfiG81XG4VxvM9GwAAAABJRU5ErkJggg==);
    background-repeat: no-repeat;
    background-position: center;
}

.plan-card__features ul li em {
    display: inline-block;
    padding-left: 0.25rem;
    font-size: 0.75rem;
    color: #999999;
}

.version-select:has(input[type="checkbox"]:checked) ~ .plan-wrap .plan-card__features div[data-target="standard"] {
    display: none !important;
}

.version-select:has(input[type="checkbox"]:checked) ~ .plan-wrap .plan-card__features div[data-target="education"] {
    display: block !important;
}

@media screen and (min-width: 1080px) {
    .plan-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas: "free month year";
    }

    .plan-card {
        display: block !important;
    }

    .plan-card__features {
        font-size: 0.875rem;
    }
}

/* subscribe-dialog */
.subscribe-dialog {
    position: relative;
    padding: 1.5rem;
}

.subscribe-dialog .package-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #f7f7f7;
    color: #5c5c5c;
    font-size: 1rem;
    padding: 0.75rem;
    line-height: 1.5;
}

.subscribe-dialog .package-card__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.subscribe-dialog .package-card__left .title {
    font-size: 0.9375rem;
    color: #333;
    line-height: 1.5;
}

.subscribe-dialog .package-card__left .desc {
    font-size: 0.75rem;
    color: #a9afbf;
}

.subscribe-dialog .package-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.subscribe-dialog .package-card__right .price:nth-child(1) {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.subscribe-dialog .package-card__right .price:nth-child(2) {
    font-size: 0.75rem;
    color: #a9afbf;
    text-decoration: line-through;
}

.subscribe-dialog .pay-method {
    margin-top: 1rem;
}

.subscribe-dialog .pay-method__title {
    padding-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: #333;
    line-height: 1.5;
}

.subscribe-dialog .pay-method__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.subscribe-dialog .pay-method__content-item {
    padding: 0.5rem 0.8rem;
    border: 1px solid #95a0f4;
    border-radius: 8px;
    font-size: 0.9375rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    cursor: pointer;
}

.subscribe-dialog .coupon-box {
    margin-top: 2rem;
}

.subscribe-dialog .coupon-wrapper {
    position: relative;
}

.subscribe-dialog #coupon-input {
    width: 10rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    box-sizing: border-box;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background-color: #fff;
    outline: none;
    font-size: 0.9375rem;
    transition: all .3s;
    cursor: pointer;
}

.subscribe-dialog #coupon-input::placeholder {
    font-size: 0.875rem;
}

.subscribe-dialog #coupon-input:focus, 
.subscribe-dialog #coupon-input:not(:placeholder-shown) {
    width: 100%;
    border: 1px solid #c0c4cc;
    cursor: text;
}

.subscribe-dialog #coupon-btn {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 0 0.75rem;
    border: none;
    background-color: transparent;
    outline: none;
    font-size: 0.9375rem;
    color: #f28a1f;
    line-height: 1;
    cursor: pointer;
}

.subscribe-dialog #coupon-btn.show {
    display: flex;
    align-items: center;
}

.subscribe-dialog #coupon-btn[disabled]::before {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 4px;
    border: 2px solid #f28a1f;
    border-top-color: transparent;
    border-radius: 50%;
    animation: coupon-loading 1s linear infinite;
}

.subscribe-dialog .coupon-msg {
    padding: 0.25rem;
    font-size: 0.875rem;
    color: #dc2727;
}

.subscribe-dialog .subscribe-btn {
    width: 100%;
    height: 2.875rem;
    margin-top: 5rem;
    border: none;
    border-radius: 4px;
    background: rgb(0, 112, 186);
    transition: box-shadow 0.3s ease-in-out;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-dialog .subscribe-btn:hover {
    box-shadow: 0 6px 10px 0 rgba(0, 116, 212, 0.2);
}

@keyframes coupon-loading {
    to {
        transform: rotate(360deg);
    }
}

.qrcode-dialog .qrcode-img {
    display: block;
    width: 12.5rem; 
    height: 12.5rem;
    margin: 0 auto;
}

.qrcode-dialog .price-text {
    font-size: 1.25rem; 
    color: #333; 
    font-weight: bold;
    text-align: center;
}