.wa-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 999;
}

.wa-widget__box {
  position: relative;
  width: 260px;
  padding: 1.25rem;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.wa-widget__close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  padding: 0 0.25rem;
  font-size: 1.4rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  background: none;
  border: 0;
}

.wa-widget__close:hover {
  color: #333;
}

.wa-widget__header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.wa-widget__logo {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 4px;
  background: #25d366;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.wa-widget__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #075e54;
}

.wa-widget__subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #555;
}

.wa-widget__qr {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
  border-radius: 8px;
}

.wa-widget__link {
  display: inline-block;
  font-size: 0.75rem;
  color: #128c7e;
  text-decoration: underline;
}

.wa-widget__link:hover,
.wa-widget__link:focus {
  color: #075e54;
}

.wa-widget.is-collapsed .wa-widget__box {
  display: none;
}

.wa-widget__reopen {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-left: auto;
  padding: 0;
  cursor: pointer;
  background: #25d366;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wa-widget__reopen:hover,
.wa-widget__reopen:focus {
  background: #128c7e;
}

.wa-widget__reopen img {
  width: 28px;
  height: 28px;
}

.wa-widget.is-collapsed .wa-widget__reopen {
  display: flex;
}

.wa-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: #25d366;
}

.wa-bar:hover,
.wa-bar:focus {
  color: #fff;
  background: #128c7e;
}

.wa-bar img {
  flex-shrink: 0;
}
