/* KakaoTalk Trigger Button Styles */
.kakao-trigger-wrapper {
    position: fixed;
    right: 30px;
    bottom: 30px; /* Base bottom matched with chatbot */
    z-index: 9991;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px; /* Spacing between buttons */
    pointer-events: none;
}

.kakao-trigger-wrapper * {
    pointer-events: auto;
}

.kakao-trigger {
    width: 65px;  /* Matched with #cb-trigger */
    height: 65px; /* Matched with #cb-trigger */
    background: #FEE500;
    color: #3C1E1E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(254, 229, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
}

.kakao-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(254, 229, 0, 0.5);
}

/* Chatbot Trigger (Bottom) - Overriding position to be part of flex */
#cb-trigger {
    position: static !important;
    width: 65px !important;
    height: 65px !important;
}

/* Cute Message Bubble */
.kakao-bubble {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 20px 20px 4px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #3C1E1E;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    border: 1px solid rgba(254, 229, 0, 0.5);
}

.kakao-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.kakao-bubble span {
    display: inline-block;
    animation: bubble-wave 1s infinite;
}

@keyframes bubble-wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .kakao-trigger-wrapper {
        bottom: 20px;
        right: 15px;
        gap: 10px;
    }
    .kakao-trigger, #cb-trigger {
        width: 55px !important;
        height: 55px !important;
    }
    .kakao-trigger i { font-size: 26px; }
    
    .kakao-bubble {
        font-size: 13px;
        padding: 8px 14px;
        margin-bottom: 5px;
    }
}
