/* MAL CONTACT WIDGET — START */

.mal-contact-widget,
.mal-contact-widget * {
  box-sizing: border-box;
}

.mal-contact-widget {
  position: fixed;
  z-index: 99990;
  right: 20px;
  bottom: 20px;
  left: auto;
  width: min(380px, calc(100vw - 40px));
  display: block !important;
  pointer-events: none;
  font-family: Arial, sans-serif;
  animation: mal-contact-widget-bounce 6s ease-in-out 1.2s infinite;
}

.mal-contact-widget__panel {
  max-width: 520px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(18, 30, 23, 0.97), rgba(9, 17, 12, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  animation: mal-contact-widget-show 0.35s ease both;
}

.mal-contact-widget__main {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #2f7d28, #55a84d);
  box-shadow: 0 6px 14px rgba(47, 125, 40, 0.3);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mal-contact-widget__main:active,
.mal-contact-widget__item:active {
  transform: scale(0.96);
}

.mal-contact-widget__main-icon {
  width: 18px;
  height: 18px;
}

.mal-contact-widget__main-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mal-contact-widget__links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 5px;
}

.mal-contact-widget__item {
  min-width: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: transform 0.18s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.mal-contact-widget__item:hover {
  filter: brightness(1.08);
}

.mal-contact-widget__item svg {
  display: block;
  width: 19px;
  height: 19px;
}

.mal-contact-widget__item--whatsapp {
  background: #27b43e;
}

.mal-contact-widget__item--telegram {
  background: #229ed9;
}

.mal-contact-widget__item--vk {
  background: #2787f5;
}

.mal-contact-widget__item--max {
  background: #315bd7;
}

.mal-contact-widget__item--phone {
  background: #7f48c8;
}

.mal-contact-widget__item--max span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.mal-contact-widget__note {
  margin: 5px 3px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
}

@keyframes mal-contact-widget-show {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mal-contact-widget-bounce {
  0%,
  88%,
  100% {
    transform: translateY(0);
  }

  92% {
    transform: translateY(-7px);
  }

  96% {
    transform: translateY(-2px);
  }
}

@media (max-width: 640px) {
  .mal-contact-widget {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }
}

@media (max-width: 359px) {
  .mal-contact-widget {
    right: 8px;
    left: 8px;
  }

  .mal-contact-widget__panel {
    padding: 5px;
  }

  .mal-contact-widget__links {
    gap: 4px;
  }

  .mal-contact-widget__item {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mal-contact-widget,
  .mal-contact-widget__panel,
  .mal-contact-widget__main,
  .mal-contact-widget__item {
    animation: none;
    transition: none;
  }
}

/* MAL CONTACT WIDGET — END */