body.fbv2-chat-open {
  overflow: hidden;
}

.fbv2-chat-launcher {
  position: fixed;
  z-index: 140;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  min-height: 52px;
  padding: 12px 17px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lp-accent, #1e5fe0);
  color: #fff;
  box-shadow: 0 16px 36px -12px rgba(11, 18, 32, 0.42);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.fbv2-chat-launcher:hover {
  filter: brightness(0.92);
}

.fbv2-chat-launcher-icon {
  font-size: 18px;
  line-height: 1;
}

.fbv2-chat-layer {
  position: fixed;
  z-index: 150;
  inset: 0;
}

.fbv2-chat-layer[hidden] {
  display: none;
}

.fbv2-chat-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(11, 18, 32, 0.34);
  cursor: default;
}

.fbv2-chat-dialog {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(84px, calc(64px + env(safe-area-inset-bottom)));
  width: min(420px, calc(100vw - 40px));
  max-height: min(720px, calc(100dvh - 112px));
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #0b1220;
  box-shadow: 0 24px 56px -20px rgba(11, 18, 32, 0.5);
}

.fbv2-chat-dialog:focus {
  outline: 0;
}

.fbv2-chat-header {
  min-height: 68px;
  padding: 15px 16px;
  border-bottom: 1px solid #e5eaf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.fbv2-chat-heading {
  min-width: 0;
}

.fbv2-chat-heading > span {
  display: block;
  margin-bottom: 2px;
  color: #1e5fe0;
  font-size: 11px;
  font-weight: 700;
}

.fbv2-chat-heading h2 {
  margin: 0;
  overflow: hidden;
  color: #0b1220;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fbv2-chat-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  flex: 0 0 40px;
  background: #fff;
  color: #475569;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.fbv2-chat-progress {
  padding: 11px 16px;
  border-bottom: 1px solid #e5eaf2;
  background: #f6f8fb;
}

.fbv2-chat-progress-meta {
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}

.fbv2-chat-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f6;
}

.fbv2-chat-progress-track > span {
  width: 0;
  height: 100%;
  border-radius: inherit;
  display: block;
  background: #1e5fe0;
  transition: width 160ms ease;
}

.fbv2-chat-form {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.fbv2-chat-body {
  min-height: 220px;
  padding: 20px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fbv2-chat-welcome {
  display: grid;
  gap: 14px;
}

.fbv2-chat-welcome-badge {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #163f94;
  font-size: 11px;
  font-weight: 700;
}

.fbv2-chat-welcome p,
.fbv2-chat-help,
.fbv2-chat-safe-note,
.fbv2-chat-load-error p,
.fbv2-chat-success p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.fbv2-chat-safe-note {
  padding: 12px 13px;
  border: 1px solid #bfdafc;
  border-radius: 8px;
  background: #eef4ff;
  color: #163f94;
}

.fbv2-chat-field {
  display: grid;
  gap: 7px;
}

.fbv2-chat-field label,
.fbv2-chat-choice legend {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.fbv2-chat-field input,
.fbv2-chat-field select,
.fbv2-chat-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #fff;
  color: #0b1220;
}

.fbv2-chat-field textarea {
  min-height: 112px;
  resize: vertical;
}

.fbv2-chat-help {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 11px;
}

.fbv2-chat-consent {
  padding: 14px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f6f8fb;
  color: #475569;
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
}

.fbv2-chat-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 20px;
  accent-color: #1e5fe0;
}

.fbv2-chat-choice {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.fbv2-chat-choice legend {
  margin-bottom: 9px;
}

.fbv2-chat-choice label {
  position: relative;
  display: block;
  cursor: pointer;
}

.fbv2-chat-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fbv2-chat-choice label > span {
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  background: #fff;
  color: #475569;
  font-size: 13px;
}

.fbv2-chat-choice input:checked + span {
  border-color: #1e5fe0;
  background: #eef4ff;
  color: #163f94;
  font-weight: 700;
}

.fbv2-chat-summary {
  margin: 0;
  display: grid;
  gap: 0;
}

.fbv2-chat-summary-row {
  padding: 10px 0;
  border-bottom: 1px solid #e5eaf2;
  display: grid;
  grid-template-columns: minmax(90px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
}

.fbv2-chat-summary-row dt {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.fbv2-chat-summary-row dd {
  margin: 0;
  color: #0b1220;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.fbv2-chat-summary + .fbv2-chat-safe-note {
  margin-top: 14px;
}

.fbv2-chat-error {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 600;
}

.fbv2-chat-footer {
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #e5eaf2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  background: #fff;
}

.fbv2-chat-footer button,
.fbv2-chat-retry,
.fbv2-chat-done {
  min-height: 44px;
  padding: 11px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.fbv2-chat-secondary,
.fbv2-chat-retry {
  border: 1px solid #e5eaf2;
  background: #fff;
  color: #475569;
}

.fbv2-chat-primary,
.fbv2-chat-done {
  border: 1px solid transparent;
  background: var(--lp-accent, #1e5fe0);
  color: #fff;
}

.fbv2-chat-footer button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.fbv2-chat-loading,
.fbv2-chat-load-error,
.fbv2-chat-success {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.fbv2-chat-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #dbeafe;
  border-top-color: #1e5fe0;
  border-radius: 50%;
  animation: fbv2-chat-spin 700ms linear infinite;
}

.fbv2-chat-success-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #14532d;
  font-size: 24px;
  font-weight: 800;
}

.fbv2-chat-success strong {
  color: #0b1220;
  font-size: 17px;
}

.fbv2-chat-done {
  min-width: 120px;
  margin-top: 4px;
}

.fbv2-chat-launcher:focus-visible,
.fbv2-chat-close:focus-visible,
.fbv2-chat-footer button:focus-visible,
.fbv2-chat-retry:focus-visible,
.fbv2-chat-done:focus-visible,
.fbv2-chat-field input:focus-visible,
.fbv2-chat-field select:focus-visible,
.fbv2-chat-field textarea:focus-visible,
.fbv2-chat-consent input:focus-visible,
.fbv2-chat-choice input:focus-visible + span {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(30, 95, 224, 0.24);
}

@keyframes fbv2-chat-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .fbv2-chat-launcher {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 50px;
    padding: 11px 15px;
  }

  .fbv2-chat-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .fbv2-chat-header {
    padding-top: max(15px, env(safe-area-inset-top));
  }

  .fbv2-chat-body {
    min-height: 0;
    padding: 18px 14px;
  }

  .fbv2-chat-error {
    margin-right: 14px;
    margin-left: 14px;
  }

  .fbv2-chat-footer {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 360px) {
  .fbv2-chat-launcher > span:last-child {
    display: none;
  }

  .fbv2-chat-launcher {
    width: 52px;
    padding: 0;
    justify-content: center;
  }

  .fbv2-chat-summary-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fbv2-chat-progress-track > span {
    transition: none;
  }

  .fbv2-chat-spinner {
    animation-duration: 1400ms;
  }
}

.fbv2-chat-dialog {
  height: min(720px, calc(100dvh - 112px));
  min-height: 520px;
}

.fbv2-chat-launcher-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
  background: #fef08a;
  box-shadow: 0 0 0 0 rgba(254, 240, 138, 0.54);
  animation: fbv2-chat-live 1.6s ease-out infinite;
}

.fbv2-chat-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.fbv2-chat-identity-copy {
  min-width: 0;
}

.fbv2-chat-identity-copy h2 {
  margin: 0;
  overflow: hidden;
  color: #0b1220;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fbv2-chat-online {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
}

.fbv2-chat-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: fbv2-chat-live 1.6s ease-out infinite;
}

.fbv2-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
}

.fbv2-chat-avatar-counselor {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.09);
}

.fbv2-chat-avatar-counselor img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 15%;
}

.fbv2-chat-header-avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-width: 2px;
}

.fbv2-chat-avatar-user {
  background: #e7e5e4;
  color: #57534e;
}

.fbv2-chat-messages.fbv2-chat-body {
  min-height: 0;
  padding: 16px 14px 20px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f7f8fb;
  scroll-behavior: smooth;
}

.fbv2-chat-row {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.fbv2-chat-row-bot {
  justify-content: flex-start;
}

.fbv2-chat-row-user {
  justify-content: flex-end;
}

.fbv2-chat-bubble-wrap {
  max-width: min(276px, calc(100% - 44px));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fbv2-chat-bubble-wrap-wide {
  max-width: min(310px, calc(100% - 44px));
}

.fbv2-chat-row-user .fbv2-chat-bubble-wrap {
  align-items: flex-end;
}

.fbv2-chat-sender {
  padding: 0 3px;
  color: #78716c;
  font-size: 10px;
  font-weight: 700;
}

.fbv2-chat-bubble {
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.58;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.fbv2-chat-bubble-bot {
  border-bottom-left-radius: 4px;
  background: #fff;
  color: #292524;
  box-shadow:
    0 1px 2px rgba(60, 45, 30, 0.06),
    0 4px 12px rgba(60, 45, 30, 0.04);
}

.fbv2-chat-bubble-user {
  border-bottom-right-radius: 4px;
  background: #fee500;
  color: #1c1917;
  box-shadow: 0 1px 2px rgba(60, 45, 30, 0.08);
  font-weight: 550;
}

.fbv2-chat-bubble-rich {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.fbv2-chat-time {
  padding: 0 4px;
  color: #a8a29e;
  font-size: 9px;
}

.fbv2-chat-typing-dots {
  min-width: 54px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.fbv2-chat-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: fbv2-chat-typing 1.2s ease-in-out infinite;
}

.fbv2-chat-typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.fbv2-chat-typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.fbv2-chat-input {
  max-height: min(310px, 43dvh);
  padding: 11px 14px max(11px, env(safe-area-inset-bottom));
  border-top: 1px solid #e9edf3;
  flex: 0 0 auto;
  overflow-y: auto;
  background: #fff;
}

.fbv2-chat-controls {
  margin: 0;
  display: grid;
  gap: 9px;
}

.fbv2-chat-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.fbv2-chat-composer-input {
  min-width: 0;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid #dfe5ed;
  border-radius: 22px;
  flex: 1 1 auto;
  background: #fafafa;
  color: #0b1220;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

textarea.fbv2-chat-composer-input {
  min-height: 78px;
  border-radius: 15px;
  resize: vertical;
}

.fbv2-chat-send {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  background: var(--lp-accent, #1e5fe0);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.fbv2-chat-help {
  margin: 0 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.fbv2-chat-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fbv2-chat-chip,
.fbv2-chat-skip {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.fbv2-chat-chip:hover,
.fbv2-chat-skip:hover {
  border-color: var(--lp-accent, #1e5fe0);
  background: #eef4ff;
  color: #163f94;
}

.fbv2-chat-chip-primary {
  border-color: transparent;
  background: var(--lp-accent, #1e5fe0);
  color: #fff;
  box-shadow: 0 3px 10px rgba(30, 95, 224, 0.22);
}

.fbv2-chat-chip-primary:hover {
  background: var(--lp-accent, #1e5fe0);
  color: #fff;
  filter: brightness(0.92);
}

.fbv2-chat-chip-danger {
  color: #991b1b;
}

.fbv2-chat-skip {
  width: 100%;
  border-style: dashed;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
}

.fbv2-chat-privacy,
.fbv2-chat-guardian-note {
  padding: 12px 13px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
}

.fbv2-chat-privacy {
  display: grid;
  gap: 8px;
}

.fbv2-chat-privacy strong {
  color: #0f172a;
  font-size: 13px;
}

.fbv2-chat-privacy p,
.fbv2-chat-guardian-note {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-line;
}

.fbv2-chat-privacy-fields {
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  color: #1e3a8a !important;
}

.fbv2-chat-recommendation {
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  background: linear-gradient(160deg, #fff 0%, #eff6ff 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.fbv2-chat-recommendation-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 10px;
  font-weight: 800;
}

.fbv2-chat-recommendation-title {
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

.fbv2-chat-recommendation-summary,
.fbv2-chat-recommendation-disclaimer {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.6;
}

.fbv2-chat-recommendation-items {
  margin: 0;
  display: grid;
  gap: 6px;
}

.fbv2-chat-recommendation-item {
  padding: 8px 9px;
  border-radius: 9px;
  display: grid;
  grid-template-columns: minmax(82px, 0.75fr) minmax(0, 1.25fr);
  gap: 9px;
  background: rgba(255, 255, 255, 0.84);
}

.fbv2-chat-recommendation-item dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.fbv2-chat-recommendation-item dd {
  margin: 0;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.fbv2-chat-recommendation-disclaimer {
  padding-top: 8px;
  border-top: 1px solid rgba(147, 197, 253, 0.55);
  color: #64748b;
  font-size: 10px;
}

.fbv2-chat-recommendation-gift {
  padding: 9px 10px;
  border-radius: 9px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.fbv2-chat-summary {
  max-height: 330px;
  padding: 13px;
  border: 1px solid #dbe3ee;
  border-radius: 15px;
  overflow-y: auto;
  background: #fff;
}

.fbv2-chat-summary-list {
  margin: 0;
}

.fbv2-chat-summary-row {
  padding: 8px 0;
  border-bottom: 1px solid #edf0f5;
  display: grid;
  grid-template-columns: minmax(84px, 0.42fr) minmax(0, 1fr);
  gap: 9px;
}

.fbv2-chat-summary-row:last-child {
  border-bottom: 0;
}

.fbv2-chat-summary-row dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.fbv2-chat-summary-row dd {
  margin: 0;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.fbv2-chat-summary-note {
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 9px;
  background: #eef4ff;
  color: #1e3a8a;
  font-size: 10px;
  line-height: 1.55;
}

.fbv2-chat-error {
  margin: 0 0 9px;
}

.fbv2-chat-submit-status {
  margin: 0;
  padding: 11px;
  border-radius: 10px;
  background: #eef4ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.fbv2-chat-retry,
.fbv2-chat-done {
  width: 100%;
}

.fbv2-chat-embed {
  position: relative;
  z-index: auto;
  inset: auto;
  width: 100%;
  min-height: 560px;
}

.fbv2-chat-embed .fbv2-chat-backdrop {
  display: none;
}

.fbv2-chat-embed .fbv2-chat-dialog {
  position: relative;
  inset: auto;
  width: 100%;
  height: min(660px, 82vh);
  min-height: 560px;
  max-height: none;
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

.fbv2-chat-launcher:focus-visible,
.fbv2-chat-close:focus-visible,
.fbv2-chat-chip:focus-visible,
.fbv2-chat-skip:focus-visible,
.fbv2-chat-send:focus-visible,
.fbv2-chat-retry:focus-visible,
.fbv2-chat-done:focus-visible,
.fbv2-chat-composer-input:focus-visible,
.fbv2-chat-choice input:focus-visible + span {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(30, 95, 224, 0.25);
}

@keyframes fbv2-chat-typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes fbv2-chat-live {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.34);
  }
  75%,
  100% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
}

@media (max-width: 640px) {
  .fbv2-chat-dialog {
    min-height: 0;
    height: 100vh;
    height: 100dvh;
  }

  .fbv2-chat-messages.fbv2-chat-body {
    min-height: 0;
    padding: 14px 12px 18px;
  }

  .fbv2-chat-input {
    max-height: 45dvh;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .fbv2-chat-bubble-wrap {
    max-width: min(78vw, calc(100% - 42px));
  }

  .fbv2-chat-bubble-wrap-wide {
    max-width: min(84vw, calc(100% - 42px));
  }

  .fbv2-chat-embed {
    min-height: 560px;
  }

  .fbv2-chat-embed .fbv2-chat-dialog {
    position: relative;
    height: min(660px, 86vh);
    min-height: 560px;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
  }
}

@media (max-width: 360px) {
  .fbv2-chat-header {
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .fbv2-chat-header-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .fbv2-chat-identity {
    gap: 8px;
  }

  .fbv2-chat-identity-copy h2 {
    font-size: 14px;
  }

  .fbv2-chat-bubble {
    padding: 10px 12px;
    font-size: 12px;
  }

  .fbv2-chat-recommendation-item,
  .fbv2-chat-summary-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .fbv2-chat-chip {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fbv2-chat-launcher-icon,
  .fbv2-chat-online i,
  .fbv2-chat-typing-dots span {
    animation: none;
  }

  .fbv2-chat-messages.fbv2-chat-body {
    scroll-behavior: auto;
  }
}
