.ctc-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    align-items: center;
    /* Center align items horizontally */
}

.ctc-buttons-wrapper.ctc-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ctc-whatsapp-button,
.ctc-call-button,
.ctc-email-button,
.ctc-minimize-toggle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ctc-whatsapp-button:hover,
.ctc-call-button:hover,
.ctc-email-button:hover,
.ctc-minimize-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.ctc-whatsapp-button img,
.ctc-call-button img,
.ctc-email-button img {
    width: 30px;
    height: 30px;
}

.ctc-whatsapp-button svg,
.ctc-call-button svg,
.ctc-email-button svg,
.ctc-minimize-toggle svg {
    width: 25px;
    height: 25px;
    fill: white;
    /* Icon color set to white */
}

/* Minimize Toggle Styles */
/* Minimize Toggle Styles */
.ctc-minimize-toggle {
    background-color: #fff;
    /* White background */
    width: 35px;
    /* Smaller size */
    height: 35px;
    /* Smaller size */
    z-index: 10000;
    position: relative;
    border: 1px solid #ddd;
}

.ctc-minimize-toggle svg {
    fill: #333;
    /* Dark icon */
    width: 20px;
    height: 20px;
}

/* Icon switching logic */
.ctc-icon-minimize,
.ctc-icon-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.ctc-minimize-toggle .ctc-icon-chat {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.ctc-minimize-toggle.active .ctc-icon-minimize {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.ctc-minimize-toggle.active .ctc-icon-chat {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Tooltip Styles */
.ctc-tooltip {
    position: absolute;
    right: 50px;
    /* Position to the left of the button (assuming right aligned) */
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* If buttons are on the left, adjust tooltip */
.ctc-buttons-wrapper[style*="left:"] .ctc-tooltip {
    right: auto;
    left: 50px;
}


/* Show tooltip when minimized (active) */
.ctc-minimize-toggle.active .ctc-tooltip {
    opacity: 1;
    visibility: visible;
    animation: ctc-blink 2s infinite;
}

@keyframes ctc-blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.ctc-buttons-wrapper.ctc-minimized .ctc-whatsapp-button,
.ctc-buttons-wrapper.ctc-minimized .ctc-call-button,
.ctc-buttons-wrapper.ctc-minimized .ctc-email-button {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    transform: scale(0);
}