@import 'assets/scss/fonts';
@import 'assets/scss/colors';

.channelItem {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  height: 64px;
  border-bottom: 1px solid var(--color-light-gray);
}

.channelLogo {
  display: flex;
  align-items: center;
  height: 40px;
  width: 40px;
  margin-right: 8px;
}

.channelNameButton {
  display: flex;
  flex: 1 1;
  border-bottom: 1px solid var(--color-light-gray);
}

.container {
  display: flex;
}

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

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

.channelName {
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
  color: var(--color-text-gray);
  &:empty {
    padding-right: 0px;
  }
}

.channelId {
  height: 50px;
  display: flex;
  align-items: center;
}

.imageUrlLogo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.connectedHint {
  display: inline-flex;
  flex-direction: row;
  border: 1px solid var(--color-soft-green);
  padding: 0 8px;
  border-radius: 4px;
  margin-left: 8px;
  width: 110px;

  @include font-s;
  text-transform: uppercase;
  color: var(--color-soft-green);
  svg {
    position: relative;
    top: -1px;
    left: 3px;
    height: 8px;
    width: auto;
    margin-top: 5px;
  }
}

.checkmarkNameContainer {
  display: flex;
  align-items: center;
}

.listButtons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  width: 50px;
  svg {
    color: var(--color-text-gray);
    &:hover {
      cursor: pointer;
      color: var(--color-airy-blue);
    }
  }
}

.disabledDisconnect {
  width: 20%;
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: flex-end;
  margin: 0 4px;
  padding: 0 16px;
}

.channelConnect {
  width: 20%;
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: flex-end;
}

.connectButton button {
  margin: 0.85em 0;
  padding: 0 0.5em;
  color: #fff;
  background: var(--color-airy-blue);

  &:hover {
    color: #fff;
  }
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 0.25em 1.25em;
  div {
    align-self: center;
  }
}

.closeIcon {
  padding-right: 5px;
  svg path {
    fill: red;
  }
}

.errorContainer {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background: #ebf7ff;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  padding: 6px;
  margin-top: 24px;
  svg {
    fill: #a3afb6;
    padding-right: 8px;
    padding-left: 4px;
    padding-top: 2px;
  }
}

:global {
  .add-source span {
    opacity: 1 !important;
  }
  .channelsConnect {
    @include font-m;

    background-color: var(--color-airy-blue);
    color: var(--color-background-white);
    border-radius: 4px;
    text-align: center;
    height: 48px;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    margin: 0 0;

    &:hover {
      background-color: var(--color-airy-blue-hover);
    }

    &:active {
      background: var(--color-airy-blue-pressed);
    }

    &:disabled {
      cursor: not-allowed;
      color: var(--color-light-gray);
      background-color: var(--color-dark-elements-gray) !important;
    }

    &:focus {
      outline: none !important;
    }

    &::-moz-focus-inner {
      border: 0;
    }
  }
}

.disconnectModal {
  p {
    color: var(--color-text-contrast);
    font-family: Lato;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    margin-bottom: 16px;
  }
  a {
    font-weight: 400;
  }
}

.modalSeparator {
  margin-top: 24px;
  margin-bottom: 24px;
  height: 1px;
  background: var(--color-light-gray);
}

.modalButtons {
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  button {
    margin: 0 8px;
  }
}

.deleteModalContainer {
  background: var(--color-background-white);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 650px;
  height: 320px;
  border-radius: 20px;
}

.deleteModalContent {
  @include font-base;
  p {
    color: var(--color-text-contrast);
  }
  a {
    color: var(--color-airy-blue);
  }
}

.deleteModalHeader {
  @include font-l;
}

.disconnectButton {
  border-radius: 10px;
}

.checkmarkIcon {
  fill: var(--color-soft-green);
}

.editIcon {
  margin-bottom: 1px;
}
