pc-video-upload {
  position: relative;

  input {
    display: none;
  }

  .pc-video-upload-preview {
    width: 100%;
    height: 200px;
    background-color: #000;
    border-radius: var(--rd-borderradius-border-md);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .pc-video-upload-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .pc-video-upload-delete-btn {
    position: absolute;
    top: var(--rd-spacing-sm);
    right: var(--rd-spacing-sm);
    cursor: pointer;
    display: none;
    background-color: var(--rd-font-light);
    width: 27px;
    height: 27px;
    border-radius: 100%;
  }

  .has-video .pc-video-upload-delete-btn {
    display: block;
  }

  .has-video .pc-video-upload-delete-btn::before {
    content: '';
    display: inline-block;
    background-color: var(--rd-primary-active);
    mask-size: 20px;
    -webkit-mask-size: 20px;
    mask-position: 50%;
    -webkit-mask-position: 50%;
    mask-image: url("/src/img/2024/svg/icons/rd-icon-trash.svg");
    -webkit-mask-image: url("/src/img/2024/svg/icons/rd-icon-trash.svg");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    position: absolute;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
  }

  .pc-video-upload-label {
    display: flex;
    padding: var(--rd-spacing-md) var(--rd-spacing-sm);
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    align-self: stretch;
    border-radius: var(--rd-borderradius-border-md);
    border: 2px dashed var(--rd-primary-active);
    background: var(--rd-error-inactive);
    color: var(--rd-primary-active);
    margin-bottom: var(--rd-spacing-md);
    cursor: pointer;
  }

  .pc-video-upload-label .icon {
    position: relative;
    width: 1px;
    height: var(--rd-fontsize-2);
  }

  .pc-video-upload-label .icon:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--rd-primary-active);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-position: 50%;
    -webkit-mask-position: 50%;
    mask-image: url("/src/img/2024/svg/icons/rd-upload-icon.svg");
    -webkit-mask-image: url("/src/img/2024/svg/icons/rd-upload-icon.svg");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    position: absolute;
    right: 0;
    top: -5px;
  }

  .pc-video-upload-file-info {
    color: var(--Dark-Gray-400, #CCC);
    font-size: var(--rd-fontsize-2);
    font-style: normal;
    font-weight: var(--rd-fontweights-open-sans-2);
    line-height: var(--rd-lineheights-0);
    letter-spacing: 0.11px;
  }

  .pc-video-upload-container.has-video .pc-video-upload-preview {
    margin-bottom: 16px;
  }

  .pc-video-upload-container {
    view-transition-name: highlight;
    transition: all 1s linear;
  }

  .pc-video-upload-container.highlight {
    padding: var(--rd-spacing-md) var(--rd-spacing-sm);
    border-radius: var(--rd-borderradius-border-md);
    border: 2px dashed var(--rd-primary-active);
    background: var(--rd-error-inactive);
  }

  .pc-video-upload-container.highlight .pc-video-upload-label {
    border: none;
  }

  .pc-video-upload-container {
    position: relative;
    border: 2px solid transparent;
    transition: border-color 0.3s;
  }

  .pc-video-upload-container.highlight {
    border-color: var(--rd-primary-active);
    background-color: var(--rd-error-inactive);
  }

  .pc-video-upload-container.highlight .pc-video-upload-label .icon:before {
    mask-image: url("/src/img/2024/svg/icons/rd-icon-camera-box.svg");
    -webkit-mask-image: url("/src/img/2024/svg/icons/rd-icon-camera-box.svg");
  }
}

