/* BASIC css start */
#footer {
    padding-top: 30px;
    background: #f4f4f4; /* 푸터 전체 배경색 통일 */
    text-align: center; /* 모든 섹션을 기본적으로 가운데 정렬 */
}

/* --- 각 footer-section 공통 스타일 --- */
.footer-section {
    padding: 25px 20px; /* 각 섹션별 상하좌우 패딩 */
    border-top: 1px solid #dfdfdf; /* 각 섹션 상단에 구분선 */
}
.footer-section:first-of-type { /* 첫 번째 섹션의 상단 구분선 제거 (footerIc는 별도로 관리) */
    border-top: none;
}
.footer-section h3 {
    color: #000000;
    font-size: 15px; /* 제목 폰트 크기 키워 강조 */
    margin-bottom: 15px; /* 제목 아래 여백 */
    display: flex; /* 아이콘과 텍스트를 flex로 정렬 */
    align-items: center;
    justify-content: center; /* 가운데 정렬 */
    font-weight: bold;
}
.footer-section h3 img {
    width: 18px; /* 아이콘 크기 조정 */
    vertical-align: middle;
    margin-right: 8px; /* 아이콘과 텍스트 사이 간격 */
    margin-top: -2px; /* 세로 정렬 미세 조정 */
}
.footer-section p {
    color: #555;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 5px; /* P태그 하단 여백 */
}
.footer-section p:last-of-type {
    margin-bottom: 0;
}
.footer-section a {
    color: #dfb339; /* 기본 링크 색상 (포인트 컬러) */
    text-decoration: none;
}
.footer-section a:hover {
    text-decoration: underline;
}

/* --- .footerIc (하단 아이콘 메뉴) - 기존 CSS 최대한 유지 + 가운데 정렬 요소 추가 --- */
.footerIc {
    font-size: 0;
    background: #f4f4f4;
    border-top: 1px solid #dfdfdf;
    padding: 15px 10px 0;
    margin-bottom: 20px;
    text-align: center; /* 컨테이너 자체를 가운데 정렬 */
}
.footerIc a {
    display: inline-block;
    vertical-align: bottom;
    width: 23%;
    max-width: 100px; /* 아이콘 버튼 최대 너비 지정 */
    text-align: center;
    background: #fff;
    height: 84px;
    margin: 0 1% 15px; /* 좌우 마진을 %로 조정하여 유동적으로 배치 */
    position: relative;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* 4n+1 대신 모든 아이콘에 좌우 마진을 주어 유동적으로 정렬 */
.footerIc a:nth-child(4n+1) { margin-left: 1%; } /* 모든 4n+1 번째 요소에 왼쪽 마진 적용 */
.footerIc a:nth-child(n+5) { /* 5번째 아이콘부터는 하단 마진 유지 */ }

.footerIc a p {
    color: #535353;
    font-size: 11px;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    line-height: 1.2;
}
.footerIc a img {
    margin-top: 13px;
    max-width: 30px;
    height: auto;
}


/* --- .customer-service (고객센터) CSS 수정 --- */
.customer-service h1.main-call-number {
    padding: 0; /* 기존 패딩 제거 */
    margin-bottom: 10px; /* 아래 여백 추가 */
}
.customer-service h1.main-call-number a {
    color: #f00; /* 전화번호 빨간색 */
    text-decoration: none; /* 밑줄 제거 */
    display: inline-flex; /* 아이콘과 텍스트를 flex로 정렬 */
    align-items: center;
    justify-content: center; /* 가운데 정렬 */
    gap: 8px; /* 아이콘과 숫자 사이 간격 */
    font-size: 28px; /* 기존 h1의 폰트 사이즈 유지 */
    font-family:'Lato',sans-serif;
    font-weight: 900;
    line-height: 1; /* 높이 조절 */
}
.customer-service h1.main-call-number a:hover {
    text-decoration: underline; /* 호버 시 밑줄 다시 표시 */
}
.customer-service h1.main-call-number .call-icon {
    width: 25px; /* 전화기 아이콘 크기 조정 */
    height: 25px;
    vertical-align: middle;
    margin-top: -3px; /* 미세한 세로 정렬 조정 */
}


/* --- .bank-info (입금계좌 정보) CSS 추가/수정 --- */
.bank-info .banknum-container {
    margin-bottom: 15px; /* 계좌번호 블록 하단 여백 */
}
.bank-info .banknum-item {
    display: flex; /* 계좌번호와 복사 버튼을 flex로 정렬 */
    align-items: center;
    justify-content: center; /* 가운데 정렬 */
    font-size: 13px; /* 계좌번호 폰트 크기 조정 */
    font-weight: 500;
    line-height: 1.8;
    color: #434343;
    cursor: pointer; /* 복사 가능함을 알리는 커서 */
    transition: background-color 0.2s ease;
    border-radius: 5px;
    padding: 2px 0;
}
.bank-info .banknum-item:hover {
    background-color: #f0f0f0; /* 호버 시 배경색 변경으로 상호작용성 강조 */
}
.bank-info .banknum-item .copy-btn {
    background-color: #dfb339; /* 복사 버튼 배경색 (대한골드 포인트 컬러) */
    color: #fff;
    font-size: 10px; /* 복사 버튼 폰트 크기 */
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px; /* 계좌번호와 버튼 사이 간격 */
    cursor: pointer;
    white-space: nowrap; /* "복사" 텍스트 줄바꿈 방지 */
    transition: background-color 0.2s ease;
}
.bank-info .banknum-item .copy-btn:hover {
    background-color: #c9a32c; /* 호버 시 색상 변경 */
}

/* --- 복사 완료 토스트 메시지 스타일 --- */
.copy-toast {
    position: fixed;
    bottom: 80px; /* 하단 푸터 및 퀵 버튼 위에 표시 */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000; /* 다른 요소 위에 확실히 오도록 */
    opacity: 0; /* 초기에는 숨김 */
    visibility: hidden; /* 접근성 고려 */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
}

/* --- .bank-info (모바일 안내 박스) CSS --- */
.bank-info .m-order-notice {
    background: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 8px; /* 모바일 둥근 모서리 */
    padding: 24px 15px;
    margin: 0 0 20px 0;
    text-align: center; /* 모바일 가독성을 위한 중앙 정렬 */
    word-break: keep-all;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); /* 입체감을 살짝 주어 시선 유도 */
}

/* 타이틀 라벨 스타일 */
.bank-info .m-order-notice .m-notice-title {
    display: inline-block;
    background-color: #333;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* 안내 문구 본문 */
.bank-info .m-order-notice .m-notice-desc {
    color: #444;
    font-size: 15px; /* 모바일에서 시원하게 보이도록 크기 키움 */
    line-height: 1.6;
    margin: 0;
    letter-spacing: -0.5px;
}

/* '위 고객센터로 전화' 빨간색으로 강조 */
.bank-info .m-order-notice .m-notice-desc .m-highlight {
    color: #e53935; /* 글자색 빨강으로 변경 */
    font-size: 16px;
    font-weight: 800;
    border-bottom: 2px solid #e53935; /* 밑줄 색상도 빨강으로 통일 */
}
.bank-info .desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.copy-toast.show {
    opacity: 1;
    visibility: visible;
}

/* --- .company-details (회사 정보 및 에스크로) --- */
.company-details {
    padding-bottom: 30px; /* 하단 패딩 늘림 */
}
.company-details .footerLogo {
    display: flex;
    justify-content: center; /* 로고 가운데 정렬 */
    align-items: center;
    gap: 20px; /* 로고 간격 */
    margin-bottom: 25px;
}
.company-details .footerLogo img {
    width: 110px; /* 로고 크기 조정 */
}
.company-details .footerLogo img + img {
    width: 90px; /* 에스크로 로고 크기 조정 */
}
.company-address-biz { /* 회사 사업자 정보 그룹 */
    margin-bottom: 20px;
    color: #848484;
    font-size: 12px;
    line-height: 1.7;
}
.company-address-biz p {
    margin-bottom: 5px;
}
.company-address-biz strong {
    font-weight: bold;
    color: #555;
}
.company-address-biz .email-info a { /* 이메일 링크 색상 */
    color: #dfb339;
    font-weight: 500;
}
.escrow_txt {
    position: relative;
    margin-top: 20px; /* 위 여백 추가 */
    font-weight: 300;
    font-size: 11px;
    color: #666;
    line-height: 1.6;
}
.escrow_txt a {
    background: #ddd;
    color: #3b3b3b;
    padding: 5px 10px;
    display: inline-block;
    border-radius: 4px;
    margin-top: 8px;
    font-weight: 400;
}
.company-details .copyright {
    margin-top: 25px; /* Copyright 위에 여백 추가 */
    font-size: 11px;
    color: #999;
}


/* --- .bottom-links (하단 메뉴 링크 - 네모칸 스타일) --- */
.bottom-links {
    display: flex;
    flex-wrap: wrap; /* 자동 줄 바꿈 */
    justify-content: center; /* 가운데 정렬 */
    gap: 8px; /* 네모칸 버튼 간 간격을 살짝 줄여 더 밀집된 느낌 */
    padding: 25px 15px; /* 좌우 패딩 유지 */
}
.bottom-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* min-width: 100px; */ /* 최소 너비는 제거하여 텍스트 길이에 따라 유동적으로 */
    width: calc(33.33% - 16px); /* 한 줄에 3개씩 (gap 8px * 2 = 16px 고려) */
    max-width: 120px; /* 개별 버튼의 최대 너비 설정 */
    height: 40px;
    padding: 0 10px; /* 좌우 패딩을 살짝 줄여서 공간 확보 */
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #3e3e3e;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    text-align: center; /* 텍스트 가운데 정렬 (inline-flex + justify-content:center로 이미 되지만 명시적으로) */
    box-sizing: border-box; /* padding, border가 width에 포함되도록 */
}

/* 좁은 모바일 화면 (예: 360px 이하)에서 한 줄에 2개씩 표시 */
@media (max-width: 480px) { /* 이 해상도는 실제 기기 기준으로 조정 필요 */
    .bottom-links a {
        width: calc(50% - 12px); /* 한 줄에 2개씩 (gap 8px * 1.5 = 12px 고려) */
        max-width: 160px; /* 2개일 때 최대 너비 */
        font-size: 12px; /* 폰트 크기 살짝 줄임 */
        height: 38px; /* 높이 살짝 줄임 */
    }
}

.bottom-links a:hover {
    background-color: #f9f9f9;
    border-color: #dfb339;
    color: #dfb339;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* --- .final-buttons-group (SNS, 고객센터 연결, 버튼들) --- */
.final-buttons-group {
    padding: 25px 20px 45px; /* 상하좌우 패딩 조정 */
    border-top: 1px solid #dfdfdf;
}
.final-buttons-group .footerSns { /* SNS 아이콘 */
    padding: 0 0 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.final-buttons-group .footerSns a img {
    width: 38px;
    height: 38px;
}
.final-buttons-group .footerCall { /* 고객센터 연결 버튼 */
    padding: 0 0 20px;
}
.final-buttons-group .footerCall a {
    background: #fff;
    width: 260px;
    text-align: center;
    display: inline-flex; /* flex로 변경하여 아이콘과 텍스트 중앙 정렬 */
    align-items: center;
    justify-content: center;
    height: 45px; /* 높이 약간 늘림 */
    border: 1px solid #3e3e3e;
    color: #3e3e3e;
    border-radius: 22px; /* 모서리 둥글게 */
    font-weight: bold;
    font-size: 16px; /* 폰트 크기 조정 */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.final-buttons-group .footerCall a:hover {
    background-color: #3e3e3e;
    color: #fff;
}
.final-buttons-group .footerCall a img {
    width: 18px;
    vertical-align: middle;
    margin-right: 8px;
    margin-top: -2px;
}
.final-buttons-group .footerBtn { /* 사업자정보확인, PC버전 버튼 */
    padding-bottom: 0;
    font-size: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.final-buttons-group .footerBtn a {
    color: #3e3e3e;
    font-weight: 400;
    font-size: 11px;
    background: #e5e5e5;
    width: 120px;
    display: inline-flex; /* flex로 변경하여 텍스트 중앙 정렬 */
    align-items: center;
    justify-content: center;
    height: 38px; /* 높이 약간 늘림 */
    border-radius: 19px; /* 모서리 둥글게 */
    margin: 0;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.final-buttons-group .footerBtn a:hover {
    background-color: #d0d0d0;
    color: #000;
}
.final-buttons-group .footerBtn a strong {
    font-weight: bold;
}


/* --- 측면버튼 355--- */


#footer {
    padding-top: 30px;
    background: #f4f4f4;
    text-align: center;
}

.footer-section {
    padding: 25px 20px;
    border-top: 1px solid #dfdfdf;
}
.footer-section:first-of-type {
    border-top: none;
}
.footer-section h3 {
    color: #000;
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.footer-section h3 img {
    width: 18px;
    margin-right: 8px;
    margin-top: -2px;
}
.footer-section p {
    color: #555;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 5px;
}
.footer-section a {
    color: #dfb339;
    text-decoration: none;
}
.footer-section a:hover {
    text-decoration: underline;
}

.footerIc {
    font-size: 0;
    background: #f4f4f4;
    border-top: 1px solid #dfdfdf;
    padding: 15px 10px 0;
    margin-bottom: 20px;
    text-align: center;
}
.footerIc a {
    display: inline-block;
    width: 23%;
    max-width: 100px;
    background: #fff;
    height: 84px;
    margin: 0 1% 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}
.footerIc a p {
    font-size: 11px;
    color: #535353;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
}
.footerIc a img {
    margin-top: 13px;
    max-width: 30px;
}

.scroll_bt_tll {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed !important;
    right: 15px;
    bottom: 100px;
    z-index: 9999;
    width: 70px;
}

.scroll_bt_tll.is-open {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    padding: 15px 0 10px;
    border-radius: 35px;
}

.toggle-icon-box {
    width: 40px;
    height: 40px;
    background: #FFD400;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.5px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.toggle-icon-box .line {
    width: 18px;
    height: 2.5px;
    background: #000;
    border-radius: 2px;
    transition: 0.3s;
}

.scroll_bt_tll.is-open .line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.scroll_bt_tll.is-open .line:nth-child(2) {
    opacity: 0;
}
.scroll_bt_tll.is-open .line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.quick-btn-wrap {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}
.scroll_bt_tll.is-open .quick-btn-wrap {
    opacity: 1;
    max-height: 400px;
}

.quick-btn-wrap img {
    width: 55px;
    height: 55px;
    margin-top: 12px;
}

.footer-section.bottom-links a,
.footer-section.bottom-links a:visited,
.footer-section.bottom-links a:active,
.footer-section.bottom-links a:focus,
.footer-section.bottom-links a:hover {
    color: #000;
}

.escrow_txt a,
.escrow_txt a:visited,
.escrow_txt a:hover,
.escrow_txt a:active,
.escrow_txt a:focus {
    color: #000 !important;
    text-decoration: none;
}

/* --- 측면버튼 518--- */

/* 대한골드 챗봇 플로팅 버튼 */
.daehan-chat-fab {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    margin-bottom: 10px; /* 햄버거와 간격 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.35);
    cursor: pointer;
}

.daehan-chat-fab img {
    width: 26px;
    height: 26px;
}

/* 퀵메뉴 열렸을 때도 자연스럽게 유지 */
.scroll_bt_tll.is-open .daehan-chat-fab {
    margin-bottom: 14px;
}

/* 챗봇 버튼 위치 고정 */
.chatbot-btn-wrap {
    position: absolute;
    bottom: 80px;          /* 햄버거보다 위 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;        /* 햄버거보다 위 */
}

/* 챗봇 버튼 크기 & 터치 영역 */
.chatbot-btn-wrap img {
    width: 56px;
    height: 56px;
    display: block;
}
/* BASIC css end */

