/* ========================================
   Floating Contact Buttons Plugin
   ======================================== */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.floating-contact-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.floating-contact-buttons.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    margin-bottom: -8px;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    background: transparent;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn-line,
.floating-btn-fb,
.floating-btn-phone,
.floating-btn-service {
    width: 48px;
    height: 48px;
    padding: 0; /* Changed padding to 0 if the icon itself has circle, but wait, the original had padding 8px and background white */
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    overflow: hidden;
}

/* Because the icons in the screenshot are full circles themselves, we can just make sure they fill the button or we use transparent background if the SVG is already a circle */
.floating-btn-line,
.floating-btn-fb,
.floating-btn-phone,
.floating-btn-service {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

/* Let's fall back to a white circle if the user uploads a transparent icon */
/* Actually, let's keep the original style just in case of simple icons, but for the provided ones they might be full circles. Let's set the full size. */

.floating-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.floating-btn-top {
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .floating-contact {
        right: 12px;
        bottom: 20px;
        gap: 8px;
    }

    .floating-btn-line,
    .floating-btn-fb,
    .floating-btn-phone,
    .floating-btn-service,
    .floating-btn-top {
        width: 40px;
        height: 40px;
    }
}
