[data-page-progress] {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
}
[data-page-progress]::before {
    content: "";
    display: block;
    width: 35%;
    height: 100%;
    background: var(--accent, #287651);
    animation: page-progress 1s linear infinite;
}
[data-page-feedback] {
    position: fixed;
    z-index: 90;
    right: 16px;
    bottom: 16px;
    max-width: min(380px, calc(100vw - 32px));
    margin: 0;
    padding: 10px 14px;
    color: var(--ink, #172f24);
    background: var(--surface, #fff);
    border: 1px solid var(--line, #dce7de);
    border-left: 4px solid var(--focus, #287651);
    border-radius: 8px;
    box-shadow: 0 8px 28px #12342624;
}
[data-page-feedback][data-error="true"] {
    font-weight: 700;
}
.field-error {
    display: block;
    margin-top: 4px;
    color: var(--field-error, #a51d2d);
    font-size: .83rem;
    font-weight: 650;
    line-height: 1.4;
}
:root[data-theme="dark"] {
    --field-error: #ff9a9f;
}
:is(.storefront, .admin) :is(input, select, textarea)[aria-invalid="true"] {
    border-color: var(--field-error, #a51d2d);
    outline: 1px solid var(--field-error, #a51d2d);
    outline-offset: -1px;
}
.status-timeline { list-style: none; padding: 0; margin: 10px 0 0; }
.status-timeline > li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 3px 14px;
    align-items: start;
    padding: 10px 0 11px 24px;
    font-size: .88rem;
    overflow-wrap: anywhere;
}
.status-timeline > li::before {
    content: "";
    position: absolute;
    inset: 16px auto auto 0;
    z-index: 1;
    width: 10px;
    height: 10px;
    box-sizing: border-box;
    border: 2px solid var(--stroke, var(--line));
    border-radius: 50%;
    background: var(--paper, var(--surface));
}
.status-timeline > li:not(:last-child)::after {
    content: "";
    position: absolute;
    inset: 22px auto -16px 4px;
    width: 2px;
    background: var(--stroke, var(--line));
}
.status-timeline > [data-step=complete]::before,
.status-timeline > [data-step=complete]::after { background: var(--focus, var(--accent)); border-color: var(--focus, var(--accent)); }
.status-timeline > [data-step=current]::before { border-color: var(--focus, var(--accent)); }
.status-timeline > [data-step=current] > div > strong { color: var(--focus, var(--accent)); }
.status-timeline > [data-step=upcoming] { color: var(--muted); }
.status-timeline time { text-align: right; }
.status-timeline time > * { display: block; white-space: nowrap; }
.status-timeline time small { color: var(--muted); font-size: .78rem; }
.status-timeline li p { margin: 3px 0 0; white-space: pre-line; color: var(--muted); }
@media (max-width: 400px) {
    .status-timeline > li { grid-template-columns: minmax(0, 1fr); }
    .status-timeline time { text-align: left; }
    .status-timeline time > * { display: inline; white-space: normal; }
    .status-timeline time small { margin-inline-start: 5px; }
}
@keyframes page-progress { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) {
    [data-page-progress]::before { width: 100%; animation: none; }
}
