/* Shared floating contact icons used on every page. */
.mmw-floating-contact {
  position: fixed;
  top: 70%;
  right: auto;
  left: 4px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-50%);
}
.mmw-floating-contact__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 44px;
  overflow: visible;
  border: 0;
  border-radius: 23px 11px 11px 23px;
  background: var(--mmw-contact-color, #b10219);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mmw-floating-contact__item::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -5px;
  width: 11px;
  height: 10px;
  background: var(--mmw-contact-color, #b10219);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.mmw-floating-contact__item--email { --mmw-contact-color: #ef171d; }
.mmw-floating-contact__item--call { --mmw-contact-color: #0787e7; }
.mmw-floating-contact__item--whatsapp { --mmw-contact-color: #16ad36; }
.mmw-floating-contact__item--viber { --mmw-contact-color: #7116cf; }
.mmw-floating-contact__item--telegram { --mmw-contact-color: #079fe0; }
.mmw-floating-contact__item--line { --mmw-contact-color: #18b928; }
.mmw-floating-contact__item--instagram { --mmw-contact-color: #c13584; }
.mmw-floating-contact__item--facebook { --mmw-contact-color: #1877f2; }
.mmw-floating-contact__item--youtube { --mmw-contact-color: #ff0000; }
.mmw-floating-contact__item--linkedin { --mmw-contact-color: #0a66c2; }
.mmw-floating-contact__item--pinterest { --mmw-contact-color: #bd081c; }
.mmw-floating-contact__item--maps { --mmw-contact-color: #4285f4; }
.mmw-floating-contact__item:hover {
  transform: translateX(3px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.28);
}
.mmw-floating-contact__icon {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}
.mmw-floating-contact__icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.mmw-floating-contact__label {
  position: absolute;
  top: 0;
  right: auto;
  left: 52px;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 145px;
  height: 44px;
  padding: 0 18px;
  background: var(--mmw-contact-color, #b10219);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-15px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.mmw-floating-contact__item:hover,
.mmw-floating-contact__item:focus-visible { z-index: 4; }
.mmw-floating-contact__item:hover .mmw-floating-contact__label,
.mmw-floating-contact__item:focus-visible .mmw-floating-contact__label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.mmw-floating-contact__item:focus-visible {
  outline: 3px solid rgba(177, 2, 25, 0.3);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .mmw-floating-contact {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    gap: 5px 2px;
    padding: 8px max(6px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: #062b4b;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.2);
    transform: none;
  }
  .mmw-floating-contact__item {
    flex: none;
    min-width: 0;
    width: 34px;
    height: 34px;
    border-radius: 20px 10px 10px 20px;
  }
  .mmw-floating-contact__icon { width: 28px; height: 28px; flex-basis: 28px; }
  .mmw-floating-contact__icon img { width: 16px; height: 16px; }
  .mmw-floating-contact__item::after { right: 1px; }
  .mmw-floating-contact__item:hover { transform: translateY(-2px); }
  .mmw-floating-contact__label { display: none; }
  .mf-footer .mf-social { display: none !important; }
}
@media (max-height: 620px) and (min-width: 768px) {
  .mmw-floating-contact__item { width: 46px; height: 40px; }
  .mmw-floating-contact__icon { width: 31px; height: 31px; flex-basis: 31px; }
  .mmw-floating-contact__icon img { width: 18px; height: 18px; }
  .mmw-floating-contact__label { right: auto; left: 46px; height: 38px; }
}
