/* UX23: booking and account-entry headings. Loaded in the shell and explicitly
 * in its same-origin auth / booking frames. PA2 adds Compass typography below;
 * monetary values and the global --wow-serif variable remain unchanged.
 */

/* Partner requests, pending/confirmed bookings, optional services and My Visit
 * entry. These dialogs are regular DOM nodes, not shadow roots.
 */
#wow-atlas-bookings-bj1 :is(h1,h2,h3),
.pb1-dialog :is(h1,h2,h3),
.pb1-native-request h2,
.pp2-dialog :is(h1,h2,h3),
.pp2-mount .pp2-teaser h3 {
  font-family: var(--wow-sans, "WOW Manrope", Arial, sans-serif) !important;
}

/* Armata's request document has its own CSS cascade. The parent marks only
 * a frame that passed its existing origin, path, session and owner checks.
 */
html[data-wa-ux23-booking="request"] body.ux5-booking :is(h1,h2,h3),
html[data-wa-ux23-booking="visit"] body.ux5-visit :is(h1,h2,h3),
html[data-wa-ux23-booking="visit"] body.ux5-visit .qr-guidance > span {
  font-family: var(--wow-sans, "WOW Manrope", Arial, sans-serif) !important;
}

/* Account/logout confirmation and guest gate, including Yandex completion. */
.wa-logout-dialog h2,
.r6-guest-gate .r6-guest-gate__header h2,
.wa-yi1-dialog .wa-yi1-card h2 {
  font-family: var(--wow-sans, "WOW Manrope", Arial, sans-serif) !important;
}

/* Native forms: sign in, registration, both email states and password reset.
 * Match the real RF2 root, with enough specificity for its !important heading
 * rules regardless of when those cached styles arrive inside an iframe.
 */
html:is(.r6-1-auth-embed,.wa-auth-rf2-page) body :is(app-account-login,app-account-register,app-account-check-email,app-account-verify-email,app-account-forgot-password,app-account-reset-password).wa-auth-rf2 :is(h1,h2,[class$="__title"]),
html body .wa-rf2-choice.wa-rf2-choice h1 {
  font-family: var(--wow-sans, "WOW Manrope", Arial, sans-serif) !important;
}

/* PA2: the verified My Visit iframe uses the same Manrope face for Compass amounts.
 * Kept here as well as its own stylesheet so the versioned frame loader refreshes
 * the typography even if an older standalone visit stylesheet is cached. */
html[data-wa-ux23-booking="visit"] body.ux5-visit .compass-panel,
html[data-wa-ux23-booking="visit"] body.ux5-visit .compass-panel h2,
html[data-wa-ux23-booking="visit"] body.ux5-visit .compass-panel button,
html[data-wa-ux23-booking="visit"] body.ux5-visit .compass-panel input,
html[data-wa-ux23-booking="visit"] body.ux5-visit .compass-panel output,
html[data-wa-ux23-booking="visit"] body.ux5-visit .compass-panel strong,
html[data-wa-ux23-booking="visit"] body.ux5-visit .visit-rewards,
html[data-wa-ux23-booking="visit"] body.ux5-visit .visit-rewards h2,
html[data-wa-ux23-booking="visit"] body.ux5-visit .visit-rewards .eyebrow,
html[data-wa-ux23-booking="visit"] body.ux5-visit .visit-rewards strong,
html[data-wa-ux23-booking="visit"] body.ux5-visit .visit-rewards dd {
  font-family: "WOW Booking Manrope", "WOW Manrope", Helvetica, Arial, sans-serif !important;
}
