/* Product update layer: Messenger, QR bulk campaigns and mobile app navigation. */
[data-fx-messenger-nav] .MuiListItemIcon-root svg,
[data-fx-qr-bulk-nav] .MuiListItemIcon-root svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

[data-fx-messenger-nav] .MuiListItemIcon-root { color: #0866ff !important; }
[data-fx-qr-bulk-nav] .MuiListItemIcon-root { color: #12a66a !important; }

.fx-messenger-tabs {
  display: inline-flex;
  gap: 5px;
  margin: -9px 0 21px;
  padding: 5px;
  background: #e9eef5;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
}

.fx-messenger-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  color: #627087;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.fx-messenger-tabs button[aria-current="page"] {
  color: #0866ff;
  background: #fff;
  box-shadow: 0 3px 10px rgba(25, 47, 78, .1);
}

.fx-messenger-tabs svg { width: 18px; height: 18px; }

.fx-chatbot-layout,
.fx-qr-layout {
  display: grid;
  grid-template-columns: minmax(310px, .82fr) minmax(410px, 1.18fr);
  gap: 20px;
  align-items: start;
}

.fx-chatbot-form,
.fx-chatbot-rules,
.fx-qr-form,
.fx-qr-campaigns {
  padding: 23px;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 18px;
  box-shadow: 0 7px 25px rgba(35, 55, 80, .05);
}

.fx-chatbot-form,
.fx-qr-form { display: grid; gap: 14px; }
.fx-chatbot-form h2,
.fx-chatbot-rules h2,
.fx-qr-form h2,
.fx-qr-campaigns h2 { margin: 2px 0 5px; color: #172132; font-size: 20px; }
.fx-chatbot-form > div:first-child p,
.fx-qr-form > div:first-child p { margin: 0; color: #6c788a; font-size: 12px; line-height: 1.5; }
.fx-form-kicker { color: #0866ff; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.fx-qr-bulk-shell .fx-form-kicker { color: #07865a; }

.fx-chatbot-form > label,
.fx-chatbot-form .fx-form-two > label,
.fx-qr-form > label,
.fx-qr-form .fx-form-two > label {
  display: grid;
  gap: 6px;
  color: #425166;
  font-size: 11px;
  font-weight: 800;
}

.fx-chatbot-form :is(input, select, textarea),
.fx-qr-form :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  color: #172132;
  background: #fff;
  border: 1px solid #cdd6e3;
  border-radius: 9px;
  outline: none;
  font: inherit;
  font-size: 13px;
}

.fx-chatbot-form textarea,
.fx-qr-form textarea { resize: vertical; }
.fx-chatbot-form :is(input, select, textarea):focus,
.fx-qr-form :is(input, select, textarea):focus { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24, 119, 242, .1); }
.fx-qr-form :is(input, select, textarea):focus { border-color: #0aa873; box-shadow: 0 0 0 3px rgba(10, 168, 115, .11); }
.fx-chatbot-form label > small,
.fx-qr-form label > small { color: #8490a1; font-size: 9px; font-weight: 500; }
.fx-form-two { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.fx-chatbot-options { display: flex; flex-wrap: wrap; gap: 14px; }
.fx-chatbot-options label { display: inline-flex; align-items: center; gap: 6px; color: #526176; font-size: 11px; }
.fx-chatbot-options input { width: 15px; min-height: 15px; }
.fx-chatbot-form [data-trigger-field].is-disabled { opacity: .45; }
.fx-chatbot-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.fx-chatbot-form-actions > button:not(.fx-primary) { padding: 8px 13px; color: #526176; background: #fff; border: 1px solid #ccd6e2; border-radius: 9px; cursor: pointer; }

.fx-chatbot-rules-head,
.fx-qr-campaigns-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fx-chatbot-rules-head > span { display: grid; width: 32px; height: 32px; color: #0866ff; background: #eaf2ff; border-radius: 50%; font-size: 12px; font-weight: 900; place-items: center; }
.fx-chatbot-rule-list,
.fx-qr-campaign-list { display: grid; gap: 11px; max-height: calc(100dvh - 250px); overflow: auto; padding-right: 3px; }
.fx-chatbot-rule { padding: 16px; background: #f9fbfd; border: 1px solid #e2e8f0; border-radius: 13px; }
.fx-chatbot-rule-head { display: flex; align-items: center; gap: 10px; }
.fx-chatbot-rule-head > div:nth-child(2) { min-width: 0; flex: 1; }
.fx-chatbot-rule-icon { display: grid; width: 36px; height: 36px; color: #0866ff; background: #eaf2ff; border-radius: 11px; place-items: center; }
.fx-chatbot-rule-icon svg { width: 21px; height: 21px; }
.fx-chatbot-rule h3 { margin: 0 0 2px; overflow: hidden; color: #1c293b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.fx-chatbot-rule-head p { margin: 0; color: #7a8798; font-size: 10px; }
.fx-chatbot-state { padding: 4px 7px; color: #087656; background: #e5f9f1; border-radius: 999px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.fx-chatbot-state[data-enabled="false"] { color: #786236; background: #fff4d8; }
.fx-chatbot-trigger,
.fx-chatbot-reply { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; margin-top: 11px; }
.fx-chatbot-trigger strong,
.fx-chatbot-reply strong { color: #8a95a5; font-size: 9px; text-transform: uppercase; }
.fx-chatbot-trigger span,
.fx-chatbot-reply p { margin: 0; color: #405067; font-size: 11px; line-height: 1.45; }
.fx-chatbot-actions,
.fx-qr-campaign-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.fx-chatbot-actions button,
.fx-qr-campaign-actions button,
.fx-qr-campaigns-head button { min-height: 31px; padding: 6px 10px; color: #3f5570; background: #fff; border: 1px solid #cfd9e5; border-radius: 8px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; }
.fx-chatbot-actions button.danger,
.fx-qr-campaign-actions button.danger { margin-left: auto; color: #b12835; border-color: #e7c5c9; }

.fx-qr-bulk-panel {
  position: fixed;
  z-index: 1195;
  inset: 0 0 0 var(--fx-panel-sidebar, 0px);
  overflow: auto;
  color: #172132;
  background: #f5f7fb;
  font-family: Roboto, Arial, sans-serif;
}
.fx-qr-bulk-panel * { box-sizing: border-box; }
.fx-qr-bulk-shell { width: min(1240px, 100%); margin: 0 auto; padding: 30px clamp(18px, 4vw, 46px) 48px; }
.fx-qr-bulk-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 22px 24px; color: #fff; background: linear-gradient(130deg, #08795a, #0daa75 58%, #2bbf83); border-radius: 22px; box-shadow: 0 18px 46px rgba(8, 121, 90, .2); }
.fx-qr-bulk-header > div:nth-child(2) { min-width: 0; flex: 1; }
.fx-qr-bulk-header span { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 900; letter-spacing: .13em; opacity: .76; }
.fx-qr-bulk-header h1 { margin: 0 0 5px; font-size: clamp(23px, 3vw, 34px); line-height: 1.1; }
.fx-qr-bulk-header p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 13px; }
.fx-qr-title-icon { display: grid; width: 56px; height: 56px; flex: 0 0 56px; color: #07865a; background: #fff; border-radius: 16px; place-items: center; }
.fx-qr-title-icon svg { width: 33px; height: 33px; }
.fx-qr-bulk-header > button { display: grid; width: 40px; height: 40px; padding: 0; color: #fff; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; cursor: pointer; font-size: 27px; place-items: center; }
.fx-qr-message { margin: 0 0 16px; padding: 12px 15px; border-radius: 11px; font-size: 12px; }
.fx-qr-message[data-type="success"] { color: #075b43; background: #e8fbf4; border: 1px solid #aee8d4; }
.fx-qr-message[data-type="warning"] { color: #775300; background: #fff8da; border: 1px solid #ead589; }
.fx-qr-message[data-type="error"] { color: #9c2530; background: #fff0f1; border: 1px solid #edbdc1; }
.fx-qr-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.fx-qr-metrics > div { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; background: #fff; border: 1px solid #e0e8ee; border-radius: 13px; }
.fx-qr-metrics strong { color: #08795a; font-size: 22px; }
.fx-qr-metrics span { color: #718093; font-size: 10px; font-weight: 700; }
.fx-qr-file { padding: 11px; background: #f5faf8; border: 1px dashed #a9cfc1; border-radius: 10px; cursor: pointer; }
.fx-qr-file input { min-height: auto; padding: 0; border: 0; }
.fx-qr-file > span { color: #708278; font-size: 9px; }
.fx-qr-campaigns-head button { color: #08795a; border-color: #b9d8cd; }
.fx-qr-campaign { padding: 16px; background: #f9fbfd; border: 1px solid #e2e8f0; border-left: 4px solid #0aa873; border-radius: 13px; }
.fx-qr-campaign[data-status="PAUSED"] { border-left-color: #e5a62d; }
.fx-qr-campaign[data-status="FAILED"],
.fx-qr-campaign[data-status="CANCELLED"] { border-left-color: #d85661; }
.fx-qr-campaign-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fx-qr-campaign-head h3 { margin: 0 0 3px; color: #1c293b; font-size: 13px; }
.fx-qr-campaign-head p { margin: 0; color: #7b8797; font-size: 9px; }
.fx-qr-campaign-head > span { padding: 4px 7px; color: #087656; background: #e5f9f1; border-radius: 999px; font-size: 8px; font-weight: 900; }
.fx-qr-progress { height: 6px; margin: 13px 0 8px; overflow: hidden; background: #e8edf2; border-radius: 999px; }
.fx-qr-progress span { display: block; height: 100%; background: linear-gradient(90deg, #08a46e, #37c491); border-radius: inherit; }
.fx-qr-counts { display: flex; gap: 15px; color: #748194; font-size: 9px; }
.fx-qr-counts strong { color: #35465d; }
.fx-qr-schedule { margin: 9px 0 0; color: #6e7b8b; font-size: 9px; }
.fx-qr-error { margin: 9px 0 0; padding: 7px 9px; color: #9c2530; background: #fff0f1; border-radius: 7px; font-size: 9px; }

.fx-qr-modal { position: fixed; z-index: 1900; inset: 0; display: grid; padding: 20px; place-items: center; font-family: Roboto, Arial, sans-serif; }
.fx-qr-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .56); backdrop-filter: blur(3px); }
.fx-qr-modal > section { position: relative; width: min(720px, 100%); max-height: min(760px, calc(100dvh - 40px)); overflow: hidden; background: #fff; border-radius: 19px; box-shadow: 0 28px 80px rgba(15, 23, 42, .3); }
.fx-qr-modal header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 15px; border-bottom: 1px solid #e5eaf0; }
.fx-qr-modal h2 { margin: 3px 0 0; font-size: 20px; }
.fx-qr-modal header button { width: 35px; height: 35px; color: #637084; background: #f2f5f8; border: 0; border-radius: 50%; cursor: pointer; font-size: 23px; }
.fx-qr-log-list { display: grid; gap: 7px; max-height: 610px; overflow: auto; padding: 15px 22px 22px; }
.fx-qr-log-list > div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(120px, 1fr) auto; gap: 9px; padding: 10px 12px; background: #f8fafc; border: 1px solid #e6ebf0; border-radius: 9px; font-size: 10px; }
.fx-qr-log-list em { color: #07865a; font-style: normal; font-weight: 800; }
.fx-qr-log-list small { grid-column: 1 / -1; color: #a13b45; }

.fx-mobile-nav,
.fx-tools-sheet { display: none; }

@media (max-width: 899.95px) {
  body.fx-user-app { overscroll-behavior-y: none; }
  body.fx-user-app #root .MuiDrawer-root,
  body.fx-user-app #root .MuiAppBar-root { display: none !important; }
  body.fx-user-app #root main { min-height: 100dvh !important; padding: 0 0 calc(76px + env(safe-area-inset-bottom)) !important; }
  body.fx-user-app #root main > :first-child:empty { display: none !important; }
  body.fx-user-app #root main > :last-child { padding: 12px !important; }

  .fx-mobile-nav {
    position: fixed;
    z-index: 1550;
    right: 10px;
    bottom: max(9px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 62px;
    padding: 6px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(15, 23, 42, .11);
    border-radius: 19px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .2);
    backdrop-filter: blur(20px) saturate(160%);
  }
  .fx-mobile-nav button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 5px; color: #8290a2; background: transparent; border: 0; border-radius: 14px; font: inherit; font-size: 9px; font-weight: 800; -webkit-tap-highlight-color: transparent; }
  .fx-mobile-nav button[aria-current="page"] { color: #08795a; background: rgba(8, 121, 90, .09); }
  .fx-mobile-nav svg { width: 22px; height: 22px; fill: currentColor; }

  .fx-tools-sheet { position: fixed; z-index: 1540; inset: 0; display: block; font-family: Roboto, Arial, sans-serif; }
  .fx-tools-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); backdrop-filter: blur(2px); }
  .fx-tools-dialog { position: absolute; right: 0; bottom: 0; left: 0; max-height: calc(88dvh - env(safe-area-inset-bottom)); overflow: hidden; padding-bottom: calc(78px + env(safe-area-inset-bottom)); color: #172132; background: #f6f8fb; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(15, 23, 42, .25); }
  .fx-tools-dialog::before { display: block; width: 42px; height: 4px; margin: 8px auto 2px; background: #c8d0da; border-radius: 99px; content: ""; }
  .fx-tools-dialog > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 10px; }
  .fx-tools-dialog > header span { color: #07865a; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
  .fx-tools-dialog h2 { margin: 2px 0 0; font-size: 22px; }
  .fx-tools-dialog > header button { width: 36px; height: 36px; color: #5f6d80; background: #e8edf2; border: 0; border-radius: 50%; font-size: 24px; }
  .fx-tools-search { display: flex; align-items: center; gap: 8px; margin: 0 18px 12px; padding: 9px 12px; background: #fff; border: 1px solid #dce3ea; border-radius: 12px; }
  .fx-tools-search span { color: #6e7d90; font-size: 20px; }
  .fx-tools-search input { min-width: 0; flex: 1; padding: 0; background: transparent; border: 0; outline: 0; font: inherit; font-size: 13px; }
  .fx-tools-groups { max-height: calc(88dvh - 178px - env(safe-area-inset-bottom)); overflow: auto; padding: 0 18px 18px; }
  .fx-tools-groups section + section { margin-top: 17px; }
  .fx-tools-groups h3 { margin: 0 0 8px; color: #7b8798; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .fx-tools-groups section > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fx-tools-groups button { display: flex; align-items: center; min-width: 0; min-height: 66px; flex-direction: column; gap: 6px; padding: 9px 5px; color: #35455b; background: #fff; border: 1px solid #e0e6ed; border-radius: 13px; box-shadow: 0 3px 10px rgba(35, 55, 80, .04); font: inherit; }
  .fx-tools-groups button > span { display: grid; width: 28px; height: 28px; color: #08795a; background: #e7f7f1; border-radius: 9px; font-size: 12px; font-weight: 900; place-items: center; }
  .fx-tools-groups button strong { max-width: 100%; font-size: 9px; line-height: 1.25; text-align: center; }
  .fx-tools-empty { padding: 30px; color: #7c8999; text-align: center; }

  body.fx-mobile-inbox #root main { height: 100dvh !important; min-height: 0 !important; overflow: hidden; }
  body.fx-mobile-inbox #root main > :last-child { height: calc(100dvh - 76px - env(safe-area-inset-bottom)); min-height: 0; overflow: hidden; padding: 0 !important; }
  body.fx-mobile-inbox #root main > :last-child > div { height: 100% !important; min-height: 0 !important; }
  body.fx-mobile-inbox #root main .MuiPaper-root { border-radius: 0 !important; box-shadow: none !important; }
  body.fx-mobile-inbox .fx-inbox-header { top: 0 !important; }

  /* Keep the app viewport fixed. The general mobile shell already reserves
     bottom-nav space; retaining that padding here made narrow Android pages
     taller than the visual viewport and scrolled the chat header under Chrome. */
  body.fx-mobile-inbox {
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  body.fx-mobile-inbox #root {
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  body.fx-mobile-inbox #root main {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .fx-messenger-panel,
  .fx-qr-bulk-panel { left: 0 !important; bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  .fx-messenger-shell,
  .fx-qr-bulk-shell { padding: 14px 12px 24px; }
  .fx-chatbot-layout,
  .fx-qr-layout { grid-template-columns: 1fr; }
  .fx-chatbot-rule-list,
  .fx-qr-campaign-list { max-height: none; }
  .fx-qr-bulk-header { align-items: flex-start; padding: 18px; border-radius: 17px; }
  .fx-qr-title-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .fx-qr-title-icon svg { width: 27px; height: 27px; }
  .fx-qr-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .fx-messenger-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .fx-form-two { grid-template-columns: 1fr; }
  .fx-chatbot-form,
  .fx-chatbot-rules,
  .fx-qr-form,
  .fx-qr-campaigns { padding: 17px; border-radius: 15px; }
  .fx-qr-bulk-header p { display: none; }
  .fx-qr-bulk-header h1 { font-size: 21px; }
  .fx-tools-groups section > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-qr-log-list > div { grid-template-columns: 1fr auto; }
  .fx-qr-log-list em { grid-row: 1 / 3; grid-column: 2; align-self: center; }
}

/* Final mobile-inbox viewport lock. A restored document scroll position or
   the compiled message scrollIntoView must never move the chat header above
   the browser's visual viewport. */
@media (max-width: 899.95px) {
  html.fx-mobile-inbox-root {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    scroll-behavior: auto !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox {
    width: 100% !important;
    height: var(--fx-mobile-inbox-height, 100dvh) !important;
    min-height: 0 !important;
    max-height: var(--fx-mobile-inbox-height, 100dvh) !important;
    margin: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox #root {
    position: fixed !important;
    z-index: 0 !important;
    top: var(--fx-mobile-inbox-top, 0px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: var(--fx-mobile-inbox-height, 100dvh) !important;
    min-height: 0 !important;
    max-height: var(--fx-mobile-inbox-height, 100dvh) !important;
    overflow: hidden !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox #root main {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox #root main > :last-child {
    width: 100% !important;
    height: calc(100% - 76px - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    max-height: calc(100% - 76px - env(safe-area-inset-bottom)) !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox :is(
    .fx-inbox-chat-frame,
    .fx-inbox-chat-column,
    .fx-inbox-chat-panel
  ) {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox .fx-inbox-chat-column,
  html.fx-mobile-inbox-root body.fx-mobile-inbox .fx-inbox-chat-panel {
    display: flex !important;
    flex-direction: column !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox .fx-inbox-message-pane {
    min-height: 0 !important;
    flex: 1 1 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox .fx-inbox-composer-region {
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
}

/* ===== InboxWhats final mobile chat fix ===== */
@media (max-width: 767.95px) {
  html.fx-mobile-inbox-root,
  html.fx-mobile-inbox-root body.fx-mobile-inbox {
    width: 100% !important;
    height: var(--fx-mobile-inbox-height, 100dvh) !important;
    max-height: var(--fx-mobile-inbox-height, 100dvh) !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox #root {
    position: fixed !important;
    inset: var(--fx-mobile-inbox-top, 0px) 0 auto 0 !important;
    width: 100% !important;
    height: var(--fx-mobile-inbox-height, 100dvh) !important;
    max-height: var(--fx-mobile-inbox-height, 100dvh) !important;
    overflow: hidden !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox #root main {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox #root main > :last-child {
    height: calc(100% - 76px - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    max-height: calc(100% - 76px - env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-chat-frame,
  body.fx-mobile-inbox.fx-inbox .fx-inbox-chat-column,
  body.fx-mobile-inbox.fx-inbox .fx-inbox-chat-panel {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 0 !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-header {
    position: relative !important;
    top: auto !important;
    z-index: 50 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-height: calc(62px + env(safe-area-inset-top)) !important;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left)) !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.97) !important;
    border-bottom: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 4px 18px rgba(15,23,42,.06) !important;
    backdrop-filter: blur(14px) !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-avatar {
    flex: 0 0 36px !important;
    min-width: 36px !important;
    width: 36px !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-avatar .MuiAvatar-root {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-identity {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-name,
  body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-number {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-name {
    font-size: 14px !important;
    line-height: 19px !important;
    font-weight: 700 !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-number {
    font-size: 11px !important;
    line-height: 16px !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-header-actions {
    flex: 0 0 88px !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin-left: auto !important;
    overflow: visible !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-header .fx-inbox-secondary-action {
    display: none !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-header .fx-call-button,
  body.fx-mobile-inbox.fx-inbox .fx-inbox-header-actions > button:not(.fx-inbox-secondary-action) {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    flex: 0 0 42px !important;
    padding: 8px !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border-radius: 50% !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-message-pane {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    padding: 10px 8px 12px !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer-region {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 45 !important;
    background: rgba(255,255,255,.98) !important;
    border-top: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 -6px 18px rgba(15,23,42,.06) !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: flex !important;
    align-items: flex-end !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 7px max(6px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)) !important;
    overflow: visible !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer-field {
    flex: 1 1 auto !important;
    min-width: 80px !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer-field .MuiInputBase-root {
    min-height: 42px !important;
    border-radius: 22px !important;
    padding: 5px 12px !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer-field input,
  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer-field textarea {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer .fx-inbox-composer-action {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    display: inline-grid !important;
    place-items: center !important;
    padding: 8px !important;
    margin: 0 !important;
  }

  .fx-mobile-nav {
    z-index: 1600 !important;
  }
}

@media (max-width: 379.95px) {
  body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-avatar {
    display: none !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-header {
    gap: 6px !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-header-actions {
    flex-basis: 84px !important;
    width: 84px !important;
    min-width: 84px !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-header .fx-call-button,
  body.fx-mobile-inbox.fx-inbox .fx-inbox-header-actions > button:not(.fx-inbox-secondary-action) {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
  }
}
