/* Loaded after the site's existing styles. */
.kp-bottom-nav[data-kpass-app-nav="centered"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kp-bottom-nav .kp-nav-label { white-space: nowrap; }
.kp-bottom-nav a.kp-app-home { color: #1d4ed8; background: #eff6ff; }
.kp-bottom-nav a.kp-app-home .kp-nav-icon { width: 26px; height: 26px; }
.kp-bottom-nav a.kp-app-home.active { color: #fff; background: #2563eb; }
.kp-bottom-nav a.kp-app-home.active::before { background: #fff; }
.kp-bottom-nav a { min-width: 0; min-height: 48px; }
.kp-bottom-nav a:focus-visible { outline-offset: -3px; }
.kp-age-profile .kp-fld:first-child { margin-top: 14px; }
.kp-age-input { position: relative; }
.kp-age-input input { padding-right: 44px !important; }
.kp-age-input > span { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: #64748b; }
.kp-age-profile input, .kp-age-profile select, .kp-fld select, .kp-guide-field select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; font-size: 16px; }
.kp-age-profile input, .kp-age-profile select { min-height: 48px; }
.kp-section .kp-app-help { margin: 7px 0 0; font-size: 12px; line-height: 1.65; font-weight: 500; color: #64748b; word-break: keep-all; overflow-wrap: anywhere; }
.kp-app-help a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }
.kp-age-status { margin-top: 16px; padding: 13px 14px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; color: #1e40af; font-size: 13px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.kp-age-status strong { display: block; font-size: 15px; }
.kp-age-status span { display: block; margin-top: 5px; color: #475569; }
.kp-age-status[data-state="invalid"], .kp-age-status[data-state="underage"], .kp-age-status[data-state="unavailable"] { color: #9a3412; border-color: #fed7aa; background: #fff7ed; }
#kp-age[aria-invalid="true"] { border-color: #c2410c; }
.kp-fld[hidden], #c-result[hidden] { display: none !important; }
.kp-fld, .kp-guide-field, .kp-cardbody { min-width: 0; }
.kp-carditem h3, .kp-cardbenefit, .kp-section .kp-card-warning, .kp-cardmeta > span, .kp-step, .kp-info, .kp-check { word-break: keep-all; overflow-wrap: anywhere; }
.kp-carditem h3 { line-height: 1.45; text-wrap: pretty; }
.kp-cardbenefit { line-height: 1.6; }
.kp-section .kp-card-warning { font-size: 12px; line-height: 1.65; }
.kp-cardmeta > span { line-height: 1.6; }
.kp-cardmedia img { object-fit: contain; }
.kp-cardmedia.is-missing::after { content: attr(data-fallback); padding: 8px; font-size: 10px; letter-spacing: 0; }
.kp-cardlink { gap: 6px; padding: 10px; line-height: 1.5; text-align: center; word-break: keep-all; }
.kp-popular-leaders b { display: block; -webkit-line-clamp: unset; overflow: visible; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 359px) {
  .kp-cardtop { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .kp-cardmedia, .kp-cardmedia img { width: 72px; height: 116px; }
  .kp-cardmeta > span { grid-template-columns: 52px minmax(0, 1fr); gap: 6px; padding: 8px; }
  .kp-carditem h3 { font-size: 14px; }
  .kp-cardbenefit { font-size: 12px; }
  .kp-issuer-logo { max-width: 78px; }
}
@media (forced-colors: active) {
  .kp-bottom-nav a.kp-app-home.active { outline: 2px solid CanvasText; }
}
/* Reuse the matching catalogue image in dynamically rendered recommendations. */
.kp-rec-result__heading.kp-rec-with-image { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; row-gap: 7px; align-items: start; }
.kp-rec-media { grid-column: 1; grid-row: 1 / span 2; width: 64px; height: 103px; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.kp-rec-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.kp-rec-with-image .kp-rec-result__title { grid-column: 2; min-width: 0; }
.kp-rec-with-image .kp-rec-result__score { grid-column: 2; justify-self: start; }
.kp-rec-result__title, .kp-rec-result__tier, .kp-rec-result__caveats, .kp-rec-result__breakdown { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.kp-rec-media[hidden] { display: none; }
/* SVG logos without an intrinsic width must not collapse in a flex row. */
.kp-issuer { flex: 0 0 auto; max-width: 100%; }
.kp-issuer-logo { width: 88px; height: 24px; object-fit: contain; object-position: left center; flex-shrink: 0; }
