/* 🚧 WIP 🚧: BEM naming convention and file organization cleanup need to be completed for these styles */
.cpap__customer-personal-information {
  position: relative;
  margin-bottom: 64px;
  margin-top: 24px;
  @media (max-width: 767.96px) {
    margin-top: 12px;
  }
  .cpap__customer-personal-information__breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style-type: none;
    padding: 0;
    margin: 0;
    a {
      font-size: var(--bs-body-font-size);
      font-weight: var(--bs-body-font-weight-400);
      line-height: var(--bs-body-line-height-17);
      color: var(--cpap-text-text-gray);
      text-decoration: none;
    }
    .cpap__customer-personal-information__breadcrumbs-item {
      display: flex;
      &:last-child {
        a {
          color: var(--cpap-primary-soft-black);
        }
      }
    }
  }
  .cpap__customer-personal-information__marketing-email-checkbox-container {
    display: block;
    input {
      padding: 0;
      height: initial;
      width: initial;
      margin-bottom: 0;
      display: none;
      cursor: pointer;
      &:checked {
        & + label {
          &:after {
            content: '';
            display: block;
            position: absolute;
            top: 4px;
            left: 9px;
            width: 6px;
            height: 11px;
            border: solid var(--cpap-primary-orange);
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
          }
          &:before {
            border-color: var(--cpap-primary-orange);
          }
        }
      }
    }
    label {
      position: relative;
      cursor: pointer;
      display: flex;
      font-size: var(--bs-body-font-size);
      font-weight: var(--bs-body-font-weight);
      line-height: var(--bs-body-line-height-17);
      color: var(--cpap-primary-black);
      &:before {
        content: '';
        -webkit-appearance: none;
        background-color: transparent;
        border: 1px solid var(--cpap-text-text-gray);
        padding: 10px;
        width: 24px;
        height: 24px;
        display: inline-block;
        border-radius: 4px;
        position: relative;
        vertical-align: middle;
        cursor: pointer;
        top: -2px;
        margin-right: 6px;
      }
    }
  }
  hr {
    margin: 0;
    border: none;
    opacity: 1;
    height: 1px;
    width: 100%;
    background: var(--cpap-stroke-gray);
  }
  .cpap__customer-personal-information__contact-details {
    border-radius: 8px;
    background-color: var(--cpap-primary-beige);
    .cpap__customer-personal-information__section-header--contact-details {
      padding: 24px 24px 12px 24px;
      @media (max-width: 820px) {
        flex-wrap: wrap;
        h4 {
          width: 100%;
          margin-bottom: 20px;
        }
      }
      @media (max-width: 767.96px) {
        padding: 20px;
      }
      .cpap__customer-personal-information__button-container {
        gap: 0;
        @media (max-width: 767.96px) {
          display: block;
        }
        p {
          margin: 0 3px 6px 0;
          font-size: var(--bs-body-font-size);
          color: var(--cpap-primary-soft-black);
          font-weight: var(--bs-body-font-weight);
          line-height: var(--bs-body-line-height-17);
        }
      }
    }
    .cpap__customer-personal-information__contact-details-form {
      .form-group-list {
        padding: 0 24px 20px 24px;
        display: flex;
        flex-wrap: wrap;
        gap: 62px;
        @media (max-width: 820px) {
          gap: 16px;
        }
        @media (max-width: 767.96px) {
          padding: 0 20px 24px 20px;
        }
        .form-group {
          min-width: 156px;
          display: flex;
          flex-direction: column;
          @media (max-width: 820px) {
            width: 100%;
          }
          label {
            font-size: 12px;
            color: var(--cpap-text-text-gray);
            font-weight: var(--bs-body-font-weight-400);
            line-height: 150%;
            margin-bottom: 4px;
          }
          span {
            font-size: var(--bs-body-font-size-18);
            color: var(--cpap-primary-soft-black);
            font-weight: var(--bs-body-font-weight);
            line-height: var(--bs-body-line-height-24);
          }
        }
      }
      .checkbox-and-reset {
        border-top: 1px solid var(--cpap-stroke-gray);
        padding: 20px 24px 24px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        @media (max-width: 820px) {
          flex-wrap: wrap;
          gap: 24px;
        }
        @media (max-width: 767.96px) {
          padding: 24px 20px;
        }
        a {
          text-decoration: none;
          border-bottom: 1px solid var(--cpap-primary-orange);
          padding-bottom: 4px;
          color: var(--cpap-primary-soft-black);
          font-size: var(--bs-body-font-size);
          font-weight: var(--bs-body-font-weight-700);
          line-height: var(--bs-body-line-height-17);
        }
        .checkbox-and-btn {
          display: flex;
          align-items: center;
          gap: 32px;
          @media (max-width: 820px) {
            flex-wrap: wrap;
            width: 100%;
            gap: 10px;
            .cpap__customer-personal-information__marketing-email-checkbox-container {
              width: 100%;
            }
          }
        }

        .cpap__customer-personal-information__marketing-email-loading-container {
          display: none;
          justify-content: center;
          align-items: center;
          height: 273px;
          position: fixed;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
          width: 100%;
          height: 100%;
          z-index: 99999999999;
          background: var(--cpap-overlay-dark);

          &.cpap__customer-personal-information__marketing-email-loading-container--active {
            display: flex;
          }

          .spinner {
            width: 11.2px;
            height: 11.2px;
            border-radius: 11.2px;
            box-shadow: 28px 0px 0 0 rgba(255, 96, 10, 0.2),
              22.7px 16.5px 0 0 rgba(255, 96, 10, 0.4), 8.68px 26.6px 0 0 rgba(255, 96, 10, 0.6),
              -8.68px 26.6px 0 0 rgba(255, 96, 10, 0.8), -22.7px 16.5px 0 0 #ff600a;
            animation: cpap-spin 1.4s infinite linear;
          }
        }
      }
    }
  }
  .cpap__customer-personal-information__treatment-profile {
    border-radius: 8px;
    background-color: var(--cpap-primary-beige);
    padding: 0 24px;
    padding-bottom: 24px;
    margin-top: 32px;
    @media (max-width: 767.96px) {
      margin-top: 20px;
      padding: 0 20px 20px 20px;
      .cpap__customer-personal-information__section-header--treatment-profile {
        padding: 20px 0;
      }
    }
    .cpap__customer-personal-information__treatment-profile-list {
      display: flex;
      gap: 32px;
      @media (max-width: 820px) {
        flex-wrap: wrap;
        gap: 20px;
      }
      .cpap__customer-personal-information__treatment-profile-box {
        border-radius: 8px;
        background: var(--cpap-primary-white);
        .doctor-detail-header {
          padding: 16px;
          border-bottom: 1px solid var(--cpap-stroke-gray);
          font-size: var(--bs-body-font-size);
          font-weight: var(--bs-body-font-weight-700);
          line-height: var(--bs-body-line-height-17);
          color: var(--cpap-primary-soft-black);
        }
        .doctor-detail-box-list,
        .preferred-rx-settings-list,
        .doctor-detail-box-list {
          padding: 16px;
        }
        .preferred-rx-box,
        .doctor-detail-box {
          margin-bottom: 16px;
          &:last-child {
            margin-bottom: 0;
          }
          span {
            font-size: 12px;
            color: var(--cpap-text-text-gray);
            font-weight: var(--bs-body-font-weight-400);
            line-height: 150%;
            margin-bottom: 4px;
          }
          div {
            font-size: var(--bs-body-font-size-18);
            color: var(--cpap-primary-soft-black);
            font-weight: var(--bs-body-font-weight);
            line-height: var(--bs-body-line-height-24);
          }
        }
        .preferred-rx-settings-list {
          column-count: 2;
          gap: 20px;
          @media (max-width: 767.96px) {
            column-count: initial;
          }
          .preferred-rx-box {
            &:last-child {
              &:after {
                content: '';
                display: block;
                height: 80px;
                @media (max-width: 767.96px) {
                  height: auto;
                }
              }
            }
          }
        }
      }
      .patient-details {
        width: 24%;
        @media (max-width: 820px) {
          width: 100%;
        }
      }
      .preferred-rx-settings {
        width: 40%;
        @media (max-width: 820px) {
          width: 100%;
        }
      }
      .doctor-detail {
        width: 31%;
        @media (max-width: 820px) {
          width: 100%;
        }
      }
    }
  }
  .cpap__customer-personal-information__treatment-profile--empty {
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .cpap__customer-personal-information__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    @media (max-width: 767px) {
      flex-wrap: wrap;
      padding-bottom: 20px;
    }
    h4 {
      margin: 0;
      color: var(--cpap-primary-soft-black);
      font-size: var(--bs-body-font-size);

      font-weight: var(--bs-body-font-weight-700);
      line-height: var(--bs-body-line-height-17);
    }
    .cpap__customer-personal-information__button-container {
      display: flex;
      align-items: center;
      gap: 16px;
      @media (max-width: 767.96px) {
        display: none;
      }
      button.btn {
        padding: 9px 24px;
        border-radius: 28px;
        border: 1px solid var(--cpap-primary-soft-black);
        background: var(--cpap-primary-soft-black);
        font-size: var(--bs-body-font-size);

        font-weight: var(--bs-body-font-weight-700);
        line-height: var(--bs-body-line-height-17);
        text-transform: capitalize;
        color: var(--cpap-text-light-on-plum);
        opacity: 0.3;
      }
      a {
        text-decoration: none;
        border-bottom: 1px solid var(--cpap-primary-orange);
        padding-bottom: 4px;
        color: var(--cpap-primary-soft-black);
        font-size: var(--bs-body-font-size);
        font-weight: var(--bs-body-font-weight-700);
        line-height: var(--bs-body-line-height-17);
      }
    }
  }
  h3 {
    margin: 40px 0 24px 0;
    color: var(--cpap-primary-soft-black);
    font-size: var(--bs-body-font-size-24);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height-32);
    @media (max-width: 820px) {
      margin-top: 32px;
    }
  }
  .cpap__customer-personal-information__request-sent-notification {
    border-radius: 8px;
    border: 2px solid var(--cpap-primary-orange);
    background: var(--cpap-primary-white);
    box-shadow: 0px -4px 66px 0px rgba(0, 0, 0, 0.08);
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 503px;
    display: none;
    &.cpap__customer-personal-information__request-sent-notification--is-visible {
      display: flex;
    }
    .cpap__customer-personal-information__request-sent-notification-container {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    button {
      border: none;
      background: transparent;
    }
  }
}
