#mobile-customer-workbench[hidden], #mobile-customer-nav[hidden], #mobile-customer-notice[hidden],
#mobile-customer-alerts[hidden], #mobile-customer-alerts [hidden],
#mobile-customer-workbench [hidden] { display: none !important; }
body.mc-available { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
body.mc-available.mc-has-notice:not(.mc-chat-active) { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
body.mc-chat-active { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; padding-bottom: 0; background: #eff5f3; }
body.mc-chat-active > .topbar { flex: none; position: static; padding: 8px 14px; }
body.mc-chat-active > .topbar .topnav, body.mc-chat-active #main, body.mc-chat-active > .footer { display: none; }
body.mc-chat-active > .topbar .account-label { display: none; }
body.mc-chat-active > .topbar .brand { min-width: 0; }
#mobile-customer-workbench, #mobile-customer-notice, #mobile-customer-nav { color: #183132; }
#mobile-customer-workbench { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; width: 100%; margin-inline: auto; }
#mobile-customer-workbench .mc-inbox, #mobile-customer-workbench .mc-room { flex: 1; min-height: 0; }
#mobile-customer-workbench .mc-inbox { overflow: auto; }
#mobile-customer-workbench .mc-room { display: flex; flex-direction: column; }
#mobile-customer-workbench .mc-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex: none; padding: 12px 14px; background: #fff; border-bottom: 1px solid #d8e6e1; }
#mobile-customer-workbench .mc-head > div { flex: 1; min-width: 0; }
#mobile-customer-workbench .mc-room:not(.mc-team-room) > .mc-head > button { padding-inline: 8px; font-size: .875rem; }
#mobile-customer-workbench .mc-head > .mc-inbox-actions { display: flex; justify-content: flex-end; flex: 0 1 auto; max-width: 62%; flex-wrap: wrap; gap: 5px; }
#mobile-customer-workbench .mc-inbox-actions button { padding-inline: 8px; font-size: .875rem; }
#mobile-customer-workbench h1 { color: #143536; margin: 0; line-height: 1.25; font-size: 1.18rem; overflow-wrap: anywhere; }
#mobile-customer-workbench .mc-identity, #mobile-customer-workbench .mc-room-status { margin: 4px 0 0; color: #4e6463; font-size: .875rem; }
#mobile-customer-workbench .mc-room-last-reply { margin: 5px 0 0; color: #4e6463; font-size: .8rem; }
#mobile-customer-workbench .mc-staff-badge {
  display: inline-block; max-width: 100%; padding: 1px 5px; border-radius: 5px;
  color: #52615c; background: #e9eeec; font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere;
}
#mobile-customer-workbench .mc-staff-badge.is-online { color: #15574b; background: #d8eee5; font-weight: 700; }
#mobile-customer-workbench .mc-list { padding: 9px 10px 16px; }
#mobile-customer-workbench .mc-team-entry { padding: 10px 10px 0; }
#mobile-customer-workbench .mc-team-entry button.mc-row { background: #e1f2ed; }
#mobile-customer-workbench .mc-team-entry .mc-avatar { background: #176559; color: #fff; }
#mobile-customer-workbench .mc-team-unread-dot {
  display: inline-block; width: 11px; height: 11px; margin-inline-start: 7px;
  border-radius: 50%; background: #d93045; vertical-align: .1em;
}
#mobile-customer-workbench .mc-team-online { color: #235e55; }
#mobile-customer-workbench .mc-filters { display: flex; gap: 8px; padding: 12px 10px 0; }
#mobile-customer-workbench .mc-filters button { flex: 1; }
#mobile-customer-workbench .mc-filters [aria-pressed="true"] { background: #d9efe7; color: #164b45; border-color: #92bdaf; }
#mobile-customer-workbench .mc-filters button span { margin-inline-start: 3px; color: #235e55; font-size: .8rem; }
#mobile-customer-alerts { position: sticky; top: 0; z-index: 18; flex: none; }
body.mc-chat-active #mobile-customer-alerts { position: static; }
#mobile-customer-alerts .mc-incoming { display: flex; gap: 6px; padding: 3px 10px; background: #fff4f4; border-bottom: 1px solid #f3c8c8; }
#mobile-customer-alerts button { min-height: 44px; padding: 4px 8px; border: 0; border-radius: 6px; color: #822833; background: none; font: inherit; font-weight: 650; }
#mobile-customer-alerts .mc-incoming button:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: left; }
#mobile-customer-alerts .mc-incoming button:last-child { flex: 0 0 44px; font-size: 1.2rem; }
#mobile-customer-alerts :focus-visible { outline: 2px solid #217c79; outline-offset: 2px; }
#mobile-customer-alerts .mc-pending-list {
  max-height: 142px; max-height: min(25dvh, 142px); overflow: auto; background: #fff7e8;
}
#mobile-customer-alerts .mc-pending-visitor {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline;
  width: 100%; gap: 3px 7px; padding: 7px 12px; text-align: left; border-radius: 0;
  color: #643d14; border-bottom: 1px solid #edcc97; font-size: .875rem;
}
#mobile-customer-alerts .mc-pending-visitor-label,
#mobile-customer-alerts .mc-pending-visitor-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mobile-customer-alerts .mc-pending-visitor-preview {
  grid-column: 1 / 3; grid-row: 2; font-size: .8125rem; font-weight: 400;
}
#mobile-customer-alerts .mc-pending-visitor-open { grid-column: 3; grid-row: 1 / 3; align-self: center; color: #664a1d; }
#mobile-customer-workbench .mc-row-copy .mc-pending-row { color: #83551e; font-size: .8rem; font-weight: 650; }
#mobile-customer-workbench .mc-list-status { margin: 12px 16px; color: #4e6463; }
#mobile-customer-workbench .mc-list-status:empty { display: none; }
#mobile-customer-workbench button.mc-row { display: flex; width: 100%; gap: 11px; align-items: center; text-align: left; padding: 13px 10px; border: 0; border-bottom: 1px solid #e0ebe7; border-radius: 0; background: #fff; color: inherit; }
#mobile-customer-workbench button.mc-row:first-child { border-radius: 12px 12px 0 0; }
#mobile-customer-workbench button.mc-row:last-child { border-radius: 0 0 12px 12px; border-bottom: 0; }
#mobile-customer-workbench button.mc-row:only-child { border-radius: 12px; }
#mobile-customer-workbench .mc-avatar { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: #d9efea; color: #164b45; font-weight: 700; }
#mobile-customer-workbench .mc-row-copy { min-width: 0; flex: 1; }
#mobile-customer-workbench .mc-row-copy strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
#mobile-customer-workbench .mc-row-copy strong small { display: inline-block; padding: 1px 6px; margin-left: 2px; border-radius: 8px; background: #e9f4f1; color: #235e55; font-size: .75rem; }
#mobile-customer-workbench .mc-row-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; margin-top: 4px; color: #4b6463; font-size: .875rem; }
#mobile-customer-workbench .mc-row-copy > .mc-last-reply { color: #235e55; font-size: .8rem; }
#mobile-customer-workbench .mc-row-end { flex: none; min-width: 40px; display: grid; justify-items: end; gap: 6px; font-size: .75rem; color: #4b6463; }
#mobile-customer-workbench .mc-dot, #mobile-customer-nav button > span:not([data-upstream-balance-dot]):not([data-team-nav-unread-dot]) { min-width: 20px; line-height: 20px; padding: 0 5px; text-align: center; border-radius: 20px; background: #1d675a; color: #fff; font-size: .75rem; }
[data-upstream-balance-dot]:not([hidden]), [data-team-nav-unread-dot]:not([hidden]) { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; margin-inline-start: 5px; border-radius: 50%; background: #d93045; vertical-align: .22em; }
#mobile-customer-workbench .mc-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 13px 8px; }
#mobile-customer-workbench .mc-older { display: block; margin: 0 auto 12px; }
#mobile-customer-workbench .mc-message { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 12px; }
#mobile-customer-workbench .mc-message > div { padding: 9px 12px; max-width: 85%; border: 1px solid #d7e6e2; border-radius: 4px 14px 14px 14px; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; color: #173333; }
#mobile-customer-workbench .mc-message.mc-out { align-items: flex-end; }
#mobile-customer-workbench .mc-message.mc-out > div { background: #d7efe4; border-color: #c9e8db; border-radius: 14px 4px 14px 14px; }
#mobile-customer-workbench .mc-message.mc-system { align-items: center; }
#mobile-customer-workbench .mc-message.mc-system > div { color: #4d6563; background: transparent; border: 0; font-size: .875rem; }
#mobile-customer-workbench .mc-message time { color: #526e6a; font-size: .75rem; }
#mobile-customer-workbench .mc-message small { max-width: 85%; overflow-wrap: anywhere; color: #4d6563; font-size: .8rem; }
#mobile-customer-workbench .mc-attachment-card { padding: 0; border: 0; background: transparent; display: block; cursor: zoom-in; }
#mobile-customer-workbench .mc-attachment-card img { display: block; max-width: min(100%, 210px); max-height: 150px; object-fit: contain; border-radius: 6px; }
#mobile-customer-workbench .mc-thumb-label {
  display: inline-block; padding: 6px 9px; border: 1px solid #bfd9d1;
  border-radius: 6px; color: #15574b; background: #f1f7f4; font-size: .875rem;
}
#mobile-customer-workbench .mc-payment-card { display: grid; gap: 7px; min-width: 144px; white-space: normal; }
#mobile-customer-workbench .mc-payment-card span { color: #4e6660; font-size: .875rem; }
#mobile-customer-workbench .mc-payment-card img { width: 124px; height: 124px; border: 1px solid #d2e2dc; border-radius: 8px; background: white; }
#mobile-customer-workbench .mc-reply { flex: none; padding: 8px 12px; background: #fff; border-top: 1px solid #d7e6e2; margin: 0; }
#mobile-customer-workbench .mc-reply > div { display: flex; align-items: flex-end; gap: 8px; }
#mobile-customer-workbench .mc-reply > .mc-composer-tools { margin-bottom: 7px; align-items: center; flex-wrap: wrap; }
#mobile-customer-workbench .mc-composer-tools .mc-button { padding-inline: 10px; font-size: .875rem; }
#mobile-customer-workbench .mc-composer-tools .mc-transfer { margin-inline-start: auto; }
#mobile-customer-workbench .mc-reply textarea { margin: 0; flex: 1; min-width: 0; min-height: 44px; padding: 9px 10px; border-radius: 10px; border: 1px solid #b8d2cb; background: #f7fbfa; color: #173333; resize: none; overflow-y: auto; line-height: 1.45; font-size: 1rem; }
#mobile-customer-workbench .mc-reply-note { margin: 0 0 6px; color: #235e55; font-size: .875rem; }
#mobile-customer-workbench .mc-team-send-error { margin: 0 0 6px; color: #9b2534; font-size: .875rem; }
#mobile-customer-workbench .mc-quick-open { -webkit-tap-highlight-color: transparent; }
#mobile-customer-workbench .mc-reply > .mc-quick-attachment {
  align-items: center; margin-bottom: 7px; padding: 5px 7px; border-radius: 9px; background: #f1f8f5;
}
#mobile-customer-workbench .mc-quick-attachment img { width: 76px; height: 56px; border-radius: 6px; object-fit: contain; }
#mobile-customer-workbench .mc-quick-attachment span { flex: 1; min-width: 0; color: #42625c; font-size: .875rem; }
#mobile-customer-workbench .mc-quick-attachment button { font-size: .875rem; }
#mc-quick-dialog {
  position: fixed; inset: auto 0 0; box-sizing: border-box; width: min(540px, 100%); max-width: 100%; max-height: 78vh; max-height: 78dvh;
  overflow: hidden; margin: 0 auto; padding: 13px 14px max(15px, env(safe-area-inset-bottom));
  border: 1px solid #d7e6e2; border-radius: 16px 16px 0 0; background: #fff; color: #183132;
}
#mc-quick-dialog[open] { display: flex; flex-direction: column; gap: 10px; }
#mc-quick-dialog::backdrop { background: #16323269; }
#mc-quick-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#mc-quick-dialog h2 { margin: 0; font-size: 1.16rem; }
#mc-quick-dialog .mc-quick-scopes { display: flex; gap: 8px; }
#mc-quick-dialog .mc-quick-scopes button { flex: 1; }
#mc-quick-dialog [aria-pressed="true"] { color: #fff; border-color: #155d52; background: #155d52; }
#mc-quick-dialog .mc-quick-search {
  flex: none; width: 100%; min-height: 44px; margin: 0; padding: 8px 10px;
  font: inherit; border: 1px solid #b8d2cb; border-radius: 9px;
}
#mc-quick-dialog .mc-quick-status { margin: 0; color: #4b6463; font-size: .875rem; }
#mc-quick-dialog .mc-quick-status:empty { display: none; }
#mc-quick-dialog .mc-quick-list { min-height: 0; overflow: auto; overscroll-behavior: contain; }
#mc-quick-dialog .mc-quick-item {
  display: block; width: 100%; padding: 10px 6px; border: 0; border-bottom: 1px solid #e0ebe7;
  border-radius: 0; color: inherit; background: #fff; font: inherit; text-align: left; overflow-wrap: anywhere;
}
#mc-quick-dialog .mc-quick-item span {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  margin-top: 4px; color: #4b6463; font-size: .875rem; white-space: pre-wrap;
}
.mc-button { min-height: 44px; padding: 7px 12px; border-radius: 9px; border: 1px solid #155d52; background: #155d52; color: #fff; font: inherit; font-weight: 650; white-space: nowrap; }
.mc-button.mc-secondary { color: #164d45; background: #f3faf7; border-color: #a9cdc2; }
.mc-button:disabled { opacity: .5; cursor: default; }
#mobile-customer-workbench .mc-sheet {
  position: fixed; inset: auto 0 0; box-sizing: border-box; width: min(540px, 100%); max-width: 100%;
  max-height: 78vh; max-height: 78dvh; overflow: auto; margin: 0 auto;
  padding: 13px 14px max(15px, env(safe-area-inset-bottom)); border: 1px solid #d7e6e2;
  border-radius: 16px 16px 0 0; background: #fff; color: #183132;
}
#mobile-customer-workbench .mc-sheet::backdrop { background: #16323269; }
#mobile-customer-workbench .mc-sheet header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#mobile-customer-workbench .mc-sheet h2 { margin: 0; font-size: 1.16rem; }
#mobile-customer-workbench .mc-sheet p { line-height: 1.5; }
#mobile-customer-workbench .mc-action-body { display: grid; gap: 9px; margin-top: 12px; }
#mobile-customer-workbench .mc-action-body p { margin: 0 0 4px; }
#mobile-customer-workbench .mc-action-body p:empty { display: none; }
#mobile-customer-workbench .mc-transfer-label { display: grid; gap: 7px; }
#mobile-customer-workbench .mc-transfer-label select {
  min-height: 44px; padding: 9px 10px; border: 1px solid #b8d2cb; border-radius: 8px;
  background: #f7fbfa; color: #183132; font: inherit;
}
#mobile-customer-workbench .mc-media-body { margin-top: 12px; text-align: center; }
#mobile-customer-workbench .mc-media-body :is(img,video) { max-width: 100%; max-height: 62dvh; border-radius: 8px; }
#mobile-customer-workbench :focus-visible, #mobile-customer-notice :focus-visible, #mobile-customer-nav :focus-visible { outline: 2px solid #217c79; outline-offset: 2px; }
#mobile-customer-notice { position: fixed; inset-inline: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 19; display: flex; align-items: center; gap: 10px; justify-content: space-between; min-width: 0; padding: 8px 12px; background: #dcf2e9; border-block: 1px solid #a9d6ca; }
#mobile-customer-notice > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
#mobile-customer-notice strong { color: #154b44; }
#mobile-customer-notice > div > span { font-size: .875rem; color: #345c55; }
#mobile-customer-nav { position: fixed; bottom: 0; z-index: 20; width: 100%; display: flex; flex: none; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #d7e6e2; }
#mobile-customer-nav button { flex: 1; min-height: 48px; border: 0; border-radius: 10px; color: #415e5b; background: none; font: inherit; font-weight: 650; }
#mobile-customer-nav button[aria-current="page"] { background: #e2f3ed; color: #155d52; }
body.mc-chat-active #mobile-customer-notice, body.mc-chat-active #mobile-customer-nav { position: static; flex: none; }
@media (max-height: 460px) {
  body.mc-chat-active > .topbar { display: none; }
  #mobile-customer-workbench .mc-head { padding-block: 5px; }
  body.mc-chat-active #mobile-customer-nav button { min-height: 38px; }
}

#mobile-customer-workbench .mp-team {
  position: relative;
  min-height: 0;
}

.mp-team [hidden] {
  display: none !important;
}

.mp-inline-members,
#mobile-customer-workbench .mc-row-copy > .mp-inline-members {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 3px 5px;
  margin-top: 4px;
  overflow: visible;
  white-space: normal;
}

.mp-member-name {
  max-width: 100%;
  border-radius: 5px;
  padding: 1px 5px;
  color: #52615c;
  background: #e9eeec;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mp-member-name.is-online {
  color: #15574b;
  background: #d8eee5;
  font-weight: 700;
}

.mp-team-live {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-bottom: 1px solid #ecd8bc;
  padding: 4px 12px;
  color: #6a4928;
  background: #fff9ed;
  font-size: .83rem;
}

.mp-team-link {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 3px 7px;
  color: #1a6153;
  background: transparent;
  font: inherit;
  font-weight: 650;
}

.mp-team-link:not(:disabled):active {
  background: #d8ece7;
}

.mp-team-link:disabled {
  color: #5b6d67;
  font-weight: 450;
}

.mp-team-timeline {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 12px 12px;
}

.mp-team-empty {
  margin: 12px 0;
  color: #48645f;
  text-align: center;
  font-size: .875rem;
}

.mp-team-older {
  display: block;
  min-height: 42px;
  margin: 0 auto 8px;
}

.mp-team-messages {
  display: grid;
  gap: 13px;
}

.mp-team-message {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.mp-team-message.is-mine {
  flex-direction: row-reverse;
}

.mp-team-avatar {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: #1b564a;
  background: #d4eae3;
  font-weight: 750;
}

.mp-team-content {
  display: grid;
  justify-items: start;
  max-width: 84%;
  min-width: 0;
  gap: 3px;
}

.mp-team-message.is-mine .mp-team-content {
  justify-items: end;
}

.mp-team-meta {
  max-width: 100%;
  color: #4a625d;
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.mp-team-bubble {
  max-width: 100%;
  border: 1px solid #dbe8e4;
  border-radius: 4px 12px 12px 12px;
  padding: 7px 10px;
  color: #173532;
  background: #fff;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.45;
}

.mp-team-message.is-mine .mp-team-bubble {
  border-color: #c9e6d9;
  border-radius: 12px 4px 12px 12px;
  background: #dff1e9;
}

.mp-team-image-button {
  display: block;
  max-width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: #f1f7f4;
}

.mp-team-image-button img {
  display: block;
  width: min(170px, 100%);
  max-height: 140px;
  border-radius: 7px;
  object-fit: contain;
}

.mp-team-receipt {
  max-width: 100%;
  margin-top: 2px;
  color: #466558;
  font-size: .75rem;
  text-align: end;
  overflow-wrap: anywhere;
}

#mobile-customer-workbench .mp-team-new {
  align-self: flex-end;
  flex: none;
  min-height: 38px;
  margin: 4px 10px;
}

.mp-team-compose {
  flex: none;
  display: grid;
  gap: 4px;
  margin: 0;
  border-top: 1px solid #d7e6e2;
  padding: 7px 9px;
  background: #fff;
}

.mp-team-compose-row,
.mp-team-attachment {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.mp-team-compose textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 96px;
  margin: 0;
  resize: vertical;
  border: 1px solid #b8d2cb;
  border-radius: 9px;
  padding: 8px;
  color: #173532;
  background: #f9fcfa;
  font: inherit;
  font-size: 1rem;
}

.mp-team-attachment {
  align-items: center;
  padding: 5px;
  border-radius: 9px;
  background: #f1f8f5;
}

.mp-team-attachment img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.mp-team-attachment > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #42625c;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
}

.mp-team-error {
  margin: 0;
  padding: 2px 3px;
  color: #912437;
  font-size: .84rem;
}

.mp-team dialog {
  box-sizing: border-box;
  border: 1px solid #d7e6e2;
  color: #173532;
  background: #fff;
}

.mp-team dialog::backdrop {
  background: #17333273;
}

.mp-team-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mp-team-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.mp-team-lightbox {
  width: min(calc(100% - 20px), 700px);
  max-width: 100%;
  max-height: 90dvh;
  border-radius: 13px;
  padding: 9px;
}

.mp-team-lightbox > img {
  display: block;
  width: 100%;
  max-height: 72dvh;
  margin-top: 8px;
  object-fit: contain;
}
