@include comp(theme-editor) {
  position: fixed;
  right: 0;
  border-right: none;
  padding: 5px 10px 5px 5px;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
  box-sizing: border-box;
  transition: all ease 300ms;
  overflow-y: hidden;
  z-index: 1500;
  background-color: plv(bg-4);

  &:before {
    content: '';
    background-color: plv(primary-light-2);
    border-radius: inherit;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .theme-editor-inner {
    position: absolute;
    z-index: 1;
    bottom: 5px;
    right: 10px;
    cursor: pointer;
    height: calc(#{plv(box-size-normal-height)} * 1.5);
    width: calc(#{plv(box-size-normal-height)} * 1.5);
    border-radius: calc(#{plv(box-size-normal-height)} * 1.5);
    background-color: plv(primary-6);
    color: plv(pbfc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all ease 300ms;

    .theme-editor-inner-cover {
      position: absolute;
      inset: 0;
      user-select: none;
    }
  }

  &.is-expand {
    width: 300px;
    height: 330px;
    border-top-left-radius: plv(box-size-normal-border-radius);
    border-bottom-left-radius: plv(box-size-normal-border-radius);

    &:before {
      background-color: plv(background-color);
      border: solid 1px plv(border-color);
    }

    .theme-editor-inner {
      border-radius: plv(box-size-normal-border-radius);
      background-color: transparent;
      color: plv(text-2);

      &:hover {
        background-color: plv(secondary-2);
      }
    }
  }

  &:not(.is-expand) {
    width: calc(#{plv(box-size-normal-height)} * 1.5 + 15px);
    height: calc(#{plv(box-size-normal-height)} * 1.5 + 10px);
  }

  .theme-editor-form {
    padding: 8px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;

    & > div {
      width: calc(50% - 4px);
      font-size: 12px;
      color: plv(text-2);
      margin-bottom: 20px;

      &:nth-child(2n) {
        margin-left: 8px;
      }

      & > div {
        &:first-child {
          margin-left: 10px;
          margin-bottom: 4px;
        }
      }
    }
  }
}

@include comp(theme-editor-block-item) {
  display: flex;
  align-items: center;
}
