@import 'assets/scss/colors.scss';
@import 'assets/scss/fonts.scss';
@import 'assets/scss/z-index.scss';

.background {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(247, 247, 247, 0.7);
  z-index: $popup;
}

.content {
  padding: 24px 24px;
  min-width: 300px;
  display: flex;
  flex-direction: row;
}

.addonButton {
  padding: 20px;
}

.buttonRow {
  padding: 16px;
  border-top: 1px solid var(--color-light-gray);
  display: flex;
  flex-direction: row;
  justify-content: center;

  button:not(:last-child) {
    margin-right: 56px;
  }

  button {
    margin: 0 8px;
  }
}

.filterColumn {
  h3 {
    font-weight: 700;
    color: var(--color-text-gray);
  }
}

.filterColumn:not(:last-child) {
  padding-right: 24px;
}

.filterItem:not(:last-child) {
  margin-bottom: 24px;
}

.filterItem:last-child {
  margin-bottom: 16px;
}

.filterRow {
  display: flex;
  flex-direction: row;
  margin-top: 8px;
}

.filterButton {
  border: 1px solid var(--color-light-gray);
  color: var(--color-text-contrast);
  border-radius: 8px;
  background-color: var(--color-background-white);
  padding: 6px 8px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  outline: none;
  max-height: 29px;
  white-space: nowrap;
  svg {
    display: inline-block;
    margin-right: 2px;
    line-height: 0;

    path {
      stroke: var(--color-soft-green);
      fill: var(--color-soft-green);
    }
  }
}

.openIconButton {
  width: 19px;
  height: 19px;
  background: none;
  border: 2px solid #bf1a2f;
  border-radius: 50%;
  margin-right: 4px;
}

.filterButtonSelected {
  @extend .filterButton;
  border: 1px solid var(--color-airy-blue);
  background-color: var(--color-airy-blue);
  color: var(--color-background-white);
  outline: none;

  path {
    stroke: var(--color-background-white);
    fill: var(--color-background-white);
  }

  .openIcon {
    border-color: var(--color-background-white);
  }
}

.searchField {
  padding: 8px 8px 16px 0;
}

.tagList {
  width: 16em;
  overflow-y: auto;
  max-height: 300px; // Old Firefox fallback
  max-height: calc(100vh - 400px);
  min-height: 6em;
}

.tagEntry {
  display: inline-block;
  border: 1px solid black;
  padding: 4px 8px;
  margin-right: 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  cursor: pointer;
}

.tagSelected {
  background-color: var(--color-airy-blue);
}

.sourcesList {
  width: 16em;
  overflow-y: auto;
  max-height: 300px; // Old Firefox fallback
  max-height: calc(100vh - 400px);
  min-height: 6em;
}

.sourceEntry {
  display: flex;
  flex-direction: row;
  margin: 0px;
  cursor: pointer;
  border: 7px solid var(--color-background-white);

  circle {
    fill: var(----color-channel-icon-circle);
  }
}

.sourceSelected {
  background-color: var(--color-background-blue);
  color: var(--color-text-contrast);
  border-radius: 18px;
  padding: 0px;
}

.channelLogoWrapper {
  margin-right: 4px;
  flex: none;
  width: 24px;
  height: 24px;

  svg {
    width: 24px;
    height: 24px;
  }
}

.metadataImage {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.checkmarkIcon {
  display: flex;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background-color: var(--color-airy-blue);
  margin-right: 4px;

  path {
    fill: var(--color-background-white);
  }

  svg {
    width: 12px;
    height: auto;
    align-self: center;
  }
}

.itemName {
  width: 12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text-contrast);
}

.checkmarkCircleIcon {
  height: 24px;
  width: 24px;
  margin-right: 4px;
  margin-bottom: 1px;
  svg {
    height: 100%;
    width: 100%;
  }
}
