/* iOS-only overrides */

/* Show label only when chat is CLOSED */
@media (max-width:640px){
  .aws-chat-fab-label{
    display:block !important;
    right:88px !important;
    bottom:26px !important;
    font-size:12px !important;
  }
}
.aws-chat-open .aws-chat-fab-label{
  display:none !important;
}

/* Hide FAB + label while chat is open */
.aws-chat-open .aws-chat-fab,
.aws-chat-open .aws-chat-fab-label{
  display:none !important;
}

/* Keep header always visible when typing */
@media (max-width:640px){
  .aws-chat-header{
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
  }

  .aws-chat-footer{
    position: sticky !important;
    bottom: 0 !important;
    z-index: 30 !important;
    background:#fff !important;
  }
}

/* Ensure Contact shows text on iPhone */
@media (max-width:640px){
  .aws-contact-text{ display:inline !important; }
  .aws-contact-btn{ width:auto !important; padding:0 10px !important; }
}

/* Reduce extra bottom padding when keyboard is open */
.aws-kb-open .aws-chat-footer{
  padding-bottom: 8px !important;
}