/* Mobile onboarding and dashboard usability refinements, 2026-10-28. */

/* Dashboard navigation is the primary mobile action surface; public website
   chat should never cover the fixed client/admin navigation dock. */
body.bl-private-active .bl-chat { display: none !important; }

/* iOS Safari otherwise enlarges sub-16px fields when a customer taps to type.
   Preserve the existing one-column layout on both iOS and Android. */
@media (max-width: 800px) {
  .bl-start-wrap .bl-start-field input,
  .bl-start-wrap .bl-start-field select,
  .bl-start-wrap .bl-start-field textarea,
  .bl-start-wrap .wb-text-field input,
  .bl-start-wrap .wb-text-field textarea,
  .bl-start-wrap .bl-goals-other input,
  .bl-ob .bl-ob-field input,
  .bl-ob .bl-ob-field select,
  .bl-ob .bl-ob-field textarea,
  .bl-ob .wb-text-field input,
  .bl-ob .wb-text-field textarea,
  .bl-ob .bl-goals-other input,
  .bl-gift .bl-gift-field input,
  .bl-gift .bl-gift-field select {
    font-size: 16px !important;
  }
  .bl-start-wrap .bl-start-field :is(input, select, textarea),
  .bl-ob .bl-ob-field :is(input, select, textarea),
  .bl-gift .bl-gift-field :is(input, select) {
    min-height: 44px;
  }
  /* Do not obscure the active form control with the public chat launcher,
     especially when the iOS/Android software keyboard is raised. */
  body:has(.bl-start-form :is(input,select,textarea):focus) .bl-chat:not(.is-open),
  body:has(.bl-gift-form :is(input,select,textarea):focus) .bl-chat:not(.is-open) {
    display: none !important;
  }
}

/* The dashboard title needs dark contrast on the actual white mobile header. */
@media (max-width: 800px) {
  body.bl-private-active .topbar .bl-mobile-head-title {
    color: #16384f !important;
  }
}

/* Keep all website lead, contact, coupon, login and checkout form fields
   comfortable on iOS Safari (which otherwise auto-zooms under 16px). */
@media (max-width: 800px) {
  body.m-public :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
                    select,textarea),
  body:not(.bl-private-active) :is(
        .blmo-form-section input:not([type=checkbox]):not([type=radio]):not([type=file]),
        .blmo-form-section select,.blmo-form-section textarea,
        .form-card input:not([type=checkbox]):not([type=radio]),
        .form-card select,.form-card textarea) {
    font-size:16px!important;
  }
  body.m-public :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
                    select,textarea){max-width:100%}
}
