/* Custom Overrides for Mobile Wedding Invitation */
/* Location 섹션 배경을 흰색으로 변경 + 상단 패딩 줄이기 */

.location {
    background-color: var(--white) !important;
    padding: 2em 2em 4em 2em !important;
}

/* 공유 섹션 배경색을 확실히 흰색으로 설정 */
.share-section {
    background-color: #FFFFFF !important;
    padding: 2em 0;
}

.image-overlay-share {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2em;
}

/* 기존 location-top-wave 관련 스타일 무효화 */
.location-top-wave {
    display: none !important;
}

/* 지도 버튼 배경 색상 제거 (아이콘과 텍스트만 표시) */
.map-buttons-container {
    background: transparent !important;
}

.map-button {
    background: transparent !important;
}

.map-button:hover {
    background: transparent !important;
}

/* 주소 텍스트 스타일 */
.address-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    color: var(--primary-color);
    margin-top: 0.5em;
    text-align: center;
}

/* === 계좌 정보 아코디언 스타일 (FAQ 스타일과 동일하게 맞춤) === */

/* 1. 아이템 컨테이너 (FAQ의 .accordion-item 대응) */
.account-accordion-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(185, 148, 147, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 1em !important; /* 아이템 간 간격 */
}

.account-accordion-item.active {
    background: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 20px rgba(185, 148, 147, 0.2) !important;
}

.account-accordion-item:hover {
    box-shadow: 0 4px 16px rgba(185, 148, 147, 0.15) !important;
    border-color: rgba(185, 148, 147, 0.4) !important;
}

/* 2. 버튼 스타일 (FAQ의 .accordion-header 대응) */
.account-accordion-button {
    width: 100% !important;
    padding: 1.2em 1.5em !important;
    background: none !important; /* 배경 투명 */
    border: none !important; /* 테두리 제거 */
    text-align: left !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    color: var(--font-color-default) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    border-radius: 0 !important; /* 둥근 모서리는 부모 item이 담당 */
    margin: 0 !important; /* 마진 초기화 */
    box-shadow: none !important; /* 버튼 자체 그림자 제거 */
}

.account-accordion-button:hover {
    background: rgba(185, 148, 147, 0.05) !important;
}

/* 왼쪽 그라데이션 바 효과 */
.account-accordion-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.3s ease;
}

.account-accordion-button:hover::before {
    width: 4px;
}

/* 펼쳐졌을 때 버튼 스타일 */
.account-accordion-item.active .account-accordion-button {
    border-bottom: 1px solid rgba(185, 148, 147, 0.1) !important; /* 구분선 추가 */
}

/* 3. 아이콘 스타일 */
.account-accordion-button .accordion-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important; /* 항상 보임 */
    display: block !important;
    margin-left: 0 !important;
}

.account-accordion-item.active .account-accordion-button .accordion-icon {
    transform: rotate(180deg) !important;
}

/* 4. 컨텐츠 영역 (FAQ의 .accordion-content 대응) */
.account-accordion-content,
.account-details-container {
    background: rgba(185, 148, 147, 0.02) !important; /* 연한 배경색 */
    border: none !important; /* 테두리는 item이 담당 */
    border-radius: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    /* max-height는 JS가 제어하므로 transition만 */
    transition: max-height 0.3s ease;
}

/* 내부 카드 스타일 오버라이드 (투명하게) */
.account-accordion-content .account-card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(185, 148, 147, 0.1) !important;
    box-shadow: none !important;
    padding: 1.5em !important;
}

.account-accordion-content .account-card:last-child {
    border-bottom: none !important;
}

/* 텍스트 정렬 */
.button-text {
    text-align: left !important;
    flex: 1;
}

/* 전체 초대장 글꼴: 참석 의사 전달 제목과 동일한 명조 계열 */
body,
body *:not(svg):not(path) {
    font-family: 'Nanum Myeongjo', serif !important;
}

/* RSVP와 같은 역할의 영문 섹션 라벨 */
.snap-subtitle-en {
    display: block;
    width: 100%;
    margin: 0 auto 0.75rem;
    color: #b38b8e !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.42em;
    text-align: center !important;
    text-transform: uppercase;
}

/* 주요 한글 섹션 제목도 동일한 디자인 언어로 통일 */
.title,
.account-title,
.share-title,
.rsvp-inline-title,
.invitation-header,
.location-title {
    font-family: 'Nanum Myeongjo', serif !important;
    font-weight: 400 !important;
}

/* 주요 본문 섹션의 배경을 흰색과 연한 아이보리로 교차 배치 */
section.letter,
.calendar,
.location,
.guestbook-section,
.share-section {
    background-color: #ffffff !important;
}

.couple-section,
.gallery,
.account-trapezoid,
.rsvp-inline-section,
.footer-section {
    background-color: #faf5ef !important;
}

