/* Site-level styles that are not part of the design kit: error/not-found pages,
   the closed-offer panel, the Blazor error bar and the reconnect dialog, all in the NEA palette. */

/* Safety net: nothing decorative may ever cause sideways scrolling on narrow screens. */
html {
    overflow-x: clip;
}

/* Simple centred page used by Error and NotFound */
.simple-page {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 96px 24px;
}

/* Serif heading to match the checkout */
.simple-page h1 {
    font-size: clamp(44px, 7vw, 64px);
    margin-bottom: 18px;
}

/* Body copy on simple pages */
.simple-page p {
    font-size: 19px;
    color: var(--muted);
    margin-bottom: 12px;
}

/* Gold link back to the checkout */
.simple-page a {
    color: var(--gold);
}

/* Closed-offer and unavailable states inside the glass panel */
.panel-message {
    padding: 24px 0 8px;
}

/* Heading inside the closed/unavailable panel */
.panel-message h2 {
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    margin-bottom: 16px;
}

/* Body copy inside the closed/unavailable panel */
.panel-message p {
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 14px;
}

/* Contact lines in the closed panel */
.panel-message address {
    font-style: normal;
    display: grid;
    gap: 2px;
    margin-top: 18px;
}

/* Blazor's unhandled-error bar, restyled for the dark theme */
#blazor-error-ui {
    background: #321e27;
    color: #ffe0d9;
    border-top: 1px solid var(--error);
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 12px 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 15px;
}

/* Dismiss control on the error bar */
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 10px;
}

/* Reload link on the error bar */
#blazor-error-ui .reload {
    color: var(--gold);
    margin-left: 8px;
}

/* Reconnect dialog — every state paragraph hidden until its state class is set */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible {
    display: none;
}

/* Show the matching paragraph for each reconnect state */
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

/* The reconnect dialog itself, styled like the review dialog in the kit */
#components-reconnect-modal {
    color: var(--ivory);
    background: linear-gradient(140deg, #183247, #061626);
    border: 1px solid #d4b375;
    border-radius: 20px;
    padding: 28px;
    width: min(380px, calc(100% - 32px));
    box-shadow: 0 25px 80px #000b;
    text-align: center;
}

/* Dim the page behind the reconnect dialog */
#components-reconnect-modal::backdrop {
    background: #000b;
}

/* Paragraph spacing inside the reconnect dialog */
#components-reconnect-modal p {
    margin: 0 0 14px;
    font-size: 17px;
}

/* Retry/Resume buttons in the reconnect dialog */
#components-reconnect-modal button {
    border: 1px solid #ffe4a8;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff0b2 0%, #eac378 12%, #d49b39 74%, #f8d88e 100%);
    color: #05101c;
    font-weight: 700;
    padding: 8px 28px;
}
