.ombox-floating-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2, 8px);
    touch-action: none;
}

.ombox-floating-actions p {
    margin: 0;
    color: var(--color-text-muted, #64748b);
    font-size: var(--font-size-sm, 13px);
}

.ombox-floating-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(0, 135, 247, .58);
    border-radius: 50%;
    color: var(--color-white, #fff);
    background: var(--brand-color, var(--color-primary, #0087f7));
    box-shadow: 0 14px 34px rgba(0, 135, 247, .28), inset 0 0 0 1px rgba(255, 255, 255, .28);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.ombox-floating-actions.is-default .ombox-floating-submit {
    border-color: var(--border-color, #d9d9d9);
    color: var(--text-primary, #1f1f1f);
    background: var(--color-white, #fff);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.ombox-floating-actions.is-default .ombox-floating-submit:hover,
.ombox-floating-actions.is-default .ombox-floating-submit:focus {
    color: var(--primary-color, #1677ff);
    background: var(--color-white, #fff);
}

.ombox-floating-actions.is-square .ombox-floating-submit {
    width: auto;
    min-width: 56px;
    padding: 0 16px;
    border-radius: var(--radius-md, 8px);
}

.ombox-floating-actions.is-square .ombox-floating-label {
    position: static;
    width: auto;
    height: auto;
    margin-left: 8px;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
}

.ombox-floating-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid var(--color-white, #fff);
    border-radius: 999px;
    color: #fff;
    background: #ff4d4f;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.ombox-floating-submit::before,
.ombox-floating-submit::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(0, 135, 247, .36);
    border-radius: 50%;
    pointer-events: none;
}

.ombox-floating-submit::after {
    inset: -15px;
    border-color: rgba(0, 135, 247, .18);
    animation: ombox-floating-ripple 2.4s ease-out infinite;
}

.ombox-floating-submit:hover,
.ombox-floating-submit:focus {
    color: var(--color-white, #fff);
    background: #0074d4;
    box-shadow: 0 18px 42px rgba(0, 135, 247, .34), inset 0 0 0 1px rgba(255, 255, 255, .36);
    text-decoration: none;
    transform: translateY(-2px);
    outline: none;
}

.ombox-floating-actions.is-dragging .ombox-floating-submit {
    cursor: grabbing;
    transform: none;
}

.ombox-floating-actions.is-draggable .ombox-floating-submit {
    cursor: grab;
}

.ombox-floating-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes ombox-floating-ripple {
    0% {
        opacity: .72;
        transform: scale(.86);
    }

    72% {
        opacity: .2;
        transform: scale(1.08);
    }

    100% {
        opacity: .72;
        transform: scale(.86);
    }
}

.ombox-edge-float {
    position: fixed;
    z-index: 1058;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ombox-edge-float-right {
    right: 0;
    transform: translateY(-50%);
}

.ombox-edge-float-left {
    left: 0;
    transform: translateY(-50%);
    flex-direction: row-reverse;
}

.ombox-edge-float-trigger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    min-height: 112px;
    padding: 10px 7px;
    border: 1px solid rgba(0, 135, 247, .28);
    color: var(--color-white, #fff);
    background: var(--brand-color, var(--color-primary, #0087f7));
    box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
    font-size: var(--font-size-xs, 12px);
    font-weight: 700;
    line-height: 1.35;
}

.ombox-edge-float-right .ombox-edge-float-trigger {
    border-right: 0;
    border-radius: 10px 0 0 10px;
}

.ombox-edge-float-left .ombox-edge-float-trigger {
    border-left: 0;
    border-radius: 0 10px 10px 0;
}

.ombox-edge-float-trigger span {
    writing-mode: vertical-rl;
    letter-spacing: 0;
}

.ombox-edge-float-trigger:hover,
.ombox-edge-float-trigger:focus {
    background: #0074d4;
    outline: none;
}

.ombox-edge-float-panel,
.ombox-edge-float-submenu {
    display: none;
    min-width: 186px;
    padding: 8px;
    border: 1px solid var(--border-color, #d8dee8);
    border-radius: 8px;
    background: var(--color-white, #fff);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .2);
}

.ombox-edge-float.is-open .ombox-edge-float-panel,
.ombox-edge-float:hover .ombox-edge-float-panel,
.ombox-edge-float:focus-within .ombox-edge-float-panel {
    display: grid;
    gap: 4px;
}

.ombox-edge-float-branch {
    position: relative;
}

.ombox-edge-float-branch:hover > .ombox-edge-float-submenu,
.ombox-edge-float-branch:focus-within > .ombox-edge-float-submenu,
.ombox-edge-float-branch.is-child-open > .ombox-edge-float-submenu {
    position: absolute;
    top: 0;
    display: grid;
    gap: 4px;
}

.ombox-edge-float-right .ombox-edge-float-submenu {
    right: calc(100% + 8px);
}

.ombox-edge-float-left .ombox-edge-float-submenu {
    left: calc(100% + 8px);
}

.ombox-edge-float-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    color: var(--text-primary, #1e293b);
    background: transparent;
    font-size: var(--widget-font-size, 14px);
    line-height: var(--widget-line-height, 1.571);
    text-align: left;
    text-decoration: none;
}

.ombox-edge-float-item:hover,
.ombox-edge-float-item:focus {
    color: var(--brand-color, #0087f7);
    background: rgba(0, 135, 247, .08);
    outline: none;
    text-decoration: none;
}

.ombox-edge-float-more {
    color: var(--text-tertiary, #94a3b8);
    font-size: var(--widget-small-font-size, 12px);
}

.ombox-edge-float-divider {
    margin: 5px 2px;
    border: 0;
    border-top: 1px solid var(--border-color, #d8dee8);
}

body.eye-protection .ombox-floating-submit,
body.eye-protection .ombox-edge-float-trigger {
    color: #4a3c28;
    border-color: #d9cbb8;
    background: #d4a574;
    box-shadow: 0 14px 34px rgba(93, 77, 52, .22), inset 0 0 0 1px rgba(250, 248, 243, .42);
}

body.eye-protection .ombox-floating-submit::before {
    border-color: rgba(212, 165, 116, .42);
}

body.eye-protection .ombox-floating-submit::after {
    border-color: rgba(212, 165, 116, .22);
}

body.eye-protection .ombox-floating-submit:hover,
body.eye-protection .ombox-floating-submit:focus,
body.eye-protection .ombox-edge-float-trigger:hover,
body.eye-protection .ombox-edge-float-trigger:focus {
    color: #4a3c28;
    background: #c9965b;
}

body.eye-protection .ombox-edge-float-panel,
body.eye-protection .ombox-edge-float-submenu {
    border-color: #d9cbb8;
    background: #faf8f3;
    box-shadow: 0 18px 48px rgba(93, 77, 52, .18);
}

body.eye-protection .ombox-edge-float-item {
    color: #4a3c28;
}

body.eye-protection .ombox-edge-float-item:hover,
body.eye-protection .ombox-edge-float-item:focus {
    color: #4a3c28;
    background: #f5f1e8;
}

body.eye-protection .ombox-edge-float-divider {
    border-color: #d9cbb8;
}

@media (max-width: 768px) {
    .ombox-floating-actions {
        display: none;
    }

    .ombox-floating-actions.is-mobile-visible {
        display: flex;
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .ombox-floating-submit {
        width: 52px;
        height: 52px;
    }

    .ombox-floating-actions.is-square .ombox-floating-submit {
        min-width: 52px;
        padding-inline: 14px;
    }

    .ombox-edge-float-trigger {
        width: 38px;
        min-height: 96px;
    }

    .ombox-edge-float-panel,
    .ombox-edge-float-submenu {
        min-width: 172px;
    }
}
