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

.localization-create-modal {
  .ant-btn {
    &:focus {
      background: $default;
    }
  }
  .localization-create-form {
    .localization__countries-select {
      .ant-select-selection-placeholder {
        font-size: 1rem;
        line-height: 24px !important;
      }
    }
    .ant-form-item-explain-error {
      margin-top: 4px;
      font-size: 12px;
      line-height: 16px;
      font-weight: 400;
    }

    .ant-select-selection-item,
    input {
      line-height: 24px;
      font-size: 1rem;
      ::placeholder {
        font-weight: 400;
        font-size: 16px;
        line-height: 24px;
      }
    }

    .step-info {
      padding: 0.5rem 1rem;
      background-color: $gray12;
      border-radius: 0.5rem;
    }
    &__currency {
      .ant-select {
        &-selector {
          height: 48px !important;

          .ant-select-selection-placeholder {
            line-height: 48px !important;
          }
        }

        &-arrow {
          width: 48px;
          height: 48px;
          top: 0;
          right: 0;
          margin: 0;
          margin-right: 8px;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        &-item {
          font-weight: 500;
        }

        &-selection-item {
          display: flex;
          align-items: center;
          line-height: 24px !important;
        }
      }
    }
  }
  &__actions {
    @include modalActions;
  }
}

.localization-dropdown-menu {
  min-width: unset !important;
  padding: 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.18);
  border-radius: 1rem;

  &.fixed-width {
    width: 246px !important;
  }

  .ant-select-item-option {
    height: 57px;
    border-bottom: 1px solid #f3f3f3;
    &:first-child {
      border-top-left-radius: 1rem;
      border-top-right-radius: 1rem;
    }
    &:last-child {
      border-bottom-left-radius: 1rem;
      border-bottom-right-radius: 1rem;
      border-bottom: none;
    }

    &-content {
      align-self: center;
      font-size: 1rem;
      line-height: 1.5rem;
    }
  }

  .ant-select-item-option-selected {
    background: rgba(37, 127, 252, 0.05);
  }
}
