@media only screen and (max-width: 767px) {
  .ui.modal.cust-modal.profile-details-modal {
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
  }

  .ui.modal.cust-modal.profile-details-modal > .content {
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .ui.modal.cust-modal.profile-details-modal .cust-mdl-header,
  .ui.modal.cust-modal.profile-details-modal .pw-header {
    flex: 0 0 auto !important;
  }

  .ui.modal.cust-modal.profile-details-modal .cust-mdl-content.pw-content {
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding-bottom: 24px !important;
    -webkit-overflow-scrolling: touch;
  }

  .ui.modal.cust-modal.profile-details-modal .cust-mdl-actions.pw-actions {
    flex: 0 0 auto !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10 !important;
    background: #fff !important;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
}