/* Mobile contextual profile menu: right-side drawer, not a bottom sheet. */
@media (max-width: 768px) {
  .mobile-profile-menu {
    display: flex;
    flex-direction: column;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(88vw, 390px);
    max-height: none;
    height: 100dvh;
    padding: calc(22px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 24px 0 0 24px;
    transform: translateX(105%);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  }

  .mobile-profile-menu.open {
    transform: translateX(0);
  }

  .mobile-profile-menu-handle {
    display: none;
  }

  .mobile-profile-menu > header {
    padding-top: 4px;
  }

  .mobile-property-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: calc(-22px - env(safe-area-inset-top)) -18px 20px;
    padding: calc(22px + env(safe-area-inset-top)) 18px 20px;
    background: linear-gradient(135deg, #087d7b, #00645f);
    color: #fff;
  }

  .mobile-property-menu-head span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: #fff;
    color: #087b79;
    font-size: 23px;
  }

  .mobile-property-menu-head strong {
    font: 700 19px Poppins, sans-serif;
  }

  .mobile-profile-menu > form {
    margin-top: auto;
    padding-top: 18px;
  }
}

@media (max-width: 430px) {
  .mobile-profile-menu {
    width: 92vw;
    border-radius: 20px 0 0 20px;
  }
}
