.note-modal-content {
  padding: 0;

  .template-section {
    margin-top: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 16px;

    .add-template-btn {
      flex-shrink: 0;
      display: flex;
      padding: 4px 8px;
      justify-content: center;
      align-items: center;
      gap: 4px;
      border-radius: 10px;
      border: 1px solid #c3b2e7;
      background: #eee5ff;
      color: #7f56da;
      text-align: center;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      outline: none;

      &:hover {
        background: #e4d6ff;
        border-color: #7f56da;
      }

      &:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(127, 86, 218, 0.2);
      }
    }

    .note-modal-templates-container {
      width: 100%;
      overflow-x: scroll;
      overflow-y: hidden;
      -webkit-scroll-snap-type: x mandatory;
      -ms-scroll-snap-type: x mandatory;
      scroll-snap-type: x mandatory;
      white-space: nowrap;
      position: relative;
      scroll-behavior: smooth;

      // 隐藏滚动条但保持滚动功能
      &::-webkit-scrollbar {
        display: none;
      }
      -ms-overflow-style: none;
      scrollbar-width: none;

      .note-modal-templates-scroll {
        width: fix-content;
        text-align: right;

        .note-modal-template-tag {
          display: flex;
          padding: 4px 8px;
          justify-content: center;
          align-items: center;
          gap: 4px;
          border-radius: 10px;
          border: 1px solid #7f56da;
          background: #fff;
          cursor: pointer;
          white-space: nowrap;
          min-width: fit-content;

          color: #7f56da;
          text-align: center;
          font-size: 14px;
          font-weight: 600;
        }
      }
    }
  }

  .input-section {
    margin-bottom: 16px;
    padding: 13px 20px;
    border-radius: 10px;
    border: 1px solid #475467;

    .note-input {
      height: 100px;
      max-height: 100px;
      border: none;
      outline: none;
      padding: 0;
      margin: 0;
      width: 100%;

      color: #000;
      font-size: 14px;
      font-weight: 400;
      line-height: 22px;

      &:focus {
        border: none;
        outline: none;
        box-shadow: none;
      }
    }
  }

  .action-buttons {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;

    .delete-btn {
      width: 200px;
      height: 48px;
      border-radius: 10px;
      font-weight: 600;
      font-size: 16px;
    }

    .confirm-btn {
      width: 200px;
      height: 48px;
      border-radius: 10px;
      font-weight: 600;
      font-size: 16px;
    }
  }
}

.template-modal-content {
  padding: 0;

  .template-input-section {
    display: flex;
    gap: 16px;
    align-items: flex-start;

    .template-input {
      height: 48px;
      flex: 1;
      display: flex;
      padding: 0 20px;
      align-items: flex-start;
      justify-content: center;
      gap: 4px;
      border-radius: 10px;
      border: 1px solid var(--Gray-600, #475467);
    }

    .template-confirm-btn {
      width: 136px;
      height: 48px;
      border-radius: 10px;
      font-weight: 600;
      font-size: 16px;
    }
  }
}

.pisell-add-temp-modal .pisell-lowcode-modal-content {
  min-height: 132px !important;
}
