@use "@material/tab-bar/mdc-tab-bar";
@use "@material/tab-scroller/mdc-tab-scroller";
@use "@material/tab-indicator/mdc-tab-indicator";
@use "@material/tab/mdc-tab";

#pre_text, #post_text, #custom_css, #last_log {
  width: 100%;
  min-height: 100px;
}

.tab-content {
  display: none;
}

.linguise-content-active {
  display: block;
}

.CodeMirror-wrap {
  width: 100%;
}

.linguise-top-tabs-wrapper {
  .mdc-tab-bar {
    width: fit-content !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;

    .mdc-tab {
      height: 64px;

      .mdc-tab-indicator {
        .mdc-tab-indicator__content--underline {
          border-color: #4967F6;
          border-top-width: 3px;
        }
      }

      .mdc-tab__text-label {
        font-weight: bold;
        font-size: 18px;
        text-transform: capitalize;
        color: #bbb;
        display: flex;
        align-items: center;
        justify-content: center;

        .menu-tab-icon {
          margin-right: 5px;
        }
      }

      .mdc-tab__ripple::before, .mdc-tab__ripple::after {
        background: transparent;
      }
    }

    .mdc-tab--active {
      .mdc-tab__text-label {
        color: #4967F6;
      }
    }
  }
}

.chosen-container-multi {
  width: 100% !important;

  .chosen-choices {
    background-image: unset;
    box-shadow: unset;
    -webkit-box-shadow: unset;
    margin: unset;
    padding: unset;
    width: unset;
    border-radius: 4px;
    border: 1px solid #ddd;

    .search-choice {
      margin: 5px !important;
      padding: 7px 20px 5px 10px !important;
      border-radius: 4px !important;
      border: 0 !important;

      .search-choice-close {
        top: 7px !important;
        right: 4px !important;
      }
    }

    .search-field {
      padding-left: 5px !important;
    }
  }
}

.transparent-option {
  background: transparent !important;
  box-shadow: none !important;
}

.linguise-content-wrapper {
  .content {
    margin: 0;
  }
}

.linguise-main-wrapper .linguise-left-panel .tabs.linguise-menu-tabs li.tab a.link-tab:hover:before, .linguise-main-wrapper .linguise-left-panel .tabs.linguise-menu-tabs li.tab a.link-tab.active:not(.expanded):before, .linguise-main-wrapper .linguise-left-panel .tabs.linguise-menu-tabs li.tab .linguise-submenu-tabs div.link-tab:hover:before, .linguise-main-wrapper .linguise-left-panel .tabs.linguise-menu-tabs li.tab .linguise-submenu-tabs div.link-tab.active:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  opacity: 0.12;
  pointer-events: none;
}

.linguise-message {
  padding: 10px;
  margin: 20px 0;
  font-weight: bold;
  font-size: 14px;
  border-radius: 4px;
  color: #fff;

  &.linguise-error {
    background-color: #cc0000;
  }

  &.linguise-warning {
    background-color: #ea8237;
  }

  a {
    color: #3a3432;
  }
}

.linguise-notice-success, .linguise-notice-error {
  padding: 10px;
  margin: 20px 20px 20px 0;
  background-color: #fff;
  border-left: 5px solid #000;
  -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.clearfix:after, .clearfix:before {
  content: '';
  display: block;
  clear: both;
}

.no-display {
  display: none;
}

.hidden-item {
  visibility: hidden;
}

.tabs {
  display: flex;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  white-space: nowrap;
  width: 100%;
  background-color: #fff;

  .tab {
    flex-grow: 1;
    display: block;
    text-align: center;
    padding: 0;
    margin: 0;
    float: left;
    text-transform: uppercase;
    text-overflow: ellipsis;
    overflow: hidden;
    letter-spacing: 0.8px;
    min-width: 80px;
    background-color: #2196f3;

    a {
      text-decoration: none;
      color: #fff;
      background-color: #2196f3;
      display: block;
      width: 100%;
      height: 100%;
      text-overflow: ellipsis;
      overflow: hidden;
      -webkit-transition: color 0.3s ease;
      -moz-transition: color 0.3s ease;
      -ms-transition: color 0.3s ease;
      -o-transition: color 0.3s ease;
      transition: color 0.3s ease;
    }

    &.disabled {
      a {
        cursor: default;
        opacity: 0.6;
      }
    }
  }

  .indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    will-change: left, right;
    background-color: #4967F6;
  }
}

.linguise-button {
  background-color: transparent;
  color: #000;
  padding: 10px 15px;
  min-width: 180px;
  border: 1px solid #9fabba;
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  letter-spacing: 2px;
  transition: all ease 0.5s;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  border-radius: 40px;

  &.small-radius {
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
  }

  &.small-button {
    padding: 0 10px;
    min-width: 50px;
    min-height: 40px;
    text-transform: capitalize;
  }

  &:focus {
    outline: none;
  }

  &:hover {
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  }

  &.orange-button {
    background-color: #4967F6;
    color: #fff;
    border-color: #4967F6;
  }

  &.orange-outline-button {
    background-color: #fff;
    color: #4967F6;
    border-color: #fff;
  }

  &.blue-button {
    background-color: #4967F6 !important;
    color: #fff;
    border-color: #4967F6;
  }

  &.aside-button {
    min-width: 230px;
    width: 100%;
  }
}

.linguise-rect-button {
  background-color: #fff;
  border: 1px solid #4967F6;
  color: #4967F6;
  cursor: pointer;
  padding: 10px 15px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.linguise-material-button {
  border: none;
  outline: none;
  padding: 10px 20px;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 14px;
  background-color: #2196f3;
  color: #fff;

  &:hover {
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  }
}

.linguise_mt_20 {
  margin-top: 20px;
}

input {
  &.linguise-input {
    border: 1px solid #ddd;
    background-color: #fff;
    height: auto;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;

    &.small-input {
      width: 60px;
      background-color: #fff;
    }

    &.custom-input {
      width: calc(100% - 250px);
    }

    &.minicolors {
      padding-left: 55px;

      & + .minicolors-swatch {
        height: 48px;
        width: 48px;
        top: 2px;
        left: 2px;
        border: none;

        .minicolors-swatch-color {
          -webkit-border-radius: 4px;
          -moz-border-radius: 4px;
          border-radius: 4px;
        }
      }

      .minicolors-grid {
        .minicolors-picker {
          -webkit-box-sizing: content-box;
          -moz-box-sizing: content-box;
          box-sizing: content-box;

          & > div {
            -webkit-box-sizing: content-box;
            -moz-box-sizing: content-box;
            box-sizing: content-box;
          }
        }
      }
    }
  }

  &.linguise-checkbox {
    &:checked {
      background-color: #49bf88;
      border: 1px solid #49bf88;

      &:before {
        color: #fff;
      }
    }
  }

  &.linguise-radiobox {
    border-color: #7d8a9a;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;

    &:checked {
      border-color: #49bf88;

      &:before {
        width: 10px;
        height: 10px;
        margin: 2px;
        background-color: #49bf88;
      }
    }

    &:focus {
      border-color: #49bf88;
      -webkit-box-shadow: none;
      -moz-box-shadow: none;
      box-shadow: none;
    }
  }
}

#token {
  min-width: 200px;
  max-width: 500px;
  margin-bottom: 0;
  padding: 10px;
  height: unset;
}

input.linguise-input:focus,
.items-blocks textarea:focus {
  border-color: #4967F6;
  box-shadow: none;
  outline: none;
}

select {
  &.linguise-select {
    height: auto;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: none;
    margin: 0 10px;

    &:hover {
      color: #32373c;
    }

    &.right-select {
      float: right;
      margin: 10px 0;
      min-width: 100px;
    }

    &.original-color {
      background-color: #F1F1F1;
    }

    &:focus {
      border: 1px solid #4967F6;
      box-shadow: none;
      outline: none;
    }
  }

  &.linguise-chosen {
    border-radius: 5px;
    box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.3);
    border: none;
    height: 34px !important;
    cursor: text;
    margin-top: 12px;
    padding-left: 15px;
    border-bottom: 1px solid #ddd;
    width: 285px;
    text-indent: 0;
    margin-left: 30px;
  }
}

.linguise-notice-success {
  border-left-color: #46b450;
}

.linguise-notice-error {
  border-left-color: #cc0000;
}

.linguise-notice-close {
  float: right;
  color: #aaa;

  &:hover {
    color: #c00;
    cursor: pointer;
  }
}

.linguise-switch-button {
  float: left;
  margin-left: 0;
  margin-right: 0;
  height: 50px;
  display: flex;
  align-items: center;

  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 10px;

    input {
      display: none;

      &:checked {
        & + .slider {
          background-color: #4967F6;

          &:before {
            -webkit-transform: translateX(26px);
            -moz-transform: translateX(26px);
            -ms-transform: translateX(26px);
            -o-transform: translateX(26px);
            transform: translateX(26px);
          }
        }
      }
    }

    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      -webkit-transition: 0.4s;
      -moz-transition: 0.4s;
      -ms-transition: 0.4s;
      -o-transition: 0.4s;
      transition: 0.4s;
      -webkit-border-radius: 40px;
      -moz-border-radius: 40px;
      border-radius: 40px;

      &:before {
        position: absolute;
        content: '';
        height: 20px;
        width: 20px;
        left: 2px;
        bottom: 2px;
        background-color: #fff;
        -webkit-transition: 0.4s;
        -moz-transition: 0.4s;
        -ms-transition: 0.4s;
        -o-transition: 0.4s;
        transition: 0.4s;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
      }
    }
  }
}

.linguise-settings-option {
  margin: 10px;
  background-color: #fff;
  -webkit-box-shadow: 0 10px 30px 0 rgba(160, 166, 190, 0.08);
  -moz-box-shadow: 0 10px 30px 0 rgba(160, 166, 190, 0.08);
  box-shadow: 0 10px 30px 0 rgba(160, 166, 190, 0.08);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;

  &.settings-separator {
    background-color: transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;

    .settings-separator-title {
      display: block;
      font-size: 20px;
      font-weight: bold;
    }
  }

  .items {
    line-height: 50px;
    float: right;
    margin-right: 15px;
  }

  .items-blocks {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;

    &.edit-translation-link {
      ul {
        li {
          margin-bottom: 15px;
          text-align: center;
        }
      }
    }

    .block {
      width: 100%;

      span.linguise-button {
        display: block;
        width: 100%;
        font-weight: bold;
        cursor: unset;
        margin-bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
      }

      .switcher-as-content {
        background-color: #fff;
        height: 100%;
        padding: 30px;
        margin: 0 0 30px 0;
        border-radius: 0 0 4px 4px;

        span {
          font-weight: 600;
          font-size: 12px;
          font-style: normal;
          font-stretch: normal;
          line-height: normal;
          letter-spacing: 0.8px;
        }
      }
    }

    &.flag-width {
      padding-left: 15px;

      span {
        margin-right: 10px;
      }
    }

    &.flag-shape {
      padding-left: 15px;

      input {
        margin: 0;
        padding: 0;
        display: none;

        &:active {
          & + .drinkcard-cc {
            background-color: #fff;
          }
        }

        &:checked {
          & + .drinkcard-cc {
            -webkit-filter: none;
            -moz-filter: none;
            filter: none;
            background-color: #fff;
          }
        }
      }

      .drinkcard-cc {
        cursor: pointer;
        background-size: contain;
        background-repeat: no-repeat;
        display: inline-block;
        width: 100px;
        height: 100px;
        -webkit-transition: all 100ms ease-in;
        -moz-transition: all 100ms ease-in;
        transition: all 100ms ease-in;
        -webkit-filter: brightness(1.8) grayscale(1) opacity(.7);
        -moz-filter: brightness(1.8) grayscale(1) opacity(.7);
        filter: brightness(1.8) grayscale(1) opacity(.7);
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
        margin-right: 50px;

        &:hover {
          -webkit-filter: brightness(1.2) grayscale(.5) opacity(.9);
          -moz-filter: brightness(1.2) grayscale(.5) opacity(.9);
          filter: brightness(1.2) grayscale(.5) opacity(.9);
        }
      }
    }

    &.language-list-display {
      .display-type {
        width: 100%;
        display: block;
        padding-left: 15px;

        input[type="radio"] {
          -ms-transform: scale(1.2);
          -webkit-transform: scale(1.2);
          transform: scale(1.2);
          margin-right: 10px;
        }

        ul {
          display: flex;
          flex-wrap: wrap;
          align-items: center;

          li {
            display: flex;
            align-items: center;
            padding: 0;
            margin: 10px 20px 10px 0;
            min-width: 150px;

            input[type=radio]:checked {
              &::before {
                background-color: #4967F6;
              }
            }

            input[type=radio]:focus {
              border-color: #4967F6;
              box-shadow: 0 0 0 1px #4967F6;
              outline: 2px solid transparent;
            }
          }
        }
      }

      .flag-name {
        margin: 10px 5px;

        ul {
          li {
            display: inline-block;
            min-width: 150px;
            margin: 10px 20px 10px 0;
          }
        }
      }
    }
  }
}

.wp-picker-container .wp-color-result {
  border-color: #ddd !important;
}

.wp-picker-container .wp-color-result.button {
  margin: 0 !important;
  vertical-align: middle;
}

.wp-picker-open + .wp-picker-input-wrap {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px;
}

.wp-picker-input-wrap label {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
}

.linguise_note {
  color: #ff8726;
  margin: 5px 10px;
  display: none;
}

div.wp-picker-holder {
  margin-top: 40px;
  z-index: 999;
  position: absolute;
}

.wp-picker-input-wrap {
  z-index: 999;
  position: absolute;
}

.flag_shadow_element {
  padding: 0 15px;
  box-sizing: border-box;

  p {
    display: flex;
    align-items: center;

    label {
      margin-right: 10px;
      width: 150px;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    input[type="number"] {
      width: 70px;
      margin-left: 10px;
    }
  }
}

.full-width, .linguise-settings-option.settings-separator {
  width: 100%;
  display: inline-block;
}

.width-50-15 {
  width: calc(50% - 20px);
  @media only screen and (max-width: 1100px) {
    width: calc(100% - 20px);
  }
}

.right-float {
  float: right !important;
}

.break {
  flex-basis: 100%;
  height: 0;
}

.rounded {
  background-image: url('../images/flags-rounded/en-us.svg');
}

#translate_into_chosen {
  .highlighted {
    background: #4967F6 !important;
  }
}

.content {
  &.aside {
    .linguise-settings-option {
      box-shadow: none;
    }
  }

  display: flex;
  flex-wrap: wrap;
}

.linguise-setting-label {
  float: left;
  min-width: 150px;
  max-width: calc(100% - 150px);
  overflow: hidden;
  white-space: nowrap;
  -ms-text-overflow: ellipsis;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 50px;
  cursor: pointer;
  padding-left: 15px;
  font-size: 15px;
  display: flex;
  align-items: center;

  &.label-bolder {
    font-weight: bold;
  }

  &.aside-label {
    min-width: unset;
    max-width: unset;
  }

  &.linguise-tippy {
    .material-icons {
      margin-left: 5px;
      font-size: 18px;
    }
  }
}

.linguise-main-wrapper {
  margin-left: -20px;
  font-family: 'Roboto', sans-serif;
  visibility: visible !important;

  * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
  }

  .linguise-left-panel {
    width: calc(100% - 300px);
    height: 100%;
    float: left;
    margin-left: 0;
    button[type="button"],
    input[type="submit"] {
      background-color: #4967F6;
      color: #fff;
      padding: 10px 15px;
      margin: 0;
      min-width: 180px;
      border: 1px solid #4967F6;
      text-transform: uppercase;
      display: inline-block;
      text-decoration: none;
      cursor: pointer;
      text-align: center;
      letter-spacing: 2px;
      transition: all ease 0.5s;
      -webkit-border-radius: 4px;
      -moz-border-radius: 4px;
      border-radius: 4px;

      &.small-button {
        padding: 0 10px;
        min-width: 50px;
        min-height: 40px;
        text-transform: capitalize;
      }

      &:focus {
        box-shadow: none;
      }

      &:hover {
        -webkit-box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
        -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
        box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
      }
    }
    input[type="submit"] {
      float: right;
    }

    .linguise-logo {
      a {
        display: block;
        width: 230px;
        height: 90px;
        margin: auto;
      }
    }

    .linguise-menu-search {
      margin: 20px 10px;
      padding: 10px 5px;
      border: none;
      border-bottom: 1px solid #6294e9;

      .linguise-menu-search-icon {
        font-size: 20px;
        color: #fff;
        vertical-align: text-bottom;
      }

      .linguise-menu-search-input {
        background: transparent;
        color: #fff;
        border: none;
        outline: none;
        padding: 5px;
        font-size: 18px;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;

        &::placeholder {
          color: #fff;
          opacity: 0.5;
        }
      }
    }

    .tabs {
      &.linguise-menu-tabs {
        display: block;
        background-color: transparent;
        height: auto;
        margin: 20px 0;

        li {
          &.tab {
            float: none;
            width: auto;
            height: auto;
            text-align: left;
            position: relative;
            line-height: normal;
            background-color: transparent;

            a {
              &.link-tab {
                padding: 20px;
                opacity: 0.7;
                background-color: transparent;

                &:focus {
                  outline: none;
                  -webkit-box-shadow: none;
                  -moz-box-shadow: none;
                  box-shadow: none;
                }

                &:after {
                  font-family: 'Material Icons';
                  font-size: 24px;
                  vertical-align: text-bottom;
                  position: absolute;
                  right: 15px;
                }

                &.with-submenus {
                  &:not(.expanded):after {
                    content: '\e313';
                  }
                }

                &.active {
                  opacity: 1;
                  background-color: #4c79ca;

                  &.with-submenus {
                    &.expanded {
                      &:after {
                        content: '\e316';
                      }

                      & + .linguise-submenu-tabs {
                        max-height: 500px;
                      }
                    }
                  }

                  &:not(.expanded) {
                    background-color: transparent;
                  }
                }
              }
            }

            .linguise-submenu-tabs {
              display: block;
              max-height: 0;
              background-color: #4c79ca;
              -webkit-transition: max-height cubic-bezier(0.3, 1.1, 0.3, 1.1) 1s;
              -moz-transition: max-height cubic-bezier(0.3, 1.1, 0.3, 1.1) 1s;
              -ms-transition: max-height cubic-bezier(0.3, 1.1, 0.3, 1.1) 1s;
              -o-transition: max-height cubic-bezier(0.3, 1.1, 0.3, 1.1) 1s;
              transition: max-height cubic-bezier(0.3, 1.1, 0.3, 1.1) 1s;

              div {
                &.link-tab {
                  padding: 20px;
                  cursor: pointer;
                  color: #fff;
                  margin-left: 32px;
                  font-size: 16px;
                  opacity: 0.7;

                  &.active {
                    opacity: 1;
                  }
                }
              }
            }

            .menu-tab-icon {
              font-size: 22px;
              vertical-align: sub;
            }

            .tab-title {
              font-size: 16px;
              margin-left: 5px;
              display: inline-block;
              max-width: 75%;
              overflow: hidden;
              -ms-text-overflow: ellipsis;
              text-overflow: ellipsis;
              vertical-align: text-bottom;
            }
          }
        }

        .indicator {
          display: none;
        }
      }

      &.linguise-top-tabs {
        width: 100% !important;
        flex-wrap: wrap;

        li {
          &.tab {
            a {
              &.link-tab {
                &.active {
                  background-color: #4967F6;
                  color: #fff;

                  &:before {
                    display: none;
                  }
                }
              }
            }
          }
        }

        .indicator {
          display: none;
        }
      }
    }
  }

  .linguise-right-panel {
    width: 300px;
    float: left;
    background-color: #fff;
    padding: 64px 20px 0 20px;
    font-size: 14px;
    position: fixed;
    right: 0;
    height: 100%;
    overflow: auto;
    z-index: 15;

    &:before {
      content: '';
      display: block;
      clear: both;
      padding: 1px 0 0 0;
    }

    .tabs {
      &.linguise-top-tabs {
        .indicator {
          background-color: #4967F6;
          z-index: 10;
        }
      }
    }
  }

  .linguise-top-tabs-wrapper {
    background-color: #fff;
    margin: auto;
  }

  .tabs {
    &.linguise-top-tabs {
      width: fit-content !important;

      li {
        &.tab {
          text-transform: capitalize;
          min-width: 200px;
          background-color: #fff;

          a {
            &.link-tab {
              color: #bbb;
              background-color: #fff;
              font-weight: bold;
              padding: 20px;
              font-size: 18px;

              &.active {
                color: #4967F6;
              }

              &:focus {
                -webkit-box-shadow: none;
                -moz-box-shadow: none;
                box-shadow: none;
              }
            }
          }
        }
      }
    }
  }

  .linguise-left-panel-toggle {
    display: none;
    position: fixed;
    top: 120px;
    right: 0;
    cursor: pointer;
    background-color: #fff;
    width: auto;
    height: auto;
    padding: 25px 5px;
    border: 1px solid #ddd;
    opacity: 1;
    z-index: 15;
    -webkit-border-radius: 25px 0 0 25px;
    -moz-border-radius: 25px 0 0 25px;
    border-radius: 25px 0 0 25px;

    .linguise-left-panel-toggle-icon {
      color: #4967F6;
    }
  }
}

#wpfooter {
  display: none;
}

.linguise_saved_wrap {
  position: fixed;
  right: 20px;
  top: 52px;
  z-index: 999;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 4px;
  line-height: 24px;
  display: flex;
  align-items: center;

  span {
    color: #4caf50;
    margin-right: 5px;
  }
}

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

.linguise-left-panel {
  form {
    margin: 0 100px;
  }
}

.linguise-main-wrapper .linguise-left-panel-toggle:hover, .linguise-main-wrapper .linguise-left-panel-toggle:focus {
  opacity: 1;
}

#token_apply {
  width: auto;
  float: none;
  min-width: auto;
  border: unset;
}

.search-result {
  outline: 1px solid #4967F6;
  -webkit-box-shadow: 1px 1px 12px #ccc;
  -moz-box-shadow: 1px 1px 12px #ccc;
  box-shadow: 1px 1px 12px #ccc;
}

.rtl {
  .linguise-main-wrapper {
    margin-left: 0;
    margin-right: -20px;

    .linguise-left-panel {
      margin-left: 0;

      .tabs {
        &.linguise-menu-tabs {
          li {
            &.tab {
              text-align: inherit;
            }
          }
        }
      }
    }

    .linguise-right-panel {
      margin-left: 0;
      margin-right: 300px;
    }

    .linguise-left-panel-toggle {
      left: unset;
      right: 35px;
      -webkit-border-radius: 25px 0 0 25px;
      -moz-border-radius: 25px 0 0 25px;
      border-radius: 25px 0 0 25px;
      left: 0;
    }
  }

  .linguise-setting-label {
    float: right;
  }

  .linguise-switch-button {
    float: left;
  }
}

@media screen and (max-width: 1200px) {
  .linguise-main-wrapper .linguise-right-panel {
    display: none
  }
  .linguise-main-wrapper .linguise-left-panel {
    width: 100%;
    margin-left: 0
  }
  .linguise-main-wrapper .linguise-left-panel .tabs.linguise-top-tabs {
    width: 100% !important;
    flex-wrap: wrap
  }
  .linguise-main-wrapper .linguise-left-panel .tabs.linguise-top-tabs li.tab {
    flex: 0 0 100%
  }
  .linguise-main-wrapper .linguise-left-panel .tabs.linguise-top-tabs li.tab a.link-tab.active {
    background-color: #4967F6;
    color: #fff
  }
  .linguise-main-wrapper .linguise-left-panel .tabs.linguise-top-tabs li.tab a.link-tab.active:before {
    display: none
  }
  .linguise-main-wrapper .linguise-left-panel .tabs.linguise-top-tabs .indicator {
    display: none
  }
  .linguise-main-wrapper .linguise-left-panel-toggle {
    display: block;
    z-index: 99;
  }
  .rtl .linguise-main-wrapper .linguise-left-panel {
    margin-left: 0
  }
}

@media screen and (max-width: 782px) {
  .linguise-left-panel form {
    margin: 0 20px;
  }

  .linguise-settings-option {
    width: calc(100% - 10px);
  }

  .linguise-main-wrapper .linguise-left-panel-toggle {
    right: 0
  }
  .rtl .linguise-main-wrapper .linguise-left-panel-toggle {
    left: 0
  }
}

@media screen and (max-width: 550px) {
  .full-on-mobile {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .linguise-setting-label {
    width: 100%;
    max-width: 100%;
  }

  .linguise-label-inline {
    width: auto;
  }

}

@media screen and (min-width: 1201px) {
  .linguise-main-wrapper .linguise-right-panel {
    display: block !important;
  }
}
.aside-list-wrapper {
  display: flex;
  flex-direction: column;
  align-content: center;
  ul {
    width: 100%;
  }
}

#linguise-chat-toggle {
  display: block;
  width: 100%;
  border-radius: 4px;
  background-color: #4762fa;
  border: 1px solid rgb(71, 98, 250);
  color: #fff;
  padding: 10px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;

  & img {
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
    margin-left: 10px;

    -webkit-animation-name: linguise-spinner;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-duration: 4s;
    animation-name: linguise-spinner;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 2s;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transform-origin: center center;
  }
}

/* WebKit and Opera browsers */
@-webkit-keyframes linguise-spinner {
  from {
    -webkit-transform: rotateY(0deg);
  }
  to {
    -webkit-transform: rotateY(-360deg);
  }
}

/* all other browsers */
@keyframes linguise-spinner {
  from {
    -moz-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  to {
    -moz-transform: rotateY(-360deg);
    -ms-transform: rotateY(-360deg);
    transform: rotateY(-360deg);

  }
}