/**
 * RN Orbit Icons
 *
 * Geometry: .rnoi-stage is a square the size of the icon ring, centred
 * horizontally and pushed down by --rnoi-top, so only its top arc falls inside
 * the clipped .rnoi box. The spinner turns the whole ring; each icon sits on a
 * zero-width "spoke" rotated by --a and is counter-rotated so it stays upright.
 */

/* All content is absolutely positioned, so inside a flex container the
   widget would shrink to zero width — make it fill the row instead. */
.elementor-widget-rn-orbit-icons {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}

.rnoi {
    --rnoi-d: 760px;
    --rnoi-top: 30px;
    --rnoi-gap: 110px;
    --rnoi-dur: 60s;
    --rnoi-fade: 12%;
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.rnoi--fade {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--rnoi-fade), #000 calc(100% - var(--rnoi-fade)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--rnoi-fade), #000 calc(100% - var(--rnoi-fade)), transparent 100%);
}

.rnoi-stage {
    position: absolute;
    left: 50%;
    top: var(--rnoi-top);
    width: var(--rnoi-d);
    height: var(--rnoi-d);
    margin-left: calc(var(--rnoi-d) / -2);
    pointer-events: none;
}

/* ── rings ───────────────────────────────────────────────────────────── */

.rnoi-ring {
    position: absolute;
    inset: calc(var(--i, 0) * var(--rnoi-gap));
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    box-sizing: border-box;
}

/* ── spinning ring of icons ──────────────────────────────────────────── */

.rnoi-spinner {
    position: absolute;
    inset: 0;
    animation: rnoi-spin var(--rnoi-dur) linear infinite;
    will-change: transform;
}

.rnoi-slot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 0;
    height: 50%;
    transform-origin: 50% 100%;
    transform: rotate(var(--a, 0deg));
}

.rnoi-item {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--a, 0deg) * -1));
    pointer-events: auto;
}

.rnoi-upright {
    animation: rnoi-spin var(--rnoi-dur) linear infinite reverse;
}

/* Counter-clockwise: both animations swap direction, so the net rotation of
   each icon is still zero. */
.rnoi--ccw .rnoi-spinner { animation-direction: reverse; }
.rnoi--ccw .rnoi-upright { animation-direction: normal; }

/* "Follow the curve": icons lean with the ring instead of staying upright. */
.rnoi--tilt .rnoi-item { transform: translate(-50%, -50%); }
.rnoi--tilt .rnoi-upright { animation: none; }

.rnoi--pause:hover .rnoi-spinner,
.rnoi--pause:hover .rnoi-upright {
    animation-play-state: paused;
}

@keyframes rnoi-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .rnoi--respect-motion .rnoi-spinner,
    .rnoi--respect-motion .rnoi-upright {
        animation-play-state: paused;
    }
}

/* ── icon box ────────────────────────────────────────────────────────── */

.rnoi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 46px;
    height: 46px;
    font-size: 20px;
    line-height: 1;
    color: #1b1b1b;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    text-decoration: none;
    transition: color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

a.rnoi-icon:hover,
.rnoi-icon:hover {
    transform: scale(1.08);
}

.rnoi-icon i {
    font-size: inherit;
    color: inherit;
}

.rnoi-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.rnoi-icon img {
    display: block;
    width: 1em;
    height: 1em;
    object-fit: contain;
}
