@use "variables.scss";

.edit-page-thumbnail {
  width: 80px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 6px;

  .action-checkbox {
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 999;
  }

  .page-thumbnail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: variables.$component-border;
    border-radius: 2px;
    cursor: pointer;
    position: relative;

    &.visible {
      border: 1px solid variables.$text-color;
    }

    &.selected {
      border: 2px solid variables.$primary;
    }

    .action-icon {
      position: absolute;
      background-color: variables.$text-color;
      left: 0;
      bottom: 0;
      width: 22px;
      height: 22px;
      color: variables.$white;
      display: flex;
      align-items: center;
      justify-content: center;

      svg {
        height: 16px;
      }
    }
  }
}
