.aismart-loader {
    --aismart-loading-blue: #258dda;
    --aismart-loading-cyan: #4dd2ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    max-width: 100%;
    color: #174f86;
    font: normal 12px/1.5 system-ui, sans-serif;
    text-align: center;
    pointer-events: none;
}
.aismart-loader-orbit {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    box-shadow: 0 0 24px #258dda25;
}
.aismart-loader-orbit::before,
.aismart-loader-orbit::after {
    content: "";
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border: 2px solid #258dda26;
    border-top-color: var(--aismart-loading-blue);
    border-right-color: var(--aismart-loading-cyan);
    border-radius: 50%;
    animation: aismart-loading-orbit 2.8s linear infinite;
}
.aismart-loader-orbit::after {
    inset: 8px;
    border-color: transparent;
    border-bottom-color: #65bdf0;
    animation-direction: reverse;
    animation-duration: 3.6s;
}
.aismart-loader .aismart-loader-logo {
    display: block;
    width: 76px;
    height: 60px;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
    border: 0;
    border-radius: 14px;
    background: white;
    box-shadow: none;
}
.aismart-loader-caption {
    display: block;
    max-width: 100%;
    padding: 0 8px;
    color: #174f86;
    font-size: 11px;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
}
.aismart-loader-artwork-error {
    color: #8b2525;
    font-size: 9px;
}
[data-aismart-loading-mode]::before,
[data-aismart-loading-mode]::after {
    content: none !important;
    animation: none !important;
}
.llms-spinner[data-aismart-loading-mode] {
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    animation: none !important;
    font-style: normal;
}
.llms-spinner[data-aismart-loading-mode="normal"] {
    width: calc(100% - 24px) !important;
    max-width: 320px;
    height: auto !important;
    margin: 0 !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.llms-spinner[data-aismart-loading-mode="compact"] {
    width: 24px !important;
    height: 24px !important;
    margin: -12px 0 0 -12px !important;
}
#llms-quiz-question-wrapper[data-aismart-quiz-loading] {
    min-height: 210px;
}
#llms-quiz-question-wrapper[data-aismart-quiz-loading] > .llms-spinning {
    background: radial-gradient(ellipse at center, #e7f5ff, #f7fbffed);
}
#llms-quiz-question-wrapper[data-aismart-quiz-loading] > .llms-quiz-loading {
    position: relative;
    top: 170px;
    z-index: 3;
    color: #174f86;
    text-align: center;
}
.rg-page-loader[data-aismart-loading-mode="full"] {
    background: radial-gradient(ellipse at 20% 15%, #d9f3ff, transparent 60%),
        radial-gradient(ellipse at 90% 85%, #e5eaff, transparent 60%), #f6faff !important;
}
.rg-page-loader > .aismart-loader,
.blockUI.blockOverlay > .aismart-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(320px, calc(100% - 32px));
    transform: translate(-50%, -50%);
}
.blockUI.blockOverlay > .aismart-loader {
    padding: 16px;
    border-radius: 18px;
    background: #f6faff;
}
.mfp-preloader[data-aismart-loading-mode] {
    width: min(300px, calc(100% - 32px));
    height: auto;
    margin: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0;
}
.mfp-preloader .aismart-loader-caption {
    color: #d3efff;
}
.aismart-loader-compact {
    display: inline-flex;
    width: 24px;
    height: 24px;
    gap: 0;
    vertical-align: middle;
}
.aismart-loader-compact .aismart-loader-orbit {
    width: 24px;
    height: 24px;
    box-shadow: none;
}
.aismart-loader-compact .aismart-loader-orbit::before {
    border-width: 1.5px;
}
.aismart-loader-compact .aismart-loader-orbit::after {
    inset: 3px;
    border-width: 1px;
}
.aismart-loader-compact .aismart-loader-logo {
    width: 15px;
    height: 15px;
    padding: 1px;
    border-radius: 4px;
}
button[data-aismart-loading-mode="compact"] > .aismart-loader,
a[data-aismart-loading-mode="compact"] > .aismart-loader {
    margin-inline-end: 6px;
}
.wpcf7-spinner[data-aismart-loading-mode] {
    background: transparent;
    opacity: 1;
}
@keyframes aismart-loading-orbit {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .aismart-loader-orbit::before,
    .aismart-loader-orbit::after {
        animation: none !important;
    }
}
