#wpp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: sans-serif;
}

#wpp-popup {
  width: 290px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  background: white;
}

#wpp-popup.wpp-open {
  display: flex;
  animation: wppSlideUp 0.3s ease;
}

.wpp-header {
  background: #6b46c1;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: white;
}

.wpp-header svg {
  width: 26px;
  height: 26px;
  fill: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.wpp-header h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
}

.wpp-header p {
  margin: 0;
  font-size: 11.5px;
  opacity: 0.88;
}

.wpp-body {
  padding: 14px;
}

.wpp-body p {
  font-size: 11.5px;
  color: #777;
  margin: 0 0 12px;
}

.wpp-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e5e5;
  border-left: 3px solid #25d366;
  border-radius: 10px;
  padding: 11px 13px;
  text-decoration: none;
  transition: background 0.15s;
}

.wpp-contact:hover {
  background: #f7f7f7;
}

.wpp-contact .wpp-logo {
  width: 32px;
  height: 32px;
  fill: #25d366;
  flex-shrink: 0;
}

.wpp-contact span {
  flex: 1;
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.wpp-contact .wpp-sm {
  width: 18px;
  height: 18px;
  fill: #25d366;
}

.wpp-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

#wpp-bubble-text {
  background: white;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  line-height: 1.4;
  max-width: 170px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}

.wpp-bottom-row:has(#wpp-btn:hover) #wpp-bubble-text:not(.wpp-bubble-suppressed) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wpp-bottom-row:has(#wpp-btn:hover) #wpp-bubble-text:not(.wpp-bubble-suppressed):hover {
  transform: scale(1.03);
}

#wpp-bubble-text.wpp-bubble-suppressed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#wpp-close {
  background: #6b46c1;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(107, 70, 193, 0.45);
  transition: transform 0.15s;
}

#wpp-close.wpp-open {
  display: flex;
}

#wpp-close:hover {
  transform: scale(1.1);
}

#wpp-btn {
  background: #6b46c1;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(107, 70, 193, 0.5);
  transition: transform 0.2s;
  animation: wppBounce 0.5s ease;
  flex-shrink: 0;
}

#wpp-btn:hover {
  transform: scale(1.08);
}

#wpp-btn svg {
  width: 26px;
  height: 26px;
  fill: white;
}

@keyframes wppBounce {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes wppSlideUp {
  0% {
    transform: translateY(14px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
