.wc-whatsapp-widget {
  --wa-green: #16a34a;
  --wa-green-dark: #128c3a;
  --wa-orange: #ff6b00;
  --wa-ink: #0f172a;
  --wa-muted: #64748b;
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9900;
  font-family: Inter, Arial, sans-serif;
}

body.wc-modal-open .wc-whatsapp-widget {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.96);
}

.wc-wa-launcher {
  min-height: 58px;
  max-width: calc(100vw - 44px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff 0%, #fffaf5 100%);
  color: var(--wa-ink);
  padding: 8px 18px 8px 9px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .14), 0 8px 24px rgba(255, 107, 0, .12);
}

.wc-wa-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.wc-wa-icon svg {
  width: 25px;
  height: 25px;
  display: block;
}

.wc-wa-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wc-wa-pulse {
  position: absolute;
  left: 18px;
  top: 15px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(22, 163, 74, .22);
  animation: wcWaPulse 1.8s ease-out infinite;
  pointer-events: none;
}

.wc-wa-panel {
  position: absolute;
  left: 0;
  bottom: 72px;
  width: min(372px, calc(100vw - 44px));
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .20), 0 14px 38px rgba(255, 107, 0, .10);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transform-origin: left bottom;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.wc-whatsapp-widget.is-open .wc-wa-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wc-wa-head {
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 107, 0, .36), transparent 34%),
    linear-gradient(135deg, #0f172a, #1f2937);
  color: #fff;
  padding: 14px;
}

.wc-wa-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wa-orange), #ff8a1f);
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}

.wc-wa-head strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 950;
}

.wc-wa-head span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
  font-weight: 750;
}

.wc-wa-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wc-wa-body {
  min-height: 116px;
  background:
    radial-gradient(circle at 18% 18%, rgba(22, 163, 74, .10), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(255, 107, 0, .12), transparent 34%),
    linear-gradient(180deg, #f8fafc, #fff);
  padding: 18px;
}

.wc-wa-bubble {
  width: fit-content;
  max-width: 100%;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  color: var(--wa-ink);
  padding: 13px 14px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 720;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.wc-wa-form {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.wc-wa-form label {
  color: var(--wa-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.wc-wa-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  outline: none;
  padding: 12px;
  color: var(--wa-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.wc-wa-form textarea:focus {
  border-color: rgba(22, 163, 74, .45);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .10);
}

.wc-wa-form button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--wa-green);
  color: #fff;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(22, 163, 74, .22);
}

.wc-wa-form small {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

@keyframes wcWaPulse {
  0% {
    transform: scale(.85);
    opacity: .9;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

@media (max-width: 680px) {
  .wc-whatsapp-widget {
    left: 14px;
    right: auto;
    bottom: 14px;
    width: 58px;
  }

  .wc-wa-launcher {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    max-width: 58px;
    justify-content: center;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    border-color: rgba(226, 232, 240, .96);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16), 0 8px 22px rgba(22, 163, 74, .14);
  }

  .wc-wa-icon {
    width: 42px;
    height: 42px;
  }

  .wc-wa-icon svg {
    width: 24px;
    height: 24px;
  }

  .wc-wa-pulse {
    left: 8px;
    top: 8px;
  }

  .wc-wa-launcher-text {
    display: none;
  }

  .wc-wa-panel {
    width: min(372px, calc(100vw - 28px));
    bottom: 68px;
  }
}
