/**
 * Public styles for IMS Clouds Chat bot
 * Created by IMS Clouds
 */

/* Chat Bubble */
/* Floating Buttons Container - Side by side like Comunik CRM */
.wfcb-floating-buttons-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    z-index: 999997;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Position classes - Override default position based on admin setting */
.wfcb-floating-buttons-container.wfcb-position-bottom-left {
    bottom: 20px;
    left: 20px;
    right: auto;
    top: auto;
}

.wfcb-floating-buttons-container.wfcb-position-bottom-right {
    bottom: 20px;
    right: 20px;
    left: auto;
    top: auto;
}

.wfcb-floating-buttons-container.wfcb-position-top-left {
    top: 20px;
    left: 20px;
    bottom: auto;
    right: auto;
}

.wfcb-floating-buttons-container.wfcb-position-top-right {
    top: 20px;
    right: 20px;
    bottom: auto;
    left: auto;
}

.wfcb-chat-bubble {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4080FF 0%, #3060DD 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(64, 128, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
    position: relative;
    overflow: visible;
}

.wfcb-chat-bubble:hover {
    transform: scale(1.1) translateY(-3px) translateZ(0);
    box-shadow: 0 10px 28px rgba(64, 128, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wfcb-chat-bubble:hover .wfcb-chat-icon {
    opacity: 0;
    transform: scale(0.8);
}

.wfcb-chat-bubble:hover .wfcb-bubble-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.wfcb-chat-bubble:active {
    transform: scale(1.05) translateY(-1px) translateZ(0);
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wfcb-chat-bubble .wfcb-chat-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

/* X Close Button - Comunik Style: White square with black X that extends slightly outside the bubble */
.wfcb-bubble-close {
    position: absolute;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.3) rotate(-90deg);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    top: -6px;
    right: -6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.wfcb-bubble-close:hover {
    background: #f8f8f8;
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.wfcb-bubble-close:active {
    transform: scale(0.98) rotate(0deg);
    background: #eeeeee;
}

.wfcb-bubble-close svg {
    width: 16px;
    height: 16px;
    display: block;
}

.wfcb-chat-bubble svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Chat Container */
.wfcb-chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    max-width: 90vw;
    height: 650px;
    max-height: 85vh;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999998;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.wfcb-chat-container.active {
    transform: translateY(0) scale(1) translateZ(0);
    opacity: 1;
    visibility: visible;
}

.wfcb-chat-container.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Chat Header - Comunik Style */
.wfcb-chat-header {
    background: linear-gradient(135deg, #4080FF 0%, #3060DD 100%);
    color: white;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 4px 12px rgba(64, 128, 255, 0.25);
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.wfcb-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
    pointer-events: none;
    opacity: 0.6;
}

.wfcb-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.wfcb-chat-header .wfcb-chat-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wfcb-header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wfcb-chat-title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.wfcb-chat-subtitle {
    font-weight: 400;
    font-size: 13px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
    max-width: 90%;
}

.wfcb-chat-close {
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    border: none;
    background: rgba(255, 255, 255, 0.2);
}

.wfcb-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.wfcb-chat-close:active {
    transform: scale(0.95);
}

/* Chat Body */
.wfcb-chat-body {
    flex: 1;
    overflow-y: auto;
    background: linear-gradient(to bottom, #f8f9fa 0%, #f0f2f5 100%);
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Conversations Card - Comunik Style */
.wfcb-conversations-card {
    background: #ffffff;
    border-radius: 12px;
    margin: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wfcb-conversations-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wfcb-conversations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.wfcb-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.wfcb-conversation-item:hover {
    background: #f5f5f5;
}

.wfcb-conversation-item .wfcb-chat-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wfcb-conversation-info {
    flex: 1;
    min-width: 0;
}

.wfcb-conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.wfcb-conversation-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.wfcb-conversation-time {
    font-size: 12px;
    color: #999;
}

.wfcb-conversation-preview {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wfcb-new-discussion-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px dashed #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.wfcb-new-discussion-btn:hover {
    background: #f9f9f9;
    border-color: #4080FF;
    color: #4080FF;
}

/* Channels List Card - Comunik Style */
.wfcb-channels-list-card {
    background: #ffffff;
    border-radius: 12px;
    margin: 0 16px 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-height: 250px;
    overflow-y: auto;
}

.wfcb-channels-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wfcb-channels-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wfcb-channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.wfcb-channel-item:hover {
    background: #f5f5f5;
}

.wfcb-channel-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.wfcb-channel-label {
    font-size: 14px;
    font-weight: 500;
}

/* Chat Messages and Input (shown when conversation starts) */
.wfcb-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wfcb-message {
    max-width: 80%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wfcb-message-sent {
    align-self: flex-end;
    background-color: #4080FF;
    color: white;
    border-bottom-right-radius: 5px;
}

.wfcb-message-received {
    align-self: flex-start;
    background-color: #e6e6e6;
    color: #333;
    border-bottom-left-radius: 5px;
}

.wfcb-chat-input-area {
    display: flex;
    padding: 10px;
    background-color: #f0f2f5;
    border-top: 1px solid #e9ecef;
    align-items: center;
}

.wfcb-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 24px;
    font-size: 14px;
    resize: none;
    outline: none;
    background-color: #ffffff;
    color: #333;
    transition: all 0.2s;
    max-height: 120px;
    overflow-y: auto;
    font-family: inherit;
}

.wfcb-chat-input:focus {
    border-color: #4080FF;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(64, 128, 255, 0.12);
    transform: translateY(-1px);
}

.wfcb-chat-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.wfcb-chat-send {
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(64, 128, 255, 0.35) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    margin-left: 8px !important;
}

.wfcb-chat-send:hover {
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(64, 128, 255, 0.45) !important;
}

.wfcb-chat-send:active {
    transform: scale(0.95) !important;
}

.wfcb-chat-send .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

/* Form Styles */
.wfcb-contact-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wfcb-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wfcb-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.wfcb-input-field {
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: #ffffff;
    color: #333;
    font-family: inherit;
}

.wfcb-input-field:focus {
    outline: none;
    border-color: #4080FF;
    box-shadow: 0 0 0 3px rgba(64, 128, 255, 0.1);
}

.wfcb-input-field:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.wfcb-input-field:invalid {
    border-color: #dc3545;
}

.wfcb-input-field:valid {
    border-color: #28a745;
}

.wfcb-submit-button {
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.wfcb-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 128, 255, 0.4);
}

.wfcb-submit-button:active {
    transform: translateY(0);
}

.wfcb-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loader Styles */
.wfcb-loader-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wfcb-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: wfcb-spin 0.8s linear infinite;
}

@keyframes wfcb-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Welcome Message */
.wfcb-welcome-message {
    padding: 16px 20px;
    margin: 20px;
    background-color: #e7f3ff;
    border-left: 4px solid #4080FF;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* Registration Link */
.wfcb-registration-link {
    text-align: center;
    padding: 0 20px;
}

.wfcb-registration-link a {
    color: #4080FF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.wfcb-registration-link a:hover {
    color: #3060DD;
    text-decoration: underline;
}

/* Form Status */
.wfcb-form-status {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}

.wfcb-form-status.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.wfcb-form-status.success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Message Styling */
.wfcb-message-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wfcb-message-sender {
    font-weight: 600;
    font-size: 12px;
    color: #4080FF;
    margin-bottom: 4px;
}

.wfcb-message-content {
    line-height: 1.5;
}

.wfcb-message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    align-self: flex-end;
}

.wfcb-message-received .wfcb-message-time {
    color: #666;
}

.wfcb-message-sent .wfcb-message-time {
    color: rgba(255, 255, 255, 0.8);
}

/* New Conversation Button */
.wfcb-new-conversation-btn {
    width: 100%;
    padding: 14px 20px;
    margin: 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none !important;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.wfcb-new-conversation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 128, 255, 0.4);
}

.wfcb-new-conversation-btn:active {
    transform: translateY(0);
}

.wfcb-new-conversation-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer Info (Conversation Closed) */
.wfcb-chat-footer-info {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
    font-size: 14px;
}

.wfcb-footer-info-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.wfcb-footer-info-text {
    flex: 1;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wfcb-chat-container {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .wfcb-chat-header {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .wfcb-floating-buttons-container {
        right: 10px;
        bottom: 10px;
    }

    .wfcb-floating-buttons-container.wfcb-position-bottom-left {
        left: 10px;
        right: auto;
    }

}

/* Communication Channels List */
.wfcb-channels-list {
    padding: 20px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    margin-top: auto;
    border-radius: 0 0 20px 20px;
}

/* Dark Mode Styles */
.wfcb-theme-dark .wfcb-conversations-card,
.wfcb-theme-dark .wfcb-channels-list-card {
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
}

.wfcb-theme-dark .wfcb-conversations-title,
.wfcb-theme-dark .wfcb-channels-title {
    color: #bbb !important;
}

.wfcb-theme-dark .wfcb-conversation-item:hover {
    background: #333 !important;
}

.wfcb-theme-dark .wfcb-channel-item:hover {
    background: #333 !important;
}

.wfcb-theme-dark .wfcb-new-discussion-btn {
    border-color: #555 !important;
    color: #e0e0e0 !important;
}

.wfcb-theme-dark .wfcb-new-discussion-btn:hover {
    background: #333 !important;
    border-color: #4080FF !important;
    color: #4080FF !important;
}

/* Animations */
.wfcb-anim-pulse .wfcb-chat-bubble {
    animation: wfcb-pulse 2s infinite;
}

@keyframes wfcb-pulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(64, 128, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 4px 16px rgba(64, 128, 255, 0.6), 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(64, 128, 255, 0.1);
    }
}

.wfcb-anim-bounce .wfcb-chat-bubble {
    animation: wfcb-bounce 2s infinite;
}

@keyframes wfcb-bounce {

    0%,
    100% {
        transform: translateY(0) translateZ(0);
    }

    50% {
        transform: translateY(-10px) translateZ(0);
    }
}

.wfcb-anim-shake .wfcb-chat-bubble {
    animation: wfcb-shake 4s infinite;
    animation-delay: 2s;
}

@keyframes wfcb-shake {

    0%,
    100% {
        transform: translateX(0) translateZ(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px) translateZ(0);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px) translateZ(0);
    }
}

/* Typing Indicator */
.wfcb-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background-color: #e6e6e6;
    border-radius: 18px;
    width: fit-content;
    margin-bottom: 10px;
}

.wfcb-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    animation: wfcb-typing-animation 1.4s infinite;
}

.wfcb-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.wfcb-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes wfcb-typing-animation {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Message Slide In Animation */
.wfcb-message {
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Scrollbar Styling */
.wfcb-chat-body::-webkit-scrollbar,
.wfcb-chat-messages::-webkit-scrollbar,
.wfcb-conversations-list::-webkit-scrollbar,
.wfcb-channels-list-card::-webkit-scrollbar {
    width: 6px;
}

.wfcb-chat-body::-webkit-scrollbar-track,
.wfcb-chat-messages::-webkit-scrollbar-track,
.wfcb-conversations-list::-webkit-scrollbar-track,
.wfcb-channels-list-card::-webkit-scrollbar-track {
    background: transparent;
}

.wfcb-chat-body::-webkit-scrollbar-thumb,
.wfcb-chat-messages::-webkit-scrollbar-thumb,
.wfcb-conversations-list::-webkit-scrollbar-thumb,
.wfcb-channels-list-card::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.wfcb-chat-body::-webkit-scrollbar-thumb:hover,
.wfcb-chat-messages::-webkit-scrollbar-thumb:hover,
.wfcb-conversations-list::-webkit-scrollbar-thumb:hover,
.wfcb-channels-list-card::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Floating Button - Inside container, positioned next to chat bubble */
.wfcb-floating-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.wfcb-floating-button:hover {
    transform: scale(1.1) translateY(-3px) translateZ(0);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wfcb-floating-button:active {
    transform: scale(1.05) translateY(-1px) translateZ(0);
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wfcb-chat-bubble svg,
.wfcb-floating-button svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
}