.whatsapp-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: Inter, Arial, sans-serif;
}

.whatsapp-widget__toggle,
.whatsapp-widget__close {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.whatsapp-widget__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-widget__toggle:hover,
.whatsapp-widget__toggle:focus-visible {
  background: #1ebe5d;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.whatsapp-widget__toggle:focus-visible,
.whatsapp-widget__close:focus-visible,
.whatsapp-widget__cta:focus-visible,
.whatsapp-widget__phone:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35);
  outline-offset: 3px;
}

.whatsapp-widget__icon {
  display: grid;
  place-items: center;
  font-size: 1.45rem;
}

.whatsapp-widget__label {
  display: none;
}

.whatsapp-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 36px));
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  color: #242424;
}

.whatsapp-widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #075e54;
  color: #fff;
}

.whatsapp-widget__header strong,
.whatsapp-widget__header span {
  display: block;
}

.whatsapp-widget__header strong {
  font-size: 1rem;
  line-height: 1.25;
}

.whatsapp-widget__header span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}

.whatsapp-widget__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.whatsapp-widget__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.whatsapp-widget__body {
  padding: 1rem;
}

.whatsapp-widget__body p {
  margin: 0 0 0.9rem;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.45;
}

.whatsapp-widget__cta,
.whatsapp-widget__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-widget__cta {
  gap: 0.45rem;
  background: #25d366;
  color: #fff;
}

.whatsapp-widget__cta:hover {
  background: #1ebe5d;
}

.whatsapp-widget__phone {
  margin-top: 0.55rem;
  border: 1px solid #dedede;
  color: #242424;
}

.whatsapp-widget__phone:hover {
  border-color: #25d366;
  color: #075e54;
}

@media (max-width: 640px) {
  .whatsapp-widget {
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-widget__toggle {
    width: 52px;
    height: 52px;
  }
}
