:root {
  --vvv-blue: #0b4da2;
  --vvv-blue-dark: #083a79;
  --vvv-whatsapp: #25d366;
  --vvv-email: #1689ef;
  --vvv-text: #20242c;
  --vvv-muted: #70757f;
  --vvv-border: #e4e7eb;
  --vvv-panel: #ffffff;
  --vvv-bubble: #f1f3f6;
}

#vvv-contact-widget,
#vvv-contact-widget * { box-sizing: border-box; }

#vvv-contact-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--vvv-text);
}

.vvv-widget-launcher {
  position: relative;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.vvv-widget-launcher:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.vvv-widget-launcher img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vvv-widget-badge {
  position: absolute;
  right: 0;
  top: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff1f2d;
  border: 2px solid #fff;
}

.vvv-widget-panel {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: 390px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--vvv-panel);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.vvv-widget-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.vvv-widget-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--vvv-border);
}

.vvv-widget-logo-wrap {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vvv-widget-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.vvv-widget-online-dot {
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #28c840;
  border: 2px solid #fff;
}

.vvv-widget-title { flex: 1; min-width: 0; }
.vvv-widget-title strong { display: block; font-size: 20px; line-height: 1.2; }
.vvv-widget-status { margin-top: 5px; color: var(--vvv-muted); font-size: 15px; }

.vvv-widget-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.vvv-widget-close:hover { background: #f3f4f6; color: #4b5563; }
.vvv-widget-time { text-align: center; color: #c3c6cc; font-size: 12px; padding-top: 16px; }

.vvv-widget-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px 8px;
}

.vvv-widget-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-top: 3px;
}

.vvv-widget-message {
  flex: 1;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--vvv-bubble);
  font-size: 17px;
  line-height: 1.5;
}

.vvv-widget-message p { margin: 0 0 12px; }
.vvv-widget-message p:last-child { margin-bottom: 0; }

.vvv-widget-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px;
}

.vvv-widget-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--vvv-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.vvv-widget-action-icon {
  width: 72px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.vvv-widget-action-icon svg {
  width: 31px;
  height: 31px;
  display: block;
  fill: currentColor;
}

.vvv-widget-action.whatsapp .vvv-widget-action-icon { background: var(--vvv-whatsapp); }
.vvv-widget-action.email .vvv-widget-action-icon { background: var(--vvv-email); }
.vvv-widget-action.phone .vvv-widget-action-icon { background: var(--vvv-blue); }

.vvv-widget-action:hover .vvv-widget-action-icon {
  transform: translateY(-2px);
  filter: brightness(.97);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 8px 18px rgba(0,0,0,.14);
}

.vvv-widget-launcher:focus-visible,
.vvv-widget-close:focus-visible,
.vvv-widget-action:focus-visible {
  outline: 3px solid rgba(11, 77, 162, .28);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  #vvv-contact-widget { right: 12px; bottom: 12px; }
  .vvv-widget-panel { position: fixed; left: 12px; right: 12px; bottom: 88px; width: auto; max-width: none; }
  .vvv-widget-header { padding: 18px 16px 16px; }
  .vvv-widget-body { padding: 16px 16px 6px; }
  .vvv-widget-message { font-size: 16px; }
  .vvv-widget-actions { gap: 8px; padding: 18px 14px 20px; }
  .vvv-widget-action-icon { width: 66px; height: 58px; }
}
