/* Customer-facing invoice portal: calm, minimal, branded with the merchant's name */

.portal-body { min-height: 100vh; display: flex; flex-direction: column; }
.portal-preview { background: var(--ink); color: var(--paper); text-align: center; font-size: 0.86rem; padding: 0.55rem 1rem; }
.portal-preview a { color: #9fdcbc; }
.portal-head { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; padding: 2.6rem 1rem 0.5rem; }
.portal-head__name { font-weight: 650; font-size: 1.25rem; letter-spacing: -0.02em; }
.portal-head__label { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--muted); }
.portal-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.portal-main .flash { padding: 0; max-width: 520px; margin-bottom: 1rem; }

.portal-card { max-width: 520px; margin: 0 auto; padding: 2.2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.portal-card--wide { max-width: 760px; }
.portal-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.portal-title { font-size: 1.45rem; letter-spacing: -0.025em; }
.portal-lede { margin: 0.6rem 0 1.5rem; }
.portal-form { display: flex; gap: 0.5rem; }
.portal-form .input { flex: 1; }
@media (max-width: 480px) { .portal-form { flex-direction: column; } .portal-card { padding: 1.5rem; } }
.portal-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.portal-points li { display: inline-flex; align-items: center; gap: 0.35rem; }
.portal-points .icon { color: var(--accent); width: 1em; height: 1em; }

.portal-sent { text-align: center; display: grid; justify-items: center; gap: 0.7rem; }
.portal-sent__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.portal-sent__icon svg { width: 26px; height: 26px; }
.portal-sent__help { margin-bottom: 0.4rem; }

.payment-list { list-style: none; margin: 0; padding: 0; }
.payment { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.2rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.payment__desc { font-weight: 600; }
.payment__amount { font-weight: 500; }
@media (max-width: 560px) { .payment { grid-template-columns: 1fr auto; } .payment__action { grid-column: 1 / -1; } }
.link-button { display: inline; background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

.invoice-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.invoice-layout__preview { display: grid; gap: 0.8rem; }
.invoice-layout__side { padding: 1.5rem; position: sticky; top: 1.5rem; display: grid; gap: 0.9rem; }
.side-title { font-size: 1rem; margin-top: 0.8rem; }
.back-link { font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; }
.back-link:hover { color: var(--ink); }
@media (max-width: 860px) { .invoice-layout { grid-template-columns: 1fr; } .invoice-layout__side { position: static; } }

.portal-foot { text-align: center; padding: 1.5rem 1rem 2rem; }
.portal-foot__link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--muted); text-decoration: none; }
.portal-foot__link .brand__mark { width: 18px; height: 18px; }
.portal-foot__link:hover { color: var(--ink); }
.icon { width: 1.05em; height: 1.05em; flex: none; }
