.customer-portal {
    --portal-width: 66rem;
    --portal-paper: #f5f5f4;
    --portal-ink: #292524;
    --portal-muted: #57534e;
    --portal-card: #fff;
    --portal-line: #d6d3d1;
    --portal-action: #292524;
    --portal-on-action: #fff;
    --portal-heading: #e7e5e4;
    --portal-radius: .9rem;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--portal-paper);
    color: var(--portal-ink);
    font: 1rem/1.5 system-ui, sans-serif;
}
.customer-portal *,
.customer-portal *::before,
.customer-portal *::after { box-sizing: border-box; }
.customer-portal.storefront {
    --portal-paper: var(--paper);
    --portal-card: var(--surface);
    --portal-heading: var(--hero);
    --portal-ink: var(--ink);
    --portal-action: var(--accent);
    --portal-on-action: var(--on-accent);
    --portal-line: color-mix(in srgb, var(--ink), var(--paper) 78%);
    --portal-muted: color-mix(in srgb, var(--portal-ink), var(--portal-card) 28%);
}
.customer-portal.reference-storefront { background: var(--portal-paper); font-family: "Avenir Next", Arial, sans-serif; }
.customer-portal .portal-skip {
    position: absolute;
    top: .6rem;
    left: .6rem;
    z-index: 3;
    transform: translateY(-180%);
    padding: .6rem .9rem;
    background: var(--portal-card);
    color: var(--portal-ink);
}
.customer-portal .portal-skip:focus { transform: none; }
.customer-portal :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.customer-portal .wrap { width: min(var(--portal-width), calc(100% - 2rem)); margin-inline: auto; }
.customer-portal :is(.portal-header,.portal-footer) .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
}
.customer-portal .portal-header .wrap { min-height: 4rem; }
.customer-portal .portal-nav,
.customer-portal .portal-footer nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .45rem clamp(.7rem,3vw,1.75rem);
}
.customer-portal .wordmark { font-weight: 800; text-decoration: none; white-space: nowrap; }
.customer-portal .portal-header { background: var(--portal-heading); border-bottom: 1px solid var(--portal-line); }
.customer-portal .portal-header a,
.customer-portal .portal-footer a { color: inherit; }
.customer-portal .portal-nav > a,
.customer-portal .portal-footer nav a { font-weight: 650; text-decoration: none; }
.customer-portal .portal-nav > a:hover,
.customer-portal .portal-nav [aria-current="page"],
.customer-portal .portal-footer nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.customer-portal .portal-main { flex: 1 0 auto; }
.customer-portal .portal-heading {
    background: var(--portal-heading);
    padding-block: clamp(1.6rem,5vw,3.75rem);
    color: var(--portal-heading-ink, var(--portal-ink));
}
.customer-portal .portal-heading h1 { margin: 0; font-size: clamp(2rem,5.5vw,3.65rem); line-height: 1.06; overflow-wrap: anywhere; }
.customer-portal .portal-heading p { max-width: 42ch; margin: .55rem 0 0; overflow-wrap: anywhere; }
.customer-portal .portal-content { padding-block: clamp(1.25rem,4.5vw,2.6rem); }
.customer-portal .wrap.portal-compact { width: min(36rem, calc(100% - 2rem)); }
.customer-portal .portal-panel {
    min-width: 0;
    margin: 0;
    padding: clamp(1.05rem,3.5vw,1.75rem);
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    background: var(--portal-card);
    box-shadow: 0 3px 12px color-mix(in srgb, var(--portal-ink), transparent 94%);
    overflow-wrap: anywhere;
}
.customer-portal .portal-form { display: grid; gap: 1.05rem; }
.customer-portal .portal-form label { display: block; font-weight: 650; }
.customer-portal .portal-form input:not([type="checkbox"],[type="hidden"]) {
    display: block;
    width: 100%;
    min-height: 2.8rem;
    margin: .35rem 0 0;
    padding: .5rem .75rem;
    border: 1px solid var(--portal-field-line, var(--portal-line));
    border-radius: .55rem;
    background: #fff;
    color: #1d1921;
    font: inherit;
}
.customer-portal .portal-form .portal-checkbox { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.customer-portal .portal-checkbox input { accent-color: var(--portal-action); width: 1.12rem; min-height: 0; height: 1.12rem; margin: 0; }
.customer-portal .portal-form > .portal-button { justify-self: start; }
.customer-portal :is(.portal-actions,.portal-links,.portal-tabs,.portal-row) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem 1rem;
}
.customer-portal :is(.portal-actions,.portal-row) { justify-content: space-between; }
.customer-portal .portal-links { font-size: .94rem; }
.customer-portal .portal-tabs { margin-bottom: 1rem; }
.customer-portal .portal-tabs a { padding-block: .52rem; }
.customer-portal .portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: .48rem 1.05rem;
    border: 1px solid transparent;
    border-radius: var(--portal-button-radius,.65rem);
    background: var(--portal-action);
    color: var(--portal-on-action);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
.customer-portal .portal-button:hover { filter: brightness(.92); }
.customer-portal .portal-button-outline { border-color: currentColor; background: transparent; color: inherit; }
.customer-portal .portal-nav .portal-button { min-height: 2.25rem; padding: .3rem .7rem; }
.customer-portal .portal-link { text-decoration: underline; text-underline-offset: .19em; }
.customer-portal .portal-panel-link { color: inherit; text-decoration: none; }
.customer-portal .portal-panel-link:hover { border-color: currentColor; }
.customer-portal .portal-panel-link:hover .portal-item-title { text-decoration: underline; text-underline-offset: .16em; }
.customer-portal .portal-stack { display: grid; gap: .8rem; list-style: none; margin: 0; padding: 0; }
.customer-portal .portal-section { margin-block-start: 1.8rem; }
.customer-portal .portal-service { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); align-items: start; gap: 1rem; }
.customer-portal .portal-item-title,
.customer-portal .portal-section-title { margin: 0; font-weight: 800; font-size: 1.27rem; }
.customer-portal .portal-section-title { margin-bottom: .65rem; }
.customer-portal .portal-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin: 1.15rem 0; }
.customer-portal .portal-facts > div { padding-block: .55rem; border-top: 1px solid var(--portal-line); }
.customer-portal .portal-facts dd { margin: 0; font-weight: 700; }
.customer-portal .portal-facts dt,
.customer-portal .portal-muted { color: var(--portal-muted); font-size: .94rem; }
.customer-portal .portal-muted { margin-block: .25rem 0; }
.customer-portal .portal-order-price { margin: .35rem 0 0; font-weight: 800; font-size: 1.35rem; }
.customer-portal .portal-followup,
.customer-portal .portal-pagination { margin-block-start: 1rem; }
.customer-portal .portal-badge {
    border: 1px solid var(--portal-line);
    border-radius: 2rem;
    padding: .22rem .7rem;
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}
.customer-portal .portal-notice {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border: 1px solid #82af91;
    border-radius: .5rem;
    background: #eaf8ed;
    color: #184626;
}
.customer-portal .portal-error { border-color: #c97983; background: #fff0f0; color: #741625; }
.customer-portal .portal-footer { padding-block: 1rem; font-size: .92rem; }
.customer-portal #portal-main { scroll-margin-top: .5rem; }

.customer-portal:is([data-theme="corner-shop"],[data-theme="one-line"]) .portal-header { color: #fff; }
@media (min-width: 650px) {
    .customer-portal:is([data-theme="corner-shop"],[data-theme="one-line"]) .portal-heading h1 { max-width: 77%; }
    .customer-portal:is([data-theme="honeycomb-studio"],[data-theme="corner-shop"]) .portal-footer nav { margin-inline-end: 8.5rem; }
}
@media (max-width: 649px) {
    .customer-portal .portal-header .wrap { flex-wrap: wrap; padding-block: .45rem; gap: .45rem .8rem; }
    .customer-portal .portal-header .portal-nav { flex-wrap: wrap; font-size: .84rem; }
    .customer-portal[data-theme="alpine-horizon"] .portal-header .portal-nav > a:nth-child(2) { display: inline-flex; }
    .customer-portal .portal-footer .wrap { flex-wrap: wrap; }
    .customer-portal .portal-footer nav { justify-content: flex-start; }
    .customer-portal .portal-service { grid-template-columns: 1fr; }
    .customer-portal:is([data-theme="honeycomb-studio"],[data-theme="one-line"],[data-theme="corner-shop"]) .portal-heading { background-image: none; }
}

.customer-portal .portal-form :is(textarea, select) {
    display: block;
    width: 100%;
    margin-top: .35rem;
    padding: .65rem .75rem;
    border: 1px solid var(--portal-field-line, var(--portal-line));
    border-radius: .55rem;
    background: #fff;
    color: #1d1921;
    font: inherit;
}
.customer-portal .support-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-portal time { display: block; font-size: .85rem; color: var(--portal-muted); }
