.vts-contact-widget {
  --vts-fab-size: 56px;
  --vts-fab-gap: 12px;
  --max-cyan: #00bfff;
  --max-white: #ffffff;
  --max-grad: linear-gradient(105deg, #1a5ad8 0%, #1a2a8a 40%, #5a00b8 78%, #9a00d0 100%);
  --max-expand-duration: 0.7s;
  --vts-wa: #25d366;
  --vts-email: #129bf4;

  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: var(--vts-fab-gap);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  pointer-events: none;
}

.vts-contact-widget a {
  pointer-events: auto;
  color: #fff !important;
  border-bottom: none !important;
  text-decoration: none !important;
}

.vts-contact-widget a:hover,
.vts-contact-widget a:focus,
.vts-contact-widget a:active {
  color: #fff !important;
  border-bottom: none !important;
  text-decoration: none !important;
}

.vts-contact-widget__fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--vts-fab-size);
  height: var(--vts-fab-size);
  border-radius: 50%;
  text-decoration: none;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vts-contact-widget__fab img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.vts-contact-widget__fab--whatsapp {
  background: var(--vts-wa);
}

.vts-contact-widget__fab--email {
  background: var(--vts-email);
}

.vts-contact-widget__fab--email img {
  width: 34px;
  height: 34px;
}

.vts-contact-widget__fab:focus-visible {
  outline: 3px solid var(--max-cyan);
  outline-offset: 3px;
}

.vts-contact-widget__fab:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .vts-contact-widget__fab:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.32),
      0 3px 8px rgba(0, 0, 0, 0.2);
  }
}

.vts-contact-widget__max {
  --max-btn-h: 58px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--max-btn-h);
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff !important;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  box-shadow:
    0 4px 22px rgba(30, 20, 120, 0.5),
    0 2px 8px rgba(13, 0, 26, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: vts-contact-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vts-contact-widget__max::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--max-grad);
  pointer-events: none;
}

.vts-contact-widget__max:focus-visible {
  outline: 3px solid var(--max-cyan);
  outline-offset: 3px;
}

.vts-contact-widget__max:active {
  transform: scale(0.98);
}

.vts-contact-widget__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -2;
}

.vts-contact-widget__pulse::before,
.vts-contact-widget__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(122, 0, 184, 0.45);
  animation: vts-contact-pulse 2.4s ease-out infinite;
}

.vts-contact-widget__pulse::after {
  animation-delay: 1.2s;
}

.vts-contact-widget__max-logo {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.vts-contact-widget__max-label,
.vts-contact-widget__max-short,
.vts-contact-widget__max-full {
  color: #fff !important;
}

.vts-contact-widget__max-label {
  display: grid;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.vts-contact-widget__max-short,
.vts-contact-widget__max-full {
  grid-area: 1 / 1;
  justify-self: start;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.vts-contact-widget__max-short {
  max-width: 3.2em;
  opacity: 1;
  transform: translateY(0);
}

.vts-contact-widget__max-full {
  max-width: 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  font-weight: 600;
  letter-spacing: 0;
}

@media (hover: hover) and (pointer: fine) {
  .vts-contact-widget__max-short,
  .vts-contact-widget__max-full {
    transition:
      opacity 0.45s ease,
      max-width var(--max-expand-duration) cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.45s ease;
  }

  .vts-contact-widget__max:hover,
  .vts-contact-widget__max:focus-visible {
    transform: translateY(-2px);
    box-shadow:
      0 8px 30px rgba(30, 20, 120, 0.55),
      0 4px 12px rgba(13, 0, 26, 0.3);
  }

  .vts-contact-widget__max:hover .vts-contact-widget__max-short,
  .vts-contact-widget__max:focus-visible .vts-contact-widget__max-short {
    max-width: 0;
    opacity: 0;
    transform: translateY(-6px);
  }

  .vts-contact-widget__max:hover .vts-contact-widget__max-full,
  .vts-contact-widget__max:focus-visible .vts-contact-widget__max-full {
    max-width: 11.5em;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .vts-contact-widget__max-full {
    display: none;
  }

  .vts-contact-widget__max-short {
    max-width: none;
    opacity: 1;
    transform: none;
  }

  .vts-contact-widget__max:hover,
  .vts-contact-widget__max:focus-visible {
    transform: none;
  }
}

@keyframes vts-contact-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes vts-contact-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(122, 0, 184, 0.4);
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 0 14px rgba(122, 0, 184, 0);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .vts-contact-widget {
    --vts-fab-size: 46px;
    --vts-fab-gap: 8px;
    right: 12px;
    bottom: 12px;
  }

  .vts-contact-widget__fab img {
    width: 24px;
    height: 24px;
  }

  .vts-contact-widget__fab--email img {
    width: 28px;
    height: 28px;
  }

  .vts-contact-widget__max {
    --max-btn-h: 48px;
    padding: 0 14px;
  }

  .vts-contact-widget__max-logo {
    width: 24px;
    height: 24px;
  }

  .vts-contact-widget__max-label {
    font-size: 14px;
  }

  .vts-contact-widget__max-full {
    display: none;
  }
}

#mt-scrollup {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .vts-contact-widget__max,
  .vts-contact-widget__max-short,
  .vts-contact-widget__max-full,
  .vts-contact-widget__pulse::before,
  .vts-contact-widget__pulse::after,
  .vts-contact-widget__fab {
    animation: none;
    transition: none;
  }
}
