.taq-wa-fab {
  position:fixed;
  z-index:999999;
  width:64px;
  height:64px;
  border-radius:0;
  background:transparent;
  border:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin:0;
  line-height:0;
  appearance:none;
  font:inherit;
  overflow:visible;
  box-shadow:none;
  cursor:pointer;
  user-select:none;
  transition: transform .2s ease;
}
.taq-wa-fab:hover {
  transform: translateY(-3px) scale(1.02);
}
.taq-wa-badge {
  position:absolute;
  top:auto;
  left:auto;
  right:0;
  bottom:calc(100% + 10px);
  transform: translate(-10px, 6px) scale(.85);
  background:#27D045;
  color:#fff;
  border-radius:999px;
  padding:6px 12px;
  font-size:12px;
  font-weight:600;
  box-shadow:0 10px 20px rgba(18,140,126,.25);
  opacity:0;
  pointer-events:none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
  white-space:nowrap;
}
.taq-wa-badge::after {
  content:"";
  position:absolute;
  bottom:-6px;
  right:22px;
  transform: rotate(45deg);
  width:12px;
  height:12px;
  background:#27D045;
  box-shadow:0 6px 14px rgba(18,140,126,.18);
}
.taq-wa-badge.is-visible {
  opacity:1;
  transform: translateY(0) scale(1);
  animation: taqWaBadgePulse 3.2s ease-in-out infinite;
}
@keyframes taqWaBadgePulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow:0 10px 20px rgba(18,140,126,.25); }
  50% { transform: translateY(-3px) scale(1.04); box-shadow:0 14px 24px rgba(18,140,126,.28); }
}
.taq-wa-fab:focus-visible {
  outline:2px solid rgba(37,211,102,.7);
  outline-offset:4px;
}

.taq-wa-panel {
  position:fixed;
  z-index:999999;
  width:360px;
  max-width:calc(100vw - 48px);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 25px 55px rgba(15, 32, 63, .25);
  transform: translateY(10px);
  opacity:0;
  pointer-events:none;
  transition:.25s ease;
  background:#f7f2ec;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}
.taq-wa-panel.is-open {
  transform: translateY(0);
  opacity:1;
  pointer-events:auto;
}
.taq-wa-surface {
  position:relative;
  overflow:hidden;
  border-radius:0 0 24px 24px;
}
.taq-wa-surface.has-svg-bg > *:not(.taq-wa-svg-bg) {
  position:relative;
  z-index:1;
}
.taq-wa-surface .taq-wa-svg-bg {
  position:absolute;
  inset:0;
  opacity:.12;
  pointer-events:none;
  z-index:0;
}
.taq-wa-surface .taq-wa-svg-bg svg {
  width:100%;
  height:100%;
  display:block;
}

.taq-wa-body {
  padding:14px;
  min-height:170px;
}

.taq-wa-head {
  background:#005a52;
  color:#fff;
  padding:14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  position:relative;
}
.taq-wa-head-text {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  flex:1;
  min-width:0;
}
.taq-wa-close {
  position:absolute;
  top:10px;
  right:10px;
  width:30px;
  height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:.9;
  border:0;
  background:transparent;
  color:#fff;
  font-size:20px;
  line-height:1;
}
.taq-wa-close:hover { opacity:1; background:rgba(255,255,255,.12); }
.taq-wa-close:focus-visible {
  outline:2px solid rgba(255,255,255,.85);
  outline-offset:2px;
}

.taq-wa-avatar {
  width:42px;
  height:42px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  letter-spacing:.5px;
  position:relative;
  flex:0 0 42px;
  overflow:visible;
}
.taq-wa-avatar img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.taq-wa-avatar .taq-wa-status {
  position:absolute;
  right:-4px;
  bottom:-4px;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#25D366;
  border:2px solid #fff;
  box-shadow:0 0 0 2px rgba(37,211,102,.35);
  z-index:1;
}
.taq-wa-title {
  font-size:18px;
  font-weight:800;
  line-height:1.15;
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:inline-block;
}
.taq-wa-sub {
  font-size:12px;
  opacity:.85;
  color:rgba(255,255,255,.95);
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:inline-block;
}

.taq-wa-body[data-typing="ready"] .taq-wa-bubble {
  opacity:0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.taq-wa-body[data-typing="ready"] .taq-wa-bubble.is-visible {
  opacity:1;
  transform: translateY(0);
}
.taq-wa-typing {
  display:none;
  align-items:center;
  gap:4px;
  background:#fff;
  border-radius:20px;
  padding:8px 12px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  margin-top:10px;
  transition: opacity .25s ease, transform .25s ease;
}
.taq-wa-body[data-typing="ready"] .taq-wa-typing {
  display:inline-flex;
  opacity:1;
  transform: translateY(0);
}
.taq-wa-body[data-typing="ready"] .taq-wa-typing[aria-hidden="true"] {
  opacity:0;
  transform: translateY(6px);
  height:0;
  margin-bottom:0;
  margin-top:0;
  padding-top:0;
  padding-bottom:0;
  overflow:hidden;
}
.taq-wa-typing span {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#a3a3a3;
  display:block;
  animation: taqWaTyping 1s infinite;
}
.taq-wa-typing span:nth-child(2) { animation-delay: .15s; }
.taq-wa-typing span:nth-child(3) { animation-delay: .3s; }
.taq-wa-bubble + .taq-wa-bubble {
  margin-top:6px;
}
@keyframes taqWaTyping {
  0%, 80%, 100% { opacity:.2; transform: translateY(0); }
  40% { opacity:1; transform: translateY(-2px); }
}
.taq-wa-bubble {
  background:#fff;
  border-radius:10px;
  padding:10px 12px;
  max-width:88%;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  margin-bottom:10px;
}
.taq-wa-bubble strong {
  display:block;
  font-size:13px;
  margin-bottom:3px;
  color:#5a5a5a;
}
.taq-wa-bubble p {
  margin:0;
  font-size:15px;
  color:#1f1f1f;
}
.taq-wa-offhours {
  margin-top:12px;
  background:#fff8e6;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
  color:#8a5a00;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.taq-wa-foot {
  background:transparent;
  padding:12px 14px 14px 14px;
}
.taq-wa-start {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  background:#25D366;
  color:#fff;
  border-radius:999px;
  padding:12px 14px;
  text-decoration:none;
  font-weight:800;
  box-shadow:0 10px 25px rgba(0,0,0,.14);
}
.taq-wa-start:hover {
  background:#1fb656;
}

.taq-wa-icon {
  width:18px;
  height:18px;
  display:block;
  object-fit:contain;
  flex-shrink:0;
}
.taq-wa-fab .taq-wa-icon {
  width:100%;
  height:100%;
}

.taq-wa-backdrop {
  position:fixed;
  inset:0;
  background:rgba(15,32,63,.25);
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
  z-index:999998;
}
.taq-wa-backdrop.is-active {
  opacity:1;
  pointer-events:auto;
}

@media (max-width:420px) {
  .taq-wa-panel { width: calc(100vw - 36px); }
}
