.pisell-selector_media-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: min-content;
}

.pisell-selector_media-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #98a2b3;
  overflow: visible;
  box-sizing: border-box;
  user-select: none;

  &-circle {
    border-radius: 50%;
    border-width: 2px;
  }

  &-square {
    border-radius: 8px;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    overflow: hidden;
  }
}

.pisell-selector_media-text {
  font-weight: 600;
  color: #1d2129;
  user-select: none;
}

.pisell-selector_media-placeholder {
  color: #98a2b3;
  opacity: 0.6;
}

.pisell-selector_media-label {
  font-size: 14px;
  color: #1d2129;
  font-weight: 400;
}

.pisell-selector_media-indicator-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  line-height: 1;
}

.pisell-selector_media-label {
  margin-top: 10px;
  font-size: 14px;
  color: #1d2129;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pisell-selector_media-extra {
  margin-top: 10px;
}

// Sizes
.pisell-selector_media-item {
  &-selected {
    .pisell-selector_media-cover {
      border-width: 2px;
      border-color: var(--color-primary, #5d3f9f);
    }

    .pisell-selector_media-label {
      font-weight: 600;
    }
  }

  &-disabled {
    cursor: not-allowed;

    .pisell-selector_media-cover {
      border-color: #98a2b3;
      color: #98a2b3;
    }

    .pisell-selector_media-label {
      color: #98a2b3;
    }
  }

  &-small {
    .pisell-selector_media-cover {
      width: 48px;
      height: 48px;
    }
  }

  &-middle {
    .pisell-selector_media-cover {
      width: 64px;
      height: 64px;
    }
  }

  &-large {
    .pisell-selector_media-cover {
      width: 80px;
      height: 80px;
    }
  }
}
