.kid-image-loading-shell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    vertical-align: middle;
}

.kid-image-loading-shell > .kid-pdf-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    margin: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.kid-image-loading-shell > img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity .18s ease;
}

.kid-image-loading-shell.is-loaded > .kid-pdf-spinner {
    display: none;
}

.kid-image-loading-shell.is-loaded > img {
    opacity: 1;
}

.kid-pdf-spinner {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: inherit;
    vertical-align: middle;
}

.kid-pdf-spinner i {
    position: absolute;
    top: 1px;
    left: 8px;
    width: 2px;
    height: 5px;
    border-radius: 3px;
    background: currentColor;
    transform-origin: 1px 8px;
    animation: kidPdfIos 1s linear infinite;
}

.kid-pdf-spinner i:nth-child(1) { transform: rotate(0deg); animation-delay: -.9167s; }
.kid-pdf-spinner i:nth-child(2) { transform: rotate(30deg); animation-delay: -.8333s; }
.kid-pdf-spinner i:nth-child(3) { transform: rotate(60deg); animation-delay: -.75s; }
.kid-pdf-spinner i:nth-child(4) { transform: rotate(90deg); animation-delay: -.6667s; }
.kid-pdf-spinner i:nth-child(5) { transform: rotate(120deg); animation-delay: -.5833s; }
.kid-pdf-spinner i:nth-child(6) { transform: rotate(150deg); animation-delay: -.5s; }
.kid-pdf-spinner i:nth-child(7) { transform: rotate(180deg); animation-delay: -.4167s; }
.kid-pdf-spinner i:nth-child(8) { transform: rotate(210deg); animation-delay: -.3333s; }
.kid-pdf-spinner i:nth-child(9) { transform: rotate(240deg); animation-delay: -.25s; }
.kid-pdf-spinner i:nth-child(10) { transform: rotate(270deg); animation-delay: -.1667s; }
.kid-pdf-spinner i:nth-child(11) { transform: rotate(300deg); animation-delay: -.0833s; }
.kid-pdf-spinner i:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

.kid-system-loader__content {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #6B87B2;
    font-family: 'Anuphan', 'Leelawadee UI', Tahoma, sans-serif;
    text-align: center;
}

.kid-system-loader__content > p,
.kid-system-loader__content > span:not(.kid-pdf-spinner) {
    margin: 0;
    color: #496A9F;
    font: 500 14px/1.5 'Anuphan', 'Leelawadee UI', Tahoma, sans-serif;
    letter-spacing: 0;
}

@keyframes kidPdfIos {
    0% { opacity: 1; }
    100% { opacity: .18; }
}

@media (prefers-reduced-motion: reduce) {
    .kid-pdf-spinner i { animation-duration: 1.8s; }
}
