

.ub-i18n-switch {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  overflow: auto;
  display: none;
  z-index: 10000;

  .dialog {
    background: #FFF;
    max-width: 40rem;
    margin: 15vh auto 0 auto;
    border-radius: 5px;
    box-shadow: 0 0 4px #999;
    position: relative;

    .close {
      display: block;
      width: 1.5rem;
      height: 1.5rem;
      line-height: 1.5rem;
      color: #999;
      background: #FFF;
      text-align: center;
      position: absolute;
      right: -0.75rem;
      top: -0.75rem;
      border-radius: 50%;
      box-shadow: 0 0 3px #999;
    }

    .head {
      border-bottom: 1px solid #EEE;
      padding: 0.5rem;
    }

    .body {
      padding: 1rem;

      .languages {
        .item {
          display: block;
          padding: 0.25rem 0.5rem 0.25rem 2rem;
          line-height: 1rem;

          &:hover {
            .text {
              color: var(--color-primary);
            }
          }

          .icon {
            display: block;
            width: 1rem;
            height: 1rem;
            background: #FFF no-repeat center;
            background-size: contain;
            margin: 0 0 0 -1.5rem;
            float: left;
          }

          .text {
            display: block;
            color: #333;
          }
        }
      }
    }
  }
}