.tg-webchat,
.tg-webchat * {
  box-sizing: border-box;
}

.tg-webchat [hidden] {
  display: none !important;
}

.tg-webchat {
  --tg-green: #2ecb72;
  --tg-green-dark: #15924f;
  --tg-ink: #101421;
  --tg-muted: #6f7581;
  --tg-border: #e7ebef;
  --tg-panel: #ffffff;
  --tg-soft: #f5f6f8;
  color: var(--tg-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  height: auto;
  left: auto;
  line-height: normal;
  margin: 0;
  max-height: none;
  max-width: none;
  min-height: 0;
  min-width: 0;
  overflow: visible;
  position: fixed;
  inset: auto 20px 20px auto;
  transform: none;
  width: auto;
  -webkit-text-size-adjust: 100%;
  z-index: 2147483000;
}

.tg-webchat .tg-webchat-launcher {
  align-items: center;
  animation: tg-webchat-launcher-glow 15s ease-in-out infinite;
  background: var(--tg-panel);
  border: 1px solid rgba(46, 203, 114, 0.28);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(16, 20, 33, 0.22);
  cursor: pointer;
  display: flex;
  height: 64px;
  justify-content: center;
  padding: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  width: 64px;
}

@keyframes tg-webchat-launcher-glow {
  0%,
  78%,
  100% {
    box-shadow: 0 14px 34px rgba(16, 20, 33, 0.22);
  }

  90% {
    box-shadow: 0 18px 42px rgba(16, 20, 33, 0.28), 0 0 0 12px rgba(46, 203, 114, 0);
  }
}

.tg-webchat .tg-webchat-launcher:hover,
.tg-webchat .tg-webchat-launcher:focus-visible {
  box-shadow: 0 18px 42px rgba(16, 20, 33, 0.28);
  outline: 3px solid rgba(46, 203, 114, 0.2);
  transform: translateY(-2px);
}

.tg-webchat .tg-webchat-launcher img {
  display: block;
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.tg-webchat .tg-webchat-panel {
  background: var(--tg-panel);
  border: 1px solid var(--tg-border);
  border-radius: 4px;
  bottom: 20px;
  box-shadow: 0 22px 64px rgba(16, 20, 33, 0.22);
  display: none;
  flex: 0 0 auto;
  height: 620px;
  height: min(620px, calc(100vh - 40px));
  left: auto;
  margin: 0;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  position: fixed;
  right: 20px;
  top: auto;
  transform: none;
  width: 390px;
  width: min(390px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}

.tg-webchat .tg-webchat-panel-minimize {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 20, 33, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(16, 20, 33, 0.12);
  color: var(--tg-ink);
  cursor: pointer;
  display: none;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  z-index: 3;
}

.tg-webchat .tg-webchat-panel[data-view="home"] .tg-webchat-panel-minimize,
.tg-webchat .tg-webchat-panel[data-view="prechat"] .tg-webchat-panel-minimize {
  display: inline-flex;
}

.tg-webchat .tg-webchat-panel[data-view="home"],
.tg-webchat .tg-webchat-panel[data-view="prechat"] {
  height: auto;
  max-height: calc(100vh - 40px);
  max-height: min(620px, calc(100vh - 40px));
}

.tg-webchat-open .tg-webchat-launcher {
  display: none;
}

.tg-webchat-open .tg-webchat-panel {
  display: flex;
  flex-direction: column;
}

.tg-webchat .tg-webchat-screen {
  min-height: 0;
}

.tg-webchat .tg-webchat-screen[hidden] {
  display: none !important;
}

.tg-webchat .tg-webchat-screen.tg-webchat-screen-hidden {
  display: none !important;
}

.tg-webchat .tg-webchat-panel[data-view="home"] .tg-webchat-prechat,
.tg-webchat .tg-webchat-panel[data-view="home"] .tg-webchat-chat,
.tg-webchat .tg-webchat-panel[data-view="prechat"] .tg-webchat-home,
.tg-webchat .tg-webchat-panel[data-view="prechat"] .tg-webchat-chat,
.tg-webchat .tg-webchat-panel[data-view="chat"] .tg-webchat-home,
.tg-webchat .tg-webchat-panel[data-view="chat"] .tg-webchat-prechat {
  display: none !important;
}

.tg-webchat .tg-webchat-home,
.tg-webchat .tg-webchat-prechat {
  background: var(--tg-soft);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 22px 22px 16px;
}

.tg-webchat .tg-webchat-home-icon,
.tg-webchat .tg-webchat-prechat-top .tg-webchat-home-logo {
  align-items: center;
  background: transparent;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(16, 20, 33, 0.06);
  display: flex;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  width: 36px;
}

.tg-webchat .tg-webchat-home-logo,
.tg-webchat .tg-webchat-card-logo,
.tg-webchat .tg-webchat-header-logo {
  border-radius: 999px;
  display: block;
  object-fit: cover;
  overflow: hidden;
}

.tg-webchat .tg-webchat-home-logo {
  height: 36px;
  width: 36px;
}

.tg-webchat .tg-webchat-home h2,
.tg-webchat .tg-webchat-prechat h2 {
  color: var(--tg-ink);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
}

.tg-webchat .tg-webchat-home p,
.tg-webchat .tg-webchat-prechat p {
  color: var(--tg-muted);
  font-size: 13px;
  line-height: 1.35;
  margin: -10px 0 68px;
}

.tg-webchat .tg-webchat-card {
  align-items: center;
  background: var(--tg-panel);
  border: 1px solid rgba(16, 20, 33, 0.04);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(16, 20, 33, 0.06);
  color: var(--tg-ink);
  display: flex;
  gap: 12px;
  padding: 16px;
  text-align: left;
  width: 100%;
}

.tg-webchat button.tg-webchat-card {
  cursor: pointer;
}

.tg-webchat .tg-webchat-card-logo {
  flex: 0 0 auto;
  height: 42px;
  width: 42px;
}

.tg-webchat .tg-webchat-card-text {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.tg-webchat .tg-webchat-card-text strong,
.tg-webchat .tg-webchat-availability-card strong {
  font-size: 14px;
  font-weight: 700;
}

.tg-webchat .tg-webchat-card-preview {
  color: var(--tg-ink);
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-webchat .tg-webchat-card-meta,
.tg-webchat .tg-webchat-availability-card span {
  color: var(--tg-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tg-webchat .tg-webchat-card-arrow {
  color: var(--tg-green);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.tg-webchat .tg-webchat-availability-card {
  margin-top: 2px;
}

.tg-webchat .tg-webchat-link-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--tg-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  margin: -8px 0 0 auto;
  padding: 4px 0;
}

.tg-webchat .tg-webchat-prechat {
  gap: 10px;
}

.tg-webchat .tg-webchat-panel[data-view="home"] .tg-webchat-home,
.tg-webchat .tg-webchat-panel[data-view="prechat"] .tg-webchat-prechat {
  flex: 0 1 auto;
}

.tg-webchat .tg-webchat-prechat-top {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.tg-webchat .tg-webchat-prechat-top p {
  margin: 0;
}

.tg-webchat .tg-webchat-prechat label,
.tg-webchat .tg-webchat-phone-field {
  color: var(--tg-muted);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  margin: 0;
  width: 100%;
}

.tg-webchat .tg-webchat-prechat .tg-webchat-message-field {
  grid-template-rows: auto minmax(110px, 1fr);
}

.tg-webchat .tg-webchat-label {
  display: inline-flex;
  gap: 3px;
  line-height: 1.2;
  min-width: 0;
}

.tg-webchat .tg-webchat-required {
  color: #d92d20;
  font-weight: 900;
}

.tg-webchat .tg-webchat-prechat input,
.tg-webchat .tg-webchat-prechat select,
.tg-webchat .tg-webchat-prechat textarea {
  appearance: none;
  background: var(--tg-panel);
  border: 1px solid var(--tg-border);
  border-radius: 4px;
  color: var(--tg-ink);
  display: block;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  min-width: 0;
  outline: none;
  padding: 10px 11px;
  width: 100%;
}

.tg-webchat .tg-webchat-phone-row {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(104px, 124px) minmax(0, 1fr);
  width: 100%;
}

.tg-webchat .tg-webchat-country-picker {
  min-width: 0;
  position: relative;
}

.tg-webchat .tg-webchat-country-button {
  align-items: center;
  appearance: none;
  background: var(--tg-panel);
  border: 1px solid var(--tg-border);
  border-radius: 4px;
  color: var(--tg-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 16px;
  gap: 6px;
  height: 43px;
  justify-content: flex-start;
  line-height: 1.2;
  min-width: 0;
  padding: 8px 9px;
  width: 100%;
}

.tg-webchat .tg-webchat-country-flag {
  align-items: center;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(16, 20, 33, 0.1);
  display: inline-flex;
  flex: 0 0 auto;
  height: 16px;
  justify-content: center;
  overflow: hidden;
  width: 24px;
}

.tg-webchat .tg-webchat-country-flag svg {
  display: block;
  height: 16px;
  width: 24px;
}

.tg-webchat .tg-webchat-country-code {
  color: var(--tg-ink);
  flex: 1 1 auto;
  font-weight: 700;
  min-width: 0;
}

.tg-webchat .tg-webchat-country-chevron {
  color: var(--tg-muted);
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
}

.tg-webchat .tg-webchat-country-menu {
  background: var(--tg-panel);
  border: 1px solid var(--tg-border);
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(16, 20, 33, 0.16);
  left: 0;
  max-height: 214px;
  min-width: min(276px, calc(100vw - 44px));
  overflow-y: auto;
  padding: 5px;
  position: absolute;
  top: calc(100% + 5px);
  z-index: 20;
}

.tg-webchat .tg-webchat-country-menu[hidden] {
  display: none !important;
}

.tg-webchat .tg-webchat-country-option {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--tg-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13px;
  gap: 8px;
  line-height: 1.2;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.tg-webchat .tg-webchat-country-option:hover,
.tg-webchat .tg-webchat-country-option:focus-visible {
  background: #f2f5f7;
  outline: none;
}

.tg-webchat .tg-webchat-country-option-text {
  min-width: 0;
}

.tg-webchat .tg-webchat-custom-country {
  align-items: center;
  background: var(--tg-panel);
  border: 1px solid var(--tg-border);
  border-radius: 4px;
  display: grid;
  gap: 0;
  grid-template-columns: auto minmax(0, 1fr);
  overflow: hidden;
  width: min(124px, 100%);
}

.tg-webchat .tg-webchat-custom-country[hidden] {
  display: none !important;
}

.tg-webchat .tg-webchat-custom-country-plus {
  color: var(--tg-muted);
  font-size: 16px;
  font-weight: 700;
  padding-left: 11px;
}

.tg-webchat .tg-webchat-custom-country input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-left: 3px;
}

.tg-webchat .tg-webchat-prechat select {
  background-image:
    linear-gradient(45deg, transparent 50%, #7a808b 50%),
    linear-gradient(135deg, #7a808b 50%, transparent 50%);
  background-position:
    calc(100% - 13px) 50%,
    calc(100% - 8px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  cursor: pointer;
  padding-left: 9px;
  padding-right: 24px;
}

.tg-webchat .tg-webchat-prechat textarea {
  min-height: 110px;
  resize: vertical;
}

.tg-webchat .tg-webchat-prechat input:focus,
.tg-webchat .tg-webchat-prechat select:focus,
.tg-webchat .tg-webchat-country-button:focus-visible,
.tg-webchat .tg-webchat-prechat textarea:focus,
.tg-webchat .tg-webchat-reply input:focus {
  border-color: var(--tg-green);
  box-shadow: 0 0 0 3px rgba(46, 203, 114, 0.14);
}

.tg-webchat .tg-webchat-prechat button[type="submit"] {
  align-items: center;
  appearance: none;
  background: var(--tg-green);
  border: 0;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  display: inline-flex !important;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 42px;
  padding: 11px 14px;
  text-align: center;
  visibility: visible !important;
  width: 100%;
}

.tg-webchat .tg-webchat-chat {
  background: #e8ffd6;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.tg-webchat .tg-webchat-chat-header {
  align-items: center;
  background: var(--tg-green);
  color: white;
  display: flex;
  gap: 9px;
  min-height: 62px;
  padding: 10px 12px;
}

.tg-webchat .tg-webchat-back,
.tg-webchat .tg-webchat-minimize {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: white;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 30px;
  font-weight: 500;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.tg-webchat .tg-webchat-minimize {
  font-size: 24px;
  margin-left: auto;
}

.tg-webchat .tg-webchat-header-logo {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  height: 40px;
  width: 40px;
}

.tg-webchat .tg-webchat-header-text {
  flex: 1 1 auto;
  display: grid;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
}

.tg-webchat .tg-webchat-header-text strong {
  color: white;
  display: block;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-webchat .tg-webchat-header-text span {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  font-size: 11px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-webchat .tg-webchat-unavailable {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  display: flex;
  gap: 10px;
  padding: 10px 18px;
}

.tg-webchat .tg-webchat-unavailable span {
  font-size: 20px;
  line-height: 1;
}

.tg-webchat .tg-webchat-unavailable p {
  font-size: 11px;
  line-height: 1.25;
  margin: 0;
}

.tg-webchat .tg-webchat-messages {
  background:
    linear-gradient(30deg, rgba(255, 255, 255, 0.36) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.36) 87.5%, rgba(255, 255, 255, 0.36)),
    linear-gradient(150deg, rgba(255, 255, 255, 0.36) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.36) 87.5%, rgba(255, 255, 255, 0.36)),
    linear-gradient(30deg, rgba(183, 246, 208, 0.72) 12%, transparent 12.5%, transparent 87%, rgba(183, 246, 208, 0.72) 87.5%, rgba(183, 246, 208, 0.72)),
    linear-gradient(150deg, rgba(183, 246, 208, 0.72) 12%, transparent 12.5%, transparent 87%, rgba(183, 246, 208, 0.72) 87.5%, rgba(183, 246, 208, 0.72)),
    #d9f8cc;
  background-position: 0 0, 0 0, 48px 84px, 48px 84px, 0 0;
  background-size: 96px 168px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px;
}

.tg-webchat .tg-webchat-date-separator {
  align-self: center;
  color: rgba(16, 20, 33, 0.56);
  font-size: 11px;
  font-weight: 400;
  margin: 8px 0 4px;
}

.tg-webchat .tg-webchat-message-row {
  align-items: flex-end;
  display: flex;
  gap: 7px;
}

.tg-webchat .tg-webchat-message-row.is-staff {
  justify-content: flex-end;
}

.tg-webchat .tg-webchat-message-row.is-visitor {
  justify-content: flex-start;
}

.tg-webchat .tg-webchat-message-stack {
  display: grid;
  gap: 3px;
  max-width: 72%;
  min-width: 0;
}

.tg-webchat .tg-webchat-message-row.is-staff .tg-webchat-message-stack {
  justify-items: end;
}

.tg-webchat .tg-webchat-message-row.is-visitor .tg-webchat-message-stack {
  justify-items: start;
}

.tg-webchat .tg-webchat-message {
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(16, 20, 33, 0.08);
  font-size: 14px;
  line-height: 1.42;
  padding: 8px 9px 5px;
  white-space: pre-wrap;
  word-break: break-word;
}

.tg-webchat .tg-webchat-message-row.is-staff .tg-webchat-message {
  background: var(--tg-green);
  border-bottom-right-radius: 2px;
  color: white;
}

.tg-webchat .tg-webchat-message-row.is-visitor .tg-webchat-message {
  background: white;
  border-bottom-left-radius: 2px;
  color: #17202a;
}

.tg-webchat .tg-webchat-message-name {
  color: rgba(16, 20, 33, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding: 0 3px;
}

.tg-webchat .tg-webchat-message-row.is-staff .tg-webchat-message-name {
  text-align: right;
}

.tg-webchat .tg-webchat-message-row.is-visitor .tg-webchat-message-name {
  text-align: left;
}

.tg-webchat .tg-webchat-message-avatar {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(16, 20, 33, 0.16);
  display: block;
  flex: 0 0 auto;
  height: 30px;
  object-fit: cover;
  overflow: hidden;
  width: 30px;
}

.tg-webchat .tg-webchat-message-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.tg-webchat .tg-webchat-message-quote {
  border-left: 3px solid rgba(46, 203, 114, 0.7);
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
  max-width: 100%;
  opacity: 0.88;
  padding: 3px 0 4px 7px;
}

.tg-webchat .tg-webchat-message-quote strong,
.tg-webchat .tg-webchat-message-quote span {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-webchat .tg-webchat-message-quote strong {
  font-size: 10px;
  font-weight: 700;
}

.tg-webchat .tg-webchat-message-quote span {
  font-size: 11px;
}

.tg-webchat .tg-webchat-message-attachments {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.tg-webchat .tg-webchat-attachment-card {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(16, 20, 33, 0.08);
  border-radius: 7px;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 7px;
  max-width: 220px;
  padding: 7px;
  text-align: left;
}

.tg-webchat .tg-webchat-message-row.is-visitor .tg-webchat-attachment-card {
  background: #f7fafc;
}

.tg-webchat .tg-webchat-attachment-icon {
  align-items: center;
  background: rgba(46, 203, 114, 0.14);
  border-radius: 999px;
  color: var(--tg-green-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.tg-webchat .tg-webchat-attachment-details {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tg-webchat .tg-webchat-attachment-details strong,
.tg-webchat .tg-webchat-attachment-details small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-webchat .tg-webchat-attachment-details strong {
  font-size: 12px;
}

.tg-webchat .tg-webchat-attachment-details small {
  font-size: 10px;
  opacity: 0.72;
}

.tg-webchat .tg-webchat-message-time {
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
  opacity: 0.68;
  text-align: right;
}

.tg-webchat .tg-webchat-reply {
  align-items: center;
  background: white;
  border-top: 1px solid #eef1f3;
  display: flex;
  gap: 8px;
  min-height: 50px;
  padding: 8px 10px;
  width: 100%;
}

.tg-webchat .tg-webchat-reply-icon {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #7a808b;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 21px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 140ms ease, color 140ms ease;
  width: 32px;
}

.tg-webchat .tg-webchat-attach {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #7a808b;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 19px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 140ms ease, color 140ms ease;
  width: 32px;
}

.tg-webchat .tg-webchat-attach:hover,
.tg-webchat .tg-webchat-attach:focus-visible {
  background: #f2f5f7;
  color: var(--tg-green-dark);
  outline: none;
}

.tg-webchat .tg-webchat-file-input {
  display: none !important;
}

.tg-webchat .tg-webchat-pending-attachments {
  background: white;
  border-top: 1px solid #eef1f3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 10px;
}

.tg-webchat .tg-webchat-pending-attachments[hidden] {
  display: none !important;
}

.tg-webchat .tg-webchat-pending-attachment {
  align-items: center;
  background: #f2f5f7;
  border: 1px solid #e1e6ea;
  border-radius: 999px;
  color: var(--tg-ink);
  display: inline-flex;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 5px 6px 5px 9px;
}

.tg-webchat .tg-webchat-pending-attachment span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-webchat .tg-webchat-pending-attachment small {
  color: var(--tg-muted);
  font-size: 10px;
  white-space: nowrap;
}

.tg-webchat .tg-webchat-pending-attachment button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--tg-muted);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 0 2px;
}

.tg-webchat .tg-webchat-reply-icon:hover,
.tg-webchat .tg-webchat-reply-icon:focus-visible,
.tg-webchat .tg-webchat-reply-icon[aria-expanded="true"] {
  background: #f2f5f7;
  color: var(--tg-green-dark);
  outline: none;
}

.tg-webchat .tg-webchat-emoji-panel {
  background: white;
  border-top: 1px solid #eef1f3;
  box-shadow: 0 -12px 24px rgba(16, 20, 33, 0.08);
  flex: 0 0 auto;
  max-height: 190px;
  overflow-y: auto;
  padding: 9px 10px 11px;
}

.tg-webchat .tg-webchat-emoji-panel[hidden] {
  display: none !important;
}

.tg-webchat .tg-webchat-emoji-title {
  color: var(--tg-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tg-webchat .tg-webchat-emoji-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.tg-webchat .tg-webchat-emoji-option {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 21px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 100%;
}

.tg-webchat .tg-webchat-emoji-option:hover,
.tg-webchat .tg-webchat-emoji-option:focus-visible {
  background: #f2f5f7;
  outline: none;
}

.tg-webchat .tg-webchat-reply input {
  appearance: none;
  border: 0;
  border-left: 1px solid #d9dee3;
  color: #101421;
  flex: 1 1 auto;
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  min-width: 0;
  outline: none;
  padding: 8px 10px;
  touch-action: manipulation;
}

.tg-webchat .tg-webchat-send {
  appearance: none;
  background: var(--tg-green);
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 11px;
}

.tg-webchat .tg-webchat-status {
  background: white;
  color: var(--tg-muted);
  font-size: 12px;
  font-weight: 400;
  min-height: 0;
  padding: 0 12px;
}

.tg-webchat .tg-webchat-status:not(:empty) {
  padding: 8px 12px;
}

.tg-webchat .tg-webchat-status[data-tone="error"] {
  color: #b42318;
}

.tg-webchat .tg-webchat-status[data-tone="ok"] {
  color: var(--tg-green-dark);
}

.tg-webchat .tg-webchat-honeypot {
  left: -10000px !important;
  opacity: 0 !important;
  position: absolute !important;
}

@media (max-width: 640px), (hover: none) and (pointer: coarse) and (max-device-width: 900px) {
  html.tg-webchat-open,
  html.tg-webchat-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .tg-webchat {
    bottom: 0;
    right: 0;
  }

  .tg-webchat-open .tg-webchat {
    background: var(--tg-soft);
    bottom: auto;
    height: 100vh;
    height: 100dvh;
    left: 0;
    overflow: hidden;
    position: fixed;
    right: auto;
    top: 0;
    width: 100vw;
    width: var(--tg-webchat-vw, 100vw);
  }

  .tg-webchat .tg-webchat-launcher {
    bottom: 14px;
    position: fixed;
    right: 14px;
  }

  .tg-webchat .tg-webchat-panel {
    border: 0;
    border-radius: 0;
    bottom: auto;
    height: 100vh;
    height: 100dvh;
    height: var(--tg-webchat-vh, 100dvh);
    left: 0;
    max-height: 100vh;
    max-height: 100dvh;
    max-height: var(--tg-webchat-vh, 100dvh);
    min-height: 100svh;
    min-height: 0;
    max-width: none;
    position: fixed;
    right: 0;
    top: var(--tg-webchat-vv-top, 0px);
    width: 100vw;
    width: var(--tg-webchat-vw, 100vw);
  }

  .tg-webchat .tg-webchat-panel-minimize {
    right: 18px;
    top: max(22px, calc(env(safe-area-inset-top, 0px) + 20px));
  }

  .tg-webchat .tg-webchat-home,
  .tg-webchat .tg-webchat-prechat {
    padding-bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    padding-top: max(72px, calc(env(safe-area-inset-top, 0px) + 64px));
  }

  .tg-webchat .tg-webchat-panel[data-view="home"],
  .tg-webchat .tg-webchat-panel[data-view="prechat"] {
    height: 100vh;
    height: 100dvh;
    height: var(--tg-webchat-vh, 100dvh);
    max-height: 100vh;
    max-height: 100dvh;
    max-height: var(--tg-webchat-vh, 100dvh);
  }

  .tg-webchat .tg-webchat-panel[data-view="chat"] {
    height: var(--tg-webchat-vh, 100dvh);
    max-height: var(--tg-webchat-vh, 100dvh);
  }

  .tg-webchat .tg-webchat-panel[data-view="home"] .tg-webchat-home,
  .tg-webchat .tg-webchat-panel[data-view="prechat"] .tg-webchat-prechat {
    flex: 1 1 auto;
    min-height: 100%;
  }

  .tg-webchat .tg-webchat-chat {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    width: 100%;
  }

  .tg-webchat .tg-webchat-chat-header {
    flex: 0 0 auto;
    gap: 10px;
    min-height: 72px;
    padding: max(10px, calc(env(safe-area-inset-top, 0px) + 8px)) 12px 10px;
    width: 100%;
  }

  .tg-webchat .tg-webchat-back,
  .tg-webchat .tg-webchat-minimize {
    height: 36px;
    width: 36px;
  }

  .tg-webchat .tg-webchat-header-logo {
    flex: 0 0 auto;
    height: 44px;
    width: 44px;
  }

  .tg-webchat .tg-webchat-header-text strong {
    font-size: 16px;
  }

  .tg-webchat .tg-webchat-header-text span {
    font-size: 12px;
  }

  .tg-webchat .tg-webchat-unavailable {
    flex: 0 0 auto;
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
    padding: 12px 14px;
  }

  .tg-webchat .tg-webchat-unavailable p {
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .tg-webchat .tg-webchat-messages {
    overflow-x: hidden;
    padding: 14px 10px;
    width: 100%;
  }

  .tg-webchat .tg-webchat-message-row {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .tg-webchat .tg-webchat-message-stack {
    max-width: min(74%, calc(100% - 42px));
  }

  .tg-webchat .tg-webchat-message {
    max-width: 100%;
  }

  .tg-webchat .tg-webchat-message-avatar {
    height: 28px;
    width: 28px;
  }

  .tg-webchat .tg-webchat-emoji-panel {
    max-height: min(190px, calc(var(--tg-webchat-vh, 100dvh) * 0.38));
  }

  .tg-webchat .tg-webchat-reply {
    flex: 0 0 auto;
    gap: 6px;
    min-height: 58px;
    padding: 8px 8px max(8px, calc(env(safe-area-inset-bottom, 0px) + 8px));
    width: 100%;
  }

  .tg-webchat .tg-webchat-reply input {
    border-left: 1px solid #d9dee3;
    font-size: 16px;
    min-width: 0;
    padding: 10px 8px;
  }

  .tg-webchat .tg-webchat-send {
    min-height: 38px;
    min-width: 58px;
    padding: 8px 11px;
  }

  .tg-webchat .tg-webchat-panel[data-view="prechat"] .tg-webchat-prechat {
    flex: 1 1 auto;
  }

  .tg-webchat .tg-webchat-panel[data-view="prechat"] .tg-webchat-message-field {
    flex: 1 1 auto;
    min-height: 150px;
  }
}
