.fr-profileModal,
.fr-profileModal * {
  box-sizing: border-box;
}

.fr-profileModal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(23, 25, 21, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fr-profileModal.is-open {
  display: grid;
}

.fr-profileModal__box {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  padding: 30px 34px 32px;
  overflow-y: auto;
  border: 1px solid #e4e7df;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(23, 25, 21, .34);
}

.fr-profileModal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e4e7df;
  border-radius: 11px;
  color: #74786f;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.fr-profileModal__close:hover,
.fr-profileModal__close:focus-visible {
  border-color: #5f7154;
  color: #252821;
  outline: none;
}

.fr-profileModal__brand {
  margin-bottom: 12px;
  text-align: center;
}

.fr-profileModal__brand img {
  width: 190px;
  height: 66px;
  object-fit: contain;
}

.fr-profileModal__header {
  margin-bottom: 22px;
  text-align: center;
}

.fr-profileModal__header h2 {
  margin: 0;
  color: #252821;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.fr-profileModal__header p {
  margin: 8px 0 0;
  color: #74786f;
  font-size: 13px;
  line-height: 1.5;
}

.fr-profileModal__message {
  display: none;
  margin: 0 0 15px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.fr-profileModal__message.is-error {
  display: block;
  border: 1px solid #efc7cc;
  color: #8b1f2d;
  background: #fff3f4;
}

.fr-profileModal__message.is-success {
  display: block;
  border: 1px solid #cbd9c4;
  color: #3d5633;
  background: #f0f6ed;
}

.fr-profileForm {
  display: grid;
  gap: 14px;
}

.fr-profileForm__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fr-profileForm__field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.fr-profileForm__field label {
  color: #42483d;
  font-size: 12px;
  font-weight: 800;
}

.fr-profileForm__field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dfe3da;
  border-radius: 10px;
  color: #252821;
  background: #fff;
  font: 500 14px/1 Manrope, Arial, sans-serif;
  outline: none;
}

.fr-profileForm__field input:focus {
  border-color: #5f7154;
  box-shadow: 0 0 0 3px rgba(95, 113, 84, .13);
}

.fr-profileForm__field small {
  color: #858a80;
  font-size: 10px;
  line-height: 1.4;
}

.fr-profileForm__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 4px;
}

.fr-profileForm__submit,
.fr-profileForm__logout {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.fr-profileForm__submit {
  border: 1px solid #171915;
  color: #171915;
  background: #c8de5b;
  cursor: pointer;
}

.fr-profileForm__submit:hover,
.fr-profileForm__submit:focus-visible {
  background: #d4e878;
}

.fr-profileForm__submit:disabled {
  opacity: .65;
  cursor: wait;
}

.fr-profileForm__logout {
  border: 1px solid #dfe3da;
  color: #4e5549;
  background: #f5f7f3;
}

.fr-profileForm__logout:hover,
.fr-profileForm__logout:focus-visible {
  border-color: #5f7154;
  color: #252821;
}

@media (max-width: 620px) {
  .fr-profileModal {
    align-items: start;
    padding: 12px;
  }

  .fr-profileModal__box {
    margin-top: 10px;
    padding: 26px 18px 22px;
    border-radius: 18px;
  }

  .fr-profileModal__brand img {
    width: 165px;
    height: 58px;
  }

  .fr-profileForm__grid,
  .fr-profileForm__actions {
    grid-template-columns: 1fr;
  }
}
