@import url(../../../../../styles/common/easyvCommon.less);

.wrapClassName {
  :global {
    .easyv-gui-modal-content {
      background-color: var(--easyv-background-6);
    }
    .easyv-gui-modal-header {
      background-color: var(--easyv-background-6);
      padding: 0 24px;
      border-bottom: 1px solid #36363e;
      .easyv-gui-modal-title {
        text-align: left;
        height: 56px;
        line-height: 56px;
      }
    }
    .easyv-gui-modal-body {
      padding: 20px;
    }
    .easyv-gui-modal-footer {
      border: unset;
      padding: 0 20px 24px;
      .easyv-gui-btn {
        height: 32px;
        background: #3d404c;
        border-radius: 2px;
        font-size: 14px;
        line-height: 18px;
        color: #fff;
        border-color: transparent;
      }
      .easyv-gui-btn-primary {
        background: #3a89fe;
      }
      .easyv-gui-btn.easyv-gui-btn-primary[disabled] {
        color: #babcc5;
        background: #757882;
      }
    }
    .easyv-select:not(.easyv-select-customize-input) .easyv-select-selector {
      background: #181a24;
      border: 1px solid #5f5f68;
    }
  }
  .groupButton {
    display: flex;
    align-items: center;
    justify-content: space-between;
    a {
      color: #2491f7;
    }
    :global {
      .easyv-radio-button-wrapper-checked:not([class*=' easyv-radio-button-wrapper-disabled']).easyv-radio-button-wrapper:first-child,
      .easyv-radio-button-wrapper-checked:not(.easyv-radio-button-wrapper-disabled)::before,
      .easyv-radio-button-wrapper-checked:not(.easyv-radio-button-wrapper-disabled):hover::before {
        border: 1px solid transparent;
        content: none;
      }
      .easyv-radio-button-wrapper {
        background-color: #3d404c;
        color: #fff;
        border-color: transparent;
      }
      .easyv-radio-button-wrapper-checked {
        background-color: #3a89fe;
      }
    }
  }
  .dropdown {
    margin-top: 20px;
    .select();
    background-color: transparent;
  }
  .card {
    padding: 10px 11px 16px;
    background-color: #2e323e;
    margin-top: 20px;
    border-radius: 2px;
  }
  .cardBox {
    overflow-y: auto;
    max-height: 282px;
  }
  .card_item {
    display: inline-block;
    padding: 6px 5px 0;
    min-height: 78px;
    vertical-align: top;
  }
  .hove {
    &:hover {
      .card_name {
        color: #fff;
      }
      .card_cove {
        border-color: #2491f7;
      }
    }
  }
  .disabled {
    cursor: not-allowed;
  }
  .card_cove {
    width: 106px;
    height: 60px;
    background-color: #181926;
    display: inline-block;
    border: 1px solid transparent;
    transition: border 0.3s;
    overflow: hidden;
    :global {
      .easyv-image {
        width: 100%;
        height: 100%;
      }
      .easyv-image-img-placeholder {
        background-color: transparent;
      }
      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
  }
  .card_name {
    color: #999;
    transition: color 0.3s;
    text-align: center;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 108px;
  }
  .upload {
    background-color: #40434d;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.file {
  position: absolute;
  left: -2000px;
  opacity: 0;
}

.active {
  .card_name {
    color: #fff;
  }
  .card_cove {
    border-color: #2491f7;
  }
}

.video {
  height: 100%;
  video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.preview {
  :global {
    .easyv-popover-arrow {
      display: none !important;
    }

    .easyv-popover-inner {
      width: 247px;
      // height: 182px;
      background-color: #3e414c;
      box-shadow: 0px 4px 26px rgba(0, 0, 0, 0.55);
      border-radius: 0;
    }

    .easyv-popover-title {
      color: #ffffff;
      border-bottom: unset;
      min-height: 20px;
      line-height: 20px;
      padding: 8px;
    }

    .easyv-popover-inner-content {
      padding: 0 8px 8px;
    }
  }
}

.content {
  width: 231px;
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  :global {
    .easyv-image {
      width: 100%;
    }
    .easyv-image-img {
      max-height: 138px;
      object-fit: contain;
    }
  }
}
