/*POPUP FILTER*/
.popup {
  display: block;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup--shown {
  display: block;
}

.popup__container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100%;
  width: 100%;
  padding: 80px 0;
}

.popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.popup__content {
  z-index: 101;
  display: flex;
  flex-direction: column;
  max-width: 564px;
  width: 100%;
}

.popup__content--successful-authorization {
  max-width: 452px;
}
.popup__content--request-alternative {
  max-width: 450px;
}

.popup__content--personal-cabinet,
.popup__content--recover-password,
.popup__content--alert {
  max-width: 429px;
}

.popup__header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  background: #343434;
}

.popup__close-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: none;
  outline: none;
  cursor: pointer;
}

.popup__close-btn:hover path {
  stroke: #A4282E;
  transition: 0.3s;
}

.popup__header-title {
  margin: 0;
  font-weight: bold;
  font-size: 32px;
  line-height: 100%;
  color: #FFFFFF;
}

.popup-filter__form {
  display: flex;
  flex-direction: column;
  background: #F9F9F9;
  padding: 40px 40px 64px 40px;
}

.popup-filter__input-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 24px;
}

.popup-filter__input-wrapper label {
  margin-bottom: 16px;
  font-weight: bold;
  font-size: 16px;
  line-height: 100%;
}

.popup-filter__input-wrapper input {
  width: 100%;
  height: 43px;
  padding: 13px 16px;
  font-family: "Circe-regular";
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #FFFFFF;
  border: none;
  outline: none;
}

.popup-filter__result-list {
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin-bottom: 80px;
}

.popup-filter__list-item p:first-child {
  margin-bottom: 16px;
  font-weight: bold;
  font-size: 16px;
  line-height: 140%;
}

.popup-filter__list-item p:last-child {
  margin-bottom: 16px;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
}

.popup-filter__btn-wrapper {
  display: flex;
  justify-content: center;
}

.popup-filter__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 164px;
  height: 51px;
  font-family: "Circe-regular";
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  border: none;
  background: none;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
}

.popup-filter__btn--save {
  margin-right: 10px;
  background-color: #D62631;
  color: #ffffff;
}

.popup-filter__btn--save:hover {
  background-color: #A4282E;
  transition: 0.3s;
}

.popup-filter__btn--cancel {
  color: #D62631;
  border: 1px solid #D62631;
}

.popup-filter__btn--cancel:hover {
  color: #ffffff;
  background-color: #A4282E;
  border: 1px solid #A4282E;
  transition: 0.3s;
}

/*POPUP SUCCESSFUL AUTHORIZATION*/
.successful-authorization {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0 56px;
  background: #F9F9F9;
}

.successful-authorization__text {
  margin: 0 0 24px 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 100%;
}

.successful-authorization__user-name {
  margin: 0 0 12px 0;
  font-weight: bold;
  font-size: 32px;
  line-height: 100%;
}

.successful-authorization__company-name {
  margin: 0 0 66px 0;
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
}

.successful-authorization__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 207px;
  height: 51px;
  font-weight: normal;
  font-size: 16px;
  line-height: 120%;
  text-decoration: none;
  border-radius: 2px;
}

.successful-authorization__btn--portal {
  margin-bottom: 16px;
  color: #ffffff;
  background: #D62631;
}
.successful-authorization__btn--portal:hover {
  background-color: #A4282E;
  transition: 0.3s;
}

.successful-authorization__btn--lk {
  color: #D62631;
  border: 1px solid #D62631;
}
.successful-authorization__btn--lk:hover {
  color: #ffffff;
  background-color: #D62631;
  transition: 0.3s;
}

/*POPUP SUCCESSFUL AUTHORIZATION 2*/
.successful-authorization2 {
  display: flex;
  flex-direction: column;
  padding: 48px 40px 56px 40px;
  background: #F9F9F9;
}

.successful-authorization2__text {
  margin-bottom: 40px;
  font-weight: normal;
  font-size: 24px;
  line-height: 100%;
}

.successful-authorization2__user-name {
  margin-bottom: 8px;
  font-weight: normal;
  font-size: 32px;
  line-height: 100%;
  color: #D62631;
}

.successful-authorization2__company-name {
  margin-bottom: 32px;
  font-weight: normal;
  font-size: 20px;
  line-height: 100%;
  color: #D62631;
}

.successful-authorization2 .popup-btn--portal {
  width: 259px;
}

.successful-authorization2 .popup-btn--lk {
  width: 204px;
}

.successful-authorization2__contract-wrapper {
  max-width: 384px;
  margin-bottom: 72px;
}

.successful-authorization2__contract-title {
  margin-bottom: 16px;
  font-weight: normal;
  font-size: 16px;
  line-height: 100%;
}

/*POPUP REQUEST ALTERNATIVE*/
.request-alternative,
.popup-recover-password2 {
  display: flex;
  flex-direction: column;
  padding: 56px 40px;
  background: #F9F9F9;
}

.request-alternative label {
  margin-bottom: 16px;
  font-family: "Circe-Regular";
  font-weight: normal;
  font-size: 16px;
  line-height: 100%;
}

.request-alternative textarea {
  height: 148px;
  padding: 13px 16px;
  margin-bottom: 72px;
  font-family: "Circe-Regular";
  font-weight: normal;
  font-size: 16px;
  line-height: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: #ffffff;
}

.request-alternative textarea::placeholder {
  font-family: "Circe-Regular";
  font-weight: normal;
  font-size: 16px;
  line-height: 100%;
  color: #343434;
  opacity: 0.3;
}

.request-alternative__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 157px;
  height: 51px;
  font-weight: normal;
  font-size: 16px;
  line-height: 120%;
  color: #ffffff;
  border: none;
  outline: none;
  background: #D62631;
  border-radius: 2px;
  cursor: pointer;
}

.request-alternative__btn:hover {
  color: #ffffff;
  background-color: #A4282E;
  border: 1px solid #A4282E;
  transition: 0.3s;
}

/*PERSONAL CABINET*/
.popup-personal-cabinet {
  display: flex;
  flex-direction: column;
  padding: 32px 40px 56px 40px;
  background: #F9F9F9;
}

.popup-personal-cabinet__title {
  margin-bottom: 24px;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
}

.popup-label {
  position: relative;
  margin-bottom: 16px;
  font-family: "Circe-Regular";
  font-weight: normal;
  font-size: 16px;
  line-height: 100%;
}

.popup-input {
  position: relative;
  width: 100%;
  height: 43px;
  padding: 13px 16px;
  margin-bottom: 32px;
  font-family: "Circe-Regular";
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  border: none;
  outline: none;
  border-radius: 2px;
}

.popup-input:hover,
.popup-input:focus-within {
  padding: 12px 15px;
  border: 1px solid rgba(52, 52, 52, 0.6);
}

.popup-input::placeholder {
  font-family: "Circe-Regular";
  font-size: 16px;
  line-height: 100%;
  color: #343434;
  opacity: 0.3;
}

.popup-password {
  position: relative;
  display: flex;
  flex-direction: column;
}

.popup-password .popup-input {
  padding-right: 42px;
}

.popup-password__btn {
  position: absolute;
  right: 16px;
  top: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 13px;
  border: none;
  outline: none;
  background: transparent url(/local/templates/main/img/password-icon.svg) no-repeat center;
  cursor: pointer;
}

.password-forgot {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 16px;
  line-height: 100%;
  text-decoration: none;
  color: #343434;
}

.password-forgot:hover {
  font-weight: bold;
}

.popup-hide input[type="password"] {
  font: small-caption;
  letter-spacing: 8px;
}

.popup-btn__wrapper {
  display: flex;
  justify-content: space-between;

  width: 100%;
}

.popup-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 157px;
  height: 51px;
  font-weight: normal;
  font-size: 16px;
  line-height: 120%;
  text-align: center;
  color: #D62631;
  outline: none;
  border: none;
  background: transparent;
  border-radius: 2px;
  border: 1px solid #D62631;
  cursor: pointer;
}

.popup-btn:hover {
  transition: 0.3s;
  color: #ffffff;
  background-color: #D62631;
}

.red.popup-btn {
  color: #FFFFFF;
  background: #D62631;
}

.red.popup-btn:hover {
  color: #FFFFFF;
  background: #A4282E;
}

.popup-btn--register {
  width: 176px;
}

/*RECOVER PASSWORD*/
.popup-recover-password {
  display: flex;
  flex-direction: column;
  padding: 32px 40px 56px 40px;
  background: #F9F9F9;
}

.popup-recover-password__title {
  margin-bottom: 24px;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
}

.popup-recover-password__text {
  margin-top: 8px;
  margin-bottom: 67px;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
}

.popup-recover-password .popup-label::after {
  position: absolute;
  content: "*";
  top: -4px;
  margin-left: 4px;
  font-family: "Arial", "sans-serif";
  font-size: 16px;
  line-height: 100%;
  color: #D62631;
}

.popup-btn--recover-password {
  margin: 0 auto;
  width: 183px;
}

.popup-recover-password2 .popup-input {
  margin-bottom: 178px;
}

.popup-btn--send {
  margin: 0 auto;
}

/*PASSWORD CHANGE*/
.popup-change-password {
  display: flex;
  flex-direction: column;
  padding: 56px 40px;
  background: #F9F9F9;
}

.popup-btn--save {
  margin: 39px auto 0 auto;
  width: 166px;
}

/*POPUP ALERT*/
.popup-alert {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 40px 56px;
  background: #F9F9F9;
}

.popup-alert__text {
  max-width: 321px;
  margin-bottom: 96px;
  font-weight: normal;
  font-size: 24px;
  line-height: 120%;
  text-align: center;
}

@media (max-width:450px) {
  .popup-btn__wrapper{
    flex-direction: column;
  }
  .red.popup-btn{
    width: 100%;
    margin-bottom: 16px;
  }
}