.iti__selected-flag {
  color: #000;
}

.chatbot-widget {
  position: fixed;
  right: 10px;
  bottom: 30px;
  z-index: 1060;
  width: min(355px, calc(100vw - 20px));
  font-family: 'Avenir LT Pro', sans-serif;
}

.chatbot-folded {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50% !important;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  overflow: visible;
}
.phone-row .iti input{
  padding-left: 94px !important;
}
.chatbot-folded-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*border-radius: 50% !important;*/
  display: block;
}

.chatbot-folded-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 25px;
  height: 25px; 
  border-radius: 999px !important;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.chatbot-teaser {
  position: relative;
}

.chatbot-hide {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.chatbot-teaser-card {
  background: #fff;
  border: 1px solid #cfcfcf;
  padding: 20px 10px 20px;
  display: flex;
  gap: 12px;
}

.chatbot-persona {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex: 0 0 auto;
  margin-top: 2px;
}

.chatbot-teaser-copy {
  color: #111;
}

.chatbot-teaser-title {
  margin: 0;
  font-size: 15px;
  text-wrap: balance;
  line-height: 1.12;
}

.chatbot-teaser-title strong {
  font-weight: 800;
}

.chatbot-teaser-text {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.2;
}

.chatbot-teaser-actions {
  margin-top: 10px;
  display: flex;
  gap: 20px;
}

.chatbot-contact-btn,
.chatbot-launcher {
  flex: 1;
  min-height: 42px;
  border: 1px solid #2a2a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 10px;
  text-decoration: none;
}

.chatbot-contact-btn {
  background: #f8f8f8;
  color: #111;
  font-size: 10px;
}

.chatbot-launcher {
  background: #000;
  color: #fff;
}

.chatbot-panel {
  margin-top: 0.6rem;
  background: #fff;
  border: 1px solid #cfcfcf;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.chatbot-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: #fff;
  color: #111;
  border-bottom: 1px solid #dedede;
  font-size: 15px;
  position: relative;
}
.chatbot-header strong {
  line-height: 1.1;
}
.chatbot-header strong span {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.5;
}

.chatbot-header button {
  border: 0;
  background: transparent;
  color: #111;
  text-transform: uppercase;
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 16px;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.chatbot-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: #111;
}

.chat-row {
  padding: 0.62rem;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  animation: chatRowIn 0.22s ease forwards;
}

.chat-row.bot {
  background: #f2f2f2;
  color: #111;
}

.chat-row.user {
  background: #000;
  color: #fff;
  margin-left: auto;
}

.chat-row.typing {
  width: max-content;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.62rem 0.72rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50% !important;
  background: #8e8e8e;
  animation: typingPulse 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.chatbot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chatbot-options button {
  border: 1px solid #bfbfbf;
  padding: 0.45rem 0.7rem;
  background: #fff;
  color: #111;
  font-size: 12px;
}

.chatbot-options button:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.chatbot-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid #dedede;
  padding: 0.6rem;
}

.chatbot-form[hidden] {
  display: none !important;
}

.chatbot-form input {
  flex: 1;
  border: 1px solid #c5c5c5;
  background: #fff;
  color: #111;
  padding: 0.5rem;
}

.chatbot-form .input-error {
  border-color: #b33a3a !important;
}

.chatbot-form .field-error-text {
  flex: 1 0 100%;
  color: #b33a3a;
  font-size: 10px;
  line-height: 1.25;
  margin: -0.1rem 0 0;
}

.chatbot-form .field-error-text[hidden] {
  display: none !important;
}

.chatbot-form select {
  flex: 1 0 100%;
  border: 1px solid #c5c5c5;
  background: #fff;
  color: #111;
  padding: 0.5rem;
}

.chatbot-form button {
  border: 1px solid #000;
  background: #000;
  color: #fff;
  flex: 0 0 auto;
  padding: 0.5rem 0.8rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.chatbot-consent {
  border: 1px solid #d9d9d9;
  padding: 0.7rem;
  background: #fafafa;
}

.chatbot-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
}

.chatbot-consent-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chatbot-consent-icon {
  width: 18px;
  height: 18px;
  border: 1px solid #a5a5a5;
  flex: 0 0 auto;
  margin-top: 1px;
  position: relative;
  transition: all 0.2s ease;
}

.chatbot-consent-icon svg {
  position: absolute;
  top: 3px;
  left: 2px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16px;
  stroke-dashoffset: 16px;
  transition: all 0.28s ease;
}

.chatbot-consent-input:checked + .chatbot-consent-icon {
  background: #000;
  border-color: #000;
}

.chatbot-consent-input:checked + .chatbot-consent-icon svg {
  stroke-dashoffset: 0;
}

.chatbot-consent-icon.input-error {
  border-color: #b33a3a;
}

.chatbot-consent-text {
  color: #111;
  font-size: 12px;
  line-height: 1.35;
}

.chatbot-consent-text a {
  color: #111;
  text-decoration: underline;
}

.chatbot-consent-submit {
  width: 100%;
  margin-top: 0.65rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.chatbot-consent-submit:disabled {
  opacity: 0.55;
}

@keyframes chatRowIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingPulse {

  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 900px) {
  .chatbot-widget {
    right: 8px;
    width: min(350px, calc(100vw - 16px));
  }

  .chatbot-teaser-title {
    font-size: 13px;
  }

  .chatbot-teaser-text {
    font-size: 11px;
  }

  .chatbot-contact-btn,
  .chatbot-launcher {
    font-size: 12px;
    min-height: 38px;
  }
}
