/* rmk_ui 1.5.0 (FOCUSMODE): focus mode for tasks, the Continue card and "Talk to a person".
   Scoping (1.4.x rules kept): no bare element selectors. Page-wide hiding applies only under body.rmk-focus, a class a
   page opts into while a person is DOING a task (the app's base template adds it when `focus` is in the context;
   focus.js adds it too as a safety net). Component rules sit on .rmk-ui classes.
   Built for 360 px phones: 44 px+ tap targets, ink/white and ink/accent only (AA). */

/* ---------------------------------------------------------------- focus mode: hide everything but the task */
body.rmk-focus [data-rmk-chrome],
body.rmk-focus .rmk-connectbar,
body.rmk-focus .rmk-header,
body.rmk-focus .rmk-tabbar,
body.rmk-focus .rmk-footer,
body.rmk-focus .rmk-hg-fab,
body.rmk-focus #pulse-root,
body.rmk-focus .rmk-pulse--float,
body.rmk-focus #rmk-install-banner,
body.rmk-focus .rmk-install-banner,
body.rmk-focus .rmk-guide,
body.rmk-focus .rmk-guide-btn,
body.rmk-focus #rmk-role-sheet,
body.rmk-focus .rmk-qcto[data-dismissible] { display: none !important; }
/* The QCTO banner stays when the page forces it (qcto_force: registration, checkout): it has no close button. */
/* Page-wide spacing only on the hub (body.rmk-native); apps handle their own body padding. */
body.rmk-native.rmk-focus { --rmk-tabbar-h: 0px; padding-bottom: 0; }
body.rmk-native.rmk-focus .rmk-main { padding-bottom: 0; }

/* ---------------------------------------------------------------- the top bar */
.rmk-focusbar { position: sticky; top: 0; z-index: 55; background: var(--rmk-ink); color: var(--rmk-white); }
.rmk-focusbar__inner { display: flex; align-items: center; gap: 8px; max-width: 720px; margin: 0 auto; padding: 6px 12px 6px 16px; min-height: 60px; box-sizing: border-box; }
.rmk-focusbar__text { flex: 1; min-width: 0; }
.rmk-ui .rmk-focusbar__title, .rmk-focusbar__title { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--rmk-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmk-ui .rmk-focusbar__step, .rmk-focusbar__step { margin: 2px 0 0; font-size: 14px; line-height: 1.3; color: var(--rmk-muted-dark); }
.rmk-focusbar__saved { color: var(--rmk-accent); font-weight: 600; }
.rmk-ui .rmk-focusbar__help, .rmk-focusbar__help { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--rmk-white);
  background: transparent; color: var(--rmk-white); font: inherit; font-weight: 800; font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.rmk-ui .rmk-focusbar__help:hover, .rmk-focusbar__help:hover { color: var(--rmk-ink); background: var(--rmk-white); }
.rmk-ui .rmk-focusbar__exit, .rmk-focusbar__exit { flex-shrink: 0; min-height: 44px; padding: 0 14px; border-radius: var(--rmk-r-btn); border: 0;
  background: var(--rmk-accent); color: var(--rmk-ink); font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.rmk-ui .rmk-focusbar__exit:hover, .rmk-focusbar__exit:hover { background: var(--rmk-accent-hover); color: var(--rmk-ink); }
.rmk-focusbar__help:focus-visible, .rmk-focusbar__exit:focus-visible { outline: 3px solid var(--rmk-white); outline-offset: 2px; }
.rmk-focusbar__progress { height: 4px; background: var(--rmk-dark); }
.rmk-focusbar__progress span { display: block; height: 100%; background: var(--rmk-accent); max-width: 100%; }
@media (max-width: 359px) { .rmk-ui .rmk-focusbar__exit, .rmk-focusbar__exit { padding: 0 10px; font-size: 14px; } }

/* ---------------------------------------------------------------- the step */
.rmk-focus-main { max-width: 640px; margin: 0 auto; padding: 16px 16px 24px; box-sizing: border-box; }
.rmk-ui .rmk-focus-main__title, .rmk-focus-main__title { font-size: 24px; line-height: 1.25; margin: 4px 0 8px; font-weight: 800; }
.rmk-focus-main__lead { font-size: 17px; margin: 0 0 16px; }
.rmk-focus-choice { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.rmk-focus-choice legend { font-weight: 700; margin: 0 0 8px; padding: 0; font-size: 17px; }
.rmk-focus-choice label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; box-sizing: border-box;
  background: var(--rmk-card); color: var(--rmk-ink); border: 2px solid var(--rmk-border); border-radius: 14px; cursor: pointer; font-weight: 600; }
.rmk-focus-choice input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--rmk-ink); }
.rmk-focus-choice label:has(input:checked) { border-color: var(--rmk-ink); box-shadow: 0 0 0 3px var(--rmk-accent); }
.rmk-focus-done { text-align: left; }
.rmk-focus-done__tick { width: 56px; height: 56px; border-radius: 50%; background: var(--rmk-success); color: var(--rmk-white);
  display: inline-flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }

/* ---------------------------------------------------------------- the bottom: Back / main action / More */
.rmk-focusnav { position: sticky; bottom: 0; z-index: 54; background: var(--rmk-card); border-top: 1px solid var(--rmk-border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); margin-top: 24px; }
.rmk-focusnav__inner { position: relative; display: flex; gap: 8px; align-items: center; max-width: 640px; margin: 0 auto; }
.rmk-ui .rmk-focusnav__back, .rmk-focusnav__back { color: var(--rmk-ink); flex: 0 0 auto; }
.rmk-ui .rmk-focusnav__next, .rmk-focusnav__next { flex: 1 1 auto; min-width: 0; }
.rmk-focusnav__more { flex: 0 0 auto; }
.rmk-focusnav__more > summary { list-style: none; color: var(--rmk-ink); }
.rmk-focusnav__more > summary::-webkit-details-marker { display: none; }
.rmk-focusnav__more[open] > summary { background: var(--rmk-ink); color: var(--rmk-white); }
.rmk-focusmore { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); background: var(--rmk-card); border: 2px solid var(--rmk-ink);
  border-radius: var(--rmk-r-card); box-shadow: 0 -10px 30px var(--rmk-shadow-strong); padding: 8px; max-height: 60vh; overflow-y: auto; }
.rmk-focusmore__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rmk-focusmore__list form { margin: 0; }
.rmk-ui .rmk-focusmore__item, .rmk-focusmore__item { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 8px 12px; box-sizing: border-box;
  border-radius: 10px; border: 0; background: transparent; color: var(--rmk-ink); font: inherit; font-weight: 600; text-align: left;
  text-decoration: none; cursor: pointer; }
.rmk-ui .rmk-focusmore__item:hover, .rmk-focusmore__item:hover { background: var(--rmk-page); color: var(--rmk-ink); }

/* ---------------------------------------------------------------- the Continue card */
.rmk-continue { border: 2px solid var(--rmk-ink); margin: 0 0 var(--rmk-sp-5); }
.rmk-ui .rmk-continue__title, .rmk-continue__title { font-size: 19px; line-height: 1.3; margin: 8px 0; font-weight: 800; }
.rmk-continue__bar { height: 8px; border-radius: 4px; background: var(--rmk-page); border: 1px solid var(--rmk-border); overflow: hidden; margin: 0 0 8px; }
.rmk-continue__bar span { display: block; height: 100%; background: var(--rmk-ink); max-width: 100%; }
.rmk-ui .rmk-continue__why, .rmk-continue__why { margin: 0 0 12px; color: var(--rmk-muted); }

/* ---------------------------------------------------------------- Talk to a person */
.rmk-ui .rmk-talk__title, .rmk-talk__title { font-size: 19px; line-height: 1.3; margin: 0 0 6px; font-weight: 800; }
.rmk-ui .rmk-talk__text, .rmk-talk__text { margin: 0 0 12px; }
.rmk-talk__actions { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
@media (min-width: 600px) { .rmk-talk__actions { flex-direction: row; } .rmk-talk__actions .rmk-btn { flex: 1; } }
.rmk-ui .rmk-talk__more, .rmk-ui .rmk-talk__ref, .rmk-talk__more, .rmk-talk__ref { margin: 0; font-size: 15px; color: var(--rmk-ink); }
.rmk-ui .rmk-talk a:not(.rmk-btn) { color: var(--rmk-ink); text-decoration: underline; overflow-wrap: anywhere; }

/* HoneyGuide's person buttons (visitor: Create free account / Sign in; signed in: Talk to a person / Request a call back). */
.rmk-hg__person { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }

/* HoneyGuide opened from a step's "?" (RMK.hg.open): a bottom sheet on phones. */
@media (max-width: 599px) { .rmk-sheet.rmk-hg.rmk-hg--bottom { top: auto; max-height: 85vh; border-radius: var(--rmk-r-card-lg) var(--rmk-r-card-lg) 0 0; box-shadow: 0 -10px 40px var(--rmk-shadow-strong); } }

@media print { .rmk-focusbar, .rmk-focusnav { display: none !important; } }
