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

.contries-localization-select {
  .ant-select-arrow {
    width: 48px;
    height: 48px;
    top: 0;
    right: auto;
    margin: 0;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ant-select {
    &-selector {
      min-height: 48px !important;
      height: auto !important;
      padding: 0 16px 0 46px !important;
      .ant-select-selection-placeholder {
        left: 46px;
        font-weight: $regular;
        color: $grey4;
        line-height: 24px;
        font-size: 16px;
      }
      .ant-select-selection-overflow {
        padding: 2px 0;
        &-item {
          padding: 6px 0 6px 0;
          .ant-select-selection-item {
            margin-bottom: 0 !important;
            margin-top: 0 !important;
          }
        }
      }
    }

    &-selection-search {
      margin-left: 0;

      input {
        font-weight: $semi-bold !important;
        font-size: $small !important;
        line-height: 22px !important;
        caret-color: $black;
      }
    }
    &-selection-item {
      height: 30px;
      border-radius: 123px;
      padding: 0 12px;
      margin-right: 8px;
      font-weight: $medium !important;
      font-size: $small !important;
      background: $grey;
      &-remove {
        width: 16px;
        height: 16px;
        background: $grey;
        display: flex;
        top: 0;
        margin-top: 0;
        align-items: center;
        .anticon-close {
          width: 16px;
          height: 16px;
          background: url('#{$icons-url}/dark/close.svg');
          svg {
            display: none;
          }
        }
      }
    }
  }
  input {
    height: 48px;
    font-weight: $semi-bold !important;
    font-size: $small !important;
    line-height: 22px !important;
  }
}
.contries-localization-select-dropdown {
  .ant-select-item {
    padding: 16px;
    border-bottom: 1px solid $grey;
    background: $white !important;
    &:last-child {
      border-bottom: none;
    }
    &-option-state {
      display: none;
    }
    &.selected-first {
      border-bottom: none;
    }
  }

  .disabled-option {
    opacity: 0.4;
    pointer-events: none;
  }

  .ant-select-selection-search-input {
    font-weight: $semi-bold !important;
    font-size: $small !important;
    line-height: 22px !important;
  }
  .ant-checkbox {
    width: 24px;
    height: 24px;
    &.ant-checkbox-checked .ant-checkbox-inner {
      background: $lightGreen;
      border-color: $lightGreen !important;

      &::after {
        width: 6px;
        height: 10px;
        left: 30%;
        top: 45%;
      }
    }
    &:hover,
    &:active,
    &:focus {
      .ant-checkbox-inner {
        border-color: $lightGreen !important;
      }
    }
    + span {
      padding: 0 8px;
    }

    &-checked::after {
      visibility: hidden !important;
    }

    input {
      width: 24px;
      height: 24px;
      padding: 0;
    }

    &-inner {
      width: 20px;
      height: 20px;
      margin: auto;
      top: 2px;
    }
  }
}
