@import '../../styles/abstracts/variables';

.localization-select {
  padding: 0 20px 20px 20px;
  border-bottom: 1px solid $border2 !important;
  &.localization-select__analytics {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  &__menu {
    padding: 0;
    border-radius: 16px;
    box-shadow: $boxShadow3;
    margin-top: 12px;
    max-height: 390px;
    overflow-y: auto;
    &--title {
      max-width: 272px !important;
      &.unpublish {
        max-width: 200px !important;
      }
    }
    &::-webkit-scrollbar {
      width: 3px !important;
    }
    &::-webkit-scrollbar-thumb {
      background: $gray2;
      border-radius: 16px;
    }

    &::-webkit-scrollbar-track {
      background: transparent;
    }
    .ant-dropdown-menu-item {
      padding: 16px 20px;
      border-bottom: 1px solid $gray12;

      &.selected {
        background: rgba(37, 127, 252, 0.05);
      }
      &:last-child {
        border-bottom: none;
      }
      &:hover {
        background: rgba(37, 127, 252, 0.05);
        &:first-child {
          border-top-left-radius: 16px;
          border-top-right-radius: 16px;
        }
        &:last-child {
          border-bottom-left-radius: 16px;
          border-bottom-right-radius: 16px;
        }
      }
      &.title {
        padding: 0;
        border-bottom: none;
        &:hover {
          background: $white;
          &:first-child {
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
          }
          &:last-child {
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 16px;
          }
        }
      }
    }
  }
  &__unpublished {
    width: 4px;
    height: 4px;
    left: 0;
    background: $orange;
    border-radius: 50%;
    position: absolute;
    top: 6px;
  }
  &__label {
    width: calc(100% - 24px);
  }

  .localization-info {
    .ant-alert-content {
      font-size: 1rem;
      line-height: 22px;
      color: $default;
      opacity: 0.8;
    }
  }
}
.localization-select__warning {
  padding: 8px;
  border-radius: 8px;
  background: $grey;
}
.localization-select__dropdown {
  margin-top: 0;
  max-width: 380px;
  .ant-dropdown-menu {
    max-width: 380px;
    margin-left: auto;
    overflow-x: hidden;
  }
}

.localization-confirmation {
  .ant-modal-header {
    padding: 24px 24px 8px 24px !important;
  }
  .ant-modal-body {
    padding: 0 24px 24px 24px !important;
  }
}

.localization-select-tooltip {
  .ant-tooltip {
    &-inner {
      background: $default;
      padding: 8px;
      text-align: center;
      font-weight: $semi-bold;
      font-size: 11px;
      max-width: 153px;
      line-height: 14px;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
      border-radius: 4px;
    }
    &-arrow-content {
      background: $default;
    }
  }
}
