/* ===== Marketing Widgets ===== */

/* -- Floating Button Group (multi-button) -- */
.mw-floating-group {
    position: fixed;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.mw-floating-group.mw-pos-bottom_right {
    bottom: 24px;
    right: 24px;
    align-items: flex-end;
}

.mw-floating-group.mw-pos-bottom_left {
    bottom: 24px;
    left: 24px;
}

.mw-floating-group.mw-pos-bottom_center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

/* -- Floating Button Wrapper (Desktop layout) -- */
.mw-fb-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mw-floating-group.mw-pos-bottom_right .mw-fb-buttons-wrapper {
    align-items: flex-end;
}
.mw-floating-group.mw-pos-bottom_left .mw-fb-buttons-wrapper {
    align-items: flex-start;
}
.mw-floating-group.mw-pos-bottom_center .mw-fb-buttons-wrapper {
    align-items: center;
}

/* -- Floating Button (individual, inside group) -- */
.mw-floating-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mw-floating-group.mw-pos-bottom_right .mw-floating-btn {
    flex-direction: row-reverse;
}

/* legacy standalone (not inside group) */
.mw-floating-btn:not(.mw-floating-group .mw-floating-btn) {
    position: fixed;
    z-index: 9990;
}

.mw-floating-btn:not(.mw-floating-group .mw-floating-btn).mw-pos-bottom_right {
    bottom: 24px;
    right: 24px;
    flex-direction: row-reverse;
}

.mw-floating-btn:not(.mw-floating-group .mw-floating-btn).mw-pos-bottom_left {
    bottom: 24px;
    left: 24px;
}

.mw-floating-btn:not(.mw-floating-group .mw-floating-btn).mw-pos-bottom_center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

/* shared position classes used by social-proof too */
.mw-pos-bottom_right {
    bottom: 24px;
    right: 24px;
}

.mw-pos-bottom_left {
    bottom: 24px;
    left: 24px;
}

.mw-pos-bottom_center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.mw-fb-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--mw-bg, #0d6efd);
    color: var(--mw-ic, #fff);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    transition: transform .2s, box-shadow .2s;
    user-select: none;
}

.mw-floating-btn:hover .mw-fb-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}

.mw-fb-label {
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--mw-bg, #0d6efd);
    color: var(--mw-ic, #fff);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}

.mw-floating-btn:hover .mw-fb-label {
    opacity: 1;
    transform: scale(1);
}

.mw-fb-icon i,
.mw-fb-icon svg {
    font-size: inherit;
    color: inherit;
    line-height: 1;
    width: 30px;
    height: 30px;
}

.mw-fb-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

/* animations */
.mw-anim-pulse .mw-fb-icon {
    animation: mw-pulse 2s infinite;
}

.mw-anim-bounce .mw-fb-icon {
    animation: mw-bounce 1.2s infinite;
}

@keyframes mw-pulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, .2), 0 0 0 0 var(--mw-bg, .4);
    }

    70% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, .2), 0 0 0 12px rgba(0, 0, 0, 0);
    }
}

@keyframes mw-bounce {

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

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* -- Sticky Bar -- */
.mw-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9980;
    background: var(--mw-bar-bg, #0d6efd);
    color: var(--mw-bar-txt, #fff);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    transition: transform .3s;
}

/* top bar: in document flow so it never overlaps fixed nav */
.mw-bar-top {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
}

.mw-bar-top.mw-bar-hidden {
    display: none;
}

.mw-bar-bottom {
    bottom: 0;
}

.mw-bar-hidden {
    transform: translateY(-110%);
}

.mw-bar-bottom.mw-bar-hidden {
    transform: translateY(110%);
}

.mw-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.mw-bar-cta {
    padding: 6px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    background: var(--mw-cta-bg, #fff);
    color: var(--mw-cta-txt, #0d6efd);
    transition: opacity .2s;
}

.mw-bar-cta:hover {
    opacity: .85;
}

.mw-bar-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: .7;
    flex-shrink: 0;
}

.mw-bar-close:hover {
    opacity: 1;
}

.mw-countdown {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
    font-size: 1.05em;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 3px 10px;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    animation: mw-countdown-pulse 1s ease-in-out infinite alternate;
}

@keyframes mw-countdown-pulse {
    from {
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    }

    to {
        text-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
    }
}

/* push_content support */
body.mw-push-top {
    padding-top: var(--mw-bar-h, 44px);
}

body.mw-push-bottom {
    padding-bottom: var(--mw-bar-h, 44px);
}

/* -- Social Proof -- */
.mw-social-proof {
    position: fixed;
    z-index: 9970;
    max-width: 300px;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .13), 0 2px 6px rgba(0, 0, 0, .06);
    overflow: hidden;
    pointer-events: auto;
    transition: opacity .45s cubic-bezier(.4, 0, .2, 1), transform .45s cubic-bezier(.4, 0, .2, 1);
}

.mw-social-proof::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.mw-pos-bottom_left {
    bottom: 24px;
    left: 24px;
}

.mw-pos-bottom_right {
    bottom: 24px;
    right: 24px;
}

.mw-pos-bottom_center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.mw-sp-hidden {
    opacity: 0;
    transform: translateY(20px) scale(.97);
    pointer-events: none;
}

.mw-sp-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mw-sp-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 14px;
}

.mw-sp-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, .35);
}

.mw-sp-body {
    flex: 1;
    min-width: 0;
}

.mw-sp-name {
    font-weight: 700;
    font-size: 13px;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-sp-action {
    font-size: 12px;
    color: #374151;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

.mw-sp-action::before {
    content: '';
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-4.5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

.mw-sp-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mw-sp-time::before {
    content: '';
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 14'/%3E%3C/svg%3E") center/contain no-repeat;
}


/* Give form title room below the close button */
.fb-popup-body {
    padding-top: 1.5rem !important;
}

.fb-form-container .fb-form-header {
    margin-bottom: 10px;
}

/* ---- Form popup modal (used when form is not already on the page) ---- */
.mw-form-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mw-form-modal-overlay.mw-form-modal-open {
    display: flex;
}

.mw-form-modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mw-form-modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 10px 0;
    flex-shrink: 0;
}

.mw-form-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .15s, color .15s;
}

.mw-form-modal-close:hover {
    color: #111;
    background: rgba(0, 0, 0, .07);
}

.mw-form-modal-iframe {
    border: none;
    width: 100%;
    min-height: 200px;
    flex: 1;
    display: block;
}

/* Responsive */
@media (max-width: 767px) {

    .mw-floating-group.mw-hide-mobile,
    .mw-floating-btn.mw-hide-mobile,
    .mw-sticky-bar.mw-hide-mobile,
    .mw-social-proof.mw-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {

    .mw-floating-group.mw-hide-desktop,
    .mw-floating-btn.mw-hide-desktop,
    .mw-sticky-bar.mw-hide-desktop,
    .mw-social-proof.mw-hide-desktop {
        display: none !important;
    }
}

/* CSS patches for BbFormBuilder alerts */
.fb-form-message.show {
    display: block !important;
}

.fb-form-message-success {
    background-color: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    padding: 1rem 1.25rem !important;
    border-radius: var(--fb-radius, 8px) !important;
    margin-bottom: 1.5rem !important;
    font-weight: 500 !important;
}

.fb-form-message-error {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    padding: 1rem 1.25rem !important;
    border-radius: var(--fb-radius, 8px) !important;
    margin-bottom: 1.5rem !important;
    font-weight: 500 !important;
}

/* Force show trigger buttons for embedded and content forms
   Note: [data-popup-target] raises specificity to 30 to override the
   global "display:none !important" (specificity 20) injected by PHP */
.fb-popup-trigger-btn.fb-embedded-trigger[data-popup-target],
.ck-content .fb-popup-trigger-btn[data-popup-target],
.tp-postbox-details-content .fb-popup-trigger-btn[data-popup-target],
.content-page .fb-popup-trigger-btn[data-popup-target],
.post-content .fb-popup-trigger-btn[data-popup-target],
.entry-content .fb-popup-trigger-btn[data-popup-target],
.page-content .fb-popup-trigger-btn[data-popup-target],
article .fb-popup-trigger-btn[data-popup-target] {
    display: inline-flex !important;
}

/* ============================================================
   VIDEO BUBBLE CSS STYLES
   ============================================================ */
.mw-video-bubble-container {
    position: fixed;
    z-index: 9990;
}

.mw-video-bubble-container.mw-pos-bottom_right {
    bottom: var(--mw-vb-margin-bottom, 24px);
    right: 24px;
}

.mw-video-bubble-container.mw-pos-bottom_left {
    bottom: var(--mw-vb-margin-bottom, 24px);
    left: 24px;
}

.mw-video-bubble-container.mw-pos-bottom_center {
    bottom: var(--mw-vb-margin-bottom, 24px);
    left: 50%;
    transform: translateX(-50%);
}

.mw-video-bubble-container.mw-pos-top_right {
    top: var(--mw-vb-margin-top, 24px);
    right: 24px;
}

.mw-video-bubble-container.mw-pos-top_left {
    top: var(--mw-vb-margin-top, 24px);
    left: 24px;
}

.mw-video-bubble-container.mw-pos-top_center {
    top: var(--mw-vb-margin-top, 24px);
    left: 50%;
    transform: translateX(-50%);
}

.mw-vb-bubble-wrapper {
    position: relative;
    cursor: pointer;
}

.mw-vb-bubble {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid var(--mw-vb-border, #6366f1);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mw-vb-bubble:hover {
    transform: scale(1.08);
}

.mw-vb-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mw-vb-play-icon {
    position: absolute;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    animation: mw-vb-play-pulse 2s infinite;
}

.mw-vb-play-icon svg {
    width: 12px;
    height: 12px;
    margin-left: 2px;
}

@keyframes mw-vb-play-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.18);
        box-shadow: 0 2px 14px rgba(99, 102, 241, 0.4);
    }
}

.mw-vb-welcome {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 8px 14px 8px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    z-index: 5;
    pointer-events: auto;
    display: flex;
    align-items: center;
    animation: mw-vb-welcome-fade 0.5s ease-out;
}

@keyframes mw-vb-welcome-fade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mw-pos-bottom_right .mw-vb-welcome,
.mw-pos-top_right .mw-vb-welcome {
    right: 88px;
    bottom: 18px;
}

.mw-pos-bottom_left .mw-vb-welcome,
.mw-pos-top_left .mw-vb-welcome,
.mw-pos-bottom_center .mw-vb-welcome,
.mw-pos-top_center .mw-vb-welcome {
    left: 88px;
    bottom: 18px;
}

.mw-vb-welcome-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
    line-height: 1;
    padding: 0;
}

.mw-vb-welcome-close:hover {
    color: #4b5563;
}

/* Expanded Popup - Vertical TikTok Style */
.mw-vb-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.mw-vb-popup.mw-hidden {
    display: none !important;
}

.mw-vb-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.mw-vb-popup-content {
    position: relative;
    width: 480px;
    max-width: 95vw;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mw-vb-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.mw-vb-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.mw-vb-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.mw-vb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mw-vb-info-overlay {
    position: relative;
    padding: 16px 20px;
    background: #fff;
    color: #1f2937;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mw-vb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.mw-vb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mw-vb-meta {
    flex: 1;
    min-width: 0;
}

.mw-vb-title {
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-vb-subtitle {
    font-size: 12px;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-vb-cta-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.mw-vb-cta-btn {
    width: 100%;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: var(--mw-vb-cta-bg, #6366f1);
    color: var(--mw-vb-cta-txt, #fff);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.mw-vb-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
}

.mw-vb-cta-btn:active {
    transform: translateY(0);
}

.mw-vb-mute-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    transition: background 0.2s;
    pointer-events: auto;
}

.mw-vb-mute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.mw-vb-mute-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
}

.mw-vb-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    z-index: 5;
    animation: mw-zoom-in 0.2s ease-out;
}

.mw-vb-play-overlay svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

@keyframes mw-zoom-in {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.mw-vb-player-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.mw-vb-iframe-placeholder {
    width: 100% !important;
    height: 100% !important;
}

.mw-vb-iframe-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    background: transparent;
    cursor: pointer;
}

.mw-video-bubble-container.mw-vb-vertical .mw-vb-popup-content {
    width: 360px;
    max-width: 90vw;
}

.mw-video-bubble-container.mw-vb-vertical .mw-vb-player-container {
    aspect-ratio: 9 / 16;
}

@media (max-width: 576px) {
    .mw-video-bubble-container.mw-vb-vertical .mw-vb-popup-content {
        width: 280px;
    }
}

.mw-hidden {
    display: none !important;
}

/* ============================================================
   MOBILE GROUPING FOR FLOATING BUTTONS
============================================================ */

/* By default, hide toggle button on desktop */
.mw-floating-toggle {
    display: none;
}

/* On mobile, or when forced in preview */
@media (max-width: 767px) {
    .mw-floating-group.mw-mobile-grouped {
        gap: 0;
    }
    
    .mw-floating-group.mw-mobile-grouped .mw-floating-toggle {
        display: flex;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 22px;
        background: var(--mw-bg, #0d6efd);
        color: var(--mw-ic, #fff);
        box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
        user-select: none;
        position: relative;
        z-index: 9995;
    }
    
    .mw-floating-group.mw-mobile-grouped .mw-floating-toggle:hover {
        transform: scale(1.05);
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-expanded .mw-floating-toggle {
        transform: rotate(135deg);
    }
    
    .mw-floating-toggle .mw-fb-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        box-shadow: none !important;
        background: none !important;
        border: none !important;
    }
    .mw-floating-toggle .mw-fb-icon i,
    .mw-floating-toggle .mw-fb-icon svg {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    /* ----- style: slide_up ----- */
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up .mw-fb-buttons-wrapper {
        position: absolute;
        bottom: 66px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: max-content;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up.mw-pos-bottom_right .mw-fb-buttons-wrapper {
        right: 0;
        align-items: flex-end;
    }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up.mw-pos-bottom_left .mw-fb-buttons-wrapper {
        left: 0;
        align-items: flex-start;
    }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up.mw-pos-bottom_center .mw-fb-buttons-wrapper {
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up .mw-floating-btn {
        opacity: 0;
        transform: translateY(15px) scale(0.9);
        transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.25s ease;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up.mw-expanded .mw-fb-buttons-wrapper {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn:nth-last-child(1) { transition-delay: 0.02s; }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn:nth-last-child(2) { transition-delay: 0.07s; }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn:nth-last-child(3) { transition-delay: 0.12s; }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn:nth-last-child(4) { transition-delay: 0.17s; }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn:nth-last-child(5) { transition-delay: 0.22s; }
    
    /* ----- style: radial ----- */
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial {
        width: 56px;
        height: 56px;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial .mw-fb-buttons-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-expanded .mw-fb-buttons-wrapper {
        pointer-events: auto;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial .mw-floating-btn {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0 !important;
        opacity: 0;
        pointer-events: none;
        transform: translate(0, 0) scale(0.5);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
        z-index: 9991;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-pos-bottom_center .mw-floating-btn {
        left: 50%;
        transform: translate(-50%, 0) scale(0.5);
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-expanded .mw-floating-btn {
        opacity: 1;
        pointer-events: auto;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-expanded.mw-pos-bottom_right .mw-floating-btn {
        transform: translate(var(--radial-x, 0px), var(--radial-y, 0px)) scale(1);
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-expanded.mw-pos-bottom_left .mw-floating-btn {
        transform: translate(var(--radial-x, 0px), var(--radial-y, 0px)) scale(1);
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-expanded.mw-pos-bottom_center .mw-floating-btn {
        transform: translate(calc(-50% + var(--radial-x, 0px)), var(--radial-y, 0px)) scale(1);
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-expanded .mw-floating-btn:nth-child(1) { transition-delay: 0.02s; }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-expanded .mw-floating-btn:nth-child(2) { transition-delay: 0.07s; }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-expanded .mw-floating-btn:nth-child(3) { transition-delay: 0.12s; }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-expanded .mw-floating-btn:nth-child(4) { transition-delay: 0.17s; }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-radial.mw-expanded .mw-floating-btn:nth-child(5) { transition-delay: 0.22s; }

    /* ----- style: fade_in ----- */
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-fade_in .mw-fb-buttons-wrapper {
        position: absolute;
        bottom: 70px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 16px;
        padding: 16px;
        width: 250px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(15px) scale(0.95);
        transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s;
        z-index: 9992;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-fade_in.mw-pos-bottom_right .mw-fb-buttons-wrapper {
        right: 0;
    }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-fade_in.mw-pos-bottom_left .mw-fb-buttons-wrapper {
        left: 0;
    }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-fade_in.mw-pos-bottom_center .mw-fb-buttons-wrapper {
        left: 50%;
        transform: translateX(-50%) translateY(15px) scale(0.95);
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-fade_in.mw-expanded .mw-fb-buttons-wrapper {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-fade_in.mw-expanded.mw-pos-bottom_center .mw-fb-buttons-wrapper {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-fade_in .mw-floating-btn {
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 6px;
        margin: 0 !important;
        padding: 8px 4px;
        background: transparent !important;
        box-shadow: none !important;
        width: 100%;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-fade_in .mw-floating-btn .mw-fb-label {
        opacity: 1 !important;
        transform: scale(1) !important;
        position: static !important;
        padding: 0 !important;
        background: none !important;
        color: #1f2937 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        pointer-events: auto !important;
        width: 100%;
        white-space: normal !important;
        text-align: center;
    }
    
    .mw-floating-group.mw-mobile-grouped.mw-mobile-style-fade_in .mw-floating-btn .mw-fb-icon {
        width: 48px;
        height: 48px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }
}

/* ----- Force Mobile Layout in Admin Preview ----- */
.mw-floating-group.mw-mobile-grouped.mw-force-mobile {
    gap: 0;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile .mw-floating-toggle {
    display: flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    background: var(--mw-bg, #0d6efd);
    color: var(--mw-ic, #fff);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
    user-select: none;
    position: relative;
    z-index: 9995;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile .mw-floating-toggle:hover {
    transform: scale(1.05);
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-expanded .mw-floating-toggle {
    transform: rotate(135deg);
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile .mw-floating-toggle .mw-fb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile .mw-floating-toggle .mw-fb-icon i,
.mw-floating-group.mw-mobile-grouped.mw-force-mobile .mw-floating-toggle .mw-fb-icon svg {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Force slide_up preview */
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up .mw-fb-buttons-wrapper {
    position: absolute;
    bottom: 66px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up.mw-pos-bottom_right .mw-fb-buttons-wrapper {
    right: 0;
    align-items: flex-end;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up.mw-pos-bottom_left .mw-fb-buttons-wrapper {
    left: 0;
    align-items: flex-start;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up.mw-pos-bottom_center .mw-fb-buttons-wrapper {
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up .mw-floating-btn {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.25s ease;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up.mw-expanded .mw-fb-buttons-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn:nth-last-child(1) { transition-delay: 0.02s; }
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn:nth-last-child(2) { transition-delay: 0.07s; }
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn:nth-last-child(3) { transition-delay: 0.12s; }
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn:nth-last-child(4) { transition-delay: 0.17s; }
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-slide_up.mw-expanded .mw-floating-btn:nth-last-child(5) { transition-delay: 0.22s; }

/* Force radial preview */
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-radial {
    width: 56px;
    height: 56px;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-radial .mw-fb-buttons-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-radial.mw-expanded .mw-fb-buttons-wrapper {
    pointer-events: auto;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-radial .mw-floating-btn {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
    transform: translate(0, 0) scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    z-index: 9991;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-radial.mw-pos-bottom_center .mw-floating-btn {
    left: 50%;
    transform: translate(-50%, 0) scale(0.5);
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-radial.mw-expanded .mw-floating-btn {
    opacity: 1;
    pointer-events: auto;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-expanded.mw-pos-bottom_right .mw-floating-btn {
    transform: translate(var(--radial-x, 0px), var(--radial-y, 0px)) scale(1);
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-expanded.mw-pos-bottom_left .mw-floating-btn {
    transform: translate(var(--radial-x, 0px), var(--radial-y, 0px)) scale(1);
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-expanded.mw-pos-bottom_center .mw-floating-btn {
    transform: translate(calc(-50% + var(--radial-x, 0px)), var(--radial-y, 0px)) scale(1);
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-expanded .mw-floating-btn:nth-child(1) { transition-delay: 0.02s; }
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-expanded .mw-floating-btn:nth-child(2) { transition-delay: 0.07s; }
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-expanded .mw-floating-btn:nth-child(3) { transition-delay: 0.12s; }
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-expanded .mw-floating-btn:nth-child(4) { transition-delay: 0.17s; }
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-expanded .mw-floating-btn:nth-child(5) { transition-delay: 0.22s; }

/* Force fade_in preview */
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-fade_in .mw-fb-buttons-wrapper {
    position: absolute;
    bottom: 70px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 16px;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s;
    z-index: 9992;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-fade_in.mw-pos-bottom_right .mw-fb-buttons-wrapper {
    right: 0;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-fade_in.mw-pos-bottom_left .mw-fb-buttons-wrapper {
    left: 0;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-fade_in.mw-pos-bottom_center .mw-fb-buttons-wrapper {
    left: 50%;
    transform: translateX(-50%) translateY(15px) scale(0.95);
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-fade_in.mw-expanded .mw-fb-buttons-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-fade_in.mw-expanded.mw-pos-bottom_center .mw-fb-buttons-wrapper {
    transform: translateX(-50%) translateY(0) scale(1);
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-fade_in .mw-floating-btn {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 6px;
    margin: 0 !important;
    padding: 8px 4px;
    background: transparent !important;
    box-shadow: none !important;
    width: 100%;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-fade_in .mw-floating-btn .mw-fb-label {
    opacity: 1 !important;
    transform: scale(1) !important;
    position: static !important;
    padding: 0 !important;
    background: none !important;
    color: #1f2937 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    pointer-events: auto !important;
    width: 100%;
    white-space: normal !important;
    text-align: center;
}
.mw-floating-group.mw-mobile-grouped.mw-force-mobile.mw-mobile-style-fade_in .mw-floating-btn .mw-fb-icon {
    width: 48px;
    height: 48px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Hide labels in radial style on mobile/preview */
.mw-mobile-style-radial .mw-fb-label {
    display: none !important;
}