.cnx-fcb-button {
    --cnx-fcb-bg: #111111;
    --cnx-fcb-text: #ffffff;
    --cnx-fcb-icon: #ffffff;
    --cnx-fcb-transform: none;
    position: fixed;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--cnx-fcb-bg);
    color: var(--cnx-fcb-text);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: var(--cnx-fcb-transform);
    transition: opacity 0.2s ease;
    box-sizing: border-box;
    max-width: calc(100vw - 48px);
}

.cnx-fcb-button:hover,
.cnx-fcb-button:focus {
    color: var(--cnx-fcb-text);
    opacity: 0.96;
}

.cnx-fcb-button .dashicons {
    display: none;
}

.cnx-fcb-button .cnx-fcb-icon.material-icons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--cnx-fcb-icon);
    line-height: 1;
    position: relative;
    z-index: 2;
}

.cnx-fcb-button .cnx-fcb-icon-svg svg {
    display: block;
    width: 20px;
    height: 20px;
    color: var(--cnx-fcb-icon);
    position: relative;
    z-index: 2;
}

.cnx-fcb-button .cnx-fcb-icon-svg svg path {
    fill: currentColor;
}

.cnx-fcb-button.cnx-fcb-icon-only {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
}

.cnx-fcb-button.cnx-fcb-icon-only .cnx-fcb-label {
    display: none;
}

.cnx-fcb-button .cnx-fcb-label {
    position: relative;
    z-index: 2;
}

.cnx-fcb-style-none {
    background: var(--cnx-fcb-bg);
}

.cnx-fcb-style-gloss_ocean,
.cnx-fcb-style-gloss_navy {
    position: fixed;
    overflow: hidden;
    isolation: isolate;
}

.cnx-fcb-style-gloss_ocean {
    background: linear-gradient(135deg, #2ba6ff 0%, #0a0a61 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(43, 166, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.cnx-fcb-style-gloss_ocean::before {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.38) 45%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 1;
    animation: cnx-fcb-gloss-sweep 3.5s ease-in-out infinite;
}

.cnx-fcb-style-gloss_navy {
    background: linear-gradient(135deg, #0a0a61 0%, #2b3cff 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(10, 10, 97, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cnx-fcb-style-gloss_navy::before {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.32) 45%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 1;
    animation: cnx-fcb-gloss-sweep 4s ease-in-out infinite;
}

.cnx-fcb-style-glass {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cnx-fcb-style-neon {
    background: #0a0a61;
    color: #2ba6ff;
    border: 1px solid #2ba6ff;
    box-shadow: 0 0 10px rgba(43, 166, 255, 0.65), 0 0 22px rgba(43, 166, 255, 0.4);
}

.cnx-fcb-v-top { top: 24px; }
.cnx-fcb-v-center { top: 50%; }
.cnx-fcb-v-bottom { bottom: 24px; }

.cnx-fcb-h-left { left: 24px; right: auto; }
.cnx-fcb-h-center { left: 50%; right: auto; }
.cnx-fcb-h-right { right: 24px; left: auto; }

.cnx-fcb-v-center.cnx-fcb-h-center { --cnx-fcb-transform: translate(-50%, -50%); }
.cnx-fcb-v-center:not(.cnx-fcb-h-center) { --cnx-fcb-transform: translateY(-50%); }
.cnx-fcb-h-center:not(.cnx-fcb-v-center) { --cnx-fcb-transform: translateX(-50%); }

.cnx-fcb-attention-pulse {
    animation: cnxFCBPulse 1s ease-in-out;
}

.cnx-fcb-attention-bounce {
    animation: cnxFCBBounce 1.1s ease;
}

.cnx-fcb-attention-slide {
    animation: cnxFCBSlide 0.9s ease;
}

.cnx-fcb-attention-shake {
    animation: cnxFCBShake 0.8s ease;
}

.cnx-fcb-attention-wiggle {
    animation: cnxFCBWiggle 0.9s ease;
}

.cnx-fcb-attention-glow {
    animation: cnxFCBGlow 1.2s ease;
}

@keyframes cnxFCBPulse {
    0% { transform: var(--cnx-fcb-transform) scale(1); }
    40% { transform: var(--cnx-fcb-transform) scale(1.08); }
    100% { transform: var(--cnx-fcb-transform) scale(1); }
}

@keyframes cnxFCBBounce {
    0%, 100% { transform: var(--cnx-fcb-transform) translateY(0); }
    35% { transform: var(--cnx-fcb-transform) translateY(-10px); }
    70% { transform: var(--cnx-fcb-transform) translateY(-4px); }
}

@keyframes cnxFCBSlide {
    0% { transform: var(--cnx-fcb-transform) translateX(0); }
    40% { transform: var(--cnx-fcb-transform) translateX(-8px); }
    100% { transform: var(--cnx-fcb-transform) translateX(0); }
}

@keyframes cnxFCBShake {
    0%, 100% { transform: var(--cnx-fcb-transform) translateX(0); }
    20% { transform: var(--cnx-fcb-transform) translateX(-4px); }
    40% { transform: var(--cnx-fcb-transform) translateX(4px); }
    60% { transform: var(--cnx-fcb-transform) translateX(-3px); }
    80% { transform: var(--cnx-fcb-transform) translateX(3px); }
}

@keyframes cnxFCBWiggle {
    0%, 100% { transform: var(--cnx-fcb-transform) rotate(0deg); }
    25% { transform: var(--cnx-fcb-transform) rotate(-6deg); }
    50% { transform: var(--cnx-fcb-transform) rotate(4deg); }
    75% { transform: var(--cnx-fcb-transform) rotate(-3deg); }
}

@keyframes cnxFCBGlow {
    0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
    50% { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28), 0 0 0 6px rgba(255, 255, 255, 0.16); }
}

@keyframes cnx-fcb-gloss-sweep {
    0%, 70% { left: -140%; }
    100% { left: 160%; }
}

@media (max-width: 782px) {
    .cnx-fcb-button {
        padding: 11px 16px;
        font-size: 14px;
        gap: 6px;
        max-width: calc(100vw - 28px);
    }

    .cnx-fcb-v-top { top: 14px; }
    .cnx-fcb-v-bottom { bottom: 14px; }
    .cnx-fcb-h-left { left: 14px; right: auto; }
    .cnx-fcb-h-right { right: 14px; left: auto; }
}
