.contact-widget {
  --contact-widget-lift: 0px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5200;
  width: 58px;
  height: 58px;
  transform: translateY(calc(-1 * var(--contact-widget-lift)));
  transition: transform .16s ease;
}

.contact-widget-launcher {
  position: relative;
  isolation: isolate;
  width: 58px;
  height: 58px;
  min-width: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 8px 26px rgba(15, 95, 45, .48);
}

.contact-widget-launcher::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 2px solid rgba(22, 163, 74, .55);
  border-radius: 50%;
  pointer-events: none;
  animation: contact-widget-pulse 4s ease-out infinite;
}

.contact-widget-launcher:hover,
.contact-widget-launcher:focus-visible,
.contact-widget.is-open .contact-widget-launcher {
  background: #0f5f2d;
}

.contact-widget-launcher:focus-visible,
.contact-widget-option:focus-visible,
.footer-social-link:focus-visible,
.contact-help-link:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.contact-widget-chat-icon {
  position: relative;
  display: block;
  width: 27px;
  height: 21px;
  border: 3px solid currentColor;
  border-radius: 8px;
}

.contact-widget-chat-icon::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -8px;
  width: 8px;
  height: 8px;
  border-left: 3px solid currentColor;
  transform: skewY(-35deg);
}

.contact-widget-launcher-text {
  position: absolute;
  right: 68px;
  top: 50%;
  padding: 9px 12px;
  border: 2px solid #15803d;
  border-radius: 10px;
  background: #fff;
  color: #0f5f2d;
  box-shadow: 0 6px 18px rgba(15, 95, 45, .22);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  transform: translate(0, -50%);
  transition: opacity .15s ease, transform .15s ease;
}

.contact-widget-launcher-text::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #15803d;
  border-right: 2px solid #15803d;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.contact-widget-launcher:hover .contact-widget-launcher-text,
.contact-widget-launcher:focus-visible .contact-widget-launcher-text {
  transform: translate(-3px, -50%);
}

.contact-widget.is-open .contact-widget-launcher-text {
  opacity: 0;
  transform: translate(7px, -50%);
}

.contact-widget-menu {
  position: absolute;
  right: 0;
  bottom: 70px;
  display: grid;
  gap: 9px;
  width: max-content;
  min-width: 190px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.contact-widget.is-open .contact-widget-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.contact-widget-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 7px 14px 7px 8px;
  border: 1px solid #dfe8df;
  border-radius: 24px;
  background: #fff;
  color: #183323;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .15);
  font-weight: 800;
  text-decoration: none;
}

.contact-widget-option:hover {
  color: #0f5f2d;
  transform: translateX(-2px);
}

.contact-widget-channel-icon,
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.contact-widget-channel-icon {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.contact-widget-whatsapp .contact-widget-channel-icon,
.footer-social-whatsapp { background: #128c4a; }
.contact-widget-viber .contact-widget-channel-icon,
.footer-social-viber { background: #7360f2; }
.contact-widget-messenger .contact-widget-channel-icon,
.footer-social-messenger { background: #087bea; }
.footer-social-facebook { background: #1877f2; }

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 5px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  font-size: 14px;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.footer-social-link:hover {
  color: #fff;
  filter: brightness(.92);
  transform: translateY(-1px);
}

.contact-help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.detail-contact-link {
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #15803d;
  border-radius: 8px;
  background: #fff;
  color: #0f5f2d;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 760px) {
  .contact-widget {
    right: 16px;
    bottom: 20px;
  }
  .contact-widget-launcher-text {
    right: 66px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .contact-widget-menu { min-width: 180px; }
  main.container { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-widget,
  .contact-widget-menu,
  .contact-widget-launcher-text,
  .contact-widget-option { transition: none; }
  .contact-widget-launcher::before { animation: none; }
}

@keyframes contact-widget-pulse {
  0%, 68%, 100% { opacity: 0; transform: scale(.82); }
  76% { opacity: .8; }
  92% { opacity: 0; transform: scale(1.2); }
}
