@import '../../styles/config/colors';

.settings {
  .partnersInfo,
  .customInfo {
    h2.title {
      margin: 1rem 0;
    }
  }

  .partnersInfo {
    margin: 2rem 0;
    h1 {
      margin-bottom: 1rem;
    }

    p {
      color: $text-grey;
    }
  }

  .popupTitle {
    margin-bottom: 1.5rem;
  }

  .popupTitle,
  .popupDescription {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    label {
      text-transform: uppercase;
      font-weight: 700;
    }

    input,
    textarea {
      background: inherit;
      border-radius: 4px;
      border: 1px solid $text-chart;
      max-width: 600px;
      padding: 1rem;
      color: $text-grey;
      font-size: 1rem;
    }

    .count {
      color: $text-dark;
      max-width: 600px;
      height: 19px;
      font-weight: 400;
      font-size: 0.8rem;
      display: flex;
      justify-content: flex-end;
    }
  }

  .buttons {
    position: fixed;
    bottom: 1rem;
    display: flex;
    transform: translate(-25%);
    left: 50%;
    gap: 1rem;
    button {
      margin: 0;
    }
  }

  .switch_div {
    display: inline-block;
    padding: 1rem 1rem;
    min-width: 135px;

    span {
      color: $text-dark;
    }

    input[type='checkbox'] {
      width: 0;
      height: 0;
      visibility: hidden;
      margin-bottom: 15px;
    }

    label {
      display: block;
      width: 50px;
      height: 20px;
      background-color: grey;
      border-radius: 15px;
      position: relative;
      cursor: pointer;
      transition: 0.5s;
      box-shadow: 0 0 20px #80808050;
    }

    label::after {
      content: '';
      width: 17px;
      height: 17px;
      background-color: #e8f5f7;
      position: absolute;
      border-radius: 13px;
      top: 2px;
      left: 2px;
      transition: 0.5s;
    }

    input:checked + label:after {
      left: calc(100% - 3px);
      transform: translateX(-100%);
    }

    input:checked + label {
      background-color: #e3b82a;
    }

    label:active:after {
      width: 34px;
    }
  }

  .customInfo {
    .switch_div {
      padding-top: 0;
      margin-bottom: 1rem;
    }
  }
}