#nitrogen-inspector .ctrl-file__clear-btn {
  cursor: pointer;
}

#nitrogen-inspector .ctrl-file__upload {
  height: 10rem;
  width: 100%;

  &__btn {
    overflow: hidden;
    position: relative;
    transition-property: all;
    transition-duration: 150ms;
    height: 10rem;
    border-radius: 0.25rem;
    border-width: 1px;
    border-color: #c5ccd3;
    cursor: pointer;
    background-color: #e2e5e9;

    &:hover {
      border-color: #a8b2bd;
    }

    @media (prefers-color-scheme: dark) {
      background-color: #424c57;
      border-color: #586674;

      &:hover {
        border-color: #6e7f91;
      }
    }

    &__img {
      object-position: center;
      width: 100%;
      height: 100%;

      &--object-cover {
        object-fit: cover;
      }

      &--object-contain {
        object-fit: contain;
      }
    }

    &__file {
      display: flex;
      text-align: center;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;

      &__name {
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.875rem;
        line-height: 1.25rem;
        font-weight: 500;
        overflow-wrap: break-word;
        width: 100%;
        color: #2c333a;

        @media (prefers-color-scheme: dark) {
          color: #c5ccd3;
        }
      }

      &__ext {
        color: #6e7f91;

        @media (prefers-color-scheme: dark) {
          color: #8b99a7;
        }
      }

      &__size {
        font-size: 0.75rem;
        line-height: 1rem;
        color: #6e7f91;

        @media (prefers-color-scheme: dark) {
          color: #8b99a7;
        }
      }
    }

    &__active-box {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      transition-property: opacity;
      transition-duration: 150ms;
      opacity: 0;
      background-color: rgba($color: #000000, $alpha: 0.5);

      &:hover {
        opacity: 1;

        + .ctrl-file__upload__btn__icon {
          opacity: 1;
        }
      }
    }

    &__icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transition-property: opacity;
      transition-duration: 150ms;
      --transform-translate-x: -50%;
      --transform-translate-y: -50%;
      transform: translate(
        var(--transform-translate-x),
        var(--transform-translate-y)
      );
      font-size: 2.25rem;
      line-height: 2.5rem;
      color: #ffffff;
      opacity: 0;
      pointer-events: none;

      &--empty {
        color: #2c333a;
        opacity: 1;

        @media (prefers-color-scheme: dark) {
          color: #8b99a7;
        }
      }
    }
  }
}
