/* Main container */
.user_profile_information {
  padding: 40px 100px 118px 100px;
  display: flex;
  --cols: 3;
  --gap: 40px;
  gap: var(--gap);
}

/* Sticky mobile confirm button */
.user_profile_information > .main-button {
  display: none;
}

/* Separator */
.user_information_separator {
  border-top: 1px solid var(--grey2);
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Section titles */
.user_profile_information .h3 {
  color: var(--purple1);
  white-space: nowrap;
}

/* Contact + password + account deletion containers */
.user_profile_information > div {
  width: calc(
    100% / var(--cols) - var(--gap) / var(--cols) * (var(--cols) - 1)
  );
}

/* User input field */
.user_input_field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

/* User input field title */
.user_input_field .body3 {
  font-weight: 500;
}

/* Save changes button */
#save-changes,
#save-changes-mobile {
  width: 100%;
}

/* Password field */
.user_password_field {
  position: relative;
}

/* Hide/show button for password */
.user_password_field button {
  border: none;
  background-color: inherit;
  cursor: pointer;
  position: absolute;
  bottom: 18px;
  right: 20px;
}

/* Password input */
.user_password_field input {
  padding: 15px 40px 15px 20px;
}

/* Show password icon */
.user_password_field button.user_show_password img:last-child,
.user_password_field button.user_show_password picture:last-child img {
  display: none;
}

/* Hide password icon */
.user_password_field button.user_hide_password img:first-child,
.user_password_field button.user_hide_password picture:first-child img {
  display: none;
}

/* Hide password icon */
.user_password_field button.user_hide_password {
  bottom: 14px;
}

/* Delete account icon */
.delete_account_icon {
  display: flex;
  gap: 10px;
  border: none;
  cursor: pointer;
  background-color: inherit;
}

/* Delete account red text */
.delete_account_icon .body3 {
  font-family: 'Poppins';
  font-weight: 500;
  color: var(--red1);
}

/* Confirm delete button */
#confirm-delete {
  width: 100%;
}

/* Delete account email input */
.delete_account_form input.body3 {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}

/* Delete account title */
.delete_account_form .body3 {
  margin-bottom: 5px;
  display: inline-block;
  font-weight: 500;
}

/* Delete account title */
.delete_account_form .body5 {
  display: inline-block;
  color: var(--grey1);
  font-weight: 300;
}

/* Hidden delete form */
.delete_account_form.inactive_form {
  height: 0px;
  max-height: 0px;
  pointer-events: none;
  opacity: 0;
}

/* Active delete form */
.delete_account_form.active_form {
  height: auto;
  max-height: 300px;
  pointer-events: all;
  opacity: 1;
  transition: 1s ease;
}

.user_password_field + .user_error_message {
  position: relative;
  top: -15px;
}

/* Email input in user profile */
.user_input_field input:disabled {
  color: black;
}

@media screen and (max-width: 1100px) {
  /* Main container */
  .user_profile_information {
    padding: 20px 50px 60px 50px;
  }
}

@media screen and (max-width: 850px) {
  /* Main container */
  .user_profile_information {
    flex-direction: column;
    position: relative;
    padding: 20px 50px 40px 50px;
  }

  /* Contact + password + account deletion containers */
  .user_profile_information > div {
    width: 100%;
  }

  /* Confirm delete button */
  #confirm-delete {
    height: 45px;
  }

  .desktop_confirm_btn,
  .desktop_confirm_btn .main-button {
    display: none;
  }

  /* Sticky mobile confirm button */
  .user_profile_information > .main-button {
    display: flex;
    position: -webkit-sticky;
    position: sticky;
    height: 45px;
    bottom: 30px;
  }
}

@media screen and (max-width: 767px) {
  /* Main container */
  .user_profile_information {
    padding: 20px 15px 30px 15px;
    gap: 30px;
  }

  /* Section titles */
  .user_profile_information .h3 {
    font-size: 16px;
    line-height: 24px;
  }

  /* Separator */
  .user_information_separator {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  /* User input field */
  .user_input_field {
    margin-bottom: 12px;
  }

  /* Password icon */
  .user_password_field button.user_show_password {
    bottom: 14px;
  }

  /* Password icon */
  .user_password_field button.user_hide_password {
    bottom: 10px;
  }
}
