.extended-profile-section {
  --spacing: 20px;

  position: relative;
  max-width: 100% !important;
}

.donor__intro-text {
  margin: 0 !important;
  padding: 0 !important;
}

/* PERSONAL HEALTH HISTORY */
.donor--personal-health-history .donor-item + .donor-item {
  margin-top: var(--spacing);
}

/* GENETIC TESTING */
.donor--genetic-testing__content {
  position: relative;
}

.donor--genetic-testing__left > * + * {
  padding-top: 20px;
}

.donor--genetic-testing__left p {
  margin: 0 !important;
}

.donor--genetic-testing__right {
  position: relative;
  max-width: max-content;
}

.donor--genetic-testing__right .profile-button {
  position: relative;
  width: auto !important;
}

.donor__condition {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.donor__condition-label {
  background-color: var(--cryomate-light-green, #d9dfd4);
  color: var(--cryomate-teal, #20504e);
  padding: 5px 10px;
  margin-right: 1.4em;
}

/* PERSONAL MOTIVATIONAL */
.donor--personal-motivational__accordions {
  margin-top: calc(var(--spacing) * 1.8);
  box-sizing: border-box;
}

.donor--personal-motivational__accordions .profile-accordion {
  padding: 23px 0;
  border-top: 1px solid var(--cryomate-teal, #20504e);
}

.donor--personal-motivational__accordions .profile-accordion__summary {
  column-gap: 1em;
  font-weight: 700;
}

.donor--personal-motivational__accordions .profile-accordion__content {
  padding-top: 1em;
}

/* ~ Mobile ~ */
@media (max-width: 899px) {
  /* TOP */
  .expanded-profile__top {
    position: relative;
  }

  /* LEFT */
  .expanded-profile__left > * + * {
    margin-top: 30px;
  }

  /* RIGHT */
  .expanded-profile__right {
    margin-bottom: 30px;
  }

  /* REST */
  .expanded-profile__rest,
  .expanded-profile__rest > * + * {
    padding-top: 50px;
  }

  /* DONOR SECTIONS */
  .donor-accordion__content,
  .donor--personal-motivational__content,
  .donor--genetic-testing__content .profile-button,
  .profile-card-grid {
    margin-top: 24px !important;
  }

  .donor--genetic-testing__left .donor__karyotype {
    margin-bottom: 40px;
  }

  .donor--social-history-habits .donor-item + .donor-item {
    margin-top: var(--spacing);
  }

  .donor--personal-motivational__accordions .profile-accordion {
    padding: 15px 0;
  }

  .profile-card-grid {
    margin-bottom: 0 !important;
  }
}

/* ~ DESKTOP ~ */
@media (min-width: 900px) {
  .extended-profile-section {
    max-width: calc(
      var(--max-width, 100%) - (var(--edge-space-lg, 0) * 2)
    ) !important;
  }

  /* TOP */
  .expanded-profile__top {
    display: grid;
    grid-template-columns: 636fr 596fr;
    column-gap: 70px;
    justify-content: space-between;
    margin-bottom: calc(50 * (100vw / var(--design-vw-lg)));
  }

  /* LEFT */
  .expanded-profile__left {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .expanded-profile__left > * + * {
    margin-top: 50px;
  }

  .expanded-profile__left .profile-group__list {
    margin-bottom: 0;
    max-width: 90%;
  }

  /* RIGHT */
  .expanded-profile__right {
    /* refactor from grid to make work yea - position: sticky; top: 0; */
    grid-row: 1;
    grid-column: 2;
  }

  /* REST */
  .expanded-profile__rest > * + * {
    padding-top: 100px;
  }

  .donor-accordion__content,
  .donor--personal-motivational__content,
  .profile-card-grid {
    margin-top: 33px !important;
  }

  /* DONOR SECTIONS */
  /* GENETIC TESTING */
  .donor--genetic-testing__content {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    column-gap: 70px;
  }

  .donor--genetic-testing__right .profile-button + .profile-button {
    margin-top: 17px;
  }

  .donor--genetic-testing__left .donor__karyotype {
    margin-top: 30px;
	max-width: 55ch;
  }

  /* SOCIAL HISTORY & HABITS */
  .donor--social-history-habits .donor-accordion__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 70px;
    row-gap: var(--spacing);
  }

  /* PERSON MOTIVATIONAL */
  .donor--personal-motivational__accordions {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .donor--personal-motivational__column1,
  .donor--personal-motivational__column2 {
    display: inline-block;
    width: calc(50% - 35px);
    margin-bottom: auto;
  }
}
