:root {
  --mtj-blue: #0f71b8;
  --mtj-blue-dark: #0a508c;
  --mtj-red: #ff0009;
  --mtj-red-dark: #c80007;
  --mtj-navy: #061a2d;
  --mtj-paper: #f5f8fb;
  --mtj-line: #dce5ed;
  --mtj-muted: #5e6f7d;
  --mtj-white: #fff;
  --mtj-green: #1b9a55;
}

.mtj,
.mtj * {
  box-sizing: border-box;
}

.mtj {
  position: relative;
  z-index: 100010;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--mtj-navy);
  line-height: 1.4;
}

.mtj button,
.mtj input,
.mtj textarea {
  font: inherit;
}

.mtj .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.mtj-launcher {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(100px, calc(env(safe-area-inset-bottom) + 100px));
  z-index: 9986;
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 3px solid var(--mtj-blue);
  border-radius: 50%;
  background: #fff;
  color: var(--mtj-white);
  box-shadow: 0 14px 34px rgba(6, 26, 45, .28), 0 4px 12px rgba(6, 26, 45, .18);
  cursor: pointer;
  isolation: isolate;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mtj-launcher__icon,
.mtj-launcher__icon img {
  width: 56px;
  height: 58px;
  display: block;
}

.mtj-launcher__icon img {
  object-fit: contain;
  object-position: center;
}

.mtj-launcher__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  min-width: max-content;
  padding: 10px 13px;
  border-radius: 9px;
  background: var(--mtj-navy);
  color: var(--mtj-white);
  box-shadow: 0 8px 22px rgba(6, 26, 45, .22);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mtj-launcher__pulse {
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 2px solid rgba(15, 113, 184, .45);
  border-radius: inherit;
  opacity: 0;
}

.mtj-launcher:hover,
.mtj-launcher:focus-visible,
.mtj.is-inviting .mtj-launcher {
  border-color: var(--mtj-red);
  background: #fff;
  box-shadow: 0 17px 38px rgba(200, 0, 7, .28), 0 5px 15px rgba(6, 26, 45, .2);
  transform: translateY(-3px) scale(1.03);
}

.mtj-launcher:hover .mtj-launcher__label,
.mtj-launcher:focus-visible .mtj-launcher__label,
.mtj.is-inviting .mtj-launcher__label {
  opacity: 1;
  transform: translate(0, -50%);
}

.mtj.is-inviting .mtj-launcher__pulse {
  animation: mtj-pulse 1.7s ease-out 3;
}

.mtj-launcher:focus-visible {
  outline: 4px solid rgba(15, 113, 184, .24);
  outline-offset: 3px;
}

.mtj.is-open .mtj-launcher {
  opacity: 0;
  pointer-events: none;
  transform: scale(.82);
}

.mtj-panel {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 100020;
  width: min(400px, calc(100vw - 40px));
  height: min(690px, calc(100vh - 40px));
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(6, 26, 45, .12);
  border-radius: 22px;
  background: var(--mtj-paper);
  box-shadow: 0 28px 75px rgba(6, 26, 45, .33), 0 8px 24px rgba(6, 26, 45, .16);
  transform-origin: right bottom;
  animation: mtj-panel-in 220ms ease-out both;
}

.mtj-panel[hidden] {
  display: none !important;
}

.mtj-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px 12px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 38%),
    linear-gradient(135deg, var(--mtj-navy), #0a3153);
  color: var(--mtj-white);
}

.mtj-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.mtj-brand__logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.mtj-brand__logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.mtj-brand__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mtj-brand__copy strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.015em;
}

.mtj-brand__copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.mtj-brand__copy small i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #33d17a;
  box-shadow: 0 0 0 3px rgba(51, 209, 122, .18);
}

.mtj-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--mtj-white);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.mtj-close svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.mtj-close:hover,
.mtj-close:focus-visible {
  background: var(--mtj-red);
  transform: rotate(4deg);
}

.mtj-status {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 15px;
  border-bottom: 1px solid var(--mtj-line);
  background: #fff;
  color: var(--mtj-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.mtj-status small {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf5fc;
  color: var(--mtj-blue-dark);
  font-size: 9px;
  letter-spacing: .02em;
}

.mtj-messages {
  height: calc(100% - 78px - 33px - 68px - 66px - 35px);
  min-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 14px 12px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #b9c9d6 transparent;
}

.mtj-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  animation: mtj-message-in 180ms ease-out both;
}

.mtj-message--user {
  justify-content: flex-end;
}

.mtj-avatar {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--mtj-blue);
  background: #fff;
  color: var(--mtj-blue-dark);
  box-shadow: 0 4px 10px rgba(15, 113, 184, .2);
  font-size: 13px;
  font-weight: 900;
}

.mtj-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.65);
}

.mtj-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border: 1px solid var(--mtj-line);
  border-radius: 15px 15px 15px 4px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(6, 26, 45, .06);
  color: #1c3447;
  font-size: 13px;
  line-height: 1.46;
}

.mtj-message--user .mtj-bubble {
  border-color: transparent;
  border-radius: 15px 15px 4px;
  background: linear-gradient(145deg, var(--mtj-blue), var(--mtj-blue-dark));
  color: #fff;
}

.mtj-bubble p {
  margin: 0;
}

.mtj-bubble p + p {
  margin-top: 7px;
}

.mtj-message.is-typing .mtj-bubble {
  min-width: 56px;
  padding: 12px 14px;
}

.mtj-message.is-typing .mtj-bubble p {
  display: flex;
  gap: 4px;
}

.mtj-message.is-typing .mtj-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ba0b0;
  animation: mtj-dot 1s infinite ease-in-out;
}

.mtj-message.is-typing .mtj-bubble span:nth-child(2) {
  animation-delay: 120ms;
}

.mtj-message.is-typing .mtj-bubble span:nth-child(3) {
  animation-delay: 240ms;
}

.mtj-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 14px 37px;
}

.mtj-routes button {
  min-height: 61px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid #cbd9e4;
  border-radius: 12px;
  background: #fff;
  color: var(--mtj-navy);
  box-shadow: 0 4px 12px rgba(6, 26, 45, .05);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.mtj-routes button:hover,
.mtj-routes button:focus-visible {
  border-color: var(--mtj-blue);
  background: #edf7fd;
  transform: translateY(-2px);
}

.mtj-routes button.is-selected {
  border-color: var(--mtj-red);
  background: linear-gradient(145deg, var(--mtj-red), var(--mtj-red-dark));
  color: #fff;
  box-shadow: 0 7px 18px rgba(200, 0, 7, .2);
}

.mtj-routes button span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.mtj-routes button small {
  color: var(--mtj-muted);
  font-size: 10px;
  font-weight: 700;
}

.mtj-routes button.is-selected small {
  color: rgba(255, 255, 255, .82);
}

.mtj-actions {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--mtj-line);
  background: #fff;
}

.mtj-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid var(--mtj-blue);
  border-radius: 10px;
  background: var(--mtj-blue);
  color: #fff !important;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.mtj-action:hover,
.mtj-action:focus-visible {
  border-color: var(--mtj-red);
  background: var(--mtj-red);
  transform: translateY(-1px);
}

.mtj-action--link {
  border-color: #c4d3df;
  background: #fff;
  color: var(--mtj-navy) !important;
}

.mtj-action--link:hover,
.mtj-action--link:focus-visible {
  color: #fff !important;
}

.mtj-composer {
  min-height: 66px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 10px 12px;
  border-top: 1px solid var(--mtj-line);
  background: #fff;
}

.mtj-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 112px;
  resize: none;
  padding: 11px 12px;
  border: 1px solid #c7d4de;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  color: var(--mtj-navy);
  font-size: 13px;
  line-height: 1.35;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.mtj-composer textarea:focus {
  border-color: var(--mtj-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 113, 184, .12);
}

.mtj-composer textarea:disabled {
  background: #edf1f4;
  color: #7d8b96;
}

.mtj-composer button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--mtj-red);
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.mtj-composer button:hover:not(:disabled),
.mtj-composer button:focus-visible:not(:disabled) {
  background: var(--mtj-red-dark);
  transform: translateY(-1px);
}

.mtj-composer button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.mtj-composer button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mtj-footer {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  background: var(--mtj-navy);
  color: rgba(255, 255, 255, .65);
  font-size: 9px;
  font-weight: 700;
}

.mtj-footer a {
  color: #fff !important;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none !important;
}

.mtj-lead {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
}

.mtj-lead[hidden] {
  display: none !important;
}

.mtj-lead__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 45, .66);
  backdrop-filter: blur(3px);
}

.mtj-lead__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 92%;
  overflow-y: auto;
  padding: 22px 18px 18px;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -16px 40px rgba(6, 26, 45, .25);
  animation: mtj-lead-in 200ms ease-out both;
}

.mtj-lead__dialog h2 {
  margin: 0 34px 4px 0;
  color: var(--mtj-navy);
  font-size: 21px;
  line-height: 1.15;
}

.mtj-lead__dialog > p {
  margin: 0 34px 14px 0;
  color: var(--mtj-muted);
  font-size: 12px;
}

.mtj-lead__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid var(--mtj-line);
  border-radius: 50%;
  background: #f4f7f9;
  color: var(--mtj-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mtj-lead__dialog form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mtj-lead__dialog label {
  display: grid;
  gap: 5px;
  color: #314b5f;
  font-size: 11px;
  font-weight: 800;
}

.mtj-lead__dialog label:nth-of-type(5),
.mtj-consent,
.mtj-lead__submit,
.mtj-lead__feedback {
  grid-column: 1 / -1;
}

.mtj-lead__dialog input,
.mtj-lead__dialog textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #c7d4de;
  border-radius: 9px;
  outline: none;
  background: #f8fafc;
  color: var(--mtj-navy);
  font-size: 12px;
}

.mtj-lead__dialog input:focus,
.mtj-lead__dialog textarea:focus {
  border-color: var(--mtj-blue);
  box-shadow: 0 0 0 3px rgba(15, 113, 184, .1);
}

.mtj-consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 8px !important;
  font-weight: 700 !important;
  line-height: 1.35;
}

.mtj-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 0;
}

.mtj-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.mtj-lead__submit {
  min-height: 43px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--mtj-red), var(--mtj-red-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mtj-lead__submit:disabled {
  opacity: .6;
  cursor: wait;
}

.mtj-lead__feedback {
  min-height: 18px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
}

.mtj-lead__feedback.is-success {
  color: var(--mtj-green);
}

.mtj-lead__feedback.is-error {
  color: var(--mtj-red-dark);
}

body.mt-jajazinho-open .mt-whatsapp-fab,
body.mt-jajazinho-open .b24-widget-button-wrapper {
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes mtj-panel-in {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mtj-message-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mtj-lead-in {
  from { transform: translateY(22px); }
  to { transform: translateY(0); }
}

@keyframes mtj-pulse {
  0% { opacity: .8; transform: scale(.9); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes mtj-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .55; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 600px) {
  body.mt-jajazinho-open {
    overflow: hidden;
  }

  .mtj-launcher {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(94px, calc(env(safe-area-inset-bottom) + 94px));
    width: 58px;
    height: 58px;
  }

  .mtj-launcher__label {
    right: calc(100% + 9px);
    padding: 9px 11px;
    font-size: 11px;
  }

  .mtj-panel {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    min-height: 0;
    border-radius: 18px;
  }

  .mtj-header {
    min-height: 72px;
    padding: 11px 12px;
  }

  .mtj-brand__logo {
    width: 76px;
    height: 37px;
  }

  .mtj-brand__copy strong {
    font-size: 18px;
  }

  .mtj-brand__copy small {
    font-size: 10px;
  }

  .mtj-messages {
    height: calc(100% - 72px - 33px - 66px - 64px - 35px);
    padding-inline: 11px;
  }

  .mtj-routes {
    margin-left: 37px;
    gap: 7px;
  }

  .mtj-routes button {
    min-height: 57px;
    padding: 9px;
  }

  .mtj-actions {
    min-height: 66px;
    padding: 9px 11px;
  }

  .mtj-composer {
    min-height: 64px;
    padding: 9px 10px;
  }

  .mtj-lead__dialog form {
    grid-template-columns: 1fr;
  }

  .mtj-lead__dialog label,
  .mtj-lead__submit,
  .mtj-lead__feedback {
    grid-column: 1;
  }
}

@media (max-width: 380px) {
  .mtj-routes {
    grid-template-columns: 1fr;
  }

  .mtj-routes button {
    min-height: 49px;
  }

  .mtj-bubble {
    max-width: 88%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mtj *,
  .mtj *::before,
  .mtj *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
