.country-page-loader[hidden] {
    display: none !important;
}

.country-page-loader {
    --loader-primary: var(--color-primary, #0659b2);
    --loader-secondary: var(--color-secondary, #ffa500);
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 42%, rgb(255 255 255 / 98%) 0, rgb(246 249 255 / 97%) 38%, rgb(232 240 251 / 96%) 100%);
    color: #18304c;
    font-family: Poppins, "Segoe UI", Arial, sans-serif;
    animation: country-page-loader-appear .35s ease-out both;
}

.country-page-loader::before,
.country-page-loader::after {
    position: absolute;
    width: min(72vw, 34rem);
    aspect-ratio: 1;
    border: 1px solid rgb(6 89 178 / 7%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.country-page-loader::after {
    width: min(54vw, 25rem);
    border-color: rgb(255 165 0 / 12%);
}

.country-page-loader__card {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 24rem);
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem 2.25rem;
    border: 1px solid rgb(255 255 255 / 90%);
    border-radius: 1.5rem;
    background: rgb(255 255 255 / 82%);
    box-shadow: 0 1.5rem 5rem rgb(14 47 85 / 12%), 0 .25rem 1rem rgb(14 47 85 / 5%);
    text-align: center;
    backdrop-filter: blur(16px);
    animation: country-page-loader-card-in .55s cubic-bezier(.2, .8, .2, 1) both;
}

.country-page-loader__orbit {
    position: relative;
    display: grid;
    width: 5.5rem;
    height: 5.5rem;
    place-items: center;
    margin-bottom: 1.5rem;
    border: 2px solid rgb(6 89 178 / 12%);
    border-top-color: var(--loader-primary);
    border-right-color: var(--loader-secondary);
    border-radius: 50%;
    animation: country-page-loader-spin 1.4s cubic-bezier(.55, .1, .45, .9) infinite;
}

.country-page-loader__orbit::before {
    position: absolute;
    inset: .45rem;
    border: 1px dashed rgb(6 89 178 / 22%);
    border-radius: inherit;
    content: "";
}

.country-page-loader__orbit-dot {
    position: absolute;
    top: -.2rem;
    left: 50%;
    width: .65rem;
    height: .65rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--loader-secondary);
    box-shadow: 0 2px 8px rgb(255 165 0 / 45%);
}

.country-page-loader__mark {
    color: var(--loader-primary);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.08em;
    animation: country-page-loader-spin 1.4s cubic-bezier(.55, .1, .45, .9) infinite reverse;
}

.country-page-loader__logo {
    display: block;
    width: 10.5rem;
    max-width: 70%;
    height: 2.7rem;
    margin: 0 auto 1.15rem;
    object-fit: contain;
}

.country-page-loader__message {
    color: #18304c;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.015em;
}

.country-page-loader__caption {
    display: inline-flex;
    min-height: 1.5rem;
    align-items: center;
    margin-top: .35rem;
    color: #74849a;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .01em;
}

.country-page-loader__ellipsis::after {
    display: inline-block;
    width: 1.2em;
    overflow: hidden;
    vertical-align: bottom;
    content: "...";
    animation: country-page-loader-ellipsis 1.2s steps(4, end) infinite;
}

@keyframes country-page-loader-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes country-page-loader-card-in {
    from { opacity: 0; transform: translateY(.75rem) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.async-loading-indicator[hidden] {
    display: none !important;
}

.async-loading-indicator {
    position: fixed;
    z-index: 10001;
    top: 0;
    left: 0;
    width: 100%;
    height: .25rem;
    overflow: hidden;
    background: rgb(6 89 178 / 15%);
}

.async-loading-indicator__bar {
    display: block;
    width: 40%;
    height: 100%;
    background: var(--color-secondary, #FFA500);
    animation: async-loading-indicator-progress 1.2s ease-in-out infinite;
}

.async-loading-indicator__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes country-page-loader-spin {
    to { transform: rotate(1turn); }
}

@keyframes country-page-loader-ellipsis {
    from { width: 0; }
    to { width: 1.2em; }
}

@keyframes async-loading-indicator-progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
    .country-page-loader,
    .country-page-loader__card {
        animation-duration: .01ms;
    }

    .country-page-loader__orbit,
    .country-page-loader__mark,
    .country-page-loader__ellipsis::after {
        animation: none;
    }

    .async-loading-indicator__bar {
        animation-duration: 3s;
    }
}
