.cabecalho__link-icone--suporte {
  position: relative;
  width: auto;
  min-width: 0;
  height: 3.8rem;
  padding: 0 1.25rem 0 1rem;
  border: 1px solid #d8dee7;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #334155;
  gap: 0.7rem;
  box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.06);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.cabecalho__link-icone--suporte:hover {
  border-color: #c8d3df;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.1);
}

.cabecalho__icone-ajuda {
  width: 2rem;
  height: 2rem;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.cabecalho__icone-ajuda-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cabecalho__texto-ajuda {
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.cabecalho__link-icone--suporte .cabecalho__itens {
  top: -0.15rem;
  right: -0.2rem;
}

.support-widget {
  position: relative;
  z-index: 10030;
}

.support-widget__floating {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 5.2rem;
  height: 5.2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  box-shadow: 0 1.8rem 3.8rem rgba(15, 23, 42, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  z-index: 10031;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.support-widget__floating:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 2rem 4.2rem rgba(15, 23, 42, 0.2);
}

.support-widget__floating-icon {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateY(-0.25rem);
}

.support-widget__floating-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-widget__panel {
  position: fixed;
  right: 2rem;
  bottom: 8.3rem;
  width: min(35rem, calc(100vw - 2rem));
  max-height: min(68rem, calc(100vh - 10rem));
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 2.2rem 5rem rgba(15, 23, 42, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.support-widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.5rem 1.6rem 1.3rem;
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  flex: 0 0 auto;
}

.support-widget__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-widget__title {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.1;
  color: #0f172a;
}

.support-widget__header > div:first-child {
  min-width: 0;
}

.support-widget__header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.support-widget__header-link,
.support-widget__ghost-link {
  border: none;
  background: transparent;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
}

.support-widget__close {
  width: 3.2rem;
  height: 3.2rem;
  border: none;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.support-widget__content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #fbfcfe;
}

.support-widget__optional {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.support-widget__optional summary {
  min-height: 4.2rem;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: #334155;
  cursor: pointer;
  font-size: 1.16rem;
  font-weight: 800;
  list-style: none;
}

.support-widget__optional summary::-webkit-details-marker {
  display: none;
}

.support-widget__optional summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.support-widget__optional[open] summary::after {
  transform: rotate(180deg);
}

.support-widget__optional .support-widget__form-grid,
.support-widget__optional .support-widget__helper {
  margin: 0 1.1rem 1.1rem;
}

.support-widget__loading {
  padding: 2rem 0.4rem;
  text-align: center;
  font-size: 1.3rem;
  color: #64748b;
}

.support-widget__error,
.support-widget__guest,
.support-widget__intro,
.support-widget__thread-card,
.support-widget__thread-note {
  border-radius: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
}

.support-widget__guest,
.support-widget__intro,
.support-widget__thread-card,
.support-widget__thread-note {
  padding: 1.4rem;
}

.support-widget__error {
  padding: 1rem 1.2rem;
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  font-size: 1.2rem;
  line-height: 1.45;
}

.support-widget__intro h3,
.support-widget__guest h3 {
  margin: 0 0 0.6rem;
  font-size: 1.55rem;
  color: #0f172a;
}

.support-widget__intro p,
.support-widget__guest p,
.support-widget__thread-note p {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.55;
  color: #475569;
}

.support-widget__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.support-widget__primary,
.support-widget__ghost {
  border-radius: 999px;
  padding: 1.08rem 1.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.cabecalho__link-icone--suporte:focus-visible,
.support-widget__floating:focus-visible,
.support-widget__close:focus-visible,
.support-widget__primary:focus-visible,
.support-widget__ghost:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(15, 23, 42, 0.12);
}

.support-widget__primary {
  background: #0f172a;
  color: #fff;
}

.support-widget__ghost {
  background: #eef2f7;
  color: #0f172a;
}

.support-widget__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-widget__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.support-widget__field label,
.support-widget__fieldset-label {
  font-size: 1.16rem;
  font-weight: 700;
  color: #0f172a;
}

.support-widget__field input,
.support-widget__field textarea {
  width: 100%;
  border: 1px solid #d7dee8;
  border-radius: 1.3rem;
  padding: 1.1rem 1.2rem;
  font: inherit;
  color: #0f172a;
  background: #fff;
}

.support-widget__field textarea {
  min-height: 9.6rem;
  resize: vertical;
}

.support-widget__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.support-widget__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.support-widget__choice {
  position: relative;
}

.support-widget__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.support-widget__choice span {
  display: inline-flex;
  width: 100%;
  min-height: 4.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 1.3rem;
  border: 1px solid #d7dee8;
  background: #fff;
  color: #334155;
  font-size: 1.18rem;
  font-weight: 700;
  text-align: center;
  padding: 0.8rem;
}

.support-widget__choice input:checked + span {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.support-widget__helper {
  margin: -0.15rem 0 0;
  font-size: 1.1rem;
  line-height: 1.45;
  color: #64748b;
}

.support-widget__rating-choices {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  width: max-content;
}

.support-widget__rating-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.support-widget__rating-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.support-widget__rating-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.14rem;
  color: #cbd5e1;
  font-size: 2.85rem;
  line-height: 1;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    text-shadow 0.2s ease;
}

.support-widget__rating-choice:hover span {
  color: #fbbf24;
  transform: translateY(-0.1rem);
}

.support-widget__rating-choice--active span {
  color: #f59e0b;
  text-shadow: 0 0.2rem 0.5rem rgba(245, 158, 11, 0.18);
}

.support-widget__rating-choice input:focus-visible + span {
  border-radius: 999px;
  box-shadow: 0 0 0 0.28rem rgba(245, 158, 11, 0.16);
}

.support-widget__thread-note {
  display: grid;
  gap: 0.85rem;
}

.support-widget__tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.support-widget__tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 1.08rem;
  font-weight: 700;
}

.support-widget__summary-line {
  font-size: 1.2rem;
  color: #64748b;
}

.support-widget__messages {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: 31rem;
  padding-right: 0.4rem;
  overflow-y: auto;
}

.support-widget__message {
  max-width: 88%;
  padding: 1rem 1.15rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.support-widget__message--cliente {
  align-self: flex-end;
  background: #0f172a;
  color: #fff;
  border-bottom-right-radius: 0.5rem;
}

.support-widget__message--equipe {
  align-self: flex-start;
  background: #eef2f7;
  color: #0f172a;
  border-bottom-left-radius: 0.5rem;
}

.support-widget__message--typing {
  max-width: max-content;
  padding: 0.85rem 1rem;
}

.support-widget__message-meta {
  font-size: 1.03rem;
  opacity: 0.82;
}

.support-widget__message-text {
  font-size: 1.26rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-widget__message-image-link {
  display: block;
  border-radius: 1.1rem;
  overflow: hidden;
}

.support-widget__message-image {
  display: block;
  max-width: 100%;
  max-height: 24rem;
  object-fit: cover;
  border-radius: 1.1rem;
}

.support-widget__typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 1.4rem;
}

.support-widget__typing-dots span {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.36;
  animation: supportTypingDot 1.15s ease-in-out infinite;
}

.support-widget__typing-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.support-widget__typing-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes supportTypingDot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.32;
  }

  40% {
    transform: translateY(-0.28rem);
    opacity: 0.9;
  }
}

.support-widget__composer {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.support-widget__composer textarea {
  min-height: 8.4rem;
}

.support-widget__upload-note {
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 1.16rem;
  line-height: 1.45;
}

.support-widget__upload-picker {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #d7dee8;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.support-widget__upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.support-widget__upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.2rem;
  padding: 0 1.4rem;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.support-widget__upload-trigger:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.support-widget__upload-trigger--active {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8;
}

.support-widget__upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.support-widget__upload-name {
  min-width: 0;
  font-size: 1.12rem;
  line-height: 1.45;
  color: #64748b;
  word-break: break-word;
}

.support-widget__upload-clear {
  padding: 0;
  border: none;
  background: transparent;
  color: #b91c1c;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.support-widget__upload-clear:hover {
  color: #991b1b;
}

.support-widget__composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

@media (max-width: 640px) {
  body.support-widget-open {
    overflow: hidden;
  }

  .cabecalho__link-icone--suporte {
    width: 3.8rem !important;
    height: 3.8rem;
    padding: 0;
    border-radius: 1rem;
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.86);
    gap: 0;
    box-shadow: 0 0.6rem 1.4rem rgba(15, 23, 42, 0.08);
  }

  .cabecalho__icone-ajuda {
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #0f766e;
    box-shadow: none;
  }

  .cabecalho__icone-ajuda-svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .cabecalho__texto-ajuda {
    display: none;
  }

  .support-widget__floating {
    right: 1.3rem;
    bottom: 1.3rem;
    width: 5rem;
    height: 5rem;
  }

  .support-widget__panel {
    left: 50%;
    right: auto;
    top: 7.4rem;
    bottom: auto;
    width: min(37.6rem, calc(100vw - 3.2rem));
    max-height: calc(100vh - 8.6rem);
    transform: translateX(-50%);
    border-radius: 1.6rem;
  }

  .support-widget__header {
    align-items: center;
    min-height: 5.6rem;
    padding: 0.8rem 1rem;
    gap: 0.7rem;
    position: relative;
    z-index: 3;
  }

  .support-widget__eyebrow {
    display: none;
  }

  .support-widget__title {
    font-size: 1.42rem;
    line-height: 1.15;
  }

  .support-widget__header-actions {
    flex: 0 0 auto;
    gap: 0.45rem;
  }

  .support-widget__header-link {
    display: none;
  }

  .support-widget__close {
    width: auto;
    min-width: 8.4rem;
    height: 3.8rem;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    background: rgba(15, 23, 42, 0.06);
    font-size: 0;
    font-weight: 800;
  }

  .support-widget__close::before {
    content: "×";
    font-size: 2rem;
    line-height: 1;
  }

  .support-widget__close::after {
    content: "Fechar";
    font-size: 1.1rem;
    line-height: 1;
  }

  .support-widget__content {
    flex: 0 1 auto;
    max-height: calc(100vh - 14.4rem);
    padding: 1rem;
    gap: 0.9rem;
    overscroll-behavior: contain;
  }

  .support-widget__form-grid {
    grid-template-columns: 1fr;
  }

  .support-widget__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .support-widget__intro,
  .support-widget__guest,
  .support-widget__thread-card,
  .support-widget__thread-note {
    padding: 1.1rem;
    border-radius: 1.35rem;
  }

  .support-widget__intro h3,
  .support-widget__guest h3 {
    font-size: 1.36rem;
  }

  .support-widget__intro p,
  .support-widget__guest p,
  .support-widget__thread-note p {
    font-size: 1.14rem;
    line-height: 1.45;
  }

  .support-widget__form {
    gap: 0.78rem;
  }

  .support-widget__field {
    gap: 0.42rem;
  }

  .support-widget__field label,
  .support-widget__fieldset-label {
    font-size: 1.06rem;
  }

  .support-widget__field input,
  .support-widget__field textarea {
    min-height: 4.4rem;
    border-radius: 1.15rem;
    padding: 0.95rem 1rem;
    font-size: 1.25rem;
  }

  .support-widget__field textarea {
    min-height: 10rem;
  }

  .support-widget__choice span {
    min-height: 4rem;
    border-radius: 1.1rem;
    font-size: 1.08rem;
  }

  .support-widget__helper {
    font-size: 1.03rem;
  }

  .support-widget__actions,
  .support-widget__composer-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -1rem -1rem;
    padding: 0.8rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(251, 252, 254, 0), #fbfcfe 28%, #fbfcfe 100%);
  }

  .support-widget__primary,
  .support-widget__ghost {
    min-height: 4rem;
    padding: 0.9rem 1.1rem;
  }

  .support-widget__primary {
    background: linear-gradient(180deg, #0d8f9d 0%, #087a86 100%);
    box-shadow: 0 0.9rem 1.8rem rgba(8, 122, 134, 0.18);
  }

  .support-widget__ghost {
    background: transparent;
  }

  .support-widget__message {
    max-width: 94%;
  }
}

@media (max-width: 360px) {
  .support-widget__panel {
    top: 7.2rem;
    left: 50%;
    right: auto;
    bottom: auto;
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 8rem);
    transform: translateX(-50%);
    border-radius: 1.25rem;
  }

  .support-widget__header {
    padding: 0.85rem;
  }

  .support-widget__title {
    font-size: 1.32rem;
  }

  .support-widget__content {
    max-height: calc(100vh - 13.6rem);
  }

  .support-widget__choices {
    grid-template-columns: 1fr;
  }
}
