.magter-mobile-contact-bar {
  display: none;
}

.magter-wechat-modal[hidden] {
  display: none;
}

.magter-wechat-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(4, 17, 33, 0.7);
}

.magter-wechat-modal__dialog {
  position: relative;
  width: min(100%, 390px);
  max-height: 86vh;
  padding: 28px;
  overflow-y: auto;
  border-radius: var(--magter-radius-lg);
  background: var(--magter-white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.magter-wechat-modal__dialog h2 {
  padding-inline: 22px;
  font-size: 1.55rem;
}

.magter-wechat-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--magter-navy);
  background: var(--magter-surface);
  font-size: 1.6rem;
}

.magter-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  body {
    padding-bottom: min(58px, 10vh);
    padding-bottom: min(58px, 10dvh);
  }

  .magter-mobile-contact-bar {
    position: fixed;
    z-index: 5000;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: min(58px, 10vh);
    height: min(58px, 10dvh);
    grid-template-columns: 1fr 1fr;
    background: var(--magter-white);
    box-shadow: 0 -8px 24px rgba(7, 31, 58, 0.14);
    transition: transform 0.2s ease;
  }

  .magter-mobile-contact-bar.is-hidden {
    transform: translateY(110%);
  }

  .magter-mobile-contact-bar a,
  .magter-mobile-contact-bar button {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: var(--magter-white);
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
  }

  .magter-mobile-contact-bar a {
    background: var(--magter-blue);
  }

  .magter-mobile-contact-bar button {
    background: var(--magter-orange);
  }
}
