.registration-form .iti {
  display: block;
  width: 100%;
}

.registration-form .iti__country-list {
  max-width: min(320px, calc(100vw - 40px));
  overflow-x: hidden;
  font-size: 14px;
  color: #000;
}

.registration-form .iti__selected-flag:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.signup_form .iti__selected-dial-code {
  font-size: 14px;
}

.signup_form .iti__selected-flag {
  border-radius: .75rem 0 0 .75rem;
}

.integra-status {
  color: inherit;
  font-size: .875rem;
}

.integra-status:empty {
  display: none;
}

.integra-suggestion {
  font: inherit;
  font-size: .875rem;
  text-align: left;
  text-decoration: underline;
  color: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.support-chat {
  position: fixed;
  z-index: 60;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  color: var(--foreground);
}

.support-chat__launcher,
.support-chat__action {
  background: var(--gradient-neon);
  border-radius: 999px;
  color: var(--accent-foreground);
  cursor: pointer;
  font-weight: 700;
}

.support-chat__launcher {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-left: auto;
  place-items: center;
  box-shadow: 0 4px 18px rgb(0 0 0 / 20%);
}

.support-chat__panel {
  position: absolute;
  right: 0;
  bottom: 3.75rem;
  width: min(23rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 5.5rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgb(0 0 0 / 18%);
  overflow-y: auto;
}

.support-chat__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.support-chat__header h2 {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
}

.support-chat__close {
  display: grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.support-chat__content {
  padding: 1rem;
  font-size: .875rem;
}

.support-chat__messages,
.support-chat__compose,
.support-chat__registration {
  display: grid;
  gap: .65rem;
}

.support-chat__messages {
  margin-bottom: .75rem;
}

.support-chat__messages p {
  width: fit-content;
  background: var(--background);
  padding: .5rem .75rem;
  border-radius: .75rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.support-chat__visitor-message {
  justify-self: end;
  border: 1px solid var(--border);
}

.support-chat label {
  display: block;
}

.support-chat :is(input, textarea) {
  display: block;
  width: 100%;
  padding: .45rem .65rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
}

.support-chat input {
  min-height: 2.5rem;
}

.support-chat textarea {
  resize: vertical;
  min-height: 3.375rem;
}

.support-chat__privacy {
  font-size: .8rem;
}

.support-chat__privacy a {
  text-decoration: underline;
}

.support-chat__action {
  min-height: 2.5rem;
  padding: .45rem 1rem;
}

.support-chat__action:disabled {
  opacity: .65;
  cursor: wait;
}

.support-chat :is(button, a, input, textarea):focus-visible,
.burder-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.pageloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(249, 249, 249, 0.8);
  display: none;
}
.pageloader::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--form-primary, #1fa038);
  border-radius: 50%;
  animation: pageloader-spin 0.8s linear infinite;
}
@keyframes pageloader-spin { to { transform: rotate(360deg); } }
.integra-toasts {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}
.integra-toast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  background: #374151;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  word-break: break-word;
}
.integra-toast--success { background: #16a34a; }
.integra-toast--error   { background: #dc2626; }
.integra-toast--warning { background: #d97706; }
.integra-toast--info    { background: #2563eb; }
.integra-toast--out { opacity: 0; transition: opacity 200ms ease; }
@media (max-width: 480px) {
  .integra-toasts { top: auto; bottom: 12px; left: 12px; right: 12px; max-width: none; }
}
