/* Payment Page Styles */
.container > #title {
    margin-bottom: 0.5rem;
}


/* 구독 상태 섹션 */
.container > #subscribe-status {
    margin-bottom: 3rem;
}

.container > #subscribe-status > #status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #585858;
    display: none;
}
.container > #subscribe-status > #status > i {
    font-size: 1rem;
    color: #805ad5;
    flex-shrink: 0;
    margin-left: 0.3rem;
}
.container > #subscribe-status > #status.error > i {
    color: #e53e3e;
}



/* 결제 옵션 섹션 */
.container > #payment-option {
    margin-bottom: 3rem;
}

.container > #payment-option > #title,
.container > #subscribe-status > #title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 결제 옵션 리스트 */
.container > #payment-option > #list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
    max-width: 33rem;
    margin-bottom: 0.7rem;
}

/* 결제 옵션 아이템 */
.container > #payment-option > #list > .item {
    position: relative;
    padding: 1.5rem;
    background: #f7fafc;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.container > #payment-option > #list > .item:hover {
    border-color: #805ad5;
    background: #faf5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 90, 213, 0.15);
}
.container > #payment-option > #list > .item.selected {
    border-color: #805ad5;
    background: #faf5ff;
    box-shadow: 0 0 0 3px rgba(128, 90, 213, 0.1);
}

.container > #payment-option > #list > .item > .title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.container > #payment-option > #list > .item > .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #805ad5;
    margin-bottom: 0.5rem;
}

.container > #payment-option > #list > .item > .discount {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 1rem;
    margin-top: 0.5rem;
}

/* 약관 동의 문구 */
.container > #payment-option > #terms {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
.container > #payment-option > #terms a {
    color: #805ad5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.container > #payment-option > #terms a:hover {
    color: #6b46c1;
    text-decoration: underline;
}

/* 구매 버튼 */
.container > #payment-option > #purchase-button {
    padding: .7rem 1.5rem .8rem;
    text-align: center;
    background-color: #fff;
    color: #805ad5;
    border-radius: .3rem;
    border: 1px solid;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.77rem;
    transition: all 0.2s ease;
    user-select: none;
    max-width: 30rem;
}
.container > #payment-option > #purchase-button:hover {
    background-color: #805ad5;
    color: #fff !important;
}


/* 반응형 디자인 */
@media screen and (max-width: 768px) {
    .container > #payment-option > #list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .container > #payment-option > #list > .item {
        padding: 1.25rem;
    }
}

@media screen and (max-width: 480px) {
    .container > #payment-option > #title {
        font-size: 1.1rem;
    }

    .container > #payment-option > #list > .item > .title {
        font-size: 1rem;
    }

    .container > #payment-option > #list > .item > .price {
        font-size: 1.3rem;
    }
}


/* 결제 내역 섹션 */
.container > #payment-history {
    margin-bottom: 3rem;
}

.container > #payment-history > #title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.container > #payment-history > #list {
    max-width: 40rem;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 결제 내역 헤더 */
.container > #payment-history > #list > .header {
    display: grid;
    grid-template-columns: 0.85fr 1.25fr 0.6fr 1.2fr;
    align-items: center;
    background: #f7fafc;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.container > #payment-history > #list > .header > span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

/* 결제 내역 바디 */
.container > #payment-history > #list > .body {
    min-height: 3rem;
}

/* 결제 내역 없음 - :empty::before 사용 */
.container > #payment-history > #list > .body:empty::before {
    content: "결제 내역이 없습니다.";
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* 결제 내역 행 */
.container > #payment-history > #list > .body > .row {
    display: grid;
    grid-template-columns: 0.85fr 1.25fr 0.6fr 1.2fr;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}
.container > #payment-history > #list > .body > .row:last-child {
    border-bottom: none;
}
.container > #payment-history > #list > .body > .row:hover {
    background: #faf5ff;
}
.container > #payment-history > #list > .body > .row > span {
    font-size: 0.9rem;
    color: #2d3748;
}


/* 결제 내역 반응형 */
@media screen and (max-width: 768px) {
    .container > #payment-history > #list > .header {
        display: none;
    }
    .container > #payment-history > #list > .body > .row {
        display: block;
        padding: 0.8rem 1rem;
    }
    .container > #payment-history > #list > .body > .row > span {
        display: block;
        padding: 0.2rem 0;
    }
    .container > #payment-history > #list > .body > .row > span::before {
        font-weight: 600;
        color: #4a5568;
        margin-right: 0.5rem;
    }
    .container > #payment-history > #list > .body > .row > span:nth-child(1)::before {
        content: "결제일시:";
    }
    .container > #payment-history > #list > .body > .row > span:nth-child(2)::before {
        content: "결제 항목:";
    }
    .container > #payment-history > #list > .body > .row > span:nth-child(3)::before {
        content: "금액:";
    }
    .container > #payment-history > #list > .body > .row > span:nth-child(4)::before {
        content: "결제 ID:";
    }
}
