/* =========================================================
   MEHFARO - CUSTOMER ORDER CHAT
   Additive CSS only.
========================================================= */


/* =========================================================
   FLOATING ORDER CHAT BUTTON
========================================================= */

.mf-order-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 1080;

  display: none;
  align-items: center;
  gap: 10px;

  min-width: 176px;
  padding: 10px 13px;

  border: 0;
  border-radius: 18px;

  background: #172025;
  color: #ffffff;

  box-shadow:
    0 18px 45px rgba(17, 28, 32, .22);

  cursor: pointer;
}

.mf-order-chat-launcher.is-visible {
  display: flex;
}

.mf-order-chat-launcher-icon {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  border-radius: 12px;

  background: #138d83;
  color: #ffffff;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

.mf-order-chat-launcher-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;
}

.mf-order-chat-launcher-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.mf-order-chat-launcher-copy small {
  max-width: 100px;

  margin-top: 2px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: rgba(255, 255, 255, .65);

  font-size: 9px;
}

.mf-order-chat-badge {
  display: none;

  min-width: 22px;
  height: 22px;

  padding: 0 6px;

  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: #e7684d;
  color: #ffffff;

  font-size: 10px;
  font-weight: 900;
}

.mf-order-chat-badge.is-visible {
  display: inline-flex;
}


/* =========================================================
   OVERLAY
========================================================= */

.mf-order-chat-overlay {
  position: fixed;
  inset: 0;

  z-index: 4000;

  display: none;

  padding: 22px;

  background:
    rgba(11, 20, 24, .60);

  backdrop-filter: blur(8px);
}

.mf-order-chat-overlay.open {
  display: grid;
  place-items: center;
}


/* =========================================================
   MAIN CHAT SHELL
========================================================= */

.mf-order-chat-shell {
  width: min(1240px, 100%);
  height: min(860px, calc(100vh - 44px));

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid rgba(23, 32, 37, .10);
  border-radius: 28px;

  background: #f8f6f1;

  box-shadow:
    0 32px 90px rgba(5, 14, 18, .30);
}


/* =========================================================
   HEADER
========================================================= */

.mf-order-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  flex: 0 0 auto;

  padding: 16px 20px;

  border-bottom: 1px solid rgba(23, 32, 37, .08);

  background: #ffffff;
}

.mf-order-chat-heading {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.mf-order-chat-mark {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  flex: 0 0 46px;

  border-radius: 14px;

  background: #172025;
  color: #ffffff;

  font-size: 15px;
  font-weight: 900;
}

.mf-order-chat-heading small {
  display: block;

  margin-bottom: 3px;

  color: #138d83;

  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}

.mf-order-chat-heading h2 {
  margin: 0;

  color: #172025;

  font-size: 22px;
  line-height: 1.05;
}

.mf-order-chat-heading p {
  margin: 4px 0 0;

  color: #6c777b;

  font-size: 11px;
}

.mf-order-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-order-chat-status {
  padding: 7px 11px;

  border-radius: 999px;

  background: #dff3ef;
  color: #0b746b;

  font-size: 9px;
  font-weight: 900;

  text-transform: capitalize;
}

.mf-order-chat-close {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid #dde3e2;
  border-radius: 50%;

  background: #ffffff;
  color: #172025;

  cursor: pointer;
}


/* =========================================================
   TWO COLUMN LAYOUT
========================================================= */

.mf-order-chat-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(350px, .8fr);

  min-height: 0;
  flex: 1;

  overflow: hidden;
}

.mf-order-chat-left {
  overflow-y: auto;

  padding: 18px;

  border-right:
    1px solid rgba(23, 32, 37, .08);
}

.mf-order-chat-right {
  display: flex;
  flex-direction: column;

  min-height: 0;

  background: #eef3f1;
}


/* =========================================================
   CARDS
========================================================= */

.mf-order-chat-card {
  margin-bottom: 16px;
  padding: 16px;

  border: 1px solid #e3e7e5;
  border-radius: 20px;

  background: #ffffff;
}

.mf-order-chat-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 14px;
}

.mf-order-chat-card-head h3 {
  margin: 0;

  color: #172025;

  font-size: 18px;
}

.mf-order-chat-card-head small {
  display: block;

  margin-top: 4px;

  color: #7b8588;

  font-size: 10px;
}


/* =========================================================
   ORDER TABLE
========================================================= */

.mf-order-chat-table-wrap {
  overflow-x: auto;

  border: 1px solid #e4e9e7;
  border-radius: 15px;
}

.mf-order-chat-table {
  width: 100%;

  border-collapse: collapse;

  background: #ffffff;
}

.mf-order-chat-table th {
  padding: 10px 11px;

  background: #f3f7f5;
  color: #637074;

  font-size: 9px;
  font-weight: 900;

  text-align: left;
  white-space: nowrap;
}

.mf-order-chat-table td {
  padding: 12px 11px;

  border-top: 1px solid #edf0ef;

  color: #273237;

  font-size: 11px;

  vertical-align: middle;
}

.mf-order-chat-product-name {
  display: block;

  color: #172025;

  font-size: 12px;
}

.mf-order-chat-product-sku {
  display: block;

  margin-top: 3px;

  color: #929a9d;

  font-size: 8px;
}


/* =========================================================
   QUANTITY CONTROLS
========================================================= */

.mf-order-chat-qty {
  display: inline-flex;
  align-items: center;

  overflow: hidden;

  border: 1px solid #d9e2df;
  border-radius: 999px;

  background: #ffffff;
}

.mf-order-chat-qty button {
  width: 30px;
  height: 30px;

  border: 0;

  background: transparent;
  color: #0b746b;

  font-size: 18px;
  font-weight: 800;

  cursor: pointer;
}

.mf-order-chat-qty button:hover:not(:disabled) {
  background: #e4f5f1;
}

.mf-order-chat-qty button:disabled {
  opacity: .35;
  cursor: default;
}

.mf-order-chat-qty strong {
  min-width: 26px;

  color: #172025;

  font-size: 11px;

  text-align: center;
}

.mf-order-chat-item-status {
  display: block;

  margin-top: 5px;

  color: #879194;

  font-size: 8px;

  text-transform: capitalize;
}


/* =========================================================
   MOBILE PRODUCT CARDS
========================================================= */

.mf-order-chat-mobile-items {
  display: none;
}

.mf-order-chat-mobile-item {
  padding: 13px;

  border: 1px solid #e2e8e6;
  border-radius: 16px;

  background: #ffffff;
}

.mf-order-chat-mobile-item + .mf-order-chat-mobile-item {
  margin-top: 10px;
}

.mf-order-chat-mobile-item h4 {
  margin: 0 0 10px;

  color: #172025;

  font-size: 14px;
}

.mf-order-chat-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 8px;
}

.mf-order-chat-mobile-field {
  padding: 9px;

  border-radius: 11px;

  background: #f5f7f6;
}

.mf-order-chat-mobile-field span {
  display: block;

  color: #7d878a;

  font-size: 8px;
}

.mf-order-chat-mobile-field strong {
  display: block;

  margin-top: 3px;

  color: #172025;

  font-size: 11px;
}

.mf-order-chat-mobile-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 10px;
  padding-top: 10px;

  border-top: 1px solid #edf0ef;
}

.mf-order-chat-mobile-qty > span {
  color: #667175;

  font-size: 10px;
}


/* =========================================================
   TOTALS
========================================================= */

.mf-order-chat-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  margin-top: 13px;

  overflow: hidden;

  border: 1px solid #e3e8e6;
  border-radius: 14px;
}

.mf-order-chat-summary > div {
  padding: 11px;

  background: #f7f9f8;
}

.mf-order-chat-summary > div + div {
  border-left: 1px solid #e3e8e6;
}

.mf-order-chat-summary span {
  display: block;

  color: #7a8588;

  font-size: 8px;
}

.mf-order-chat-summary strong {
  display: block;

  margin-top: 4px;

  color: #172025;

  font-size: 13px;
}


/* =========================================================
   DELIVERY DETAILS
========================================================= */

.mf-order-chat-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 10px;
}

.mf-order-chat-address-grid > div {
  padding: 10px;

  border-radius: 12px;

  background: #f6f8f7;
}

.mf-order-chat-address-grid .full {
  grid-column: 1 / -1;
}

.mf-order-chat-address span {
  display: block;

  color: #828b8e;

  font-size: 8px;
}

.mf-order-chat-address strong,
.mf-order-chat-address p {
  display: block;

  margin: 4px 0 0;

  color: #172025;

  font-size: 11px;
  line-height: 1.45;
}


/* =========================================================
   ORDER ACTION BUTTONS
========================================================= */

.mf-order-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 13px;
}

.mf-order-chat-action {
  min-height: 40px;

  padding: 0 14px;

  border-radius: 12px;

  font-size: 10px;
  font-weight: 800;

  cursor: pointer;
}

.mf-order-chat-action:disabled {
  opacity: .50;
  cursor: default;
}

.mf-order-chat-action.primary {
  border: 1px solid #138d83;

  background: #138d83;
  color: #ffffff;
}

.mf-order-chat-action.whatsapp {
  border: 1px solid #21a366;

  background: #ffffff;
  color: #168653;
}

.mf-order-chat-action.danger {
  border: 1px solid #e7b1a6;

  background: #fff6f3;
  color: #b94e38;
}


/* =========================================================
   CHAT HEADER
========================================================= */

.mf-order-chat-conversation-head {
  flex: 0 0 auto;

  padding: 15px 16px;

  border-bottom: 1px solid #dde5e2;

  background: #ffffff;
}

.mf-order-chat-conversation-head strong {
  display: block;

  color: #172025;

  font-size: 14px;
}

.mf-order-chat-conversation-head small {
  display: block;

  margin-top: 3px;

  color: #778184;

  font-size: 9px;
}


/* =========================================================
   MESSAGES
========================================================= */

.mf-order-chat-messages {
  flex: 1;

  overflow-y: auto;

  padding: 16px;

  background:
    linear-gradient(
      rgba(238, 243, 241, .94),
      rgba(238, 243, 241, .94)
    );
}

.mf-order-chat-message {
  display: flex;

  margin-bottom: 8px;
}

.mf-order-chat-message.customer {
  justify-content: flex-end;
}

.mf-order-chat-message.owner {
  justify-content: flex-start;
}

.mf-order-chat-message.system {
  justify-content: center;
}

.mf-order-chat-bubble {
  max-width: 82%;

  padding: 10px 11px;

  border-radius: 14px;

  box-shadow:
    0 3px 10px rgba(20, 34, 38, .05);
}

.mf-order-chat-message.customer .mf-order-chat-bubble {
  border-bottom-right-radius: 4px;

  background: #d8f1eb;
  color: #172025;
}

.mf-order-chat-message.owner .mf-order-chat-bubble {
  border-bottom-left-radius: 4px;

  background: #ffffff;
  color: #172025;
}

.mf-order-chat-message.system .mf-order-chat-bubble {
  max-width: 92%;

  padding: 7px 10px;

  background: #e8ecea;
  color: #687276;

  box-shadow: none;

  text-align: center;
}

.mf-order-chat-bubble p {
  margin: 0;

  font-size: 11px;
  line-height: 1.5;

  white-space: pre-wrap;
}

.mf-order-chat-bubble small {
  display: block;

  margin-top: 5px;

  color: #879194;

  font-size: 7px;

  text-align: right;
}

.mf-order-chat-attachment {
  display: block;

  width: 100%;
  max-width: 320px;

  margin-top: 7px;

  border-radius: 10px;
}


/* =========================================================
   CHAT INPUT
========================================================= */

.mf-order-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;

  flex: 0 0 auto;

  padding: 12px;

  border-top: 1px solid #dbe3e0;

  background: #ffffff;
}

.mf-order-chat-form input {
  min-width: 0;
  min-height: 42px;

  padding: 0 14px;

  border: 1px solid #d8dfdd;
  border-radius: 999px;

  outline: none;

  background: #f8faf9;
  color: #172025;

  font-size: 11px;
}

.mf-order-chat-form input:focus {
  border-color: #138d83;

  box-shadow:
    0 0 0 3px rgba(19, 141, 131, .10);
}

.mf-order-chat-form button {
  min-width: 70px;

  border: 0;
  border-radius: 999px;

  background: #138d83;
  color: #ffffff;

  font-size: 10px;
  font-weight: 800;

  cursor: pointer;
}

.mf-order-chat-form button:disabled,
.mf-order-chat-form input:disabled {
  opacity: .55;
  cursor: default;
}


/* =========================================================
   LOADING / ERROR / EMPTY
========================================================= */

.mf-order-chat-loading,
.mf-order-chat-error {
  grid-column: 1 / -1;

  display: grid;
  place-items: center;

  min-height: 300px;

  padding: 30px;

  color: #6f797d;

  font-size: 12px;

  text-align: center;
}

.mf-order-chat-error {
  color: #af4b3b;
}

.mf-order-chat-empty {
  padding: 30px 15px;

  color: #7c8789;

  font-size: 11px;
  line-height: 1.5;

  text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

  .mf-order-chat-overlay {
    padding: 12px;
  }

  .mf-order-chat-shell {
    height:
      calc(100dvh - 24px);

    border-radius: 22px;
  }

  .mf-order-chat-layout {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(320px, .9fr);
  }

  .mf-order-chat-table {
    min-width: 620px;
  }

}


/* =========================================================
   MOBILE - FULL SCREEN
========================================================= */

@media (max-width: 780px) {

  .mf-order-chat-launcher {
    right: 12px;
    bottom: 84px;

    min-width: 154px;

    padding: 8px 10px;

    border-radius: 16px;
  }

  .mf-order-chat-launcher-icon {
    width: 34px;
    height: 34px;

    flex-basis: 34px;
  }

  .mf-order-chat-overlay {
    padding: 0;

    background: #f5f7f6;
  }

  .mf-order-chat-overlay.open {
    display: block;
  }

  .mf-order-chat-shell {
    width: 100%;
    height: 100dvh;
    max-height: none;

    border: 0;
    border-radius: 0;

    box-shadow: none;
  }

  .mf-order-chat-header {
    position: sticky;
    top: 0;

    z-index: 5;

    padding:
      calc(10px + env(safe-area-inset-top))
      12px
      10px;

    gap: 8px;
  }

  .mf-order-chat-mark {
    width: 39px;
    height: 39px;

    flex-basis: 39px;

    border-radius: 12px;

    font-size: 12px;
  }

  .mf-order-chat-heading small {
    font-size: 7px;
  }

  .mf-order-chat-heading h2 {
    font-size: 16px;
  }

  .mf-order-chat-heading p {
    max-width: 220px;

    font-size: 8px;
  }

  .mf-order-chat-status {
    display: none;
  }

  .mf-order-chat-close {
    width: 36px;
    height: 36px;
  }

  .mf-order-chat-layout {
    display: block;

    flex: 1;

    overflow-y: auto;
  }

  .mf-order-chat-left {
    overflow: visible;

    padding: 10px;

    border-right: 0;
  }

  .mf-order-chat-card {
    margin-bottom: 10px;
    padding: 12px;

    border-radius: 17px;
  }

  .mf-order-chat-card-head {
    margin-bottom: 10px;
  }

  .mf-order-chat-card-head h3 {
    font-size: 15px;
  }

  .mf-order-chat-card-head small {
    font-size: 8px;
  }

  .mf-order-chat-table-wrap {
    display: none;
  }

  .mf-order-chat-mobile-items {
    display: block;
  }

  .mf-order-chat-summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .mf-order-chat-summary > div {
    padding: 9px 7px;
  }

  .mf-order-chat-summary span {
    font-size: 7px;
  }

  .mf-order-chat-summary strong {
    font-size: 10px;
  }

  .mf-order-chat-address-grid {
    grid-template-columns: 1fr;
  }

  .mf-order-chat-address-grid .full {
    grid-column: auto;
  }

  .mf-order-chat-actions {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .mf-order-chat-action {
    width: 100%;
  }

  .mf-order-chat-action.danger {
    grid-column: 1 / -1;
  }

  .mf-order-chat-right {
    min-height: 520px;

    margin: 0 10px 90px;

    overflow: hidden;

    border: 1px solid #dce4e1;
    border-radius: 18px;

    background: #eef3f1;
  }

  .mf-order-chat-conversation-head {
    padding: 12px;
  }

  .mf-order-chat-conversation-head strong {
    font-size: 13px;
  }

  .mf-order-chat-conversation-head small {
    font-size: 8px;
  }

  .mf-order-chat-messages {
    min-height: 330px;

    padding: 12px;
  }

  .mf-order-chat-bubble {
    max-width: 88%;
  }

  .mf-order-chat-bubble p {
    font-size: 10px;
  }

  .mf-order-chat-form {
    position: sticky;
    bottom: 0;

    padding:
      9px
      9px
      calc(
        9px +
        env(safe-area-inset-bottom)
      );
  }

  .mf-order-chat-form input {
    min-height: 40px;

    font-size: 10px;
  }

}


/* =========================================================
   390px / 430px PHONE POLISH
========================================================= */

@media (max-width: 430px) {

  .mf-order-chat-heading p {
    max-width: 175px;
  }

  .mf-order-chat-card-head {
    align-items: flex-start;
    flex-direction: column;

    gap: 3px;
  }

  .mf-order-chat-mobile-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .mf-order-chat-mobile-field {
    padding: 8px;
  }

  .mf-order-chat-actions {
    grid-template-columns: 1fr;
  }

  .mf-order-chat-action.danger {
    grid-column: auto;
  }

  .mf-order-chat-summary {
    grid-template-columns: 1fr;
  }

  .mf-order-chat-summary > div + div {
    border-left: 0;
    border-top:
      1px solid #e3e8e6;
  }

  .mf-order-chat-right {
    min-height: 500px;
  }

}


@media (max-width: 390px) {

  .mf-order-chat-header {
    padding-left: 9px;
    padding-right: 9px;
  }

  .mf-order-chat-heading {
    gap: 8px;
  }

  .mf-order-chat-heading p {
    max-width: 150px;
  }

  .mf-order-chat-mobile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mf-order-chat-launcher-copy small {
    max-width: 82px;
  }

}

/* =========================================================
   MEHFARO_CUSTOMER_INTERACTIONS_V4
   WhatsApp-style in-bubble chevron for text/files/orders
========================================================= */

.mf-order-chat-bubble,
.mf-order-chat-bubble.order-card-bubble {
  position: relative !important;
  overflow: visible !important;
}

.mf-order-chat-message-actions {
  position: absolute !important;
  z-index: 140 !important;

  top: 4px !important;
  right: 4px !important;
  left: auto !important;

  display: block !important;
  width: 22px !important;
  height: 22px !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .12s ease,
    visibility .12s ease;
}

.mf-order-chat-bubble:hover > .mf-order-chat-message-actions,
.mf-order-chat-bubble:focus-within > .mf-order-chat-message-actions,
.mf-order-chat-message-actions:has(.mf-wa-popup.open) {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mf-wa-more-picker {
  position: relative !important;
  width: 22px !important;
  height: 22px !important;
}

.mf-wa-more-trigger {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;

  display: grid !important;
  place-items: center !important;

  padding: 0 0 4px !important;

  border: 0 !important;
  border-radius: 50% !important;

  background: rgba(255,255,255,.82) !important;
  color: #536165 !important;

  box-shadow:
    0 1px 5px rgba(18,35,39,.12) !important;

  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  cursor: pointer !important;
}

.mf-wa-more-trigger:hover,
.mf-wa-more-trigger:focus-visible {
  background: #ffffff !important;
  color: #172025 !important;
}

.mf-order-chat-message-actions .mf-wa-react-trigger,
.mf-order-chat-message-actions .mf-chat-side-action {
  display: none !important;
}

.mf-wa-more-menu {
  position: absolute !important;
  z-index: 600 !important;

  top: auto !important;
  bottom: 27px !important;

  right: 0 !important;
  left: auto !important;

  display: none !important;
  min-width: 108px !important;

  padding: 4px !important;

  border: 1px solid #d9e6e2 !important;
  border-radius: 10px !important;

  background: #f8fcfa !important;

  box-shadow:
    0 8px 24px rgba(20,45,40,.14) !important;
}

.mf-wa-more-menu.open {
  display: grid !important;
}

.mf-wa-menu-item {
  width: 100% !important;
  min-height: 32px !important;

  padding: 0 10px !important;

  border: 0 !important;
  border-radius: 5px !important;

  background: transparent !important;
  color: #29423d !important;

  text-align: left !important;
  font-size: 11px !important;
  font-weight: 700 !important;

  cursor: pointer !important;
}

.mf-wa-menu-item:hover {
  background: #e7f4f0 !important;
  color: #08766d !important;
}

.mf-chat-reaction-menu.mf-wa-reaction-menu {
  position: absolute !important;
  z-index: 620 !important;

  right: 0 !important;
  left: auto !important;
  bottom: calc(100% + 6px) !important;
  top: auto !important;
  transform: none !important;

  display: none !important;
  align-items: center !important;
  gap: 2px !important;

  padding: 5px 6px !important;

  border: 1px solid #dce4e1 !important;
  border-radius: 999px !important;

  background: #ffffff !important;

  box-shadow:
    0 8px 24px rgba(18,35,39,.16) !important;

  white-space: nowrap !important;
}

.mf-chat-reaction-menu.mf-wa-reaction-menu.open {
  display: flex !important;
}

.mf-chat-reaction-menu.mf-wa-reaction-menu button {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;

  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;

  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.mf-chat-reaction-menu.mf-wa-reaction-menu button:hover {
  background: #f0f4f2 !important;
  transform: scale(1.12);
}

.mf-chat-reaction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}

.mf-chat-reaction-chip {
  min-width: 27px !important;
  height: 21px !important;
  padding: 0 6px !important;
  border: 1px solid #dce5e2 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #536064 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.mf-chat-reaction-chip.mine {
  border-color: #9ed2c7 !important;
  background: #e8f7f3 !important;
}

.mf-order-chat-reply-quote {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 7px;
  padding: 7px 9px;
  border-left: 3px solid #168b82;
  border-radius: 7px;
  background: rgba(22,139,130,.08);
  font-size: 10px;
  line-height: 1.35;
}

.mf-order-chat-reply-quote strong {
  color: #0d766e;
  font-size: 9px;
  font-weight: 900;
}

.mf-order-chat-reply-quote span {
  color: #5f6d70;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-order-chat-reply-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 7px 9px;
  border-left: 3px solid #168b82;
  border-radius: 8px;
  background: #eef7f5;
}

.mf-order-chat-reply-preview[hidden] {
  display: none !important;
}

.mf-order-chat-reply-preview > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mf-order-chat-reply-preview strong {
  color: #0d766e;
  font-size: 9px;
  font-weight: 900;
}

.mf-order-chat-reply-preview span {
  color: #637174;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-order-chat-reply-preview button {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #627073 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.mf-order-chat-bubble:not(.order-card-bubble) {
  padding-right: 31px !important;
}

.mf-order-chat-bubble.order-card-bubble
> .mf-order-chat-message-actions {
  top: 6px !important;
  right: 6px !important;
}

@media (hover: none), (pointer: coarse) {
  .mf-order-chat-message-actions {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* =========================================================
   MEHFARO WEBSTORE WHATSAPP MENU POSITION V5
========================================================= */

/* MEHFARO RECEIVED MESSAGE = LEFT */
.mf-order-chat-message.owner
.mf-wa-more-menu {
  left: 0 !important;
  right: auto !important;

  background: #ffffff !important;
  border-color: #e0e7e4 !important;
}


/* CUSTOMER SENT MESSAGE = RIGHT */
.mf-order-chat-message.customer
.mf-wa-more-menu {
  left: auto !important;
  right: 0 !important;

  background: #e4fced !important;
  border-color: #ccefd9 !important;
}


/* Arrow matches bubbles */
.mf-order-chat-message.owner
.mf-wa-more-trigger {
  background: #ffffff !important;
  color: #63716e !important;
}

.mf-order-chat-message.customer
.mf-wa-more-trigger {
  background: #e4fced !important;
  color: #08766d !important;
}
