/* WhatsApp Widget Styles */
:root {
  --wa-green: #25D366;
  --wa-dark-teal: #0b5d56;
  --wa-light-teal: #128c7e;
  --wa-chat-bg: #e5ddd5;
}

#wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Floating Button */
.wa-button {
  background: var(--wa-dark-teal);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background 0.2s;
  border: none;
  font-size: 15px;
  font-weight: 500;
}

.wa-button:hover {
  transform: scale(1.05);
  background: var(--wa-light-teal);
}

.wa-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Chat Window */
.wa-chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 340px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  animation: waFadeIn 0.3s ease;
  transform-origin: bottom right;
}

.wa-chat-window.active {
  display: flex;
}

@keyframes waFadeIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header */
.wa-header {
  background: var(--wa-dark-teal);
  color: white;
  padding: 18px 20px;
  position: relative;
}

.wa-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.wa-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.wa-header p {
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
}

.wa-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}

.wa-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Body */
.wa-body {
  background: var(--wa-chat-bg);
  padding: 20px;
  height: 180px;
  overflow-y: auto;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* WhatsApp pattern */
  background-size: 200px;
}

.wa-msg {
  background: white;
  padding: 12px 14px;
  border-radius: 0 10px 10px 10px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-msg-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  margin-bottom: 4px;
}

.wa-msg-time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #999;
  margin-top: 4px;
}

/* Footer / Input */
.wa-footer {
  padding: 12px;
  background: #f0f0f0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.wa-input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  background: white;
}

.wa-send {
  background: var(--wa-dark-teal);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.wa-send:hover {
  transform: scale(1.1);
}

.wa-send svg {
  width: 18px;
  height: 18px;
  fill: white;
  transform: translateX(2px);
}

/* Responsive */
@media (max-width: 480px) {
  .wa-chat-window {
    width: calc(100vw - 48px);
    right: 0;
  }
  .wa-button span {
    display: none;
  }
  .wa-button {
    padding: 12px;
    border-radius: 50%;
  }
}
