.memo-wrapper {
  @apply relative flex flex-col justify-start items-start w-full p-4 pt-3 mt-2 bg-white dark:bg-zinc-700 rounded-lg border border-white dark:border-zinc-600 hover:border-gray-200 dark:hover:border-zinc-600;

  &.pinned {
    @apply border-gray-200 border-2 dark:border-zinc-600;
  }

  &.archived {
    @apply border-gray-200 dark:border-zinc-600;
  }

  > .corner-container {
    @apply absolute top-0 right-0 z-1;

    &::after {
      @apply absolute top-0 right-0 border-transparent border-t-green-600 border-r-green-600 rounded-tr;
      content: "";
      border-width: 6px;
    }
  }

  > .memo-top-wrapper {
    @apply flex flex-row justify-between items-center w-full h-6 mb-1;

    > .status-text-container {
      @apply flex flex-row justify-start items-center;

      > .time-text {
        @apply text-xs text-gray-400;
        font-size: 13px;
      }

      > .status-text {
        @apply text-xs cursor-pointer ml-2 rounded border px-1;

        &.public {
          @apply border-green-600 text-green-600;
        }

        &.protected {
          @apply border-gray-400 text-gray-400;
        }
      }
    }

    > .time-text {
      @apply text-xs text-gray-400 cursor-pointer;
    }

    > .btns-container {
      @apply flex flex-row justify-end items-center relative flex-shrink-0;

      > .more-action-btns-wrapper {
        @apply hidden flex-col justify-start items-center absolute top-2 -right-4 flex-nowrap hover:flex p-3;

        > .more-action-btns-container {
          @apply w-auto h-auto p-1 z-1 whitespace-nowrap rounded-lg bg-white dark:bg-zinc-700;
          box-shadow: 0 0 8px 0 rgb(0 0 0 / 20%);

          > .btns-container {
            @apply w-full flex flex-row justify-around items-center border-b border-gray-100 dark:border-zinc-600 p-1 mb-1;

            > .btn {
              @apply relative w-6 h-6 p-1 text-gray-600 dark:text-gray-300 cursor-pointer select-none;

              &:hover > .tip-text {
                @apply block;
              }

              > .icon-img {
                @apply w-5 h-auto;
              }

              > .tip-text {
                @apply hidden absolute top-0 p-1 px-2 rounded text-xs leading-6 -mt-9 bg-black text-white shadow opacity-70;
              }
            }
          }

          > .btn {
            @apply w-full text-sm leading-6 py-1 px-3 rounded justify-start cursor-pointer dark:text-gray-300;

            &.archive-btn {
              @apply text-orange-600;
            }
          }
        }
      }

      .btn {
        @apply flex flex-row justify-center items-center px-2 leading-6 text-sm rounded hover:bg-gray-200 dark:hover:bg-zinc-600;

        &.more-action-btn {
          @apply w-8 -mr-2 opacity-60 cursor-default hover:bg-transparent;

          > .icon-img {
            @apply w-4 h-auto dark:text-gray-300;
          }

          &:hover {
            & + .more-action-btns-wrapper {
              display: flex;
            }
          }
        }
      }

      .final-confirm {
          color: red
      }
    }
  }

  > .memo-content-wrapper {
    > .memo-content-text {
      .tag-span {
        @apply cursor-pointer hover:opacity-80;
      }

      .img {
        @apply max-w-xs;
      }
    }
  }
}
