/* Furnished Unique Floating Capsule UI */
.fcw-widget {
    position: fixed;
    z-index: var(--fcw-z-index);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 10px 24px 10px 10px;
    box-shadow: 0 15px 50px rgba(14, 146, 165, 0.12), 0 0 0 1px rgba(14, 146, 165, 0.05);
    max-width: 75px;
    width: auto;
    display: flex;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    box-sizing: border-box;
    border: none;
}

/* Expansion State */
.fcw-widget:hover,
.fcw-widget.is-expanded {
    max-width: var(--fcw-max-width);
    padding: 12px 35px 12px 12px;
    box-shadow: 0 25px 70px rgba(14, 146, 165, 0.2);
}

.fcw-capsule-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.fcw-avatar-float {
    position: relative;
    flex-shrink: 0;
    z-index: 5;
    transition: transform 0.4s ease;
}

.fcw-widget:hover .fcw-avatar-float {
    transform: scale(1.05);
}

/* Avatar Ring with Transparent Interior & Gradient Border */
.fcw-avatar-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--fcw-bg), var(--fcw-bg)) padding-box,
        linear-gradient(135deg, #0E92A5, #19B6B9) border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcw-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    display: block;
    background-color: #fff !important;
}

/* Pulsing Online Dot */
.fcw-online-pulse {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 10;
}

.fcw-online-pulse::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    background: inherit;
    animation: fcw-pulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    opacity: 0.6;
}

@keyframes fcw-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Text Content */
.fcw-capsule-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: center;
}

.fcw-static-text {
    flex-shrink: 0;
}

.fcw-heading-text {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--fcw-heading-color);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.1s;
    letter-spacing: -0.01em;
}

.fcw-widget:hover .fcw-heading-text,
.fcw-widget.is-expanded .fcw-heading-text {
    opacity: 1;
    transform: translateX(0);
}

/* Expandable Reveal */
.fcw-expandable-row {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.fcw-widget:hover .fcw-expandable-row,
.fcw-widget.is-expanded .fcw-expandable-row {
    max-height: 60px;
    opacity: 1;
    margin-top: 8px;
}

.fcw-reveal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(14, 146, 165, 0.08);
    padding-top: 10px;
}

.fcw-cta-link {
    text-decoration: none;
    color: #0E92A5;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fcw-cta-link:hover {
    color: #19B6B9;
    transform: translateX(4px);
}

.fcw-side-logo img {
    /* Increased for better visibility */
    width: auto !important;
    filter: grayscale(1) brightness(0.8);
    opacity: 0.4;
    transition: all 0.4s ease;
}

.fcw-widget:hover .fcw-side-logo img {
    filter: grayscale(0) brightness(1);
    opacity: 0.9;
}

/* Perfect Circle Close Button (Fixed Shape) */
.fcw-close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    /* Ensure perfect circle */
    min-height: 20px;
    /* Ensure perfect circle */
    flex: 0 0 20px;
    /* Prevent shrinking */
    background: #0B819C;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 99;
    line-height: 1;
}

.fcw-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: #b12527;
}

/* Animations */
@keyframes fcw-slideUpCapsule {
    from {
        transform: translateY(80px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.fcw-anim-slide-up {
    animation: fcw-slideUpCapsule 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Side-out Dismiss Transition */
.fcw-widget.is-dismissing {
    opacity: 0 !important;
    filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

/* Dismiss physics based on horizontal side */
.fcw-pos-bottom-right.is-dismissing,
.fcw-pos-top-right.is-dismissing {
    transform: translateX(120px) scale(0.8) !important;
}

.fcw-pos-bottom-left.is-dismissing,
.fcw-pos-top-left.is-dismissing {
    transform: translateX(-120px) scale(0.8) !important;
}