.fab-button {
    position: fixed;
    z-index: 9999;
    padding: var(--fab-padding) 24px;
    background-color: var(--fab-bg-color);
    color: var(--fab-text-color);
    text-decoration: none;
    border-radius: var(--fab-border-radius);
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fab-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.fab-button:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--fab-text-color);
}

.fab-pos-right { bottom: 30px; right: 30px; }
.fab-pos-left { bottom: 30px; left: 30px; }
.fab-pos-center { bottom: 30px; left: 50%; transform: translateX(-50%); }
.fab-pos-center:hover { transform: translateX(-50%) scale(1.05); }

.fab-button {
    z-index: 9996;
    max-width: calc(100vw - 60px);
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

body:has(#chat-toggle-wrapper) .fab-pos-right {
    bottom: 108px;
}

@media (max-width: 600px) {
    body:has(#chat-toggle-wrapper) .fab-pos-center {
        bottom: 108px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fab-button { transition: none; }
}

.fab-button[hidden] { display: none; }
