/* Mboka R74122: iPhone customer chat keyboard/composer alignment.
   Applied only when the customer chat textbox owns focus AND the visual
   viewport indicates an on-screen keyboard. This CSS intentionally does not
   alter customer/staff message geometry, sender names, or chat polling. */
@media (max-width: 720px) {
  body.mbk-v406-phone-chat-open
  .mbk-chat.mbk-v406-mobile-chat.mbk-v422-keyboard-open {
    /* The v406 viewport controller reserves 8px at the bottom. Fill that
       reserved strip while typing so the composer meets the keyboard. */
    height: calc(var(--mbk-v406-vv-height, calc(100dvh - 16px)) + 8px) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding-bottom: 0 !important;
  }
  body.mbk-v406-phone-chat-open
  .mbk-chat.mbk-v406-mobile-chat.mbk-v422-keyboard-open .mbk-input {
    /* Do not reserve home-indicator safe-area in the reduced keyboard
       viewport. Keep the original attachment/input/send layout intact. */
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin: 6px 10px 4px !important;
    padding-bottom: 5px !important;
    border-radius: 22px !important;
    transform: none !important;
  }
  body.mbk-v406-phone-chat-open
  .mbk-chat.mbk-v406-mobile-chat.mbk-v422-keyboard-open::after {
    display: none !important;
    content: none !important;
  }
  body.mbk-v406-phone-chat-open
  .mbk-chat.mbk-v406-mobile-chat.mbk-v422-keyboard-open #mbk-msgs {
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-padding-bottom: 12px;
  }
}
/* MBOKA_R74122_KEYBOARD_COMPOSER_ALIGNMENT=1 */
