.tg-lead-widget {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 9999;
  font-family: Arial, Helvetica, sans-serif;
}

.tg-lead-widget__button {
  border: none;
  background: #25c26e;
  color: #ffffff;
  font-weight: 600;
  padding: 8px 18px;
  height: 50px;
  min-height: 50px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(23, 32, 80, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tg-lead-widget__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.tg-lead-widget__button-label {
  font-size: 13px;
}

.tg-lead-widget__button:hover {
  background: #1e9b58;
}

.tg-lead-widget__button:disabled {
  background: #9bd9b8;
  cursor: not-allowed;
}

/* Form styles */
.tg-lead-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
}

.tg-lead-widget__title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2328;
}

.tg-lead-widget__close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.tg-lead-widget__close:hover {
  background: #f3f4f6;
  color: #1f2328;
}

.tg-lead-widget__body {
  padding: 20px;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 30px rgba(23, 32, 80, 0.25);
  min-width: 320px;
  max-width: 400px;
}

.tg-lead-widget__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.tg-lead-widget__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.tg-lead-widget__input:focus {
  outline: none;
  border-color: #25c26e;
  box-shadow: 0 0 0 3px rgba(37, 194, 110, 0.1);
}

.tg-lead-widget__input::placeholder {
  color: #9ca3af;
}

.tg-lead-widget__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

.tg-lead-widget__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #25c26e;
}

.tg-lead-widget__checkbox-text {
  user-select: none;
}

.tg-lead-widget__submit {
  width: 100%;
  border: none;
  background: #25c26e;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.tg-lead-widget__submit:hover {
  background: #1e9b58;
}

.tg-lead-widget__submit:disabled {
  background: #9bd9b8;
  cursor: not-allowed;
}

.tg-lead-widget__bot-button {
  width: 100%;
  border: 1px solid #25c26e;
  background: transparent;
  color: #25c26e;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  margin-top: 8px;
  pointer-events: auto;
}

.tg-lead-widget__bot-button:hover {
  background: #25c26e;
  color: #ffffff;
}

.tg-lead-widget__bot-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tg-lead-widget__status {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  min-height: 20px;
  padding: 8px;
  border-radius: 6px;
}

.tg-lead-widget__status--success {
  color: #059669;
  background: #d1fae5;
}

.tg-lead-widget__status--error {
  color: #dc2626;
  background: #fee2e2;
}

@media (max-width: 520px) {
  .tg-lead-widget {
    right: 12px;
    top: 12px;
  }

  .tg-lead-widget__body {
    min-width: 280px;
    max-width: calc(100vw - 24px);
  }
}
