.igloo-upload-photo {
  .igloo-upload-photo-sample {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: #f9f9f9;
    margin-bottom: 16px;
    border-radius: 3px;

    .igloo-upload-photo-sample-photos {
      &-photo {
        width: 100%;
      }

      &-good {
        width: 100%;
        height: 4px;
        background: #2ed573;
      }

      &-bad {
        width: 100%;
        height: 4px;
        background: @error-color;
      }

      &-label {
        font-size: 14px;
        color: @hint-color;

        &-good {
          color: #2ed573;
        }

        &-bad {
          color: @error-color;
        }
      }
    }

    .igloo-upload-photo-sample-descriptions {
      color: @icon-color;
      word-break: break-word;
      white-space: pre-wrap;
      font-style: italic;
      font-size: 14px;
    }

    .igloo-upload-photo-sample-descriptions-center {
      display: flex;
      align-items: center;
    }
  }

  .igloo-upload-photo-content {
    margin-bottom: 0 !important;

    .ant-space-item {
      height: 98px;
    }

    .igloo-upload-photo-content-container {
      position: relative;
      border: 1px solid #eeeeee;
      border-radius: 3px;
      width: 98px;
      height: 98px;
      overflow: hidden;

      .ant-scroll-number-custom-component {
        z-index: 2;
      }
    }

    .igloo-upload-photo-content-mask {
      display: flex;
      position: absolute;
      top: 0;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 3px;
      font-size: 24px;
      color: #ffffff;
      cursor: pointer;
      z-index: 1;
    }

    .igloo-upload-photo-content-preview {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      object-fit: contain;
      text-align: center;
      overflow: hidden;
    }

    .igloo-upload-photo-content-error {
      border: 1px solid #de3618;
    }

    .igloo-upload-photo-content-button {
      display: flex;
      width: 98px;
      height: 98px;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border: 1px dashed #bdbdbd;
      cursor: pointer;
      border-radius: 3px;
      padding: 8px;
    }
  }

  @media screen and (max-width: 768px) {
    .igloo-upload-photo-sample {
      display: block;
      padding: 16px;

      .igloo-upload-photo-sample-photos {
        width: 100%;
      }

      .igloo-upload-photo-sample-descriptions {
        width: 100%;
        color: @icon-color;
        word-break: break-word;
        white-space: pre-wrap;
      }
    }

    .igloo-upload-photo-content {
      .ant-space-item {
        height: 86px;
      }

      .igloo-upload-photo-content-preview {
        width: 86px;
        height: 86px;
      }

      .igloo-upload-photo-content-container {
        width: 86px;
        height: 86px;
      }

      .igloo-upload-photo-content-button {
        display: flex;
        width: 86px;
        height: 86px;
      }
    }
  }
}

.igloo-upload-photo-disabled {
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;

  & label {
    cursor: not-allowed !important;
  }

  & .igloo-icon {
    color: rgba(0, 0, 0, 0.25) !important;
  }
}

.ant-form-item-has-error .igloo-upload-photo-content-button {
  border-color: @error-color;
}

.ant-form-item-has-error .dont-show-error-status {
  border-color: @border-color;
}

.igloo-upload-photo-preview-modal {
  .igloo-upload-photo-preview-iframe {
    width: 100%;
    overflow: auto;

    .igloo-upload-photo-preview-picture {
      width: 100%;
      border: none;
    }
  }
}
