/* ==========================================================================
   NHV-22 — Confirmation page (common/success)
   ==========================================================================
   Deliberately neutral. Ten controllers render this template, including
   checkout/failure, so it must read as "here is what happened" rather than
   "well done". */

.nhv-confirm {
  max-width: 720px;
  margin: 10px auto 40px;
  padding: 32px;
  text-align: center;
  background: var(--nhv-cream-bright);
  border: 1px solid var(--nhv-rule-warm);
  border-top: 3px solid var(--nhv-copper);
  border-radius: var(--nhv-radius-sm);
}

.nhv-confirm-title {
  margin: 0 0 16px;
  font-family: var(--nhv-font-display);
  font-size: 26px;
  font-weight: var(--nhv-fw-bold);
  line-height: 1.25;
  color: var(--nhv-navy);
}

.nhv-confirm-message {
  font-family: var(--nhv-font-body);
  font-size: var(--nhv-fs-base);
  line-height: 1.75;
  color: var(--nhv-navy);
}
.nhv-confirm-message p { margin: 0 0 12px; }
.nhv-confirm-message p:last-child { margin-bottom: 0; }
.nhv-confirm-message a { color: var(--nhv-copper); font-weight: var(--nhv-fw-semi); }
.nhv-confirm-message a:hover { color: var(--nhv-navy); }

.nhv-confirm-actions {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--nhv-rule-warm);
}

.nhv-confirm-continue {
  display: inline-block;
  padding: 11px 28px;
  font-family: var(--nhv-font-display);
  font-size: var(--nhv-fs-small);
  font-weight: var(--nhv-fw-semi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nhv-cream-bright);
  background: var(--nhv-footer-ground);
  border: 1px solid var(--nhv-footer-ground);
  border-radius: var(--nhv-radius-sm);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.nhv-confirm-continue:hover,
.nhv-confirm-continue:focus { color: var(--nhv-cream-bright); background: var(--nhv-navy); border-color: var(--nhv-navy); text-decoration: none; }
.nhv-confirm-continue:focus-visible { outline: 2px solid var(--nhv-copper); outline-offset: 2px; }

/* --- Failed payment -------------------------------------------------------
   The same panel, turned to say something went wrong: the top rule and the
   heading take --nhv-sale-red. Not a full red panel — the shopper has hit a
   problem, they do not need to be shouted at, and the page's job is to get them
   back to a working payment method. */

.nhv-confirm--failure { border-top-color: var(--nhv-sale-red); }
.nhv-confirm--failure .nhv-confirm-title { color: var(--nhv-sale-red); }

/* Core's copy carries a <ul> of likely reasons. Centred bullets read badly, so
   the message goes left-aligned and the list is given a normal indent. */
.nhv-confirm--failure .nhv-confirm-message { text-align: left; }
.nhv-confirm--failure .nhv-confirm-message ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.nhv-confirm--failure .nhv-confirm-message li { margin-bottom: 4px; }

.nhv-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Continue shopping is the way out, not the way on — outlined, beside the
   primary rather than competing with it. */
.nhv-confirm-secondary {
  display: inline-block;
  padding: 11px 24px;
  font-family: var(--nhv-font-display);
  font-size: var(--nhv-fs-small);
  font-weight: var(--nhv-fw-semi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nhv-navy);
  background: transparent;
  border: 1px solid var(--nhv-navy);
  border-radius: var(--nhv-radius-sm);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nhv-confirm-secondary:hover,
.nhv-confirm-secondary:focus { color: var(--nhv-cream-bright); background: var(--nhv-navy); text-decoration: none; }
.nhv-confirm-secondary:focus-visible { outline: 2px solid var(--nhv-copper); outline-offset: 2px; }

/* --- Not found (NHV-23) ---------------------------------------------------
   The same panel again, this time as a dead end with a way out of it. Copper
   top rule rather than red: a mistyped URL is not a failure the shopper caused
   and should not be dressed as one. */

.nhv-confirm--notfound { border-top-color: var(--nhv-copper); }

/* Search is the primary action on this page, so it sits above the Continue
   rule rather than beside it. Capped at 420px because a full-width field in a
   720px centred panel reads as a form, not as one offered next step. */
.nhv-notfound-search {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 24px auto 0;
}

.nhv-notfound-search-input {
  flex: 1 1 auto;
  min-width: 0;              /* flex items default to min-width:auto and would
                                otherwise refuse to shrink below their size */
  height: 42px;
  padding: 0 12px;
  font-family: var(--nhv-font-body);
  font-size: var(--nhv-fs-base);
  color: var(--nhv-navy);
  background: var(--nhv-sand);
  border: 1px solid var(--nhv-rule-warm);
  border-radius: var(--nhv-radius-sm);
}
.nhv-notfound-search-input:focus {
  border-color: var(--nhv-copper);
  outline: 2px solid var(--nhv-copper);
  outline-offset: 1px;
}

.nhv-notfound-search-btn {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 22px;
  font-family: var(--nhv-font-display);
  font-size: var(--nhv-fs-small);
  font-weight: var(--nhv-fw-semi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nhv-cream-bright);
  background: var(--nhv-footer-ground);
  border: 1px solid var(--nhv-footer-ground);
  border-radius: var(--nhv-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.nhv-notfound-search-btn:hover,
.nhv-notfound-search-btn:focus { background: var(--nhv-navy); border-color: var(--nhv-navy); }
.nhv-notfound-search-btn:focus-visible { outline: 2px solid var(--nhv-copper); outline-offset: 2px; }

@media (max-width: 767px) {
  .nhv-confirm { padding: 24px 18px; }
  .nhv-confirm-title { font-size: 22px; }
}

@media (max-width: 480px) {
  /* Stacked rather than squeezed: below ~480px the button's uppercase label and
     the field cannot both keep a usable width on one row. */
  .nhv-notfound-search { flex-direction: column; }
  .nhv-notfound-search-btn { width: 100%; }
}
