/* Auxiliary pages use the same type roles without resizing brand art, price
   emphasis, decorative symbols, or native interactions. */
@layer ja360-type {
  html:is([data-ja360-type="login"], [data-ja360-type="portal"], [data-ja360-type="account"]) :is(
    button:not([aria-label="Cerrar"], .portal-service-details-close),
    a:is(.gold-action, .outline-action, .whatsapp-action, .account-service-whatsapp, .account-service-more),
    summary
  ) {
    font-family: var(--ja360-font-body) !important;
    font-size: var(--ja360-size-control) !important;
    line-height: var(--ja360-line-control) !important;
  }

  /* These service and history titles predate heading markup. */
  html[data-ja360-type="portal"] :is(.portal-service-feature-copy > b, .portal-service:not(.portal-service--featured) > div > b,
    .guide-grid article > b, .history-card div > b) {
    font-family: var(--ja360-font-card) !important;
    font-size: var(--ja360-size-card) !important;
    font-weight: 700 !important;
    line-height: var(--ja360-line-card) !important;
    text-wrap: pretty;
  }

  html:is([data-ja360-type="portal"], [data-ja360-type="account"]) :is(
    .portal-meta-card small, .portal-service-feature-copy > span, .account-service-kicker,
    .account-service-dialog-meta, .portal-service-details-meta small
  ) {
    font-family: var(--ja360-font-body) !important;
    font-size: var(--ja360-size-label) !important;
    font-weight: 700 !important;
    line-height: var(--ja360-line-label) !important;
  }

  html:is([data-ja360-type="account"], [data-ja360-type="portal"]) :is(
    .portal-service-details-panel,
    .account-service-dialog-panel
  ) {
    border-color: var(--ja360-dialog-line) !important;
  }

  html:is([data-ja360-type="account"], [data-ja360-type="portal"]) :is(
    .portal-service-details-close, button[aria-label="Cerrar"]
  ) {
    /* Preserve the existing sized symbol, not the text-button sizing. */
    font-size: 1.45rem !important;
    line-height: 1 !important;
  }

  html:is([data-ja360-type="account"], [data-ja360-type="portal"]) :is(
    .account-service-price, .portal-service-feature-footer > strong
  ) {
    font-family: var(--ja360-font-body) !important;
    overflow-wrap: anywhere;
  }
}
