.ehpc-mirror {
    --ehpc-ink: #202020;
    --ehpc-muted: #535b69;
    --ehpc-rule: #dedede;
    --ehpc-panel: #f7f7f7;
    color: var(--ehpc-ink);
    font-family: inherit;
    margin-block: 1.25rem;
}
.ehpc-mirror[hidden], .ehpc-mirror [hidden] { display: none !important; }
.ehpc-mirror-intro {
    display: grid;
    gap: .65rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--ehpc-rule);
    border-radius: 1rem;
    background: var(--ehpc-panel);
}
.ehpc-mirror-intro p { margin: 0; font-weight: 650; }
.ehpc-mirror .ehpc-mirror-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .55rem 1.05rem;
    border: 1px solid var(--ehpc-ink);
    border-radius: 99px;
    background: var(--ehpc-ink);
    color: #fff;
    font: inherit;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.ehpc-mirror .ehpc-mirror-button:hover { background: #3d3d3d; }
.ehpc-mirror .ehpc-mirror-button.is-secondary { background: #fff; color: var(--ehpc-ink); }
.ehpc-mirror .ehpc-mirror-button.is-secondary:is(:hover, :active, :focus-visible) {
    background: var(--ehpc-ink);
    border-color: var(--ehpc-ink);
    color: #fff;
}
.ehpc-mirror .ehpc-mirror-button.is-secondary:focus-visible { outline-color: var(--ehpc-ink); }
.ehpc-mirror .ehpc-mirror-button:disabled { opacity: .6; cursor: wait; }
.ehpc-mirror-intro [data-open] { justify-self: start; }
.ehpc-mirror dialog {
    box-sizing: border-box;
    width: min(calc(100% - 2rem), 42rem);
    max-height: 90vh;
    max-height: 90dvh;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ehpc-rule);
    border-radius: 1.2rem;
    box-shadow: 0 20px 72px #0003;
    background: #fff;
    color: var(--ehpc-ink);
    font: inherit;
}
.ehpc-mirror dialog[open] { display: flex; flex-direction: column; }
.ehpc-mirror dialog::backdrop { background: #20202085; }
.ehpc-mirror-heading, .ehpc-mirror-footer { flex: 0 0 auto; padding: .9rem 1.3rem; }
.ehpc-mirror-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--ehpc-rule); }
.ehpc-mirror-heading h2 { font: inherit; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 720; margin: 0; }
.ehpc-mirror-close {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    border: 1px solid var(--ehpc-rule);
    border-radius: 50%;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.ehpc-mirror-scroll { min-height: 0; overflow-y: auto; padding: 1rem 1.3rem; }
.ehpc-mirror-steps { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.ehpc-mirror-steps li { padding: 0 0 .5rem; border-bottom: 2px solid var(--ehpc-rule); color: var(--ehpc-muted); font-size: .88rem; }
.ehpc-mirror-steps [aria-current="step"] { color: var(--ehpc-ink); border-color: var(--ehpc-ink); font-weight: 700; }
.ehpc-mirror-model { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; padding: .6rem; border-radius: .8rem; background: var(--ehpc-panel); }
.ehpc-mirror-model img { width: 4.25rem; height: 4.25rem; border-radius: .55rem; object-fit: cover; flex-shrink: 0; }
.ehpc-mirror-model p { margin: .2rem 0 0; color: var(--ehpc-muted); font-size: .875rem; }
.ehpc-mirror form, .ehpc-mirror h3 { margin: 0; }
.ehpc-mirror h3 { margin-bottom: .65rem; font: inherit; font-weight: 700; }
.ehpc-mirror-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .1rem .85rem; }
.ehpc-mirror form label { display: block; margin: 0 0 .65rem; font-size: .92rem; font-weight: 600; }
.ehpc-mirror label small { color: var(--ehpc-muted); font-weight: 400; }
.ehpc-mirror input:not([type=checkbox]), .ehpc-mirror select, .ehpc-mirror textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 2.65rem;
    margin-top: .22rem;
    padding: .46rem .7rem;
    border: 1px solid var(--ehpc-rule);
    border-radius: .65rem;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
}
.ehpc-mirror textarea { resize: vertical; }
.ehpc-mirror :is(button, a, input, select, textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ehpc-mirror .ehpc-mirror-button:not(.is-secondary):focus-visible { outline-color: var(--ehpc-ink); }
.ehpc-mirror-delivery { padding: .65rem .8rem; border-radius: .75rem; background: var(--ehpc-panel); }
.ehpc-mirror form .ehpc-mirror-check { display: flex; gap: .55rem; align-items: flex-start; margin: .15rem 0; }
.ehpc-mirror-check input { width: 1rem; height: 1rem; margin: .18em 0 0; flex-shrink: 0; accent-color: var(--ehpc-ink); }
.ehpc-mirror [data-service] { margin-top: .75rem; }
.ehpc-mirror-privacy { margin: .8rem 0 0; font-size: .85rem; color: var(--ehpc-muted); }
.ehpc-mirror-privacy a { color: inherit; text-decoration: underline; }
.ehpc-mirror-result { padding: .3rem 0 .6rem; }
.ehpc-mirror-result h3 { font-size: 1.35rem; }
.ehpc-mirror-result [data-folio] { font-weight: 700; }
.ehpc-mirror-result p { margin: .4rem 0 0; }
.ehpc-mirror-footer { border-top: 1px solid var(--ehpc-rule); }
.ehpc-mirror-footer [data-status] { margin: 0 0 .5rem; font-size: .9rem; }
.ehpc-mirror-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
@media (max-width: 540px) {
    .ehpc-mirror dialog { width: calc(100% - 1rem); max-height: 94dvh; }
    .ehpc-mirror-heading, .ehpc-mirror-scroll, .ehpc-mirror-footer { padding-inline: .9rem; }
    .ehpc-mirror-intro [data-open] { justify-self: stretch; }
    .ehpc-mirror-actions .ehpc-mirror-button:not(.is-secondary) { flex: 1 1 auto; }
}

.ehpc-mirror-measure-help { margin: -.2rem 0 .8rem; font-size: .875rem; color: var(--ehpc-muted); }
.ehpc-mirror .ehpc-mirror-error { display: block; margin-top: .25rem; font-size: .83rem; color: #922b24; }
.ehpc-mirror form [aria-invalid="true"] { border-color: #922b24; }
