/* MNT help bubble. Self-hosted FAQ + visit request widget.
   No third-party scripts or trackers. Text is 16px or larger. Tap targets are at least 44px. */

#mnt-help-root,
#mnt-help-root * {
  box-sizing: border-box;
}

#mnt-help-root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #1c2c47;
  -webkit-font-smoothing: antialiased;
}

#mnt-help-root button,
#mnt-help-root a,
#mnt-help-root input,
#mnt-help-root select,
#mnt-help-root textarea {
  font: inherit;
}

.mnt-help-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

@media (max-width: 900px) {
  .mnt-help-launcher {
    right: 0.75rem;
    /* Sit above the sticky mobile call bar (see .mobile-callbar in css/styles.css). */
    bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  }
}

.mnt-help-bubble {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border: 0;
  border-radius: 999px;
  background: #0a62d7;
  color: #fff;
  box-shadow: 0 10px 28px rgba(7, 23, 47, 0.28);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mnt-help-bubble:hover,
.mnt-help-bubble:focus-visible {
  background: #074ca7;
  outline: 3px solid #52d8f2;
  outline-offset: 3px;
}

.mnt-help-bubble svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mnt-help-panel {
  width: min(24.5rem, calc(100vw - 1.5rem));
  max-height: min(36rem, calc(100dvh - 7.5rem));
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 1.15rem;
  box-shadow: 0 24px 64px rgba(4, 13, 28, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 900px) {
  .mnt-help-panel {
    max-height: calc(100dvh - 9.5rem);
  }
}

.mnt-help-head {
  background: #07172f;
  color: #fff;
  padding: 0.95rem 1rem 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mnt-help-head h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.25;
  color: #fff;
  font-weight: 750;
}

.mnt-help-head p {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: #dff9ff;
}

.mnt-help-close {
  background: transparent;
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
}

.mnt-help-close:hover,
.mnt-help-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: 2px solid #52d8f2;
}

.mnt-help-body {
  padding: 0.9rem 1rem 1.1rem;
  overflow: auto;
  background: #f4f7fb;
}

.mnt-help-body p.lead {
  margin: 0 0 0.85rem;
  color: #1c2c47;
}

.mnt-help-faqs {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.mnt-help-faq {
  margin: 0;
}

.mnt-help-faqs button {
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  color: #101d33;
  font-weight: 650;
  min-height: 44px;
}

.mnt-help-faqs button[aria-expanded="true"] {
  border-color: #0a62d7;
  background: #edf5ff;
}

.mnt-help-faqs .ans {
  display: none;
  padding: 0.4rem 0.35rem 0.35rem;
  color: #354765;
  font-size: 1rem;
}

.mnt-help-faqs .ans.open {
  display: block;
}

.mnt-help-form {
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 0.85rem;
  padding: 0.9rem;
}

.mnt-help-form h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  color: #101d33;
}

.mnt-help-form label {
  display: block;
  font-weight: 650;
  margin: 0.45rem 0 0.2rem;
  color: #101d33;
}

.mnt-help-form input,
.mnt-help-form textarea {
  width: 100%;
  border: 1px solid #c5d0de;
  border-radius: 0.55rem;
  padding: 0.65rem 0.7rem;
  min-height: 44px;
  background: #fff;
  color: #101d33;
}

.mnt-help-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.mnt-help-form input:focus,
.mnt-help-form textarea:focus {
  outline: 3px solid #52d8f2;
  border-color: #0a62d7;
}

.mnt-help-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mnt-help-submit {
  margin-top: 0.75rem;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #0a62d7;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.mnt-help-submit:hover,
.mnt-help-submit:focus-visible {
  background: #074ca7;
  outline: 3px solid #52d8f2;
}

.mnt-help-submit:disabled {
  cursor: wait;
  opacity: 0.8;
}

.mnt-help-note {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  color: #354765;
}

.mnt-help-note a {
  color: #0a62d7;
  font-weight: 650;
}

.mnt-help-status[data-ok="true"] {
  color: #0c6a38;
  font-weight: 650;
}

.mnt-help-status[data-ok="false"] {
  color: #b42318;
  font-weight: 650;
}

#mnt-help-root[data-state="closed"] .mnt-help-panel {
  display: none;
}

#mnt-help-root[data-state="open"] .mnt-help-bubble {
  display: none;
}

@media print {
  #mnt-help-root {
    display: none !important;
  }
}
