/**
 * 결제 모달 전용 스타일
 * 공통 스타일은 modal-common.css 참조
 */

/* 결제 모달 기본 클래스 - 공통 스타일 상속 */
.payment-modal {
    /* modal-base 스타일 상속 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-modal-overlay {
    /* modal-overlay 스타일 상속 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.payment-modal-container {
    /* modal-container 스타일 상속 */
    position: relative;
    width: 70rem;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 0.8rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 5vh auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.payment-modal-header {
    /* modal-header 스타일 상속 */
    background: linear-gradient(135deg, var(--Mint_300, #43b3d9) 0%, var(--Mint_400, #0b8cb7) 100%);
    color: #fff;
    padding: 2.4rem;
    text-align: center;
    position: relative;
}

.payment-modal-header h3 {
    margin: 0 0 0.4rem 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: white;
}

.payment-modal-header p {
    margin: 0;
    font-size: 1.4rem;
    opacity: 0.9;
    color: white;
}

.payment-modal-close {
    /* modal-close 스타일 상속 */
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    background: none;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: white;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.payment-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.payment-modal-body {
    /* modal-body 스타일 상속 */
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    max-height: calc(90vh - 20rem);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.payment-modal-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.payment-modal-footer {
    /* modal-footer 스타일 상속 */
    height: 1.2rem;
}

/* 후원 정보 요약 */
.donation-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid var(--Blue_400, #046EB7);
    border-radius: 1.2rem;
    padding: 2rem;
    margin-bottom: 3.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donation-type-display {
    font-weight: 600;
    color: var(--Blue_400, #046EB7);
    font-size: 1.6rem;
}

.donation-amount-display {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--Blue_400, #046EB7);
}

/* 결제 단계 */
.payment-step {
    display: none;
}

.payment-step.active {
    display: block;
}

/* 결제 로딩 */
.payment-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.6rem;
    color: var(--Blue_400, #046EB7);
    font-weight: 600;
}

/* 결제 버튼 영역 */
.payment-buttons {
    display: flex !important;
    flex-direction: row !important;
    padding-top: 1.6rem;
    gap: 1.2rem !important;
    width: 100% !important;
    justify-content: stretch !important;
}

.payment-buttons .btn {
    border-radius: 0.8rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.payment-btn-show {
    display: flex !important;
    flex: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: 4.8rem !important;
    padding: 1.3rem 1.7rem !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    line-height: 2rem !important;
    border-radius: 0.8rem !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.payment-btn-hide {
    display: none !important;
}

/* 날짜 입력 래퍼 */
.date-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
    border: 1px solid var(--Line_Default, #DEDEDE);
    border-radius: 0.8rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    height: 5.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.6rem;
    overflow: hidden;
    user-select: none;
}

.date-placeholder {
    color: #666;
    font-size: 1.6rem;
    line-height: 2.2rem;
    pointer-events: none;
    user-select: none;
    flex: 1;
    z-index: 0;
    position: relative;
}

.date-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    background: transparent;
    z-index: 1;
    font-size: 16px;
    padding: 0;
    margin: 0;
    outline: none;
}

.date-input-wrapper:hover {
    border-color: var(--Blue_400, #046EB7);
}

.date-input-wrapper:focus-within {
    border-color: var(--Blue_400, #046EB7);
    box-shadow: 0 0 0 2px rgba(4, 110, 183, 0.1);
}

.date-separator {
    font-size: 1.6rem;
    font-weight: 600;
    color: #666;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5.4rem;
    flex-shrink: 0;
}

/* 날짜 입력 영역을 1줄에 표시 */
.form-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.commitment-day-select {
    position: relative;
    max-width: 20rem;
}

/* 주소 입력 필드 간격 */
#donor-address, #donor-address-detail {
    margin-top: 1rem;
}

