/*
 * talkiebot animated composer halo v1.2
 * Shared by the /test/ composer and the WordPress settings preview.
 * Effects are paint-only: no DOM reflow, no pointer capture, no change to input logic.
 */
@property --tbic-fx-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.tbic-fx-target {
    position: relative !important;
    isolation: isolate;
    overflow: visible !important;
}

.tbic-fx-target.tbic-fx-pulse::before,
.tbic-fx-target.tbic-fx-pulse::after,
.tbic-fx-target.tbic-fx-orbit::before,
.tbic-fx-target.tbic-fx-orbit::after,
.tbic-fx-target.tbic-fx-orbit-pulse::before,
.tbic-fx-target.tbic-fx-orbit-pulse::after {
    content: '';
    position: absolute;
    inset: calc(0px - var(--tbic-fx-stroke, 3px) - 3px);
    border-radius: calc(var(--tbic-fx-radius, 21px) + var(--tbic-fx-stroke, 3px) + 3px);
    box-sizing: border-box;
    padding: var(--tbic-fx-stroke, 3px);
    pointer-events: none !important;
    z-index: 2;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation-play-state: running;
}

.tbic-fx-target.tbic-fx-pulse::before,
.tbic-fx-target.tbic-fx-pulse::after {
    background: linear-gradient(115deg,
        var(--tbic-fx-c1, #2a71f3) 0%,
        var(--tbic-fx-c2, #13c9dc) 50%,
        var(--tbic-fx-c3, #9052ff) 100%);
    animation: tbic-fx-breathe var(--tbic-fx-duration, 3200ms) ease-in-out infinite;
}

.tbic-fx-target.tbic-fx-orbit::before,
.tbic-fx-target.tbic-fx-orbit::after,
.tbic-fx-target.tbic-fx-orbit-pulse::before,
.tbic-fx-target.tbic-fx-orbit-pulse::after {
    background: conic-gradient(
        from var(--tbic-fx-angle),
        transparent 0deg,
        var(--tbic-fx-c1, #2a71f3) 44deg,
        var(--tbic-fx-c2, #13c9dc) 91deg,
        var(--tbic-fx-c3, #9052ff) 155deg,
        transparent 225deg,
        transparent 360deg
    );
    animation: tbic-fx-orbit-spin var(--tbic-fx-duration, 3200ms) linear infinite;
}

.tbic-fx-target.tbic-fx-orbit-pulse::before,
.tbic-fx-target.tbic-fx-orbit-pulse::after {
    animation:
        tbic-fx-orbit-spin var(--tbic-fx-duration, 3200ms) linear infinite,
        tbic-fx-breathe var(--tbic-fx-pulse-duration, 3000ms) ease-in-out infinite;
}

.tbic-fx-target.tbic-fx-pulse::before,
.tbic-fx-target.tbic-fx-orbit::before,
.tbic-fx-target.tbic-fx-orbit-pulse::before {
    filter: blur(var(--tbic-fx-blur, 8px));
    opacity: var(--tbic-fx-opacity, .7);
}

.tbic-fx-target.tbic-fx-pulse::after,
.tbic-fx-target.tbic-fx-orbit::after,
.tbic-fx-target.tbic-fx-orbit-pulse::after {
    opacity: calc(var(--tbic-fx-opacity, .7) * .75);
}

/* Optional trigger: only on focus in the real form; preview can demo without focus. */
.tbic-fx-target.tbic-fx-only-focus:not(:focus-within):not(.tbic-fx-demo)::before,
.tbic-fx-target.tbic-fx-only-focus:not(:focus-within):not(.tbic-fx-demo)::after {
    opacity: 0 !important;
    animation-play-state: paused !important;
}

@keyframes tbic-fx-breathe {
    0%, 100% {
        opacity: calc(var(--tbic-fx-opacity, .7) * .16);
        transform: scale(.995);
    }
    50% {
        opacity: var(--tbic-fx-opacity, .7);
        transform: scale(1.016);
    }
}

@keyframes tbic-fx-orbit-spin {
    from { --tbic-fx-angle: 0deg; }
    to { --tbic-fx-angle: 360deg; }
}

/* Never force flashing or rotation for visitors who request less motion. */
@media (prefers-reduced-motion: reduce) {
    .tbic-fx-target.tbic-fx-pulse::before,
    .tbic-fx-target.tbic-fx-pulse::after,
    .tbic-fx-target.tbic-fx-orbit::before,
    .tbic-fx-target.tbic-fx-orbit::after,
    .tbic-fx-target.tbic-fx-orbit-pulse::before,
    .tbic-fx-target.tbic-fx-orbit-pulse::after {
        animation: none !important;
        transform: none !important;
        opacity: calc(var(--tbic-fx-opacity, .7) * .45) !important;
    }
}
