#rcci-button {
    position: fixed;
    right: 30px;
    height: 48px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    min-width: 48px;
    max-width: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    /* Entrance Animation Initial State */
    opacity: 0;
    transform: translateX(120px) scale(0.9);
    transition: 
        transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
        opacity 0.8s ease, 
        max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
        background-color 0.3s ease, 
        color 0.3s ease, 
        box-shadow 0.3s ease;
}

/* Entrance Animation Activated */
#rcci-button.rcci-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Hover Effect: Scale & Translate & Expand */
#rcci-button.rcci-visible:hover {
    max-width: 320px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transform: translateY(-3px) scale(1.05);
}

/* Icon Wrap Style */
#rcci-button .rcci-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#rcci-button .rcci-icon-wrap svg,
#rcci-button .rcci-icon-wrap img {
    display: block;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

#rcci-button:hover .rcci-icon-wrap svg,
#rcci-button:hover .rcci-icon-wrap img {
    transform: rotate(15deg) scale(1.1);
}

/* Text Slide-out / Expand Style */
#rcci-button .rcci-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1;
    transition: 
        max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
        opacity 0.3s ease, 
        margin 0.4s ease;
}

#rcci-button:hover .rcci-text {
    max-width: 250px;
    opacity: 1;
    margin-left: 16px;
    margin-right: 4px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #rcci-button {
        right: 20px;
        height: 42px;
        min-width: 42px;
        max-width: 42px;
        border-radius: 21px;
        /* Position nicely above back-to-top button on mobile */
        bottom: calc(20px + 42px + 12px) !important; /* 20px bottom + 42px height + 12px gap = 74px */
    }

    #rcci-button .rcci-icon-wrap {
        width: 42px;
        height: 42px;
    }

    #rcci-button .rcci-icon-wrap svg,
    #rcci-button .rcci-icon-wrap img {
        width: 20px;
        height: 20px;
    }

    #rcci-button:hover .rcci-text {
        max-width: 200px;
        margin-left: 12px;
        margin-right: 2px;
    }

    #rcci-button.rcci-visible:hover {
        max-width: 260px;
        transform: translateY(-2px) scale(1.05);
    }
}
