@import '@/sass/style.scss';

.LocaleSwitcher {
  @include factor-a-family;
  overflow-y: auto;
  width: 100%;

  h3 {
    @include margin-bottom-not-last-child(4px);
    color: $very-soft-green;
    font-size: 16px;
    font-weight: bold;
    line-height: normal;
    padding-left: 8px;
  }

  p {
    @include margin-bottom-not-last-child(24px);
    font-size: 16px;
    font-weight: normal;
    line-height: 1.875;
    padding-left: 8px;
  }

  li {
    @include margin-bottom-not-last-child(8px);
    position: relative;
  }

  .link,
  .link--active {
    align-items: center;
    background-color: $very-soft-green;
    border-radius: 10px;
    border: solid 2px $mostly-black-green;
    color: $black;
    display: flex;
    font-size: 16px;
    font-weight: bold;
    justify-content: center;
    line-height: 1.5;
    min-height: 72px;
    padding: 16px 20px;
    transition: background-color 200ms;
    width: 100%;

    .icon,
    .icon--checked {
      fill: $black;

      svg {
        display: block;
        height: auto;
        width: 100%;
      }
    }

    .icon {
      display: inline-block;
      margin-right: 12px;
      width: 36px;
    }

    .icon--checked {
      display: block;
      opacity: 0;
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      transition: opacity 200ms;
      width: 24px;
    }
  }

  .link:hover,
  .link--active {
    background-color: $vivid-green;
  }

  .link--active {
    .icon--checked {
      opacity: 1;
    }
  }
}
