/* Mobile stability layer for the compiled React client. */
html,
body,
#root {
  max-width: 100%;
  min-height: 100%;
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.fx-home #root,
.fx-home #root * {
  box-sizing: border-box;
}

.fx-home #root :is(h1, h2, h3, h4, h5, h6, p) {
  overflow-wrap: break-word;
}

.fx-home #root :is(a, button, [role="button"]) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.fx-home #root :is(#features, #pricing, #testimonials) {
  scroll-margin-top: 88px;
}

/* SSLCOMMERZ admin settings */
.fx-ssl-admin-grid {
  min-width: 0;
}

.fx-ssl-admin-card {
  width: 100%;
  overflow: hidden;
  color: inherit;
  background: inherit;
  border: 1px solid rgba(31, 41, 55, 0.14);
  border-radius: 12px;
  font-family: inherit;
}

.fx-ssl-admin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.12);
  background: rgba(42, 179, 91, 0.045);
}

.fx-ssl-brand,
.fx-ssl-checkout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: #fff;
  background: #2ab35b;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fx-ssl-admin-title-wrap {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  flex-direction: column;
  min-width: 0;
}

.fx-ssl-admin-title-wrap strong {
  font-size: 14px;
  line-height: 1.35;
}

.fx-ssl-badge {
  margin-top: 2px;
  padding: 1px 6px;
  color: #6b7280;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.fx-ssl-badge[data-enabled="true"] {
  color: #138a3c;
  background: rgba(42, 179, 91, 0.12);
}

.fx-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 40px;
  height: 24px;
  cursor: pointer;
}

.fx-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fx-switch span {
  width: 100%;
  height: 100%;
  background: #9ca3af;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.fx-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease;
}

.fx-switch input:checked + span {
  background: #2ab35b;
}

.fx-switch input:checked + span::after {
  transform: translateX(16px);
}

.fx-switch input:focus-visible + span {
  outline: 3px solid rgba(42, 179, 91, 0.25);
  outline-offset: 2px;
}

.fx-ssl-admin-fields {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.fx-ssl-admin-fields label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
}

.fx-ssl-admin-fields input,
.fx-ssl-admin-fields select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(107, 114, 128, 0.35);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.fx-ssl-admin-fields input:focus,
.fx-ssl-admin-fields select:focus {
  border-color: #2ab35b;
  box-shadow: 0 0 0 3px rgba(42, 179, 91, 0.12);
}

.fx-ssl-admin-fields small {
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.fx-ssl-admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fx-ssl-save {
  min-height: 40px;
  padding: 9px 16px;
  color: #fff;
  background: #2ab35b;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.fx-ssl-save:hover:not(:disabled) {
  background: #21964b;
}

.fx-ssl-save:disabled {
  cursor: wait;
  opacity: 0.65;
}

.fx-ssl-status {
  font-size: 12px;
  line-height: 1.4;
}

.fx-ssl-status[data-type="success"] {
  color: #138a3c;
}

.fx-ssl-status[data-type="error"],
.fx-ssl-checkout-error {
  color: #d32f2f;
}

/* SSLCOMMERZ option on subscription checkout */
.fx-ssl-checkout-group {
  display: grid;
  gap: 6px;
  width: 100%;
}

.fx-ssl-checkout-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px;
  gap: 16px;
  padding: 14px 20px;
  color: inherit;
  text-align: left;
  background: rgba(42, 179, 91, 0.045);
  border: 1px solid rgba(42, 179, 91, 0.28);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.fx-ssl-checkout-button:hover:not(:disabled) {
  background: rgba(42, 179, 91, 0.08);
  border-color: #2ab35b;
  box-shadow: 0 4px 16px rgba(42, 179, 91, 0.16);
  transform: translateY(-1px);
}

.fx-ssl-checkout-button:focus-visible {
  outline: 3px solid rgba(42, 179, 91, 0.22);
  outline-offset: 2px;
}

.fx-ssl-checkout-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.fx-ssl-checkout-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}

.fx-ssl-checkout-copy strong {
  font-size: 13px;
  line-height: 1.35;
}

.fx-ssl-checkout-copy small,
.fx-ssl-checkout-error {
  font-size: 11px;
  line-height: 1.45;
}

.fx-ssl-checkout-copy small {
  color: #6b7280;
}

.fx-ssl-checkout-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #138a3c;
  background: rgba(42, 179, 91, 0.1);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

/* Stable, app-like home navigation for phones and tablets. */
@media (max-width: 899.95px) {
  .fx-home.fx-home-nav-ready #root .fx-home-nav {
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    padding-top: env(safe-area-inset-top) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
  }

  .fx-home.fx-home-dark-ui.fx-home-nav-ready #root .fx-home-nav {
    background: rgba(17, 24, 39, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24) !important;
  }

  .fx-home #root .fx-home-nav-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: max(14px, env(safe-area-inset-right)) !important;
    padding-left: max(14px, env(safe-area-inset-left)) !important;
  }

  .fx-home #root .fx-home-nav-container > div {
    min-height: 62px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .fx-home #root .fx-home-brand {
    display: flex !important;
    flex: 1 1 auto;
    max-width: min(56vw, 240px);
    min-width: 0;
    overflow: hidden;
  }

  .fx-home #root .fx-home-brand .logo-box {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    border-radius: 12px;
  }

  .fx-home #root .fx-home-brand .logo-box img {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .fx-home #root .fx-home-brand > :last-child {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .fx-home #root .fx-home-nav-actions {
    display: flex !important;
    flex: 0 0 auto;
    gap: 7px !important;
    min-width: 0;
  }

  .fx-home #root .fx-home-nav-actions > :is(button, span) {
    flex: 0 0 auto;
  }

  .fx-home #root .fx-home-nav-actions button,
  .fx-home #root .fx-home-menu-button {
    min-width: 38px;
    width: 38px;
    height: 38px;
  }

  .fx-home #root .fx-home-hero {
    min-height: 100svh !important;
    padding-top: calc(7.25rem + env(safe-area-inset-top)) !important;
  }

  .fx-home .fx-home-drawer {
    width: min(88vw, 360px) !important;
    padding-top: max(24px, env(safe-area-inset-top)) !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
    border-radius: 24px 0 0 24px;
  }
}

@media (max-width: 520px) {
  .fx-home #root .fx-home-language {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px;
    padding: 0 !important;
    justify-content: center;
  }

  .fx-home #root .fx-home-language .MuiTypography-root,
  .fx-home #root .fx-home-language > svg:last-child {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .fx-home #root [class*="MuiContainer-root"] {
    width: 100%;
    max-width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .fx-home #root [class*="MuiGrid-root"],
  .fx-home #root [class*="MuiStack-root"],
  .fx-home #root [class*="MuiBox-root"] {
    min-width: 0;
  }

  .fx-home #root :is(.MuiTypography-h1, h1) {
    font-size: clamp(2rem, 11vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .fx-home #root :is(.MuiTypography-h2, h2) {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
  }

  .fx-home #root :is(.MuiButton-root, button, [role="button"]) {
    min-height: 44px;
    touch-action: manipulation;
  }

  .fx-home #root :is(img, video) {
    max-width: 100%;
  }

  .fx-home #root [style*="backdrop-filter"]:not(.fx-home-nav) {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .fx-checkout #root [class*="MuiContainer-root"] {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .fx-checkout #root [class*="MuiPaper-root"] {
    max-width: 100%;
  }

  .fx-ssl-admin-head,
  .fx-ssl-admin-fields {
    padding-right: 16px;
    padding-left: 16px;
  }

  .fx-ssl-checkout-button {
    gap: 12px;
    min-height: 72px;
    padding: 13px 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .fx-home #root *,
  .fx-home #root *::before,
  .fx-home #root *::after,
  .fx-ssl-checkout-button,
  .fx-switch span,
  .fx-switch span::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Facebook Messenger: official-app and manual Page connection manager. */
[data-fx-instagram-nav].MuiListItem-root,
[data-fx-messenger-user-nav].MuiListItem-root,
[data-fx-messenger-admin-nav].MuiListItem-root {
  display: block;
  width: 100%;
  min-width: 0;
}

[data-fx-instagram-nav] > .MuiListItemButton-root,
[data-fx-messenger-user-nav] > .MuiListItemButton-root,
[data-fx-messenger-admin-nav] > .MuiListItemButton-root {
  width: 100%;
  min-width: 0;
}

[data-fx-instagram-nav] .MuiListItemText-root,
[data-fx-messenger-user-nav] .MuiListItemText-root,
[data-fx-messenger-admin-nav] .MuiListItemText-root {
  min-width: 0;
}

[data-fx-instagram-nav] .MuiListItemText-primary span,
[data-fx-messenger-user-nav] .MuiListItemText-primary span,
[data-fx-messenger-admin-nav] .MuiListItemText-primary span {
  overflow-wrap: normal;
  word-break: normal;
}

[data-fx-instagram-new] {
  display: none !important;
}

.fx-messenger-panel {
  position: fixed;
  z-index: 1100;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--fx-messenger-sidebar, 0px);
  overflow: auto;
  color: #182230;
  background: #f5f7fb;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fx-messenger-panel * { box-sizing: border-box; }
.fx-panel-error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fx-messenger-shell { width: min(1240px, 100%); margin: 0 auto; padding: 30px clamp(18px, 4vw, 46px) 48px; }
.fx-messenger-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 22px 24px; color: #fff; background: linear-gradient(130deg, #1877f2, #0866ff 58%, #5846e8); border-radius: 22px; box-shadow: 0 18px 46px rgba(24, 119, 242, .22); }
.fx-messenger-header > div:nth-child(2) { min-width: 0; flex: 1; }
.fx-messenger-header span { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 800; letter-spacing: .13em; opacity: .75; }
.fx-messenger-header h1 { margin: 0 0 5px; font-size: clamp(23px, 3vw, 34px); line-height: 1.1; }
.fx-messenger-header p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.5; }
.fx-messenger-title-icon, .fx-connect-icon { display: grid; flex: 0 0 auto; color: #1877f2; background: #fff; border-radius: 16px; place-items: center; }
.fx-messenger-title-icon { width: 56px; height: 56px; }
.fx-messenger-title-icon svg { width: 34px; height: 34px; }
.fx-connect-icon { width: 46px; height: 46px; margin-bottom: 15px; background: rgba(24,119,242,.1); }
.fx-connect-icon svg { width: 27px; height: 27px; }
.fx-panel-close { display: grid; width: 40px; height: 40px; flex: 0 0 auto; padding: 0; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; cursor: pointer; font-size: 27px; line-height: 1; place-items: center; }
.fx-panel-close:hover { background: rgba(255,255,255,.22); }

.fx-messenger-message { margin: 0 0 18px; padding: 12px 15px; border-radius: 11px; font-size: 13px; line-height: 1.45; }
.fx-messenger-message[data-type="success"] { color: #075b43; background: #e8fbf4; border: 1px solid #aee8d4; }
.fx-messenger-message[data-type="warning"] { color: #775300; background: #fff8da; border: 1px solid #ead589; }
.fx-messenger-message[data-type="error"] { color: #9c2530; background: #fff0f1; border: 1px solid #edbdc1; }

.fx-connect-grid, .fx-admin-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fx-connect-card, .fx-admin-messenger-form, .fx-admin-meta-setup, .fx-connected-section, .fx-messenger-oauth-pages { position: relative; padding: 24px; background: #fff; border: 1px solid #e1e7f0; border-radius: 18px; box-shadow: 0 7px 25px rgba(35,55,80,.05); }
.fx-connect-card.official { border-color: rgba(24,119,242,.28); background: linear-gradient(145deg, #fff, #f5f9ff); }
.fx-connect-badge { position: absolute; top: 18px; right: 18px; padding: 4px 8px; color: #0866ff; background: rgba(24,119,242,.09); border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.fx-connect-card h2, .fx-connected-section h2, .fx-messenger-oauth-pages h3, .fx-admin-config-grid h2 { margin: 0 0 8px; color: #172132; font-size: 19px; }
.fx-connect-card > p, .fx-connected-section > div:first-child p, .fx-messenger-oauth-pages > p, .fx-admin-config-grid p { margin: 0 0 17px; color: #687487; font-size: 13px; line-height: 1.6; }
.fx-scope-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.fx-scope-list code { padding: 4px 7px; color: #3b526e; background: #edf3fa; border-radius: 6px; font-size: 10px; }
.fx-primary { min-height: 42px; padding: 9px 16px; color: #fff; background: #0866ff; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.fx-primary:hover:not(:disabled) { background: #0757d8; }
.fx-primary:disabled { cursor: not-allowed; opacity: .5; }
.fx-connect-card > small { display: block; margin-top: 9px; color: #8a6470; font-size: 11px; line-height: 1.4; }

.fx-connect-card form, .fx-admin-messenger-form { display: grid; gap: 13px; }
.fx-connect-card form label, .fx-admin-messenger-form label { display: grid; gap: 6px; color: #3f4d5f; font-size: 12px; font-weight: 700; }
.fx-connect-card input, .fx-connect-card textarea, .fx-admin-messenger-form input { width: 100%; min-height: 40px; padding: 9px 11px; color: #172132; background: #fff; border: 1px solid #cdd6e3; border-radius: 9px; font: inherit; font-size: 13px; outline: none; }
.fx-connect-card textarea { resize: vertical; }
.fx-connect-card input:focus, .fx-connect-card textarea:focus, .fx-admin-messenger-form input:focus { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24,119,242,.11); }

.fx-messenger-oauth-pages { margin-bottom: 20px; border-color: rgba(24,119,242,.3); }
.fx-page-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 15px; }
.fx-page-options label { display: grid; grid-template-columns: auto 38px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 11px; background: #f8fafc; border: 1px solid #e0e7ef; border-radius: 11px; cursor: pointer; }
.fx-page-options label.is-disabled { cursor: not-allowed; opacity: .58; }
.fx-page-options input { grid-row: 1 / 3; }
.fx-page-options span { grid-row: 1 / 3; display: grid; width: 38px; height: 38px; overflow: hidden; color: #1877f2; background: #eaf2ff; border-radius: 50%; place-items: center; }
.fx-page-options span img { width: 100%; height: 100%; object-fit: cover; }
.fx-page-options span svg { width: 22px; height: 22px; }
.fx-page-options strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.fx-page-options small { color: #7a8696; font-size: 10px; }

.fx-connected-section { margin-top: 22px; }
.fx-connected-section > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.fx-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.fx-messenger-account { min-width: 0; padding: 17px; background: #fbfcfe; border: 1px solid #e1e7ef; border-radius: 14px; }
.fx-messenger-account-head { display: flex; align-items: center; gap: 11px; }
.fx-messenger-account-head > div:nth-child(2) { min-width: 0; flex: 1; }
.fx-messenger-account h3 { margin: 0 0 3px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.fx-messenger-account p { margin: 0; color: #738094; font-size: 11px; }
.fx-messenger-page-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; color: #1877f2; background: #eaf2ff; border-radius: 50%; place-items: center; }
.fx-messenger-page-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fx-messenger-page-avatar svg { width: 24px; height: 24px; }
.fx-messenger-status { padding: 4px 7px; color: #087656; background: #e5f9f1; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.fx-messenger-status[data-status="error"] { color: #a32632; background: #ffebed; }
.fx-messenger-account-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.fx-messenger-account-meta span { padding: 4px 7px; color: #556578; background: #edf1f6; border-radius: 6px; font-size: 10px; }
.fx-webhook-box { display: grid; gap: 6px; margin: 12px 0; padding: 12px; background: #f2f6fb; border-radius: 10px; }
.fx-webhook-box label, .fx-admin-meta-setup label { color: #637084; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.fx-webhook-box > div, .fx-admin-meta-setup > div { display: flex; align-items: center; min-width: 0; gap: 7px; }
.fx-webhook-box code, .fx-admin-meta-setup > div code { min-width: 0; flex: 1; overflow: hidden; color: #263d58; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.fx-webhook-box small { color: #667488; font-size: 10px; line-height: 1.5; }
.fx-copy { flex: 0 0 auto; padding: 5px 7px; color: #0866ff; background: #fff; border: 1px solid #c7d8ef; border-radius: 6px; cursor: pointer; font-size: 9px; font-weight: 700; }
.fx-messenger-account-actions { display: flex; gap: 8px; margin-top: 12px; }
.fx-messenger-account-actions button { min-height: 34px; flex: 1; padding: 7px 10px; color: #34516f; background: #fff; border: 1px solid #ccd8e5; border-radius: 8px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.fx-messenger-account-actions button.danger { color: #b12835; border-color: #e7c5c9; }
.fx-account-error { padding: 8px !important; color: #a32632 !important; background: #ffedef; border-radius: 7px; line-height: 1.45; }
.fx-empty-pages { grid-column: 1 / -1; padding: 38px 18px; color: #748195; text-align: center; background: #f9fbfd; border: 1px dashed #cbd6e4; border-radius: 12px; font-size: 13px; }
.fx-policy-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 13px 15px; color: #506177; background: #eef4fb; border: 1px solid #d8e4f1; border-radius: 11px; font-size: 11px; line-height: 1.5; }
.fx-policy-note strong { flex: 0 0 auto; color: #263f5d; }

.fx-admin-messenger-form, .fx-admin-meta-setup { align-content: start; }
.fx-admin-messenger-form h2, .fx-admin-messenger-form p { margin-bottom: 0; }
.fx-admin-meta-setup { display: grid; gap: 9px; }
.fx-admin-meta-setup h2 { margin-bottom: 4px; }
.fx-admin-meta-setup > div { padding: 9px 10px; background: #f4f7fb; border-radius: 8px; }
.fx-admin-meta-setup .fx-scope-list { padding: 0; background: transparent; }
.fx-admin-meta-setup ol { margin: 7px 0 0; padding-left: 20px; color: #58677a; font-size: 12px; line-height: 1.65; }
.fx-panel-loading, .fx-panel-error { display: grid; min-height: 100%; padding: 30px; color: #5e6c7d; place-items: center; text-align: center; }
.fx-panel-error { align-content: center; }
.fx-panel-error button { padding: 9px 14px; border: 1px solid #ccd6e2; border-radius: 8px; cursor: pointer; }

@media (max-width: 899.95px) {
  .fx-messenger-panel { z-index: 1250; left: 0; }
  .fx-messenger-shell { padding: 16px 13px 34px; }
  .fx-connect-grid, .fx-admin-config-grid { grid-template-columns: 1fr; }
  .fx-messenger-header { align-items: flex-start; padding: 18px; border-radius: 17px; }
  .fx-messenger-title-icon { width: 44px; height: 44px; }
  .fx-messenger-title-icon svg { width: 27px; height: 27px; }
}

@media (max-width: 520px) {
  .fx-messenger-header p { display: none; }
  .fx-messenger-header h1 { font-size: 21px; }
  .fx-connect-card, .fx-admin-messenger-form, .fx-admin-meta-setup, .fx-connected-section, .fx-messenger-oauth-pages { padding: 18px; border-radius: 15px; }
  .fx-account-grid { grid-template-columns: 1fr; }
  .fx-connected-section > div:first-child, .fx-policy-note { align-items: flex-start; flex-direction: column; }
}

/* Coupon management and checkout */
.fx-coupon-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1190;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 17px 7px 8px;
  color: #fff;
  background: #0aa879;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(4, 99, 73, 0.3);
  cursor: pointer;
  font: inherit;
}

.fx-coupon-launcher > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #087f5b;
  background: #fff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
}

.fx-coupon-launcher:hover { background: #078e67; }
.fx-coupon-modal-open { overflow: hidden; }

.fx-coupon-modal {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #17212b;
  font-family: Roboto, Arial, sans-serif;
}

.fx-coupon-modal.is-open { display: flex; }
.fx-coupon-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.58); backdrop-filter: blur(3px); }

.fx-coupon-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  background: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(2, 18, 14, 0.3);
}

.fx-coupon-dialog-head,
.fx-coupon-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.fx-coupon-dialog-head {
  padding: 28px 30px 22px;
  color: #fff;
  background: linear-gradient(135deg, #066c51, #0fb883);
}

.fx-coupon-dialog-head h2,
.fx-coupon-form-head h3 { margin: 2px 0 4px; line-height: 1.15; }
.fx-coupon-dialog-head h2 { font-size: 28px; }
.fx-coupon-dialog-head p { margin: 0; color: rgba(255, 255, 255, 0.8); }
.fx-coupon-eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }

.fx-coupon-dialog-head > button,
.fx-coupon-form-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  color: inherit;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

/* Smart inbox: touch-safe message controls and WhatsApp voice calling. */
.fx-inbox .fx-inbox-header {
  position: sticky !important;
  top: 0;
  z-index: 12;
  min-width: 0;
  padding-right: max(8px, env(safe-area-inset-right)) !important;
  padding-left: max(8px, env(safe-area-inset-left)) !important;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.fx-inbox .fx-inbox-header > * {
  min-width: 0;
}

.fx-call-button {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  color: #0ba875;
  background: rgba(11, 168, 117, 0.1);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.fx-call-button:hover:not(:disabled) {
  background: rgba(11, 168, 117, 0.18);
  transform: translateY(-1px);
}

.fx-call-button:focus-visible {
  outline: 3px solid rgba(11, 168, 117, 0.25);
  outline-offset: 2px;
}

.fx-call-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.fx-call-button svg,
.fx-call-control svg,
.fx-call-close svg,
.fx-call-minimize svg,
.fx-call-permission-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.fx-call-layer[hidden],
.fx-call-layer [hidden] {
  display: none !important;
}

.fx-call-layer {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: block;
  pointer-events: none;
  color: #f8fafc;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fx-call-backdrop {
  display: none;
}

.fx-call-card {
  position: fixed;
  top: max(74px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
  width: min(370px, calc(100vw - 36px));
  min-width: 300px;
  height: min(590px, calc(100dvh - 94px));
  min-height: 350px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow: auto;
  padding: 0 24px 26px;
  pointer-events: auto;
  resize: both;
  text-align: center;
  background:
    radial-gradient(circle at 50% -5%, rgba(35, 215, 148, 0.3), transparent 38%),
    linear-gradient(165deg, #152b28 0%, #0b1817 60%, #071211 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

.fx-call-window-bar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% + 48px);
  min-height: 58px;
  margin: 0 -24px 4px;
  padding: 8px 10px 8px 18px;
  box-sizing: border-box;
  background: rgba(8, 25, 22, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 29px 29px 0 0;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.fx-call-drag-handle {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.fx-call-card.is-dragging,
.fx-call-card.is-dragging .fx-call-drag-handle {
  cursor: grabbing;
}

.fx-call-drag-handle small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.fx-call-window-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.fx-call-close,
.fx-call-minimize {
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.fx-call-close:hover,
.fx-call-minimize:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.fx-call-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(232, 255, 247, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fx-call-layer.is-minimized .fx-call-card {
  width: min(320px, calc(100vw - 24px));
  min-width: 280px;
  height: auto !important;
  min-height: 0;
  max-height: 230px;
  padding-bottom: 14px;
  resize: horizontal;
}

.fx-call-layer.is-minimized .fx-call-visual,
.fx-call-layer.is-minimized .fx-call-recipient,
.fx-call-layer.is-minimized .fx-call-permission,
.fx-call-layer.is-minimized .fx-call-status {
  display: none !important;
}

.fx-call-layer.is-minimized .fx-call-card h2 {
  margin-top: 8px;
  font-size: 17px;
}

.fx-call-layer.is-minimized .fx-call-active-actions,
.fx-call-layer.is-minimized .fx-call-incoming-actions {
  gap: 28px;
  margin-top: 10px;
  padding-top: 0;
}

.fx-call-layer.is-minimized .fx-call-control svg {
  width: 18px;
  height: 18px;
  padding: 10px;
}

.fx-call-kicker span {
  width: 7px;
  height: 7px;
  background: #23d794;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(35, 215, 148, 0.12);
}

.fx-call-visual {
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  margin: 28px 0 14px;
  place-items: center;
}

.fx-call-avatar {
  position: relative;
  z-index: 2;
  display: grid;
  width: 112px;
  height: 112px;
  color: #fff;
  background: linear-gradient(145deg, #26d996, #087c60);
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(4, 71, 55, 0.45);
  font-size: 42px;
  font-weight: 600;
  place-items: center;
}

.fx-call-ripple {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(35, 215, 148, 0.3);
  border-radius: 50%;
  animation: fx-call-pulse 2.4s ease-out infinite;
}

.fx-call-ripple-two {
  animation-delay: 1.2s;
}

.fx-call-layer[data-mode="permission"] .fx-call-visual,
.fx-call-layer[data-mode="permission"] > .fx-call-card > h2,
.fx-call-layer[data-mode="permission"] > .fx-call-card > .fx-call-recipient,
.fx-call-layer[data-mode="permission"] > .fx-call-card > .fx-call-status,
.fx-call-layer[data-mode="permission"] > .fx-call-card > .fx-call-timer {
  display: none;
}

.fx-call-card h2 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(24px, 7vw, 31px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-call-recipient,
.fx-call-status,
.fx-call-timer {
  margin: 0;
}

.fx-call-recipient {
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-call-status {
  min-height: 22px;
  margin-top: 17px;
  color: rgba(237, 255, 249, 0.86);
  font-size: 14px;
}

.fx-call-timer {
  min-height: 18px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.fx-call-active-actions,
.fx-call-incoming-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  width: 100%;
  margin-top: auto;
  padding-top: 34px;
}

.fx-call-control {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  min-width: 68px;
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  touch-action: manipulation;
}

.fx-call-control svg {
  box-sizing: content-box;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: transform 150ms ease, background-color 150ms ease;
}

.fx-call-control:hover svg {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.fx-call-end svg,
.fx-call-decline svg {
  color: #fff;
  background: #ef4b55;
  transform: rotate(135deg);
}

.fx-call-end:hover svg,
.fx-call-decline:hover svg {
  background: #d93642;
}

.fx-call-answer svg {
  color: #fff;
  background: #16b97b;
}

.fx-call-answer:hover svg {
  background: #0d9d67;
}

.fx-call-mute.is-muted svg {
  color: #071411;
  background: #fff;
}

.fx-call-permission {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding-top: 54px;
}

.fx-call-permission-icon {
  display: grid;
  width: 72px;
  height: 72px;
  color: #22d494;
  background: rgba(34, 212, 148, 0.12);
  border: 1px solid rgba(34, 212, 148, 0.2);
  border-radius: 22px;
  place-items: center;
}

.fx-call-permission-icon svg {
  width: 32px;
  height: 32px;
}

.fx-call-permission h3 {
  margin: 22px 0 8px;
  color: #fff;
  font-size: 25px;
}

.fx-call-permission p {
  max-width: 310px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.55;
}

.fx-call-permission textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 88px;
  padding: 13px 14px;
  resize: vertical;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  outline: none;
}

.fx-call-permission textarea:focus {
  border-color: #22d494;
  box-shadow: 0 0 0 3px rgba(34, 212, 148, 0.13);
}

.fx-call-permission-send,
.fx-call-permission-cancel {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 11px 18px;
  color: #062019;
  background: #25d396;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.fx-call-permission-send:disabled {
  cursor: wait;
  opacity: 0.62;
}

.fx-call-permission-cancel {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.fx-call-toast {
  position: fixed;
  z-index: 2100;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: min(390px, calc(100vw - 36px));
  padding: 12px 16px;
  color: #fff;
  background: #16211f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  font: 500 13px/1.45 Roboto, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.fx-call-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fx-call-toast[data-type="success"] {
  background: #087657;
}

.fx-call-toast[data-type="error"] {
  background: #a92f3a;
}

@keyframes fx-call-pulse {
  0% { opacity: 0.75; transform: scale(0.72); }
  75%, 100% { opacity: 0; transform: scale(1.42); }
}

@media (max-width: 767.95px) {
  .fx-inbox .fx-inbox-header .fx-inbox-secondary-action {
    display: none !important;
  }

  .fx-inbox .fx-inbox-header {
    min-height: 62px;
    padding-top: max(5px, env(safe-area-inset-top)) !important;
  }

  .fx-inbox .fx-inbox-header :is(button, [role="button"]),
  .fx-inbox .fx-inbox-composer :is(button, [role="button"]) {
    min-width: 44px;
    min-height: 44px;
  }

  .fx-inbox .fx-inbox-composer {
    position: sticky;
    z-index: 11;
    bottom: 0;
    min-width: 0;
    padding-right: max(6px, env(safe-area-inset-right)) !important;
    padding-bottom: max(7px, env(safe-area-inset-bottom)) !important;
    padding-left: max(6px, env(safe-area-inset-left)) !important;
  }

  .fx-inbox .fx-inbox-composer :is(input, textarea) {
    min-width: 0;
    font-size: 16px !important;
  }

  .fx-call-layer {
    padding: 0;
  }

  .fx-call-card {
    top: auto;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    width: auto;
    min-width: 0;
    height: min(520px, 68dvh);
    min-height: 330px;
    max-width: none;
    max-height: calc(100dvh - 20px);
    resize: none;
    border-radius: 25px;
  }

  .fx-call-window-bar {
    border-radius: 24px 24px 0 0;
  }

  .fx-call-drag-handle {
    cursor: default;
  }

  .fx-call-visual {
    width: 172px;
    height: 172px;
    margin-top: 20px;
  }

  .fx-call-avatar {
    width: 102px;
    height: 102px;
  }

  .fx-call-active-actions,
  .fx-call-incoming-actions {
    padding-top: 25px;
  }

  .fx-call-toast {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    max-width: none;
    text-align: center;
  }
}

@media (max-height: 680px) and (max-width: 767.95px) {
  .fx-call-card {
    height: min(440px, calc(100dvh - 20px));
    min-height: 300px;
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .fx-call-visual {
    width: 135px;
    height: 135px;
    margin: 10px 0 5px;
  }

  .fx-call-avatar {
    width: 86px;
    height: 86px;
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-call-ripple {
    animation: none !important;
  }

  .fx-call-button,
  .fx-call-toast,
  .fx-call-control svg {
    transition: none !important;
  }
}

.fx-coupon-list-view { padding: 22px 30px 30px; }
.fx-coupon-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; min-height: 40px; }
.fx-coupon-toolbar > button,
.fx-coupon-save {
  padding: 10px 16px;
  color: #fff;
  background: #07966d;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.fx-coupon-load-message[data-type="error"],
.fx-coupon-form-message[data-type="error"],
.fx-checkout-coupon-result[data-type="error"] { color: #c52e2e; }

.fx-coupon-list { display: grid; gap: 11px; }
.fx-coupon-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 18px; background: #fff; border: 1px solid #e4ebe8; border-radius: 14px; box-shadow: 0 3px 12px rgba(15, 23, 42, .035); }
.fx-coupon-row-main { min-width: 0; }
.fx-coupon-row-main > div { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.fx-coupon-row-main code { color: #087f5b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 800; }
.fx-coupon-row-main strong { display: block; overflow: hidden; margin-bottom: 4px; text-overflow: ellipsis; white-space: nowrap; }
.fx-coupon-row-main small { color: #65736f; }
.fx-coupon-state { padding: 3px 7px; border-radius: 999px; background: #ecfdf5; color: #087f5b; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.fx-coupon-state[data-kind="inactive"], .fx-coupon-state[data-kind="expired"] { color: #7c3a3a; background: #fff1f1; }
.fx-coupon-state[data-kind="scheduled"] { color: #795800; background: #fff8db; }
.fx-coupon-row-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.fx-coupon-row-actions button, .fx-coupon-cancel { padding: 8px 10px; color: #42524d; background: #f5f8f7; border: 1px solid #dce6e2; border-radius: 8px; cursor: pointer; font-weight: 600; }
.fx-coupon-row-actions button.danger { color: #bd2929; }
.fx-coupon-empty, .fx-coupon-loading { display: grid; gap: 5px; padding: 42px 20px; color: #61716c; text-align: center; background: #fff; border: 1px dashed #cedbd7; border-radius: 14px; }

.fx-coupon-editor { padding: 26px 30px 30px; }
.fx-coupon-form { display: grid; gap: 20px; }
.fx-coupon-form-head h3 { font-size: 22px; }
.fx-coupon-form-close { color: #53615d; background: #fff; border-color: #dce6e2; }
.fx-coupon-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fx-coupon-fields label, .fx-coupon-plans { display: grid; gap: 7px; }
.fx-coupon-fields label > span, .fx-coupon-plans legend { font-size: 13px; font-weight: 700; }
.fx-coupon-fields small { color: #74817d; font-weight: 400; }
.fx-coupon-fields input, .fx-coupon-fields select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #17212b;
  background: #fff;
  border: 1px solid #cedbd7;
  border-radius: 9px;
  box-sizing: border-box;
  font: inherit;
}
.fx-coupon-fields input:focus, .fx-coupon-fields select:focus, .fx-checkout-coupon-form input:focus { outline: 2px solid rgba(10, 168, 121, .2); border-color: #0aa879; }
.fx-coupon-plans { margin: 0; padding: 15px; background: #fff; border: 1px solid #dce6e2; border-radius: 12px; }
.fx-coupon-plans p { margin: 0 0 5px; color: #71807b; font-size: 12px; }
.fx-coupon-plans > div { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-coupon-plans label, .fx-coupon-active { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; background: #f5f8f7; border-radius: 8px; cursor: pointer; font-size: 13px; }
.fx-coupon-active { justify-self: start; font-weight: 700; }
.fx-coupon-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.fx-coupon-form-message { margin-right: auto; font-size: 13px; }
.fx-coupon-form-actions button:disabled, .fx-coupon-toolbar button:disabled, .fx-coupon-row-actions button:disabled { cursor: wait; opacity: .58; }

.fx-checkout-coupon {
  display: grid;
  gap: 12px;
  margin: 15px 0 18px;
  padding: 16px;
  background: linear-gradient(135deg, #f1fffa, #f8fffd);
  border: 1px solid #bfe9da;
  border-radius: 14px;
}
.fx-checkout-coupon-title { display: flex; align-items: center; gap: 11px; }
.fx-checkout-coupon-title > div:first-child { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: #fff; background: #0aa879; border-radius: 10px; font-size: 17px; font-weight: 800; }
.fx-checkout-coupon-title strong, .fx-checkout-coupon-title small { display: block; }
.fx-checkout-coupon-title small { margin-top: 2px; color: #66746f; }
.fx-checkout-coupon-form { display: flex; gap: 9px; }
.fx-checkout-coupon-form input { min-width: 0; min-height: 42px; flex: 1; padding: 9px 11px; text-transform: uppercase; background: #fff; border: 1px solid #cbdad5; border-radius: 9px; font: inherit; }
.fx-checkout-coupon-form button { min-width: 92px; padding: 9px 14px; color: #fff; background: #07966d; border: 0; border-radius: 9px; cursor: pointer; font-weight: 700; }
.fx-checkout-coupon.has-coupon { background: #effcf6; border-color: #85d6b8; }
.fx-checkout-coupon.has-coupon .fx-checkout-coupon-form button { color: #3f514b; background: #fff; border: 1px solid #cad9d4; }
.fx-checkout-coupon-result { display: flex; justify-content: space-between; gap: 12px; color: #65736f; font-size: 12px; }
.fx-checkout-coupon-result strong { color: #087f5b; }

@media (max-width: 720px) {
  .fx-coupon-launcher { right: 14px; bottom: 14px; }
  .fx-coupon-modal { align-items: flex-end; padding: 0; }
  .fx-coupon-dialog { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .fx-coupon-dialog-head, .fx-coupon-list-view, .fx-coupon-editor { padding-right: 18px; padding-left: 18px; }
  .fx-coupon-row { align-items: flex-start; flex-direction: column; }
  .fx-coupon-row-actions { width: 100%; }
  .fx-coupon-row-actions button { flex: 1; }
  .fx-coupon-fields { grid-template-columns: 1fr; }
  .fx-coupon-form-actions { flex-wrap: wrap; }
  .fx-coupon-form-message { width: 100%; }
  .fx-checkout-coupon-result { flex-direction: column; gap: 3px; }
}

/* Compact coupon checkout layout v2 */
.fx-checkout-coupon {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr);
  grid-template-areas:
    "coupon-title coupon-form"
    ". coupon-result";
  align-items: center;
  column-gap: 20px;
  row-gap: 7px;
  width: 100%;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  padding: 14px 16px;
  box-sizing: border-box;
  background: linear-gradient(
    135deg,
    rgba(10, 168, 121, .055),
    rgba(10, 168, 121, .018)
  );
  border: 1px solid rgba(10, 168, 121, .28);
  border-radius: 12px;
}

.fx-checkout-coupon-title {
  grid-area: coupon-title;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fx-checkout-coupon-title > div:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #fff;
  background: #0aa879;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 800;
}

.fx-checkout-coupon-title strong,
.fx-checkout-coupon-title small {
  display: block;
}

.fx-checkout-coupon-title strong {
  color: #17212b;
  font-size: 14px;
  line-height: 1.25;
}

.fx-checkout-coupon-title small {
  overflow: hidden;
  margin-top: 2px;
  color: #66746f;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-checkout-coupon-form {
  grid-area: coupon-form;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.fx-checkout-coupon-form input {
  min-width: 0;
  min-height: 40px;
  flex: 1;
  padding: 8px 11px;
  color: #26332f;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid #cbdad5;
  border-radius: 9px;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
}

.fx-checkout-coupon-form input:disabled {
  color: #53615d;
  background: rgba(255, 255, 255, .72);
  opacity: 1;
}

.fx-checkout-coupon-form button {
  min-width: 84px;
  min-height: 40px;
  padding: 8px 13px;
  color: #fff;
  background: #07966d;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.fx-checkout-coupon-form button:hover {
  background: #07815f;
}

.fx-checkout-coupon-form button:disabled {
  cursor: wait;
  opacity: .6;
}

.fx-checkout-coupon.has-coupon {
  background: linear-gradient(
    135deg,
    rgba(10, 168, 121, .08),
    rgba(10, 168, 121, .025)
  );
  border-color: rgba(10, 168, 121, .42);
}

.fx-checkout-coupon.has-coupon .fx-checkout-coupon-form button {
  color: #3f514b;
  background: #fff;
  border: 1px solid #cad9d4;
}

.fx-checkout-coupon-result {
  grid-area: coupon-result;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: #65736f;
  font-size: 11px;
  line-height: 1.35;
}

.fx-checkout-coupon-result:empty {
  display: none;
}

.fx-checkout-coupon-result strong {
  color: #087f5b;
}

@media (max-width: 720px) {
  .fx-checkout-coupon {
    grid-template-columns: 1fr;
    grid-template-areas:
      "coupon-title"
      "coupon-form"
      "coupon-result";
    gap: 11px;
    padding: 14px;
  }

  .fx-checkout-coupon-title small {
    white-space: normal;
  }

  .fx-checkout-coupon-result {
    flex-direction: column;
    gap: 3px;
  }
}

/* Hide coupon checkout subtitle */
.fx-checkout-coupon-title small {
  display: none !important;
}

/* Offline payment QR uploader inside the existing Offline Payment admin card. */
.fx-offline-qr-admin {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(107, 114, 128, 0.2);
}

.fx-offline-qr-admin-head strong,
.fx-offline-qr-admin-head small,
.fx-offline-qr-file span,
.fx-offline-qr-file small {
  display: block;
}

.fx-offline-qr-admin-head strong,
.fx-offline-qr-file span {
  font-size: 12px;
  font-weight: 700;
}

.fx-offline-qr-admin-head small,
.fx-offline-qr-file small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.fx-offline-qr-admin-preview {
  width: fit-content;
  max-width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(107, 114, 128, 0.24);
  border-radius: 12px;
}

.fx-offline-qr-admin-preview[hidden],
.fx-offline-qr-remove[hidden] {
  display: none !important;
}

.fx-offline-qr-admin-image {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.fx-offline-qr-file {
  display: grid;
  gap: 8px;
}

.fx-offline-qr-file input[type="file"] {
  width: 100%;
  min-width: 0;
  padding: 9px;
  color: inherit;
  background: transparent;
  border: 1px dashed rgba(107, 114, 128, 0.42);
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
}

.fx-offline-qr-admin-actions,
.fx-offline-qr-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.fx-offline-qr-upload,
.fx-offline-qr-remove,
.fx-offline-qr-actions a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
}

.fx-offline-qr-upload {
  color: #fff;
  background: #0288d1;
  border: 1px solid #0288d1;
}

.fx-offline-qr-remove {
  color: #c62828;
  background: transparent;
  border: 1px solid rgba(198, 40, 40, 0.35);
}

.fx-offline-qr-upload:disabled,
.fx-offline-qr-remove:disabled {
  cursor: wait;
  opacity: 0.6;
}

.fx-offline-qr-status {
  font-size: 11px;
  line-height: 1.4;
}

.fx-offline-qr-status[data-type="success"] {
  color: #138a3c;
}

.fx-offline-qr-status[data-type="error"] {
  color: #d32f2f;
}

/* QR shown inside the existing Offline Payment checkout dialog. */
.fx-offline-qr-checkout {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  background: rgba(2, 136, 209, 0.045);
  border: 1px solid rgba(2, 136, 209, 0.22);
  border-radius: 14px;
  box-sizing: border-box;
}

.fx-offline-qr-copy {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: center;
}

.fx-offline-qr-copy strong {
  font-size: 14px;
}

.fx-offline-qr-copy span {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.55;
}

.fx-offline-qr-image-link {
  display: block;
  max-width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.fx-offline-qr-image-link img {
  display: block;
  width: min(280px, 68vw);
  height: auto;
  max-height: 45vh;
  object-fit: contain;
}

.fx-offline-qr-actions {
  justify-content: center;
}

.fx-offline-qr-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  color: #0277bd;
  background: transparent;
  border: 1px solid rgba(2, 119, 189, 0.32);
}

@media (max-width: 599.95px) {
  .fx-offline-qr-admin {
    padding: 16px;
  }

  .fx-offline-qr-checkout {
    padding: 14px;
  }

  .fx-offline-qr-image-link img {
    width: min(300px, 76vw);
    max-height: 42vh;
  }

  .fx-offline-qr-actions {
    width: 100%;
  }

  .fx-offline-qr-actions a {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ===== FINAL MOBILE CHAT HEADER LOCK =====
   The compiled message list scrolls, while the customer header and composer
   remain fixed flex siblings. Grid columns guarantee room for Call + Info. */
@media (max-width: 767.95px) {
  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-header {
    position: relative !important;
    z-index: 30 !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    display: grid !important;
    grid-template-columns: 42px 36px minmax(0, 1fr) 88px !important;
    grid-auto-flow: column !important;
    align-items: center !important;
    column-gap: 7px !important;
    row-gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: calc(64px + env(safe-area-inset-top)) !important;
    height: auto !important;
    flex: 0 0 auto !important;
    padding-top: max(7px, env(safe-area-inset-top)) !important;
    padding-right: max(8px, env(safe-area-inset-right)) !important;
    padding-bottom: 7px !important;
    padding-left: max(8px, env(safe-area-inset-left)) !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-header > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-header > .fx-inbox-back-action {
    grid-column: 1 !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-avatar {
    display: block !important;
    grid-column: 2 !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    flex: 0 0 36px !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-identity {
    display: block !important;
    grid-column: 3 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-identity > * {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

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

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

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-header-actions {
    display: grid !important;
    grid-column: 4 !important;
    grid-template-columns: repeat(2, 42px) !important;
    grid-auto-flow: column !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 4px !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    height: 42px !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-header-actions > * {
    margin: 0 !important;
  }

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

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-header .fx-call-button,
  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-header-actions > :is(button, [role="button"]):not(.fx-inbox-secondary-action) {
    position: static !important;
    inset: auto !important;
    display: inline-grid !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;
    place-items: center !important;
    padding: 8px !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-chat-panel {
    position: relative !important;
  }
}

@media (max-width: 379.95px) {
  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-header {
    grid-template-columns: 42px minmax(0, 1fr) 88px !important;
    column-gap: 6px !important;
    padding-right: max(6px, env(safe-area-inset-right)) !important;
    padding-left: max(6px, env(safe-area-inset-left)) !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-avatar {
    display: none !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-identity {
    grid-column: 2 !important;
  }

  html.fx-mobile-inbox-root body.fx-mobile-inbox.fx-inbox .fx-inbox-header-actions {
    grid-column: 3 !important;
  }
}

/* ===== Mobile Inbox Precision Layout =====
   These rules are deliberately scoped to the detected inbox. Desktop remains
   controlled by the original React layout. */
@media (max-width: 767.95px) {
  body.fx-mobile-inbox.fx-inbox .fx-inbox-header {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 64px !important;
    height: auto !important;
    gap: 8px !important;
    padding-top: max(9px, env(safe-area-inset-top)) !important;
    padding-right: max(8px, env(safe-area-inset-right)) !important;
    padding-bottom: 9px !important;
    padding-left: max(8px, env(safe-area-inset-left)) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

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

  body.fx-mobile-inbox.fx-inbox :is(.fx-inbox-contact-name, .fx-inbox-contact-number) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !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;
  }

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

  body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-avatar {
    min-width: 36px !important;
    flex: 0 0 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-header-actions {
    display: flex !important;
    align-items: center !important;
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    flex: 0 0 88px !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin-left: auto !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-header-actions > * {
    margin: 0 !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-header :is(.fx-inbox-back-action, .fx-call-button),
  body.fx-mobile-inbox.fx-inbox .fx-inbox-header-actions > :is(button, [role="button"]):not(.fx-inbox-secondary-action) {
    display: inline-grid !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
    padding: 8px !important;
    margin: 0 !important;
    box-sizing: border-box !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 {
    position: absolute !important;
    z-index: 4 !important;
    top: 50% !important;
    right: calc(max(8px, env(safe-area-inset-right)) + 46px) !important;
    display: inline-grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(-50%) !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer {
    display: flex !important;
    align-items: flex-end !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 2px !important;
    padding-top: 7px !important;
    padding-right: max(5px, env(safe-area-inset-right)) !important;
    padding-bottom: max(7px, env(safe-area-inset-bottom)) !important;
    padding-left: max(5px, env(safe-area-inset-left)) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

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

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer-field .MuiInputBase-root {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer-field :is(input, textarea) {
    min-width: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 24px !important;
  }

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

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer .fx-inbox-composer-action svg {
    width: 21px !important;
    height: 21px !important;
    font-size: 21px !important;
  }
}

@media (max-width: 379.95px) {
  body.fx-mobile-inbox.fx-inbox .fx-inbox-header {
    gap: 6px !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-contact-avatar {
    display: none !important;
  }

  body.fx-mobile-inbox.fx-inbox .fx-inbox-composer .fx-inbox-composer-action {
    width: 36px !important;
    min-width: 36px !important;
    flex-basis: 36px !important;
    padding: 7px !important;
  }
}

/* ===== Offline Payment QR Larger UX ===== */

.fx-offline-qr-checkout {
  gap: 10px !important;
  padding: 14px !important;
}

.fx-offline-qr-copy {
  margin-bottom: 2px !important;
}

.fx-offline-qr-copy strong {
  font-size: 16px !important;
  font-weight: 600 !important;
}

.fx-offline-qr-image-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 390px !important;
  padding: 6px !important;
  margin: 0 auto !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

.fx-offline-qr-image-link img {
  display: block !important;
  width: min(360px, 82vw) !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

@media (max-width: 599.95px) {
  .fx-offline-qr-checkout {
    padding: 10px !important;
    gap: 8px !important;
  }

  .fx-offline-qr-image-link {
    width: 100% !important;
    max-width: 400px !important;
    padding: 4px !important;
  }

  .fx-offline-qr-image-link img {
    width: min(380px, 88vw) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
}
