/* 카카오톡 상담 모달 스타일 */
.kakao-mobile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.kakao-mobile-modal.show {
    opacity: 1;
    visibility: visible;
}

.kakao-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.kakao-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kakao-mobile-modal.show .kakao-modal-content {
    transform: scale(1) translateY(0);
}

.kakao-modal-header {
    background: linear-gradient(135deg, #FFEB00 0%, #F5DA00 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.kakao-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #8B4513;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kakao-icon {
    font-size: 1.4rem;
}

.kakao-modal-body {
    padding: 24px 20px;
    text-align: center;
}

.kakao-modal-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    white-space: pre-line;
}

.kakao-modal-footer {
    padding: 16px 20px 20px;
}

.kakao-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.kakao-btn-modal {
    flex: 1;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.kakao-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.kakao-btn-cancel:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.kakao-btn-confirm {
    background: linear-gradient(135deg, #FFEB00 0%, #F5DA00 100%);
    color: #8B4513;
    border: 2px solid #F5DA00;
    box-shadow: 0 4px 12px rgba(255, 235, 0, 0.3);
}

.kakao-btn-confirm:hover {
    background: linear-gradient(135deg, #F5DA00 0%, #E6C300 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 235, 0, 0.4);
}

.kakao-btn-confirm:active,
.kakao-btn-cancel:active {
    transform: translateY(0);
}

/* 터치 디바이스 최적화 */
@media (hover: none) and (pointer: coarse) {
    .kakao-btn-modal {
        min-height: 52px;
    }
    
    .kakao-btn-modal:active {
        background-color: rgba(0, 0, 0, 0.1);
    }
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .kakao-modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .kakao-modal-header {
        padding: 16px;
    }
    
    .kakao-modal-title {
        font-size: 1.1rem;
    }
    
    .kakao-modal-body {
        padding: 20px 16px;
    }
    
    .kakao-modal-message {
        font-size: 0.95rem;
    }
    
    .kakao-modal-footer {
        padding: 12px 16px 16px;
    }
    
    .kakao-modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .kakao-btn-modal {
        min-height: 48px;
        font-size: 0.95rem;
    }
}

/* 데스크톱에서의 추가 스타일 */
@media (min-width: 769px) {
    .kakao-modal-content {
        max-width: 420px;
    }
    
    .kakao-modal-buttons {
        gap: 16px;
    }
}

/* 접근성 개선 */
.kakao-btn-modal:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.kakao-btn-confirm:focus {
    box-shadow: 0 4px 12px rgba(255, 235, 0, 0.3), 0 0 0 3px rgba(255, 235, 0, 0.4);
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .kakao-modal-content {
        background: #2d3748;
        color: white;
    }
    
    .kakao-modal-message {
        color: #e2e8f0;
    }
    
    .kakao-btn-cancel {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .kakao-btn-cancel:hover {
        background: #718096;
    }
}