/* Base Button Style */
.idevelop-floating-circle-button {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.idevelop-floating-circle-button:hover {
    transform: scale(1.05);
}

/* Hub Container */
.idevelop-fcb-hub-container {
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Hub Mini Buttons Wrapper */
.idevelop-fcb-mini-buttons {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.idevelop-fcb-hub-container.active .idevelop-fcb-mini-buttons {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Mini Button Style */
.idevelop-fcb-mini-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.idevelop-fcb-mini-button:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.idevelop-fcb-mini-button svg {
    width: 22px;
    height: 22px;
}

/* Hub Toggle Button */
.idevelop-fcb-toggle-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.idevelop-fcb-hub-toggle {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    /* Prevent squashing */
    min-height: 60px !important;
    border-radius: 50% !important;
    border: none !important;
    outline: none !important;
    background-color: #333 !important;
    /* Default Neutral Black */
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.idevelop-fcb-hub-toggle svg {
    width: 28px !important;
    height: 28px !important;
    fill: #fff !important;
}

.idevelop-fcb-hub-toggle svg path {
    fill: #fff !important;
}

.idevelop-fcb-hub-container.active .idevelop-fcb-hub-toggle {
    transform: rotate(45deg);
    background-color: #ff3b30 !important;
    /* Red color for cancel/close */
}

/* Ensure the plus icon is centered */
.idevelop-fcb-hub-toggle svg {
    pointer-events: none;
}

/* Tooltips */
.idevelop-fcb-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.82);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Tooltip Positions */
.idevelop-fcb-tooltip.pos-left {
    right: 100%;
    margin-right: 15px;
    top: 50%;
    transform: translate(10px, -50%);
}

.idevelop-fcb-tooltip.pos-right {
    left: 100%;
    margin-left: 15px;
    top: 50%;
    transform: translate(-10px, -50%);
}

.idevelop-fcb-tooltip.pos-top {
    bottom: 100%;
    left: 50%;
    margin-bottom: 15px;
    transform: translate(-50%, 10px);
}

.idevelop-fcb-mini-button:hover .idevelop-fcb-tooltip,
.idevelop-floating-circle-button:hover .idevelop-fcb-tooltip {
    opacity: 1;
    visibility: visible;
}

.idevelop-fcb-mini-button:hover .idevelop-fcb-tooltip.pos-left,
.idevelop-floating-circle-button:hover .idevelop-fcb-tooltip.pos-left {
    transform: translate(0, -50%);
}

.idevelop-fcb-mini-button:hover .idevelop-fcb-tooltip.pos-right,
.idevelop-floating-circle-button:hover .idevelop-fcb-tooltip.pos-right {
    transform: translate(0, -50%);
}

.idevelop-fcb-mini-button:hover .idevelop-fcb-tooltip.pos-top,
.idevelop-floating-circle-button:hover .idevelop-fcb-tooltip.pos-top {
    transform: translate(-50%, 0);
}

/* Channel Specific Colors */
.idevelop-fcb-whatsapp {
    background-color: transparent !important;
    box-shadow: none !important;
    /* Premium SVG has its own bubble look */
}

.idevelop-fcb-whatsapp svg {
    width: 100% !important;
    height: 100% !important;
}

.idevelop-fcb-email {
    background-color: #ea4335;
}

.idevelop-fcb-phone {
    background-color: #34a853;
}

.idevelop-fcb-telegram {
    background-color: #0088cc;
}

.idevelop-fcb-link {
    background-color: #607d8b;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Nudge / Speech Bubble */
/* Nudge / Speech Bubble */
.idevelop-fcb-nudge-wrapper {
    position: fixed;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.idevelop-fcb-nudge {
    position: absolute;
    background: #fff;
    color: #333;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    animation: nudgeBounce 2s infinite;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.idevelop-fcb-hub-container.active .idevelop-fcb-nudge {
    opacity: 0;
    pointer-events: none;
}

/* Default Top Position (for bottom buttons) */
.idevelop-fcb-nudge.nudge-top {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 15px;
}

/* Side Position - Left (for right-aligned buttons) */
.idevelop-fcb-nudge.nudge-left {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 15px;
}

/* Side Position - Right (for left-aligned buttons) */
.idevelop-fcb-nudge.nudge-right {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 15px;
}

/* Speech Bubble Tail - Default (Bottom) */
.idevelop-fcb-nudge.nudge-top::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* Speech Bubble Tail - Right (for Left Nudge) */
.idevelop-fcb-nudge.nudge-left::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

/* Speech Bubble Tail - Left (for Right Nudge) */
.idevelop-fcb-nudge.nudge-right::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

@keyframes nudgeBounce {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(0, -5px);
    }
}

/* Horizontal bounce for side nudges */
@keyframes nudgeBounceHorizontal {

    0%,
    100% {
        transform: translate(0, -50%);
    }

    50% {
        transform: translate(-5px, -50%);
    }
}

.idevelop-fcb-nudge.nudge-left {
    animation: nudgeBounceHorizontal 2s infinite;
}

.idevelop-fcb-nudge.nudge-right {
    animation: nudgeBounceHorizontal 2s infinite;
}

/* Responsive */
@media (max-width: 600px) {
    .idevelop-fcb-tooltip {
        display: none;
    }
}