.create-profile-modal {
  &__content {
    padding: 24px 0;
    border-radius: 12px;
  }

  &__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
  }

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

  &__subtitle {
    margin-top: 4px;
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.45);
  }

  &__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: 240px;
  }

  &__row {
    display: flex;
    gap: 16px;
  }

  &__col {
    flex: 1;
    min-width: 0;
  }

  &__section-title {
    padding: 16px 0 8px 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
  }

  &__empty {
    border: 1px dashed #d9d9d9;
    border-radius: 8px;
    padding: 40px 16px;
    text-align: center;
    color: rgba(0, 0, 0, 0.45);

    .anticon {
      font-size: 32px;
      margin-bottom: 12px;
      color: rgba(0, 0, 0, 0.25);
    }
  }

  &__templates {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  &__template-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s;

    &:hover {
      border-color: #91caff;
    }

    &.is-selected {
      border-color: #1677ff;
      background: #f0f7ff;
    }
  }

  &__template-icon {
    .anticon {
      font-size: 24px;
      color: rgba(0, 0, 0, 0.65);
    }
  }

  &__template-content {
    flex: 1;
    min-width: 0;
  }

  &__template-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 4px;
  }

  &__template-desc {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.55);
    line-height: 20px;
  }

  &__footer {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
}

.create-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));
  }

  .create-profile-modal__content {
    padding: 0 24px;
  }

  .create-profile-modal__header {
    gap: 12px;
    margin-bottom: 16px;
  }

  .create-profile-modal__subtitle {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .create-profile-modal__body {
    min-height: 0;
  }

  .create-profile-modal__row {
    flex-direction: column;
    gap: 0;
  }

  .create-profile-modal__template-card {
    gap: 12px;
    padding: 14px;
  }

  .create-profile-modal__footer {
    gap: 12px;

    button {
      flex: 1;
      min-height: 40px;
    }
  }
}
