/* 기본 버튼 스타일 - 공통 속성 정의 */
.kakao-login-btn {
    display: inline-block;
    padding: 10px 20px; /* 기본 padding 유지, 다음 수정 시 7px 제거 */
    text-decoration: none;
    color: #371c1d;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: 300px;
    width: auto;
    text-align: center;
    box-sizing: border-box;
    margin: 10px 0; /* 상하 외부 여백 유지 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 기본 버튼 호버 효과 */
.kakao-login-btn:hover {
    background-color: #E0CA00;
    color: #111;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 이미지 버튼 스타일 */
.image-btn {
    background: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kakao-login-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 5px;
}

.image-btn span {
    display: block;
    width: 100%;
}

/* 텍스트 버튼 스타일 */
.text-btn {
    background-color: #FEE500;
    border-radius: 5px;
    display: flex;
    flex-direction: row; /* 수평 배치 유지 */
    font-size: 14px;
    font-weight: 500;
    align-items: center; /* 수직 중앙 정렬 */
    justify-content: center; /* 수평 중앙 정렬 */
    max-width: 248px;
    width: 100%;
    height: auto;
    line-height: 1; /* 텍스트 세로 정렬 보조 */
    box-sizing: border-box;
    padding: 10px 20px; /* 요청 반영: 아래 padding 7px */
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-btn:hover {
    background-color: #E0CA00;
    color: #111;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 아이콘 스타일 */
.kakao-icon {
    max-width: 15px;
    width: 15px;
    height: 15px;
    margin-right: 8px; /* 텍스트와의 간격 */
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0;
}

/* WP 로그인 페이지용 아이콘 크기 조정 */
body.login .kakao-icon {
    max-width: 15px !important;
    width: 15px !important;
    height: 15px !important;
    margin-right: 8px !important;
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0;
}

/* WPFunnels 체크아웃 페이지용 추가 스타일 (동적 클래스 사용) */
body.wpfunnels-checkout .kakao-login-btn {
    display: flex !important;
    flex-direction: row !important; /* 수평 배치 유지 */
    align-items: center !important; /* 수직 중앙 정렬 */
    padding: 10px 20px !important; /* 요청 반영 */
    margin: 10px 0 !important;
}

body.wpfunnels-checkout .kakao-login-btn.text-btn {
    justify-content: center !important; /* 수평 중앙 정렬 */
    height: auto !important;
    align-items: center !important; /* 텍스트 수직 중앙 정렬 */
}

body.wpfunnels-checkout .kakao-login-btn .kakao-icon {
    margin-right: 8px !important; /* 텍스트와 간격 */
}

body.wpfunnels-checkout .kakao-login-btn span {
    margin-top: 0 !important;
    padding: 0 !important;
    text-align: center !important; /* 수평 중앙 정렬 */
    vertical-align: middle !important; /* 수직 중앙 정렬 보조 */
}

/* WP 로그인 페이지용 스타일 */
body.login .kakao-login-btn {
    display: flex !important;
    flex-direction: row !important; /* 수평 배치 유지 */
    align-items: center !important; /* 수직 중앙 정렬 */
    padding: 10px 20px !important; /* 요청 반영 */
    margin: 10px 0 !important;
}

body.login .kakao-login-btn.text-btn {
    justify-content: center !important; /* 수평 중앙 정렬 */
    height: auto !important;
    align-items: center !important; /* 텍스트 수직 중앙 정렬 */
}

body.login .kakao-login-btn .kakao-icon {
    margin-right: 8px !important; /* 텍스트와 간격 */
}

body.login .kakao-login-btn span {
    margin-top: 0 !important;
    padding: 0 !important;
    text-align: center !important; /* 수평 중앙 정렬 */
    vertical-align: middle !important; /* 수직 중앙 정렬 보조 */
}

/* Woocommerce 체크아웃 페이지용 스타일 */
body.woocommerce-checkout .kakao-login-btn {
    display: block;
    margin: 10px auto !important; /* 가운데 정렬 강화 */
    width: auto;
    max-width: 248px;
}

/* 가운데 정렬 스타일 강화 */
.center-align {
    margin: 0 auto !important;
    max-width: 248px !important;
    display: block !important;
    text-align: center !important;
}

.center-align .kakao-login-btn {
    margin: 0 auto !important;
    display: block !important;
    width: fit-content !important; /* 버튼 너비에 맞게 조정 */
}

/* 로그인 메시지 스타일 */
.kakao-login-message {
    display: block;
    padding: 10px 20px;
    text-align: center;
    max-width: 228px;
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    background-color: #FEE500;
    color: #371c1d;
    font-size: 14px;
    font-weight: 500;
}

/* 이미지 버튼 기반 메시지 스타일 */
.image-btn.kakao-login-message {
    background: none;
    padding: 0;
}