.is-async-loading {
    position: relative;
}

.is-async-loading > :not(.async-loader) {
    opacity: .4;
    filter: grayscale(.4);
    pointer-events: none;
    transition: opacity .2s ease, filter .2s ease;
}

.async-loader {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(253, 249, 246, .55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
}

.async-loader.is-visible {
    opacity: 1;
}

.async-loader-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    transform: translateY(5px) scale(.97);
    opacity: 0;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}

.async-loader.is-visible .async-loader-stack {
    transform: none;
    opacity: 1;
}

.async-loader-badge {
    position: relative;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
}

.async-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 90deg,
        rgba(184, 146, 90, 0) 0deg,
        rgba(184, 146, 90, .15) 170deg,
        #D4B483 275deg,
        #B8925A 330deg,
        rgba(184, 146, 90, 0) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    animation: async-loader-spin 1.05s linear infinite;
    will-change: transform;
}

.async-loader-mark {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(184, 146, 90, .28);
    box-shadow: 0 10px 24px -12px rgba(184, 146, 90, .8), inset 0 0 0 4px #FDF9F6;
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #B8925A;
}

.async-loader-mark img {
    width: 64%;
    height: 64%;
    object-fit: contain;
}

.async-loader-text {
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #8A6A3C;
}

.is-dimmed {
    opacity: .5;
    filter: grayscale(.35);
    transition: opacity .2s ease, filter .2s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .async-loader-ring { animation-duration: 2.6s; }
    .async-loader-stack { transition-duration: .01ms; }
}
