:root {
    --biz-cursor-primary: #2563eb;
    --biz-cursor-secondary: #dbeafe;
    --biz-cursor-tertiary: #14b8a6;
}

html[data-biz-cursor="ready"] body,
html[data-biz-cursor="ready"] body a,
html[data-biz-cursor="ready"] body button,
html[data-biz-cursor="ready"] body [role="button"],
html[data-biz-cursor="ready"] body label,
html[data-biz-cursor="ready"] body summary,
html[data-biz-cursor="ready"] body .btn,
html[data-biz-cursor="ready"] body input[type="button"],
html[data-biz-cursor="ready"] body input[type="submit"],
html[data-biz-cursor="ready"] body input[type="reset"] {
    cursor: none !important;
}

html[data-biz-cursor="ready"] body input:not([type="button"]):not([type="submit"]):not([type="reset"]),
html[data-biz-cursor="ready"] body textarea,
html[data-biz-cursor="ready"] body select,
html[data-biz-cursor="ready"] body [contenteditable="true"],
html[data-biz-cursor="ready"][data-biz-cursor-mode="text"] body {
    cursor: auto !important;
}

.biz-cursor-layer {
    --biz-cursor-primary: #2563eb;
    --biz-cursor-secondary: #dbeafe;
    --biz-cursor-tertiary: #14b8a6;
    --biz-cursor-scale: 1;
    --biz-cursor-flare-rotation: 0deg;
    --biz-cursor-flare-scale: .15;
    inset: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    transition: opacity .16s ease;
    z-index: 2147483000;
}

.biz-cursor-layer.is-visible {
    opacity: 1;
}

.biz-cursor-layer.is-text-mode {
    opacity: 0;
}

.biz-cursor-pointer,
.biz-cursor-particle,
.biz-cursor-ripple {
    left: 0;
    position: absolute;
    top: 0;
    will-change: transform, opacity;
}

.biz-cursor-pointer {
    height: 48px;
    width: 48px;
}

.biz-cursor-ring,
.biz-cursor-core,
.biz-cursor-flare,
.biz-cursor-orbit,
.biz-cursor-orbit::before,
.biz-cursor-orbit::after {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.biz-cursor-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.7px solid color-mix(in srgb, var(--biz-cursor-primary) 58%, rgba(255, 255, 255, .82));
    box-shadow:
        0 0 0 8px color-mix(in srgb, var(--biz-cursor-secondary) 66%, transparent),
        0 0 28px color-mix(in srgb, var(--biz-cursor-primary) 22%, transparent);
    opacity: .94;
    transition: transform .16s ease, opacity .16s ease, border-radius .16s ease;
}

.biz-cursor-core {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--biz-cursor-primary), var(--biz-cursor-tertiary));
    box-shadow:
        0 8px 18px color-mix(in srgb, var(--biz-cursor-primary) 28%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, .45);
    overflow: visible;
    transition: transform .16s ease, border-radius .16s ease, opacity .16s ease, background .16s ease, box-shadow .16s ease;
}

.biz-cursor-core.has-custom-image {
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 0;
    box-shadow: none;
}

.biz-cursor-core::before,
.biz-cursor-core::after {
    content: "";
    position: absolute;
}

.biz-cursor-flare {
    width: 60px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--biz-cursor-tertiary) 82%, white), transparent);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--biz-cursor-flare-rotation)) scaleX(var(--biz-cursor-flare-scale));
    transition: transform .14s ease, opacity .14s ease;
}

.biz-cursor-orbit {
    width: 56px;
    height: 56px;
    opacity: 0;
    transition: opacity .18s ease;
}

.biz-cursor-orbit::before,
.biz-cursor-orbit::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--biz-cursor-tertiary), var(--biz-cursor-secondary));
    box-shadow: 0 0 12px color-mix(in srgb, var(--biz-cursor-primary) 22%, transparent);
}

.biz-cursor-orbit::before {
    animation: biz-cursor-orbit 2.8s linear infinite;
}

.biz-cursor-orbit::after {
    animation: biz-cursor-orbit 2.8s linear infinite reverse;
    animation-delay: -.9s;
}

.biz-cursor-pointer.is-action .biz-cursor-ring {
    transform: translate(-50%, -50%) scale(1.16);
}

.biz-cursor-pointer.is-action .biz-cursor-core {
    filter: saturate(1.08) brightness(1.06);
}

.biz-cursor-pointer.is-action .biz-cursor-flare {
    opacity: .82;
}

.biz-cursor-pointer.is-clicked .biz-cursor-ring {
    animation: biz-cursor-click-ring .42s ease;
}

.biz-cursor-pointer.is-clicked .biz-cursor-core {
    animation: biz-cursor-click-core .42s ease;
}

.biz-cursor-pointer.is-mode-orbit .biz-cursor-orbit {
    opacity: .95;
}

.biz-cursor-pointer.is-mode-scanner .biz-cursor-flare {
    opacity: .86;
}

.biz-cursor-pointer.is-mode-comet .biz-cursor-flare,
.biz-cursor-pointer.is-mode-trail .biz-cursor-flare,
.biz-cursor-pointer.is-mode-spark .biz-cursor-flare,
.biz-cursor-pointer.is-mode-burst .biz-cursor-flare {
    opacity: .78;
}

.biz-cursor-pointer.is-ring-double .biz-cursor-ring {
    box-shadow:
        0 0 0 7px color-mix(in srgb, var(--biz-cursor-secondary) 78%, transparent),
        0 0 0 13px color-mix(in srgb, var(--biz-cursor-primary) 12%, transparent),
        0 0 24px color-mix(in srgb, var(--biz-cursor-primary) 18%, transparent);
}

.biz-cursor-pointer.is-ring-sharp .biz-cursor-ring {
    border-radius: 16px;
}

.biz-cursor-core.is-style-cross {
    width: 24px;
    height: 24px;
    border-radius: 0;
    clip-path: polygon(36% 0, 64% 0, 64% 36%, 100% 36%, 100% 64%, 64% 64%, 64% 100%, 36% 100%, 36% 64%, 0 64%, 0 36%, 36% 36%);
}

.biz-cursor-core.is-style-diamond {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    transform: rotate(45deg);
}

.biz-cursor-core.is-style-capsule {
    width: 28px;
    height: 14px;
    border-radius: 999px;
}

.biz-cursor-core.is-style-square {
    width: 16px;
    height: 16px;
    border-radius: 5px;
}

.biz-cursor-core.is-style-pointer {
    width: 24px;
    height: 24px;
    border-radius: 0;
    clip-path: polygon(10% 0, 92% 38%, 58% 46%, 80% 100%, 54% 100%, 38% 58%, 0 100%);
}

.biz-cursor-core.is-style-bookmark {
    width: 20px;
    height: 26px;
    border-radius: 6px 6px 4px 4px;
    clip-path: polygon(18% 0, 82% 0, 82% 100%, 50% 74%, 18% 100%);
}

.biz-cursor-core.is-style-ribbon {
    width: 26px;
    height: 20px;
    border-radius: 6px;
    clip-path: polygon(0 0, 100% 0, 100% 76%, 78% 100%, 50% 74%, 22% 100%, 0 76%);
}

.biz-cursor-core.is-style-bag {
    width: 22px;
    height: 22px;
    border-radius: 6px 6px 10px 10px;
}

.biz-cursor-core.is-style-bag::before {
    left: 5px;
    right: 5px;
    top: -6px;
    height: 8px;
    border: 2px solid color-mix(in srgb, var(--biz-cursor-primary) 76%, white);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.biz-cursor-core.is-style-halo,
.biz-cursor-core.is-style-ring {
    width: 16px;
    height: 16px;
    background: transparent;
    border: 2px solid color-mix(in srgb, var(--biz-cursor-primary) 72%, white);
    box-shadow:
        0 0 0 6px color-mix(in srgb, var(--biz-cursor-secondary) 54%, transparent),
        0 0 16px color-mix(in srgb, var(--biz-cursor-primary) 16%, transparent);
}

.biz-cursor-core.is-style-star {
    width: 24px;
    height: 24px;
    border-radius: 0;
    clip-path: polygon(50% 0, 61% 34%, 98% 35%, 69% 57%, 79% 92%, 50% 71%, 21% 92%, 31% 57%, 2% 35%, 39% 34%);
}

.biz-cursor-pointer.has-custom-image .biz-cursor-core {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 0;
    clip-path: none;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    box-shadow: none;
    overflow: hidden;
    transform: translate(-50%, -50%);
}

.biz-cursor-pointer.has-custom-image .biz-cursor-core::before,
.biz-cursor-pointer.has-custom-image .biz-cursor-core::after {
    display: none;
}

.biz-cursor-particle {
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, var(--biz-cursor-tertiary), var(--biz-cursor-secondary));
    border-radius: 50%;
    opacity: 0;
}

.biz-cursor-particle.is-shape-line {
    width: 18px;
    height: 3px;
    border-radius: 999px;
}

.biz-cursor-particle.is-shape-diamond,
.biz-cursor-particle.is-shape-square {
    border-radius: 3px;
}

.biz-cursor-particle.is-shape-diamond {
    transform: rotate(45deg);
}

.biz-cursor-particle.is-shape-cross {
    border-radius: 0;
    clip-path: polygon(36% 0, 64% 0, 64% 36%, 100% 36%, 100% 64%, 64% 64%, 64% 100%, 36% 100%, 36% 64%, 0 64%, 0 36%, 36% 36%);
}

.biz-cursor-particle.is-shape-capsule {
    width: 12px;
    height: 6px;
    border-radius: 999px;
}

.biz-cursor-particle.is-shape-spark {
    width: 11px;
    height: 11px;
    clip-path: polygon(50% 0, 61% 34%, 98% 35%, 69% 57%, 79% 92%, 50% 71%, 21% 92%, 31% 57%, 2% 35%, 39% 34%);
}

.biz-cursor-particle.is-shape-star {
    width: 13px;
    height: 13px;
    clip-path: polygon(50% 0, 61% 34%, 98% 35%, 69% 57%, 79% 92%, 50% 71%, 21% 92%, 31% 57%, 2% 35%, 39% 34%);
}

.biz-cursor-ripple {
    width: 12px;
    height: 12px;
    border: 1px solid color-mix(in srgb, var(--biz-cursor-primary) 58%, rgba(255, 255, 255, .74));
    border-radius: 50%;
    box-shadow: 0 0 18px color-mix(in srgb, var(--biz-cursor-primary) 14%, transparent);
    opacity: 0;
}

@keyframes biz-cursor-orbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(24px) scale(.8);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(24px) scale(1);
    }
}

@keyframes biz-cursor-click-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    55% {
        transform: translate(-50%, -50%) scale(1.24);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes biz-cursor-click-core {
    0% {
        transform: scale(1);
    }
    55% {
        transform: scale(.78);
    }
    100% {
        transform: scale(1);
    }
}
