/* Sayfanın geri kalanından bağımsız sabit iletişim alanı. */
.mi-fixed-contact,
.mi-fixed-contact * {
  box-sizing: border-box;
}

.mi-fixed-contact {
  position: fixed;
  z-index: 1030;
  right: 18px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 205px;
  font-family: Inter, Arial, sans-serif;
}

.mi-fixed-contact-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 15px 8px 10px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(12, 56, 68, .2);
  transition: transform .2s ease, filter .2s ease;
}

.mi-fixed-contact-btn:hover {
  color: #fff;
  filter: brightness(.95);
  transform: translateY(-2px);
}

.mi-fixed-contact-btn:focus-visible {
  outline: 3px solid #f28e40;
  outline-offset: 3px;
}

.mi-fixed-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

.mi-fixed-contact-icon svg {
  display: block;
  width: 19px;
  height: 19px;
}

.mi-fixed-contact-phone {
  background: #227b94;
}

.mi-fixed-contact-wa {
  background: #25d366;
  text-shadow: 0 1px 2px rgba(0, 60, 25, .35);
}

@media (min-width: 992px) {
  .back-to-top {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .back-to-top {
    display: none !important;
  }

  .mi-fixed-contact {
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -4px 18px rgba(12, 56, 68, .12);
  }

  .mi-fixed-contact-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    gap: 6px;
    padding: 7px 6px;
    font-size: clamp(12px, 3.2vw, 14px);
    box-shadow: none;
  }

  .mi-fixed-contact-icon {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
  }

  .mi-fixed-contact-icon svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 360px) {
  .mi-fixed-contact {
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .mi-fixed-contact-btn {
    gap: 4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .mi-fixed-contact-icon {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mi-fixed-contact-btn {
    transition: none;
  }
}
