/* Android: robust layout (header + footer fixed, only body scrolls) */

.aws-android .aws-chat-panel{
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: auto !important;

  width: auto !important;
  max-width: none !important;

  height: var(--aws-vvh, 100vh) !important;

  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;

  overflow: hidden !important; /* important: panel itself never scrolls */
}

/* FIXED header always visible */
.aws-android .aws-chat-header{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
}

/* FIXED footer always visible, lifted by keyboard height */
.aws-android .aws-chat-footer{
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 50 !important;

  background: #fff !important;

  /* lift above keyboard */
  transform: translateY(calc(-1 * var(--aws-kb, 0px))) !important;
}

/* Only messages area scrolls; give room for fixed header/footer */
.aws-android .aws-chat-body{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;

  /* header height approx 56px (adjustable) */
  top: 56px !important;

  /* footer height approx 64px + keyboard lift handled by footer transform */
  bottom: 64px !important;

  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Hide floating button while open */
.aws-chat-open .aws-chat-fab,
.aws-chat-open .aws-chat-fab-label{
  display:none !important;
}