/* ── WhatsApp chat widget ──────────────────────── */

#wa-chat {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  font-family: 'Montserrat', sans-serif;
}

/* Bubble */

.wa-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,211,102,.2);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

.wa-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
}

.wa-icon {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* Tooltip */

.wa-tooltip {
  position: absolute;
  left: calc(100% + .75rem);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #1A2B22;
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.wa-bubble:hover .wa-tooltip {
  opacity: 1;
}

/* Chatbox */

.wa-chatbox {
  position: absolute;
  bottom: calc(100% + .75rem);
  left: 0;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  overflow: hidden;
  transform-origin: bottom left;
  animation: waChatIn .2s ease;
}

.wa-chatbox[hidden] {
  display: none;
}

@keyframes waChatIn {
  from {
    opacity: 0;
    transform: scale(.9) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wa-chatbox-header {
  background: #075E54;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-chatbox-logo {
  display: block;
}

.wa-chatbox-close {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: .2rem .4rem;
  border-radius: 4px;
  transition: background .2s;
}

.wa-chatbox-close:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.wa-chatbox-body {
  padding: 1rem;
  background: #ECE5DD;
}

.wa-chatbox-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: .65rem .9rem;
  font-size: .95rem;
  color: #1A2B22;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  display: inline-block;
  max-width: 85%;
}

.wa-chatbox-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: .85rem 1rem;
  text-decoration: none;
  transition: background .2s;
}

.wa-chatbox-btn:hover {
  background: #1DAA56;
  color: #fff;
}

@media (max-width: 480px) {
  .wa-chatbox {
    width: 260px;
  }
}

@media (max-width: 480px) {
  .wa-tooltip {
    display: none;
  }
}

