/* Message first on a HappyTasker's profile (includes/message-first-profile.php):
   the "Have a question?" row under About me, and the chat panel's host at the
   foot of the page. message-first-panel.css draws the panel inside .ht-cb,
   and phone-code-steps.css its sign-in panels. The tokens and the button,
   error and text box rules live in booking-page.css, which a profile page does
   not load: the host carries copies of the ones the panel uses. Every control sets its own text color (the app web view tints
   bare ones blue). */

/* The row: the whole row is the button (the button's ::after covers it). */
.ht-mf-ask {
  position: relative;
  margin-top: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.ht-mf-ask:hover { background: #fafafa; }
.ht-mf-ask__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  color: #717171;
  font-size: 15px;
  line-height: 1.3;
}
.ht-mf-ask__row svg { flex: 0 0 auto; }
.ht-mf-ask__row span { color: #717171; }
.ht-mf-ask__go {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.ht-mf-ask__go:hover,
.ht-mf-ask__go:focus { color: #1a1a1a; }
.ht-mf-ask__go::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.ht-mf-ask__go:focus-visible { outline: none; }
.ht-mf-ask__go:focus-visible::after { box-shadow: 0 0 0 2px #1a1a1a; }

/* The host: booking-page.css's .ht-cb tokens, without its page padding. */
.ht-cb.ht-mf-host {
  --ht-ink: #1a1a1a;
  --ht-ink-2: #3c3c43;
  --ht-ink-3: #717171;
  --ht-line: #e6e6e6;
  --ht-bg: #f7f7f7;
  --ht-green: #1dba00;
  --ht-green-dark: #189c00;
  --ht-red: #b42318;
  --ht-blue: #133072;
  box-sizing: border-box;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--ht-ink);
  text-align: left;
}
.ht-mf-host *,
.ht-mf-host *::before,
.ht-mf-host *::after { box-sizing: inherit; }
.ht-mf-host span { color: inherit; }
.ht-mf-host h2 { font-family: inherit; }
.ht-mf-host p { color: inherit; }

/* booking-page.css copies the panel uses. */
.ht-mf-host .ht-btn {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.ht-mf-host .ht-btn--dark { background: var(--ht-ink); color: #fff; }
.ht-mf-host .ht-btn--dark:hover,
.ht-mf-host .ht-btn--dark:focus { background: #333; color: #fff; }
.ht-mf-host .ht-btn[disabled] { opacity: 0.6; cursor: default; }
.ht-mf-host .ht-card__error {
  margin: 10px 0 0;
  color: var(--ht-red);
  font-size: 14.5px;
  line-height: 1.4;
}
.ht-mf-host .ht-card__error:empty { display: none; }
.ht-mf-host .ht-card__error.is-ok,
.ht-mf-host .ht-card__error.is-pending { color: var(--ht-ink-2); }
.ht-mf-host .ht-link { color: var(--ht-blue); font-weight: 600; text-decoration: underline; }
.ht-mf-host .ht-link--btn { background: transparent; border: 0; padding: 0; font-size: 14.5px; cursor: pointer; }
/* booking-page.css's .ht-cb text box, which the sign-in boxes stand on (their
   floating labels and panels are css/custom-css/phone-code-steps.css). */
.ht-mf-host .ht-float__input {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  background: #fff;
  color: var(--ht-ink);
  font-size: 16px;
  line-height: 1.3;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.ht-mf-host .ht-float__input:focus { outline: none; border-color: var(--ht-ink); box-shadow: 0 0 0 1px var(--ht-ink); }
.ht-mf-host .ht-info__terms { margin: 10px 0 0; color: var(--ht-ink-3); font-size: 13px; line-height: 1.5; }

/* The chat's foot: the price, and Book in orange, which runs the page's own
   Book button. */
.ht-mf-host .ht-mf__foot--price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ht-mf-host .ht-mf__price {
  margin: 0;
  color: var(--ht-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.ht-mf-host .ht-mf__price:empty { display: none; }
.ht-mf-host .ht-btn--book {
  display: block;
  flex: 0 1 auto;
  min-width: 160px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffa23d 0%, #f7880c 52%, #ea7b05 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.ht-mf-host .ht-btn--book:hover,
.ht-mf-host .ht-btn--book:focus { background: linear-gradient(180deg, #f7880c 0%, #ea7b05 100%); color: #fff; }
.ht-mf-host .ht-mf__photo[hidden] { display: none; }

/* With a phone's keyboard up the sheet takes the whole screen, and the page
   under it is not drawn (message-first-panel.css does this on the booking page). */
@media (max-width: 899px) {
  html.ht-mf-short body { visibility: hidden; }
  html.ht-mf-short #htMfProfile { visibility: visible; }
}
