:root{
    --signature: rgb(50,50,50);
    --signature_hover: rgb(50,50,50);
    --grey100: rgb(100,100,100);
    --selected_text: rgb(100,100,100);
    --selected_k150: rgb(180,180,180);
    --selected_w: #ffffff;
    --unclicked_bg : rgb(235,235,235);
    --unclicked_text : rgb(180,180,180);
    --unclicked_border : rgb(180,180,180);
    --hover_bg : transparent;
    --hover_text : rgb(0,0,0);
    --hover_border : rgb(0,0,0);
    --clicked : rgb(0,50,255);

}

/* 결제 1단계 */

/* 모든 텍스트 요소에 폰트 강제 적용 */
* {
    font-family: 'Noto Sans', Arial, sans-serif !important;
}
.pay_lv1 {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.container2 {
    text-align: center;
    width: 100%;
    padding: 20px;
    color: var(--signature);
}
.container2 h1 {
    font-size: 16pt;
    font-weight: 400;
    line-height: 100%;
    margin: 0;
}
.container2 h2 {
    font-size: 36pt;
    font-weight: 400;
    line-height: 1.2;
    margin: 20px 0;
}

.thumbnail_pay{
    display: flex;
    justify-content: center;
    align-items: center;
}
/* 결제 카드 */
.thumbnail_hss0, .thumbnail_hss1{
    display: block;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--unclicked_border);
    width: 300px; /* 너비 설정 */
    height: 400px; /* 높이 설정 */
    text-align: left;
    cursor: pointer;
    margin: 0px 10px 30px 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 20px;
    background-color: var(--unclicked_bg);
    color: var(--unclicked_text);
    transition: background-color 0.3s, color 0.3s;
}

/* 소제목 */
.thumbnail_hss0 h6, .thumbnail_hss1 h6{
    margin: 0px;
    margin-left: 30px;
    font-weight: 400;
    font-size: 10pt;
    line-height: 150%;

}
/* 제목 */
.thumbnail_hss0 h7, .thumbnail_hss1 h7{
    margin:0px;
    margin-left: 30px;
    font-size: 20pt;
    line-height: 150%;
}
/* 내용 */
.thumbnail_hss0 p, .thumbnail_hss1 p{
    line-height: 150%; /* 행간 */
    margin : 0px 30px;
    
}
/* 마우스 오버 */
.thumbnail_hss0:hover, .thumbnail_hss1:hover{
    background-color: var(--hover_bg);
    color: var(--hover_text);
    border: 1px solid var(--hover_border);
    box-shadow: 0 0 0 1px var(--signature);
}
/* 클릭 후 */
.thumbnail_hss0.clicked, .thumbnail_hss1.clicked{
    box-shadow: 0 0 0 1px var(--signature);
    background-color: transparentvar;
    color: var(--signature);
    border: 1px solid var(--signature);
}
/* 버튼 */
.thumbanil_button{
    border: 0px solid #000000;
    width: 160px;
    height: 40px;
    font-size: 12pt;
    border-radius: 20px;
    margin:10px;
}
/* 기본적으로 비활성화된 썸네일을 스타일링 */
.thumbnail_pay .thumbnail_hss0.disabled,
.thumbnail_pay .thumbnail_hss1.disabled {
  pointer-events: none; /* 클릭과 같은 사용자 상호작용을 차단 */
  cursor: default;      /* 기본 커서 유지 */
  opacity: 0.5;         /* 약간 투명하게 표시하여 비활성화 표시 */
}

/* 비활성화된 썸네일에 마우스를 올려도 변화가 없도록 */
.thumbnail_pay .thumbnail_hss0.disabled:hover,
.thumbnail_pay .thumbnail_hss1.disabled:hover {
  transform: none; /* 확대나 축소 등의 CSS 변환을 제거 */
  box-shadow: none; /* 그림자 효과 제거 */
  background-color: inherit; /* 배경색 변화 제거 */
}







/* 결제 2단계 */
.pay_lv2 {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 80px 0;
    box-sizing: border-box;
}
.pay_lv5 {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 80px 0;
    box-sizing: border-box;
}
.pay_lv5 #container2 {
    display: block;
    height: auto;
    min-height: 0;
}
.container {
    position: relative;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    color: var(--signature);
}
.pay_lv2 .container {
    width: 100%;
    /* aspect-ratio: 1 / 2; */
    box-sizing: border-box;
}
.pay-page-head {
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    width: 100%;
    min-height: 40px;
    margin-bottom: 20px;
}
.pay-head-spacer {
    display: block;
    width: 30px;
    height: 30px;
}
.pay-plan-close,
.pay-plan-back {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.pay-plan-close {
    justify-self: end;
}
.pay-plan-back {
    justify-self: start;
}
.pay-plan-close img,
.pay-plan-back img {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 1;
    transition: opacity 0.2s ease;
}
.pay-plan-close:hover img,
.pay-plan-back:hover img {
    opacity: 0.55;
}
.pay-page-head h2 {
    align-self: center;
    margin: 0;
    font-size: 24pt;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}
.container h1 {
    font-size: 16pt;
    font-weight: 400;
    line-height: 100%;
    margin: 0;
}
.container h2 {
    font-size: 24pt;
    font-weight: 400;
    line-height: 1.2;
    margin: 20px 0;
}
.container .pay-page-head h2 {
    margin: 0;
}

.plan-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0px;
    width: min(360px, 100%);
    margin: 0 auto 15px;
    background-color: rgb(150,150,150);
    padding: 4px;
    border-radius: 999px;
}
.plan-tabs::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc((100% - 8px) / 2);
    height: calc(100% - 8px);
    border-radius: 999px;
    background-color: rgb(50,50,50);
    transform: translateX(0);
    transition: transform 0.28s ease;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.55);
}
.plan-tabs.is-annual::before {
    transform: translateX(100%);
}
.plan-tab {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 36px;
    border: 0px solid transparent;
    border-radius: 999px;
    background-color: transparent;
    color: var(--unclicked_text);
    font-size: 12pt;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.25s, box-shadow 0.25s;
}
.plan-tab.is-active {
    color: rgb(245,245,245);
    border: 0px solid transparent;
}

.plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14pt;
    align-items: stretch;
    min-height: 560px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
    will-change: opacity, transform;
}
.plan {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--selected_k150);
    cursor: pointer;
    text-align: left;
    padding: 20px;
    height: 560px;
    min-height: 560px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14pt;
    line-height: 200%;
    color: var(--unclicked_text);
    background-color: var(--unclicked_bg);
    margin: 0;
}
.plan[hidden] {
    display: none !important;
}
.plan h3 {
    font-size:18pt;
    font-weight: 500;
    margin: 0;
}
.plan-price-block {
    min-height: 145px;
    padding-bottom: 10px;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.12); */
}
.plan-price-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 12px 0 0;
}
.plan .price {
    font-size: 30pt;
    font-weight: 600;
    margin: 0;
    line-height: 1;
}
.plan .price-currency {
    font-size: 18pt;
    font-weight: 800;
    margin-right: 6px;
}
.plan-tax-text {
    font-size: 12pt;
    font-weight: 400;
    color: inherit;
    opacity: 0.55;
}
.plan-billing-text,
.plan-monthly-note {
    margin: 8px 0 0;
    font-size: 12pt;
    line-height: 1.5;
}
.plan-monthly-note {
    color: inherit;
    opacity: 0.55;
}
.plan-feature-list {
    flex: 1;
    padding-top: 10px;
}
.plan-feature-list p {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 8px;
    font-size: 12pt;
    line-height: 2;
}
.plan-feature-list p::before {
    content: "";
    display: inline-block;
    width: 1.0em;
    height: 1.0em;
    flex: 0 0 1.0em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.25;
    transition: opacity 0.2s ease;
}
.plan:hover .plan-feature-list p::before,
.plan.selected .plan-feature-list p::before {
    opacity: 1;
}
#annual-monthly-plan .plan-feature-list p:nth-child(1)::before,
#annual-plan .plan-feature-list p:nth-child(1)::before {
    background-image: url("filled/icon-fullvideos.svg");
}
#annual-monthly-plan .plan-feature-list p:nth-child(2)::before,
#annual-plan .plan-feature-list p:nth-child(2)::before {
    background-image: url("filled/icon-fulllectures.svg");
}
#annual-monthly-plan .plan-feature-list p:nth-child(3)::before,
#annual-plan .plan-feature-list p:nth-child(3)::before {
    background-image: url("filled/icon-standard.svg");
}
#annual-monthly-plan .plan-feature-list p:nth-child(4)::before,
#annual-plan .plan-feature-list p:nth-child(4)::before {
    background-image: url("filled/icon-manager.svg");
}
#annual-monthly-plan .plan-feature-list p:nth-child(5)::before,
#annual-plan .plan-feature-list p:nth-child(5)::before {
    background-image: url("filled/icon-multix.svg");
}
#annual-monthly-plan .plan-feature-list p:nth-child(6)::before,
#annual-plan .plan-feature-list p:nth-child(6)::before {
    background-image: url("filled/icon-save.svg");
}
#annual-monthly-plan .plan-feature-list p:nth-child(7)::before,
#annual-plan .plan-feature-list p:nth-child(7)::before {
    background-image: url("filled/icon-cancel.svg");
}
#monthly-plus-plan .plan-feature-list p:nth-child(1)::before,
#annual-plus-plan .plan-feature-list p:nth-child(1)::before {
    background-image: url("filled/icon-functions.svg");
}
#monthly-plus-plan .plan-feature-list p:nth-child(2)::before,
#annual-plus-plan .plan-feature-list p:nth-child(2)::before {
    background-image: url("filled/icon-plus.svg");
}
#monthly-plus-plan .plan-feature-list p:nth-child(3)::before,
#annual-plus-plan .plan-feature-list p:nth-child(3)::before {
    background-image: url("filled/icon-multi.svg");
}
#monthly-plus-plan .plan-feature-list p:nth-child(4)::before,
#annual-plus-plan .plan-feature-list p:nth-child(4)::before {
    background-image: url("filled/icon-save2.svg");
}
#monthly-plus-plan .plan-feature-list p:nth-child(5)::before,
#annual-plus-plan .plan-feature-list p:nth-child(5)::before {
    background-image: url("filled/icon-dividedoc.svg");
}
#monthly-plus-plan .plan-feature-list p:nth-child(6)::before,
#annual-plus-plan .plan-feature-list p:nth-child(6)::before {
    background-image: url("filled/icon-manager.svg");
}
#monthly-plus-plan .plan-feature-list p:nth-child(7)::before,
#annual-plus-plan .plan-feature-list p:nth-child(7)::before {
    background-image: url("filled/icon-cancel.svg");
}
.plan .plan-feature-list p {
    line-height: 2.5;
}
.plan p{
    margin: 0;
    font-size: 12pt;
    line-height: 1.6;
}
.plan .plan-price-line {
    margin: 10px 0;
}
.plan:hover{
    background-color: var(--hover_bg);
    border: 1px solid var(--hover_border);
    color: var(--hover_text);
}
.plan.selected {
    background-color: white;
    color: var(--signature);
    border: 1px solid var(--signature);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

@media (max-width: 720px) {
    .pay_lv2,
    .pay_lv5 {
        height: auto;
        min-height: 100vh;
        padding: 0;
        align-items: flex-start;
    }
    .container {
        max-width: 480px;
    }
    .plans {
        grid-template-columns: 1fr;
    }
}



/* 버튼 */
.next-btn {
    padding: 20px;
    width: 100%;
    font-size: 14pt; /* 폰트 크기 설정 */
    color: var(--selected_k150);
    background-color: rgb(235, 235, 235);
    border: none;
    /* border-radius: 30px; */
    cursor: not-allowed;
}
.next-btn.enabled:hover{
    background-color: var(--signature_hover);
    color: white;
    cursor: pointer;
}
.next-btn.enabled {
    background-color: var(--signature);
    color: white;
    cursor: pointer;
}










/* 쿠폰 모달 */
.coupon-modal {
    display: none; /* 초기에는 모달 창을 숨깁니다. */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* 회색 투명 배경 */
}

.coupon-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 30px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* 결제 3단계 */
.coupon-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding: 5px;
    border: 1px solid var(--selected_text);
    border-radius: 30px;
    font-size: 14pt;
    
}
.pay3 p{
    color: rgb(100,100,100);
    margin-left: 10px;
    margin-right: 10px;
    text-align: left;
    font-size: 12pt;
}
.pricesinfo{
    font-size: 14pt;
}
.coupon-section input,
.coupon-section button { /* 적용버튼 */
    padding: 10px 20px;
    font-size: 14pt; /* 폰트 크기 설정 */
    line-height: 1.2; /* 행간 설정 */
    background-color: transparent;
    border: 0 solid transparent;
    cursor: pointer;
    color: var(--selected_text);
}
.coupon-section input {
    flex: 1;
    border: 0px solid transparent;
    background-color: transparent;
    box-sizing: border-box;
    outline: none;
    border-radius: 5px;
    margin-left: 0px; 
}
#coupon-section-couponroom:hover, #coupon-section-to-change:hover, #card-info-section:hover{
    border: 1px solid var(--signature);
    box-shadow: 0 0 0 1px var(--signature);
    cursor: pointer;
}
/* 일시불 버튼 비활성화 */
#one-time-payment-section {
    background-color: rgb(235,235,235);
    cursor: not-allowed;
    border: 1px solid var(--selected_k150);
}
#one-time-payment {
    color: var(--selected_k150);
    cursor: not-allowed;
}

/* 일시불 버튼 활성화 */
#one-time-payment-section.enabled {
    background-color: white;
    border: 1px solid var(--selected_text);
    cursor: pointer;
}
#one-time-payment-section.enabled #one-time-payment {
    color: var(--selected_text);
    cursor: pointer;
}

/* hover 시 효과 */
#one-time-payment-section.enabled:hover {
    border: 1px solid var(--signature);
    box-shadow: 0 0 0 1px var(--signature);
}







/* coupon */
.coupon-input-wrapper {
    width: 200px;
    height: 40px;
    border: 2px solid #000000;
    background-color: #ffffff;
    border-radius: 20px;
    font-weight: 500;
    box-sizing: border-box;
    position: relative;
    display: flex; /* 추가 */
    justify-content: space-between; /* 추가 */
    align-items: center; /* 추가 */
    margin-bottom: 10px;
}
.coupon-input-wrapper:hover {
    background-color: rgb(0, 150, 255);
}

/* 쿠폰 적용 */
#check-coupon {
    border: 0px solid #000000;
    background-color: transparent;
    border-radius: 20px;
    font-size: 16pt; /* 폰트 크기 설정 */
    line-height: 1.2; /* 행간 설정 */
    font-weight: 600;
    margin-right: 10px;
}
#check-coupon:hover {
    border: 0px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    font-weight: 600;
    border-radius: 20px;
}

/* 결제버튼 */
.paybutton {
    width: 200px;
    height: 40px;
    border: 2px solid #000000;
    background-color: #ffffff;
    border-radius: 20px;
    font-size: 12pt;
    font-weight: 500;
}

.paybutton:hover {
    background-color: rgb(0, 150, 255);
}

.pay-upgrade-page .plan.is-current {
    pointer-events: none;
    cursor: default;
    opacity: 0.45;
    background-color: rgb(235,235,235);
    color: rgb(150,150,150);
    border-color: rgb(180,180,180);
    box-shadow: none;
}

.pay-upgrade-page .plan.is-current:hover {
    background-color: rgb(235,235,235);
    color: rgb(150,150,150);
    border-color: rgb(180,180,180);
    box-shadow: none;
}

.pay-upgrade-page .plan-current {
    position: relative;
}

.pay-upgrade-page .current-plan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgb(100,100,100);
    font-size: 10pt;
    font-weight: 600;
    line-height: 1;
}

.pay-upgrade-page .current-plan-badge[hidden] {
    display: none !important;
}
