.ah-wa-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ah-wa-widget__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1fa855, #128c4a);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ah-wa-widget__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.ah-wa-widget__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 20px;
}

.ah-wa-widget__label {
  line-height: 1;
}

.ah-wa-widget__panel {
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  border: 1px solid rgba(16, 44, 34, 0.08);
}

.ah-wa-widget__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f3f5f4;
  color: #2d3a35;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ah-wa-widget__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 34px;
  margin-bottom: 16px;
}

.ah-wa-widget__header-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 42px;
}

.ah-wa-widget__title {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  color: #102c22;
}

.ah-wa-widget__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5b6b66;
}

.ah-wa-widget__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ah-wa-widget__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ah-wa-widget__field span {
  font-size: 14px;
  font-weight: 600;
  color: #102c22;
}

.ah-wa-widget__field input {
  width: 100%;
  height: 46px;
  border: 1.5px solid #9fd9b6;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.ah-wa-widget__field input:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.14);
}

.ah-wa-widget__error {
  margin: 0;
  font-size: 13px;
  color: #c0392b;
}

.ah-wa-widget__submit {
  height: 46px;
  border: none;
  border-radius: 14px;
  background: #0f3b2e;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.ah-wa-widget__submit:hover {
  background: #0b2f24;
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .ah-wa-widget {
    right: 16px;
    bottom: 16px;
  }

  .ah-wa-widget__panel {
    width: min(340px, calc(100vw - 20px));
    padding: 16px;
  }

  .ah-wa-widget__title {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .ah-wa-widget {
    right: 12px;
    bottom: 12px;
  }

  .ah-wa-widget__toggle {
    padding: 12px 16px;
    gap: 8px;
  }

  .ah-wa-widget__label {
    font-size: 14px;
  }

  .ah-wa-widget__panel {
    width: calc(100vw - 16px);
    max-width: 320px;
    border-radius: 18px;
    padding: 14px;
  }

  .ah-wa-widget__header {
    gap: 10px;
    margin-bottom: 14px;
  }

  .ah-wa-widget__header-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
    flex-basis: 38px;
  }

  .ah-wa-widget__title {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 3px;
  }

  .ah-wa-widget__subtitle {
    font-size: 12px;
    line-height: 1.45;
  }

  .ah-wa-widget__field input,
  .ah-wa-widget__submit {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .ah-wa-widget {
    left: 10px;
    right: 10px;
    bottom: 10px;
    align-items: stretch;
  }

  .ah-wa-widget__toggle {
    align-self: flex-end;
  }

  .ah-wa-widget__panel {
    width: 100%;
    max-width: none;
  }
}