.delete-profile-modal {
  &__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  &__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    color: rgba(0, 0, 0, 0.88);
  }

  &__close {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    padding: 4px;
    line-height: 1;

    &:hover {
      color: rgba(0, 0, 0, 0.88);
    }
  }

  &__body {
    min-height: 80px;
  }

  &__confirm-text {
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.65);
  }

  &__warning {
    background: #fff7e6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
  }

  &__warning-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #d48806;
    margin-bottom: 4px;
  }

  &__warning-icon {
    margin-right: 8px;
    font-size: 16px;
  }

  &__warning-content {
    font-size: 13px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.65);
  }

  &__devices-label {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 8px;
  }

  &__devices-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 4px 0;
  }

  &__device-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;

    & + & {
      border-top: 1px solid #f5f5f5;
    }
  }

  &__device-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.85);
    font-size: 13px;

    .anticon {
      color: rgba(0, 0, 0, 0.45);
    }
  }

  &__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
  }
}

.delete-profile-modal--phone {
  width: 100%;
  max-width: 100%;

  .pisell-lowcode-modal-content {
    max-height: 90dvh;
  }

  .pisell-lowcode-modal-body {
    max-height: calc(100dvh - 172px);
    overflow: auto;
  }

  .pisell-lowcode-modal-footer {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .delete-profile-modal__devices-list {
    max-height: min(280px, calc(100dvh - 320px));
  }

  .delete-profile-modal__device-row {
    align-items: flex-start;
    gap: 8px;
  }

  .delete-profile-modal__device-name {
    min-width: 0;

    span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}
