/**
 * Floating Contact Buttons Styles
 */

.maido-floating-contacts {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

/* Main toggle button */
.maido-floating-main-btn {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--maido-primary, #6b3922) 0%, var(--maido-primary-dark, #4d2617) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(107, 57, 34, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
    margin-left: auto;
}

.maido-floating-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 57, 34, 0.4);
}

.maido-floating-contacts.active .maido-floating-main-btn {
    transform: rotate(180deg);
    background: linear-gradient(135deg, var(--maido-warning, #c9a66b) 0%, #b8935a 100%);
}

/* Buttons list */
.maido-floating-buttons-list {
    position: absolute;
    bottom: 4.5rem;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.maido-floating-contacts.active .maido-floating-buttons-list {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

/* Individual buttons */
.maido-floating-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    margin-left: auto;
}

.maido-floating-contacts.active .maido-floating-btn {
    transform: scale(0);
}

.maido-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* WhatsApp */
.maido-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.maido-btn-whatsapp:hover {
    background: linear-gradient(135deg, #2DE371 0%, #138E81 100%);
}

/* Zalo */
.maido-btn-zalo {
    background: linear-gradient(135deg, #0068FF 0%, #0052CC 100%);
}

.maido-btn-zalo:hover {
    background: linear-gradient(135deg, #1A7AFF 0%, #0062E6 100%);
}

/* KakaoTalk */
.maido-btn-kakao {
    background: linear-gradient(135deg, #FEE500 0%, #F5DC00 100%);
    color: #3C1E1E;
}

.maido-btn-kakao:hover {
    background: linear-gradient(135deg, #FFEE33 0%, #FFE600 100%);
}

/* Messenger */
.maido-btn-messenger {
    background: linear-gradient(135deg, #00B2FF 0%, #0078FF 100%);
}

.maido-btn-messenger:hover {
    background: linear-gradient(135deg, #1AC1FF 0%, #1A88FF 100%);
}

/* Staggered animation for buttons */
.maido-floating-contacts.active .maido-floating-btn:nth-child(1) {
    transition-delay: 0.05s;
}

.maido-floating-contacts.active .maido-floating-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.maido-floating-contacts.active .maido-floating-btn:nth-child(3) {
    transition-delay: 0.15s;
}

.maido-floating-contacts.active .maido-floating-btn:nth-child(4) {
    transition-delay: 0.2s;
}

/* SVG icons */
.maido-floating-btn svg,
.maido-floating-main-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .maido-floating-contacts {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .maido-floating-main-btn {
        width: 3rem;
        height: 3rem;
    }
    
    .maido-floating-btn {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .maido-floating-btn svg,
    .maido-floating-main-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .maido-floating-contacts {
        bottom: 1rem;
        right: 1rem;
    }
    
    .maido-floating-main-btn {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .maido-floating-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .maido-floating-buttons-list {
        gap: 0.5rem;
        bottom: 4rem;
    }
}
