.leftNav {

  .customerContactEmail {
    word-break: break-all;
  }
}

#sidebar {
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);

    li {
      list-style: none;
    }
  }

  .leftNav {
    display: none;

    .leftNavSubHead {
      display: flex;
      flex-direction: column;
      gap: var(--space-xs);
      padding: 0 var(--space-xs) var(--space-md);

      .welcome-back {
        font-weight: 600;
      }

      .customer-info-label {
        font-weight: 600;
      }
    }

    li {
      &.has-children {
        h4 {
          font-size: var(--font-size-md);
          margin: 0;
          padding: var(--space-xs) 0;
          display: none;
        }
      }

      a {
        display: block;
        padding: var(--space-xs);
        font-size: var(--font-size-md);
        text-decoration: none;

        &:hover {
          background-color: var(--colour-brand-blue-50);
        }
      }
    }
  }
}

@media (min-width: 768px) {
  #sidebar .leftNav {
    display: flex;
  }
}


/* Account History Styles */

.account-history-table {
  background: var(--colour-bg-main);
  border-collapse: separate;
  border-spacing: var(--space-md);
  border: 1px solid var(--colour-brand-grey-100);

  th {
    text-align: left;
    font-weight: 500;
    color: var(--colour-brand-orange-900);
    font-size: var(--font-size-lg);
  }

  .itemsReport {
    width: 100%;

    thead {
      tr {
        th {
          font-size: var(--font-size-md);
          padding-bottom: var(--space-sm);
          border-bottom: 1px solid var(--colour-brand-grey-500);
        }
      }
    }

    tbody {
      tr {

        &:first-child {
          td {
            padding-top: var(--space-sm);
          }
        }
      }
    }
  }
}

.account-warning-actions {
  display: flex;
  justify-content: end;
  gap: var(--space-md);
}

.account-warning-actions-left {
  display: flex;
  justify-content: start;
  gap: var(--space-md);
}

.account-manage-payments-description {
  margin-bottom: var(--space-lg);
}

.account-invoice-cell {
  text-align: center;
}

.account-invoice-icon {
  float: none;
}

.account-date-cell {
  white-space: nowrap;
}

.account-manage-payments {
  /* Container for manage payments section */
}

.accountInfoBox {
  background: var(--colour-brand-pink-100);
  padding: var(--space-md);
  margin: 0 0 var(--space-md);
  display: flex;
  gap: var(--space-md);

  .accountInfoContent {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;

    .accountInfoText {
      .title {
        font-weight: 600;
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-sm);
        line-height: 100%;
        letter-spacing: -1%;
        color: var(--colour-brand-pink-900);
      }

      p {
        margin-bottom: var(--space-sm);
      }
    }

    .accountInfoActions {
        display: flex;
        justify-content: end;
    }
  }
}

@media (min-width: 768px) {
  .accountInfoBox {
    .accountInfoContent {
      flex-direction: row;
      justify-content: space-between;
      width: 100%;
      align-items: end;
    }
  }
}

.account-overdue-payment {
  color: var(--colour-danger);
  font-weight: 600;
}


/* Profile Page */
#profileForm,
.c-pm,
.marketing-preferences-container,
.my-products__container,
.infoButton,
.upgrade-products__container,
.coterminate__container,
.account-resolve__container {
  background: var(--colour-bg-main);
  padding: var(--space-lg);
  border: 1px solid var(--colour-brand-grey-100);
}


/* Advanced Security */
.svgReallyTiny {
  height: 15px;
  width: 15px;
}

.svgGrey {
  fill: #b3b3b3;
}

.secureSettingsFrame {
  border: none;
  width: 1000px;
  height: 600px;
}

@media (max-height: 750px) {
  .secureSettingsFrame {
    width: 1000px;
    height: 470px;
  }
}

.enhancedSecurityNavigationButtonContainer {
  background: var(--colour-bg-main);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
}

.enhancedSecurityNavigationButtonSet {
  display: flex;
  gap: 16px;
}

.enhancedSecurityHolderButton {
  min-width: 130px;
}

.enhancedSecurityHolder {

  h2 {

  }

  table {
    margin-left: 6px;
    width: 100%;

    tr td:first-child {
      font-weight: 700;
    }
  }

  ul {
    margin-top: 5px;
    margin-bottom: 5px;

    li {
      list-style-image: none;
      margin-bottom: 5px;
    }
  }

  .disabledButton {
    background: #999999;
  }
}

body.minimal .enhancedSecurityHolder {
  min-height: 100%;

  &#profileForm {
    background: var(--colour-bg-main);
    padding: var(--space-sm);
    border: none;
  }
}

.enhancedSecurityHolderContentSmall {
  background: var(--colour-bg-main);
  padding: var(--space-sm);
}

.dontWantQuestions {
  width: 20px;
  height: 20px;
  float: left;
  margin-left: 10px;
  margin-right: 10px;
}

.securityHelper {
  padding: 5px 10px 5px 10px;
  color: #666;
  position: absolute;
  background-color: #fafafa;
  margin-left: 155px;
  border: 1px solid #c1c1c1;
  border-radius: 3px;

  ul {
    padding: 0;
    margin-bottom: 5px;

    li {
      color: #666;
      margin-bottom: 1px;
      list-style-type: none;
      list-style-image: none;
    }
  }
}

.advancedSecurityOption {
  border-bottom: 1px solid #bbbbbb;
  margin-bottom: 30px;
  margin-left: 10px;

  p {
    font-size: 20px;
  }

  .buyButton {
    position: relative;
    margin-left: 20px;
    margin-bottom: 10px;
  }
}


/* Marketing Preferences */
.marketing-preference {
  border: 1px solid #e5eaf3;
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  position: relative;

  &:has(input:checked) {
    color: var(--colour-brand-teal-900);
    background: var(--colour-brand-teal-100);
    border: 1px solid transparent;

    &::before {
      content: '';
      display: block;
      position: absolute;
      width: 4px;
      height: 100%;
      background-color: var(--colour-brand-teal-700);
      top: 0;
      left: 0;
    }
  }
}


/* My Products and services */
.myProducts {
  h2 {
    margin-bottom: var(--space-lg);
  }

  h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
  }

  p {
    margin-top: 0;
    margin-bottom: var(--space-md);
  }

  .productBox {
    display: block;
    margin: 0 0 var(--space-lg);
    padding: var(--space-sm);

    table {
      width: 100%;

      &.c-product-service__table {
        border-spacing: 0 0.6em;
        table-layout: fixed;
        width: 100%;

        th:nth-child(1),
        td:nth-child(1) {
          width: 45%;
        }

        th:nth-child(2),
        td:nth-child(2) {
          width: 25%;
        }

        th:nth-child(3),
        td:nth-child(3) {
          width: 25%;
        }

        th:nth-child(4),
        td:nth-child(4) {
          width: 5%;
        }
      }

      .c-licence-end-reminder {
        color: var(--colour-danger);
        margin: 0.7em;
        font-style: italic;
        font-size: 0.9em;
        padding-left: 1em;
      }

      .c-bespoke-price {
        color: var(--colour-brand-grey-500);
        margin: 0.7em 0;
        font-style: italic;
        font-size: 0.9em;
      }

      p.c-product-service__owned-quantity {
        margin: 0.7em;
        padding-left: 1em;
        font-weight: bold;
        font-size: 0.9em;
      }
    }

    td {
      padding: var(--space-2xs) var(--space-sm);
    }
  }

  td.productPrice {
    white-space: nowrap;
    text-align: right;
    font: var(--font-mono);
  }

  td.productInput {
    padding-right: 0;
    width: 40px;
  }

  .productInput input, .productInput select {
    float: right;
  }

  h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
  }

  td.moreProducts {
    padding-top: 15px;
  }

  td.moreProducts a {
    text-decoration: none;
  }

  td.moreProducts img.upDownArrow {
    margin: 0;
    float: none !important;
  }

  td.moreAddons {
    padding-top: var(--space-md);
    font-weight: 600;
  }

  .reorderReminder {
    background: var(--colour-brand-blue-100);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
  }
}

.upDownArrow {
  display: inline-block;
  width: 12px;
  height: 7px;
  background: url(/images/ecom-assets/arrow-down-purple.svg) 50% / 12px no-repeat transparent;
  vertical-align: middle;
  margin-left: 0.5ex;
}

.myProductsItems {
  margin-bottom: var(--space-md);

  th {
    text-align: left;
    font-size: var(--font-size-lg);
  }

  .hub-tcButton {
  }

  .hub-tcButton:hover {
  }
}

.myProductsItems .buyButton,
.textWithButtons a {

}

/* Auto renewal cancellation */
.cancel-renewal {
  h2 {
    margin-bottom: var(--space-lg);
  }

  .my-products__container {
    margin-bottom: var(--space-lg);
  }
}

.c-cancel-renewal {
  .c-cancel-renewal__application-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    align-items: baseline;
  }
}


/* Customer Survey */
.customerSurveyCard {
  background-color: var(--colour-brand-blue-100);
  border-radius: var(--space-md);
  border: 4px solid white;
  padding: var(--space-md);
  margin: 0 0 var(--space-lg);
}

/* Upgrade Addons */
.upgradeAddons {
  h2 {
    margin-bottom: var(--space-md);
  }

  h3.upgrade-addons__select-addons {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
  }

  h3.upgrade-addons__additional-options {
    font-size: var(--font-size-lg);
    margin: var(--space-md) 0;
    text-align: center;
  }
}

/* Upgrade products */
.upgradeProducts {
  h2 {
    margin-bottom: var(--space-md);
  }

  h3.upgrade-products__additional-options {
    font-size: var(--font-size-lg);
    margin: var(--space-md) 0;
    text-align: center;
  }

  .upgradeTitle {
    font-size: var(--font-size-xl);
  }

  .upgradeProducts .upgradeTitle {
    font-size: var(--font-size-xl);
  }

  .upgrade-products__message-unlimited-feature-product {
    font-size: var(--font-size-lg);
    color: var(--colour-warning);
  }

  .upgrade-products__message-advice {
    font-size: var(--font-size-lg);
    margin: var(--space-md) 0;
    text-align: center;
  }

  table.upgradeTable {
    width: 100%;

    .upgradeRow {
      tr& td:first-child {
        padding-right: 10px;
      }

      td&:last-child {
        .upgradeTitle {
          font-size: var(--font-size-md);
          text-align: right;
          padding-right: 10px;
        }
      }

      h3, h4 {
        font-size: var(--font-size-md);
      }
    }
  }
}

/* Co-terminate */
.coTerminate {
  h1.coterminate-heading {
    margin-bottom: var(--space-md);
  }

  h2.coterminate-heading {
    margin-bottom: var(--space-md);
  }

  h3.coterminate-subheading {
    font-size: var(--font-size-xl);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
  }

  .coterminate-question {

  }

  .coterminate-table {
    width: 100%;
    background: var(--colour-brand-pink-100);

    th, td {
      padding: var(--space-xs) var(--space-sm);
    }

    .coterminate-table__heading {
      font-weight: 500;
      font-size: var(--font-size-xl);
      color: var(--colour-brand-pink-900);
    }
  }

  .coterminate-table__totals {
    th, td {
      background: var(--colour-brand-pink-700);
      color: var(--colour-white);
      padding: var(--space-sm);
    }

    .coterminate-table__total-label {
      font-weight: 500;
      font-size: var(--font-size-lg);
    }

    .coterminate-table__total-value {
      font-weight: 600;
    }
  }

  .coterminate-instalment-plan-message {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .coterminate__form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;

    .coterminate__form-field-radio-set-container {
      display: flex;
      flex-direction: column;
      gap: var(--space-sm);

      .coterminate__form-field-radio-container {
        display: flex;
        gap: var(--space-sm);
        align-items: center;
      }
    }

    .coterminate__submit-button-container {
      display: flex;
      justify-content: right;
      margin: 0;
    }

    .coterminate-submit-button {
    }
  }
}

.account-resolve {
  h2 {
      margin-bottom: var(--space-lg);
  }

  th.account-resolve-heading {
      font-size: var(--font-size-xlp);
      font-weight: 500;
      padding-bottom: var(--space-md);
  }

  td.servicesTd {
    padding: var(--space-md) 0;

    &.account-resolve-action-cell {
      vertical-align: bottom;
    }

    h3 {
      font-size: var(--font-size-xl);
      font-weight: 500;
      margin-bottom: var(--space-md);
    }
  }
}


.account-hub-download {

  p.account-hub-download__intro {
    font-size: var(--font-size-lg);
    margin: var(--space-md) 0;

    strong {
      font-weight: 500;
    }
  }

  .DOWNLOAD_understand {
    padding: 20px 20px 15px 60px;
    margin: 30px 0 10px 0;
    font-weight: bold;
  }

  .account-hub-download__contact-us-table td,
  .account-hub-download__contact-us-table-with-heading td {
    padding: 0 var(--space-sm) var(--space-xs) 0;
  }

  ul.FAQ {
    max-width: 768px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: 0;
    padding: 0;

    & > li {
      list-style: none;

      .DownloadFAQ_question {
        text-decoration: none;
        font-size: 20px;
        font-weight: 600;
        display: flex;
        gap: var(--space-md);
        align-items: center;
        color: var(--colour-text);

        .DownloadFAQ_plusminus {
          display: block;
          width: 16px;
          height: 16px;
          background: url(/images/minus.png) no-repeat;
          flex-shrink: 0;

          .DownloadFAQ_plusminusIcon {
            display: block;
          }
        }
      }

      .FAQ-answer {
        display: none;
        margin-left: calc(var(--space-md) + 16px);
        padding: var(--space-sm) 0;

        .account-hub-download__alert,
        .account-hub-download__info {
          display: flex;
          padding: var(--space-sm) var(--space-sm);
          border-radius: var(--space-xs);
          border: 1px solid var(--colour-brand-blue-100);
          gap: var(--space-sm);
          align-items: center;
          background: var(--colour-white);
        }

        .account-hub-download__alert {
          border-color: var(--colour-brand-orange-100);
        }
      }
    }
  }

}
