.mobile-chat-launcher {
  display: none;
}

@media screen and (max-width: 560px), screen and (pointer: coarse) and (max-width: 900px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px)
      max(4px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #e2e8f1;
    background: #fff;
  }

  .mobile-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 3px 0;
    color: #52647d;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
  }

  .mobile-bottom .icon {
    width: 20px;
    height: 20px;
  }

  .mobile-bottom a[href^="https://happyworld.channel.io/"] {
    margin: 5px 1px;
    border-radius: 10px;
    background: #eaf2ff;
    color: #0755e9;
    font-weight: 700;
  }

  .mobile-chat-launcher {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #0755e9;
    color: #fff;
    box-shadow: 0 4px 14px rgb(15 44 99 / 24%);
  }

  .mobile-chat-launcher svg {
    width: 25px;
    height: 25px;
  }

  .mobile-chat-launcher:focus-visible {
    outline: 2px solid #062b82;
    outline-offset: 3px;
  }
}
