.user-edit-page {
  min-height: 60vh;
}

.user-edit-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.user-edit-title-row h1 {
  margin: 0 0 7px;
  font-family: Roboto, sans-serif;
  font-weight: 700;
}

.user-edit-title-row p {
  margin: 0;
}

.user-edit-account-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 22px;
  background: #f7f8f8;
  border: 1px solid #e3e6e8;
  border-left: 3px solid #28a745;
}

.user-edit-account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  background: #2d3438;
  font: 700 17px/1 Roboto, sans-serif;
}

.user-edit-account-copy {
  min-width: 0;
}

.user-edit-account-copy strong {
  display: block;
  margin-bottom: 3px;
  color: #272b2e;
  font: 700 16px/1.35 Roboto, sans-serif;
}

.user-edit-account-copy span {
  color: #777;
  font: 400 13px/1.5 Roboto, sans-serif;
}

.user-edit-password-link {
  margin-left: auto;
}

.user-edit-form {
  display: grid;
  gap: 20px;
}

.user-edit-card {
  background: #fff;
  border: 1px solid #e3e6e8;
}

.user-edit-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid #eceeef;
}

.user-edit-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #218838;
  background: #eef8f0;
}

.user-edit-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-edit-card-heading h2 {
  margin: 0 0 4px;
  color: #272b2e;
  font: 700 19px/1.3 Roboto, sans-serif;
}

.user-edit-card-heading p {
  margin: 0;
  color: #777;
  font: 400 13px/1.55 Roboto, sans-serif;
}

.user-edit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 22px;
}

.user-edit-field {
  min-width: 0;
}

.user-edit-field-full {
  grid-column: 1 / -1;
}

.user-edit-field label {
  display: block;
  margin-bottom: 7px;
  color: #454b4e;
  font: 500 13px/1.4 Roboto, sans-serif;
}

.user-edit-field input {
  width: 100%;
  height: 44px;
  padding: 9px 12px;
  border: 1px solid #d7dbde;
  border-radius: 2px;
  color: #272b2e;
  background: #fff;
  font: 400 14px/1.4 Roboto, sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.user-edit-field input:focus {
  outline: 0;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, .10);
}

.user-edit-field input[readonly] {
  color: #777;
  background: #f4f5f5;
  cursor: default;
}

.user-edit-field small {
  display: block;
  margin-top: 6px;
  color: #8a8f92;
  font: 400 12px/1.45 Roboto, sans-serif;
}

.user-edit-required {
  color: #c0392b;
}

.user-edit-address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) 130px;
  gap: 18px 20px;
  grid-column: 1 / -1;
}

.user-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 19px 22px;
  background: #f7f8f8;
  border: 1px solid #e3e6e8;
}

.user-edit-actions .user-button {
  min-width: 126px;
}

.user-edit-feedback {
  display: none;
  margin-bottom: 18px;
  padding: 13px 15px;
  color: #1f6b31;
  background: #eef8f0;
  border: 1px solid #cfe8d4;
  font: 400 13px/1.5 Roboto, sans-serif;
}

.user-edit-feedback.is-visible {
  display: block;
}

@media (max-width: 767px) {
  .user-edit-title-row {
    margin-bottom: 18px;
  }

  .user-edit-account-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 17px;
  }

  .user-edit-password-link {
    width: 100%;
    margin-left: 66px;
  }

  .user-edit-fields,
  .user-edit-address-grid {
    grid-template-columns: 1fr;
  }

  .user-edit-field-full,
  .user-edit-address-grid {
    grid-column: auto;
  }

  .user-edit-card-heading,
  .user-edit-fields {
    padding-left: 17px;
    padding-right: 17px;
  }

  .user-edit-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 17px;
  }

  .user-edit-actions .user-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .user-edit-password-link {
    margin-left: 0;
  }
}
