/* 客服浮窗元件樣式 */
#customer-service-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001; /* 確保高於cookie窗口(9999) */
    font-family: 'Inter', sans-serif;
}

/* 客服按鈕 */
#customer-service-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E63946 0%, #FF6B6B 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    color: white;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

#customer-service-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.6);
}

#customer-service-btn:active {
    transform: scale(0.95);
}

/* 浮動動畫 */
@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* 泡泡彈窗 */
#customer-bubble {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: linear-gradient(135deg, #fff9e6 0%, #ffe8e8 100%);
    border-radius: 20px;
    padding: 16px 20px 16px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-width: 280px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 2px solid rgba(230, 57, 70, 0.1);
    cursor: pointer;
}

#customer-bubble.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

#customer-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* 泡泡內容 */
#customer-bubble .bubble-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1D3557;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

#customer-bubble .bubble-icon {
    font-size: 18px;
    color: #E63946;
}

/* 關閉按鈕 */
#customer-bubble .close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#customer-bubble .close-btn:hover {
    background: rgba(230, 57, 70, 0.1);
    color: #E63946;
}

/* 泡泡箭頭 */
#customer-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff9e6;
}

/* 響應式設計 */
@media (max-width: 768px) {
    #customer-service-widget {
        bottom: 15px;
        right: 15px;
    }
    
    #customer-service-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    #customer-bubble {
        bottom: 65px;
        max-width: 250px;
        padding: 14px 18px 14px 14px;
    }
    
    #customer-bubble .bubble-content {
        font-size: 13px;
    }
}

/* 確保不被其他元素覆蓋 */
#customer-service-widget * {
    box-sizing: border-box;
} 