/* Razor validation summaries can contain hidden list items without visible errors. */
.validation.validation-summary-valid {
    display: none;
}

.loading-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 4px;
    overflow: hidden;
    background: #dcebe3;
    border-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    pointer-events: none;
    z-index: 2147483647;
}

.loading-progress__fill {
    width: 100%;
    height: 100%;
    transform: scaleX(var(--loading-progress, 0));
    transform-origin: left;
    background: linear-gradient(90deg, #216c55, #62ad89, #b8dbab);
    transition: transform 650ms cubic-bezier(.2, .7, .3, 1);
    box-shadow: 0 0 14px #62ad8970;
}

.loading-progress__fill::after {
    content: "";
    display: block;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ffffffa0, transparent);
    animation: progress-shimmer 1.4s linear infinite;
}

button.is-loading {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: wait;
    pointer-events: none;
}

button[aria-disabled="true"] {
    cursor: wait;
    pointer-events: none;
}

.button-spinner {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: inherit;
    background: conic-gradient(from 0deg, transparent 5%, currentColor 85%, transparent);
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    animation: button-spin 800ms linear infinite;
}

.loading-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

@keyframes progress-shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(400%); }
}

@media (prefers-reduced-motion: reduce) {
    .button-spinner,
    .loading-progress__fill::after { animation: none; }
    .loading-progress__fill { transition: none; }
}

@media print {
    .loading-progress,
    .loading-announcement { display: none; }
}
