#wspd-floating-root {
  position: relative;
  z-index: 999999;
}

.wspd-widget {
  --wspd-green: #25d366;
  --wspd-green-deep: #128c7e;
  --wspd-panel: #ffffff;
  --wspd-shadow: 0 22px 54px rgba(12, 38, 29, 0.18);
  --wspd-text: #143229;
  bottom: 26px;
  position: fixed;
  z-index: 999999;
}

.wspd-widget.wspd-position-right {
  right: 24px;
}

.wspd-widget.wspd-position-left {
  left: 24px;
}

.wspd-bubble {
  align-items: center;
  background: linear-gradient(135deg, var(--wspd-green) 0%, var(--wspd-green-deep) 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(18, 140, 126, 0.32);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  padding: 0;
  width: 58px;
}

.wspd-bubble-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.wspd-bubble-icon svg {
  height: 24px;
  width: 24px;
}

.wspd-bubble-text {
  display: none;
}

.wspd-panel {
  background: var(--wspd-panel);
  border-radius: 22px;
  bottom: 78px;
  box-shadow: var(--wspd-shadow);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  visibility: hidden;
  width: 360px;
}

.wspd-position-right .wspd-panel {
  right: 0;
}

.wspd-position-left .wspd-panel {
  left: 0;
}

.wspd-widget.is-open .wspd-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.wspd-header {
  align-items: center;
  background: linear-gradient(135deg, #0f6a5e 0%, #128c7e 100%);
  border-radius: 22px 22px 0 0;
  color: #fff;
  display: flex;
  gap: 14px;
  padding: 18px 20px;
}

.wspd-avatar {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 50px;
  justify-content: center;
  letter-spacing: 0.08em;
  overflow: hidden;
  width: 50px;
}

.wspd-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wspd-profile-name {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 3px;
}

.wspd-profile-caption {
  color: rgba(255, 255, 255, 0.88);
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.wspd-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 24px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 24px;
}

.wspd-close::before,
.wspd-close::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 5px;
  position: absolute;
  top: 11px;
  width: 14px;
}

.wspd-close::before {
  transform: rotate(45deg);
}

.wspd-close::after {
  transform: rotate(-45deg);
}

.wspd-body {
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.12), transparent 36%),
    linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
  border-radius: 0 0 22px 22px;
  padding: 20px;
}

.wspd-body h3 {
  color: var(--wspd-text);
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.wspd-intro {
  color: #5a7068;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.wspd-services-list {
  display: grid;
  gap: 10px;
}

.wspd-service-option {
  align-items: center;
  background: #fff;
  border: 1px solid #dceee6;
  border-radius: 16px;
  color: inherit;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wspd-service-option:hover,
.wspd-service-option:focus {
  border-color: #b7e6c6;
  box-shadow: 0 14px 28px rgba(18, 140, 126, 0.12);
  transform: translateY(-1px);
}

.wspd-service-copy {
  display: block;
}

.wspd-service-copy strong {
  color: var(--wspd-text);
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.wspd-service-copy small {
  color: #6a7f78;
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.wspd-service-cta {
  color: #128c7e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}

@media (max-width: 640px) {
  .wspd-widget {
    bottom: 18px;
  }

  .wspd-widget.wspd-position-right {
    right: 16px;
  }

  .wspd-widget.wspd-position-left {
    left: 16px;
  }

  .wspd-panel {
    bottom: 74px;
    max-width: min(360px, calc(100vw - 32px));
    width: calc(100vw - 32px);
  }

  .wspd-bubble {
    height: 54px;
    width: 54px;
  }
}

/* Isolate box sizing from theme defaults and keep long lists inside the viewport. */
.wspd-widget, .wspd-widget * { box-sizing: border-box; }
.wspd-panel { max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow-y: auto; }
.wspd-header { padding-right: 44px; }
.wspd-avatar { flex-shrink: 0; }
.wspd-widget p { padding-bottom: 0; }
.wspd-widget .wspd-service-option { text-decoration: none; }
.wspd-bubble:has(.wspd-bubble-text:not(:empty)) { width: auto; gap: 9px; padding: 0 16px 0 10px; }
.wspd-bubble-text:not(:empty) { display: inline; font-size: 14px; font-weight: 600; }
.wspd-bubble:focus-visible, .wspd-close:focus-visible { outline: 3px solid #128c7e; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .wspd-panel, .wspd-service-option { transition: none; }
}

/* Social links share the WhatsApp anchor and grow upward. */
.wspd-widget { display: flex; flex-direction: column; align-items: flex-end; }
.wspd-widget.wspd-position-left { align-items: flex-start; }
.wspd-social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 5px;
  margin: 0 0 10px;
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.wspd-widget .wspd-social-link {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--wspd-social-color, #455a64);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
}
.wspd-widget .wspd-social-link svg { width: 24px; height: 24px; display: block; }
.wspd-widget .wspd-social-link:hover { filter: brightness(1.12); color: #fff; }
.wspd-widget .wspd-social-link:focus-visible { outline: 3px solid #143229; outline-offset: 2px; }
.wspd-widget.is-open .wspd-social-links { display: none; }
.wspd-bubble { flex-shrink: 0; }
@media (max-width: 640px) {
  .wspd-widget .wspd-social-link { width: 44px; height: 44px; flex-basis: 44px; }
}
