.dws-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dws-wa-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(20, 83, 45, 0.14);
  border-radius: 22px;
  background: #f7fff8;
  box-shadow: 0 26px 70px rgba(5, 20, 12, 0.28);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dws-whatsapp.is-open .dws-wa-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.dws-wa-head {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #66c75a);
}

.dws-wa-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 900;
}

.dws-wa-title svg,
.dws-wa-fab svg,
.dws-wa-start svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.dws-wa-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(22, 101, 52, 0.42);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.dws-wa-body {
  position: relative;
  padding: 20px 18px 18px;
  background:
    radial-gradient(circle at 100% 100%, rgba(37, 211, 102, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfffc, #f2fbf3);
}

.dws-wa-bubble {
  position: relative;
  width: fit-content;
  max-width: 92%;
  margin: 0 0 14px 10px;
  padding: 13px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  color: #111827;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  font-size: 15px;
  line-height: 1.45;
}

.dws-wa-bubble:first-child::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 20px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transform: rotate(45deg);
}

.dws-wa-bubble strong {
  font-weight: 900;
}

.dws-wa-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.dws-wa-start {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #34c759, #73d36a);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.32);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.dws-wa-fab {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #5fcf63);
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.36);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dws-wa-fab:hover,
.dws-wa-start:hover {
  transform: translateY(-2px);
}

.dws-wa-fab:focus-visible,
.dws-wa-close:focus-visible,
.dws-wa-start:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.28);
  outline-offset: 3px;
}

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

  .dws-wa-panel {
    bottom: 74px;
    width: calc(100vw - 28px);
    border-radius: 20px;
  }

  .dws-wa-head {
    min-height: 64px;
  }

  .dws-wa-fab {
    width: 58px;
    height: 58px;
  }
}
