/* AV-Tech Tube Industry — brand theme for the vendored WhatsApp widget
   (public/vendor/whatsapp-widget, MIT). Overrides the library's default
   look to match the site palette (Poppins, brand red #D6121F, WhatsApp
   green #25D366, dark chrome #14171a). Pure CSS override — the vendored
   JS/CSS stay unmodified; self-hosted, CSP-safe. */

/* ---- Floating launcher button -------------------------------------- */
.wa-widget .wa-widget-toggle {
  background-color: #25D366;
  color: #fff;
  cursor: pointer;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: avt-wa-pulse 2.4s ease-out infinite;
}
.wa-widget .wa-widget-toggle:hover,
.wa-widget .wa-widget-toggle:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .34);
  outline: none;
}
.wa-widget .wa-widget-toggle:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #25D366;
}
/* Official WhatsApp mark: white glyph on WhatsApp green (#25D366) — an
   approved lockup per the WhatsApp Brand Guidelines. The library hardcodes a
   green fill inline on the <svg>; force it white here so the logo is visible
   and compliant. The glyph is left undistorted (1:1) with clear space inside
   the button, and no element is overlaid on the mark. */
.wa-widget .wa-widget-toggle svg,
.wa-widget .wa-widget-toggle svg path,
.wa-widget .wa-widget-toggle img {
  width: 1.75rem;
  height: 1.75rem;
  fill: #fff !important;
}
/* Do not overlay a presence dot on the logo (preserve the mark's clear space). */
.wa-widget .wa-widget-toggle::before { display: none; }
@keyframes avt-wa-pulse {
  0%   { box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---- Chat panel ---------------------------------------------------- */
.wa-widget .wa-widget-content {
  font-family: Poppins, Helvetica, Arial, sans-serif;
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
  width: 340px;
}
.wa-widget .chat-header {
  background-color: #14171a;
  color: #fff;
  padding: 1.1rem 1rem;
}
.wa-widget .chat-header h4 {
  font-weight: 600;
  font-size: 1rem;
}
.wa-widget .chat-header p {
  font-size: .8rem;
  color: rgba(255, 255, 255, .72);
}
/* avatar: AV-Tech Tube logo icon on a white chip with a brand-red ring */
.wa-widget .chat-header .chat-admin-picture {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #D6121F;
  overflow: visible;
}
.wa-widget .chat-header .chat-admin-picture img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}
.wa-widget .chat-header .chat-admin-picture::before {
  background-color: #4fce5d;
  border-color: #14171a;
}
.wa-widget .chat-content {
  background-color: #e9f3ea;
  padding: 1.25rem 1rem;
}
.wa-widget .chat-item p {
  font-size: .9rem;
  line-height: 1.5;
  color: #1d2024;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

/* ---- Compose form -------------------------------------------------- */
.wa-widget .chat-form { padding: .6rem; }
.wa-widget .chat-form input,
.wa-widget .chat-form textarea {
  border: 1px solid #d9dde1 !important;
  border-radius: .6rem !important;
  font-size: .92rem;
}
.wa-widget .chat-form input:focus,
.wa-widget .chat-form textarea:focus {
  border-color: #25D366 !important;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, .18);
}
.wa-widget .chat-form .chat-send {
  background-color: #25D366;
  border-radius: .6rem;
  font-size: 1rem;
  padding: .85rem;
  transition: background-color .2s ease;
}
.wa-widget .chat-form .chat-send:hover,
.wa-widget .chat-form .chat-send:focus-visible {
  background-color: #1fb457;
  outline: none;
}

/* ---- Mobile -------------------------------------------------------- */
@media (max-width: 460px) {
  .wa-widget .wa-widget-content { left: .75rem; right: .75rem; width: auto; }
}

/* ---- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .wa-widget .wa-widget-toggle { animation: none; transition: none; }
  .wa-widget .wa-widget-content { transition: none; }
}
