/* Floating chat icons. Scoped to the plugin to avoid theme/plugin collisions. */
.oj-fci.fixed-icons {
    position: fixed;
    top: auto;
    right: auto;
    bottom: var(--oj-fci-desktop-offset, 64px);
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    text-align: center;
    z-index: 9999;
}

.oj-fci.fixed-icons.oj-fci--desktop-left {
    right: auto;
    left: 10px;
}

.oj-fci.fixed-icons.oj-fci--desktop-right {
    right: 10px;
    left: auto;
}

.oj-fci.fixed-icons.oj-fci--desktop-top {
    top: var(--oj-fci-desktop-offset, 64px);
    bottom: auto;
}

.oj-fci.fixed-icons.oj-fci--desktop-bottom {
    top: auto;
    bottom: var(--oj-fci-desktop-offset, 64px);
}

.oj-fci.fixed-icons .oj-fci__item {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.oj-fci.fixed-icons .oj-fci__link {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.55);
    line-height: 0;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.oj-fci.fixed-icons .oj-fci__link:hover,
.oj-fci.fixed-icons .oj-fci__link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.45);
}

.oj-fci.fixed-icons .oj-fci__link:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.oj-fci.fixed-icons .oj-fci__link > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.oj-fci.fixed-icons .oj-mobile-show {
    display: none !important;
}

.oj-fci.fixed-icons .oj-desktop-show {
    display: block !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .oj-fci.fixed-icons {
        top: auto;
        right: auto;
        bottom: var(--oj-fci-tablet-offset, 64px);
        left: 10px;
    }

    .oj-fci.fixed-icons.oj-fci--tablet-left {
        right: auto;
        left: 10px;
    }

    .oj-fci.fixed-icons.oj-fci--tablet-right {
        right: 10px;
        left: auto;
    }

    .oj-fci.fixed-icons.oj-fci--tablet-top {
        top: var(--oj-fci-tablet-offset, 64px);
        bottom: auto;
    }

    .oj-fci.fixed-icons.oj-fci--tablet-bottom {
        top: auto;
        bottom: var(--oj-fci-tablet-offset, 64px);
    }
}

@media (max-width: 768px) {
    .oj-fci.fixed-icons {
        top: auto;
        right: 8px;
        bottom: calc(var(--oj-fci-mobile-offset, 81px) + env(safe-area-inset-bottom, 0px));
        left: auto;
        gap: 8px;
    }

    .oj-fci.fixed-icons.oj-fci--mobile-left {
        right: auto;
        left: 8px;
    }

    .oj-fci.fixed-icons.oj-fci--mobile-right {
        right: 8px;
        left: auto;
    }

    .oj-fci.fixed-icons.oj-fci--mobile-top {
        top: var(--oj-fci-mobile-offset, 81px);
        bottom: auto;
    }

    .oj-fci.fixed-icons.oj-fci--mobile-bottom {
        top: auto;
        bottom: calc(var(--oj-fci-mobile-offset, 81px) + env(safe-area-inset-bottom, 0px));
    }

    .oj-fci.fixed-icons .oj-fci__link {
        width: 42px;
        height: 42px;
    }

    .oj-fci.fixed-icons .oj-mobile-show {
        display: block !important;
    }

    .oj-fci.fixed-icons .oj-desktop-show {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oj-fci.fixed-icons .oj-fci__link {
        transition: none;
    }
}
