.customer-account {
  align-items: center;
  display: flex;
  flex-direction: column;

  @media (min-width: 990px) {
    align-items: stretch;
    flex-direction: row;
    height: calc(100vh - 80px);
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:active,
  input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #090909 !important;
  }
}

.customer-account__img-container {
  width: 100%;
  height: 450px;
  overflow: hidden;

  @media (min-width: 640px) {
    height: 800px;
  }

  @media (min-width: 990px) {
    flex: 0 0 60%;
    height: 100%;
  }

  @media (min-width: 1100px) {
    flex: 0 0 66%;
  }

  img {
    display: block;
    object-fit: cover;
    height: 100%;
  }
}

.customer-account__form {
  display: flex;
  height: 100%;
  width: 100%;
  background-color: #fff;

  @media (min-width: 990px) {
    flex: 0 0 40%;
  }

  @media (min-width: 1100px) {
    flex: 0 0 34%;
  }
}

.customer-account__form-wrapper {
  width: 100%;
}

.customer-account__form-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px;
  border-block: 4px solid #F7F7F7;

  a {

    @media (min-width: 990px) {
      align-self: flex-end;
      margin-bottom: 4px;
    }
  }
}

.customer-account__form-wrapper {

  #recover,
  #recover+div,
  #recover:target~#login,
  #recover:target~#login+div {
    display: none;
  }

  #recover:target {
    display: flex;
  }

  #recover:target+div {
    display: block;
  }
}

.customer-account__form-heading {
  color: #090909;
  font-size: 32px;
  font-weight: 700;
  line-height: 90%;
  letter-spacing: -0.64px;
  margin: 0;
  text-transform: uppercase;

  @media (min-width: 990px) {
    font-size: 40px;
    letter-spacing: -0.8px;
  }
}

.customer-account__form-container {
  @media (min-width: 990px) {
    height: 100%;
  }

  .form__message-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 0.25rem;
    color: #155724;
    font-weight: 700;
    margin-block-end: 1.4rem;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 4px;
    line-height: normal;

    @media (min-width: 990px) {
      line-height: unset;
    }
  }

  form {
    display: flex;
    flex-direction: column;

    @media (min-width: 990px) {
      height: calc(100% - 68px);
    }
  }
}

.customer-account__form-container--height form {
  @media (min-width: 990px) {
    height: calc(100% - 104px);
  }
}

.customer-account__form-fields {
  margin-block: 120px;
  padding-inline: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;

  @media (min-width: 990px) {
    margin-block: auto;
  }

  .form__message-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.25rem;
    color: #721c24;
    font-weight: 700;
    margin-block-end: 1.4rem;
    padding: 0.75rem 1rem;

    .form__message {
      display: flex;
      gap: 4px;
      margin-bottom: 0;

      svg {
        height: 1.4rem;
        margin-inline-end: 0;
        vertical-align: middle;
        width: 1.4rem;
      }
    }

    ul {
      margin-block: 8px 0;
    }
  }

  .mandatory-field {
    color: #9F9F9F;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    line-height: 90%;
    letter-spacing: -0.24px;
    margin-block: 0 8px;
    text-transform: uppercase;
  }

  input:not([type="checkbox"]) {
    width: 100%;
    padding: 19px 11px 8px;
    border: 2px solid #9F9F9F;
    border-radius: 0;
    font-size: 16px;
    color: #090909;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-weight: 700;
    line-height: normal;

    &::placeholder {
      color: #0000;
      font-size: 0;
    }
  }

  input:not([type="checkbox"])~label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #9F9F9F;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    font-weight: 700;
    text-transform: uppercase;
  }

  input:not([type="checkbox"]):focus+label,
  input:not(:placeholder-shown):not([type="checkbox"])+label {
    top: 12px;
    font-size: 8px;
  }

  .custom-button {
    margin: 8px 0 0 auto;
  }

  .note {
    margin-top: 8px;
    color: #9f9f9f;
    font-size: 10px;
    line-height: 120%;
    font-weight: 700;
    text-transform: uppercase;

    h6 {
      color: #090909;
      font-size: 12px;
      font-weight: 700;
      line-height: 120%;
      text-transform: uppercase;
      margin: 0 0 4px;
    }

    p {
      margin: 0;
    }
  }
}

.customer-account__form-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 12px 12px;
  border-block: 4px solid #F7F7F7;
  margin-right: 12px;
}

.customer-account__form-checkbox {
  display: flex;
  margin-top: 16px;
  align-items: center;
  gap: 12px;

  label {
    color: #090909;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
  }

  input {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid #090909;
    border-radius: 50%;
    margin: 0;
    transition: all 0.3s ease;
    cursor: pointer;

    &:checked {
      background-color: #090909;
      outline-offset: -3px;
      outline: 2px solid #ffffff;
    }
  }
}

:focus-visible {
  outline: none;
}

.post-account {
  display: flex;
  gap: 4px;
  background-color: #F7F7F7;
  padding-block: 4px;

  .section-header {
    padding: 80px 12px 12px;
    background-color: #fff;

    @media screen and (min-width: 990px) {
      padding: 140px 0 12px 12px;

    }
  }

  .heading {
    color: #090909;
    font-size: 32px;
    font-weight: 700;
    line-height: 90%;
    letter-spacing: -0.64px;
    text-transform: uppercase;
    margin: 0;

    @media screen and (min-width: 990px) {
      font-size: 40px;
      letter-spacing: -0.8px;
    }
  }
}

.post-account__sidebar {
  flex: 1 0 0;
  display: none;

  @media (min-width: 990px) {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sidebar-link {
    display: flex;
    justify-content: space-between;
    color: #090909;
    font-size: 16px;
    font-weight: 700;
    line-height: 90%;
    letter-spacing: -0.32px;
    text-transform: uppercase;
    padding: 12px;
    background-color: #fff;
    -webkit-tap-highlight-color: transparent;

    .checkbox-btn {
      width: 14px;
      height: 14px;
      display: block;
      border-radius: 50%;
      outline: 1px solid #ffffff;
      outline-offset: -2px;
      border: 1px solid #090909;
      transition: background-color 0.3s ease;
    }
  }

  .sidebar-link--active {
    .checkbox-btn {
      background-color: #090909;
    }
  }

  .sidebar-footer {
    padding: 40px 12px 12px;
    background-color: #fff;
    height: 100%;
  }

  .sidebar-footer__contact {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;

    p {
      margin: 0;
      color: #9F9F9F;
      font-size: 12px;
      font-weight: 700;
      line-height: 90%;
      letter-spacing: -0.24px;
    }
  }

  .sidebar-footer__btn {
    max-width: 345px;
  }
}

.post-account__body {
  flex: 2 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;

  .section-header .heading+.heading {
    display: none;
  }

  :is(.body-button) {
    display: none;
  }

  @media screen and (max-width: 990px) {
    .section-header {
      .heading:first-child {
        display: none;
      }

      .heading:last-child {
        display: block;
      }
    }

    .body-button {
      background-color: #fff;
      padding: 12px;
      display: block;

      h6 {
        color: #090909;
        font-size: 16px;
        font-weight: 700;
        line-height: 90%;
        letter-spacing: -0.32px;
        margin-bottom: 40px;
        text-transform: uppercase;
      }

      .body-button__contact {
        display: flex;
        gap: 2px;
        margin-bottom: 40px;

        p {
          margin: 0;
          color: #9F9F9F;
          font-size: 12px;
          font-weight: 700;
          line-height: 90%;
          letter-spacing: -0.24px;
        }
      }
    }
  }

  .body-info {
    background-color: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;

    +.body-info {
      height: 100%;
    }

    h6 {
      color: #090909;
      font-size: 16px;
      font-weight: 700;
      line-height: 90%;
      letter-spacing: -0.32px;
      text-transform: uppercase;
      margin-bottom: 20px;
    }

    p {
      margin: 0;
      color: #090909;
      font-size: 12px;
      font-weight: 700;
      line-height: 90%;
      letter-spacing: -0.24px;
      text-transform: uppercase;
      display: flex;

      @media screen and (max-width: 990px) {
        gap: 40px;
        justify-content: space-between;
      }

      @media screen and (min-width: 990px) {
        span:first-child {
          display: inline-block;
          max-width: 222px;
          width: 100%;
        }
      }

      span+span {
        color: #9F9F9F;

        @media screen and (max-width: 990px) {
          text-align: end;
          line-height: 1;
        }
      }
    }

    p+P {
      margin-top: 12px;
    }

    .body-info__btn {
      margin-top: 40px;
      margin-left: auto;

      @media screen and (min-width: 990px) {
        margin-top: auto;
      }
    }
  }
}

.post-account__body-account {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  transition: display 0.3s ease;
}

#account:target {
  display: flex;
}

#order:target {
  display: flex;
}

#order:target~#account {
  display: none;
}

.post-account__body-orders {
  flex-direction: column;
  gap: 4px;
  display: none;
  transition: display 0.3s ease;

  @media screen and (min-width: 990px) {
    height: 100%;
  }

  .orders-empty {
    justify-content: space-between;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .order-empty__btn {
    margin-block: 40px 12px;
    width: 100%;
    padding-inline: 12px;

    @media screen and (min-width: 990px) {
      margin: 0px 12px 12px auto;
      max-width: 345px;
      padding-inline: 0;
    }
  }

  .orders-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
  }

  .orders-list__item {
    background-color: #fff;
    padding: 12px;
    height: 100%;
  }

  .orders-list__item-details {
    display: flex;
    gap: 12px;

    @media screen and (max-width: 640px) {
      flex-direction: column;
    }
  }

  .orders-list__item-btns {
    margin-block: 28px 0;
    margin-left: auto;

    @media screen and (min-width: 640px) {
      margin-top: auto;

    }
  }

  .orders-list__item-img-container {
    height: 140px;

    @media screen and (min-width: 640px) {
      height: 210px;
      aspect-ratio: 1/1;
    }

    img {
      height: 100%;
      object-fit: contain;
    }
  }

  .orders-list__item-meta {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 35px;

    @media screen and (min-width: 640px) {
      max-width: 245px;
      gap: 0;
    }

    @media screen and (min-width: 1100px) {
      max-width: 345px;
    }
  }

  .order-index {
    color: #9F9F9F;
    font-size: 10px;
    font-weight: 700;
    line-height: 90%;
    letter-spacing: -0.2px;
    margin-bottom: 20px;
    text-transform: uppercase;
  }

  .order-number,
  .orders-list__item-meta-bottom {
    display: flex;
    justify-content: space-between;
    color: #090909;
    font-size: 16px;
    font-weight: 700;
    line-height: 90%;
    letter-spacing: -0.32px;
    text-transform: uppercase;
    gap: 12px;
  }

  .orders-list__item-meta-bottom {

    span+span {
      color: #9F9F9F;
    }
  }

  .orders-list__item-meta-center {
    tbody {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    tr {
      display: flex;
      justify-content: space-between;
      color: #090909;
      font-size: 12px;
      font-weight: 700;
      line-height: 90%;
      letter-spacing: -0.24px;
      text-transform: uppercase;
      gap: 20px;

      td+td {
        color: #9F9F9F;
        text-align: end;
      }
    }
  }
}

.post-account__body-orders-details {
  display: flex;

  .orders-details {
    background-color: #fff;
    padding: 64px 12px 12px;
  }

  .orders-details__container {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;

    @media screen and (min-width: 640px) {
      max-width: 467px;
    }

    @media screen and (min-width: 1100px) {
      max-width: 567px;
    }

    h5 {
      color: #090909;
      font-size: 16px;
      font-weight: 700;
      line-height: 90%;
      letter-spacing: -0.32px;
      text-transform: uppercase;
      margin: 0 0 20px;
    }

    p {
      color: #9F9F9F;
      text-align: justify;
      font-size: 12px;
      font-weight: 700;
      line-height: 140%;
      letter-spacing: -0.24px;
      text-transform: uppercase;
      margin: 0;
    }

    .orders-total {
      display: flex;
      justify-content: space-between;

      @media screen and (min-width: 640px) {
        margin-top: 40px;
      }

      h5 {
        margin-bottom: 0;
      }

      p {
        color: #090909;
        font-size: 16px;
        line-height: 90%;
        letter-spacing: -0.32px;
      }
    }
  }

  .orders-details__table {
    width: 100%;

    tbody {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    tr {
      display: flex;
      justify-content: space-between;
      color: #090909;
      font-size: 12px;
      font-weight: 700;
      line-height: 90%;
      letter-spacing: -0.24px;
      text-transform: uppercase;

      td+td {
        color: #9F9F9F;
        text-align: end;
      }
    }
  }

  .orders-list__item-meta {
    @media screen and (max-width: 640px) {
      gap: 20px;
    }
  }
}

.post-account__body--address {

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:active,
  input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #090909 !important;
  }

  .body-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .body-address__list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    font-style: normal;
  }

  .body-address__item {
    padding: 12px;
    background-color: #fff;
  }

  .body-address__title {
    color: #090909;
    font-size: 16px;
    font-weight: 700;
    line-height: 90%;
    letter-spacing: -0.32px;
    margin-bottom: 20px;
    font-style: normal;
    text-transform: uppercase;
  }

  .body-address__details p {
    margin: 0;
    color: #090909;
    font-size: 12px;
    font-weight: 700;
    line-height: 90%;
    letter-spacing: -.24px;
    text-transform: uppercase;
    display: flex;

    +p {
      margin-top: 12px;
    }

    @media screen and (max-width: 990px) {
      gap: 40px;
      justify-content: space-between;

      span+span {
        text-align: end;
        line-height: 1;
      }
    }

    @media screen and (min-width: 990px) {
      span:first-child {
        display: inline-block;
        max-width: 222px;
        width: 100%;
      }
    }

    span+span {
      color: #9f9f9f;
    }
  }

  .body-address__buttons {
    display: flex;
    justify-content: end;
    gap: 18px;
    margin-top: 20px;
    align-items: center;

    @media screen and (min-width: 640px) {
      gap: 40px;
    }

    .update-button {
      width: 100%;

      @media screen and (min-width: 640px) {
        max-width: 345px;
      }
    }
  }

  .body-address__form {
    /* display: none; */

    .body-address__title {
      margin-bottom: 40px;
    }
  }

  .body-address__form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 567px;

    p {
      flex-basis: 100%;
      text-align: end;
      color: #9F9F9F;
      font-size: 12px;
      font-weight: 700;
      line-height: 90%;
      letter-spacing: -0.24px;
      margin-bottom: 0;
    }

    input:not([type="checkbox"]),
    select {
      width: 100%;
      padding: 19px 11px 8px;
      border: 2px solid #9F9F9F;
      border-radius: 0;
      font-size: 12px;
      color: #090909;
      background: transparent;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      outline: none;
      font-weight: 700;
      line-height: normal;

      &::placeholder {
        color: #0000;
        font-size: 0;
      }

      @media screen and (min-width: 640px) {
        font-size: 16px;
      }
    }

    input:not([type="checkbox"])~label,
    select~label {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 12px;
      color: #9F9F9F;
      background: #fff;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      pointer-events: none;
      z-index: 1;
      font-weight: 700;
      text-transform: uppercase;
    }

    input:not([type="checkbox"]):focus+label,
    input:not(:placeholder-shown):not([type="checkbox"])+label {
      top: 12px;
      font-size: 8px;
    }

    select~label {
      top: 12px;
      font-size: 8px;
    }

    .body-address__form-checkbox {
      display: flex;
      align-items: center;
      gap: 12px;

      label {
        color: #090909;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        text-transform: uppercase;
      }

      input {
        appearance: none;
        width: 14px;
        height: 14px;
        margin: 0;
        border: 1px solid #090909;
        border-radius: 0;
        transition: all 0.3s ease;

        &:checked {
          background-color: #090909;
          outline-offset: -3px;
          outline: 2px solid #ffffff;
        }
      }


    }

    ~.body-address__buttons {
      margin-top: 40px;
      flex-direction: column-reverse;

      @media screen and (min-width: 640px) {
        margin-top: 75px;
        flex-direction: row;
      }

    }

    select[id="AddressCountryNew"] {
      appearance: none;
      position: relative;
    }
  }

  .body-address__form-50 {
    flex-basis: calc(50% - 6px);
    position: relative;

    .select {
      position: relative;

      .country-select__chevron {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 12px;
      }
    }
  }

  .body-address__form-100 {
    flex-basis: 100%;
    position: relative;

    +.body-address__form-100 {
      margin-top: 28px;
    }
  }

  .body-address__added {
    padding: 12px;
    background-color: #fff;
    font-style: normal;

  }

  .body-address__edit {
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .body-address__edit--visible {
    height: 525px;
    margin-top: 20px;

    @media screen and (min-width: 640px) {
      height: 560px;
    }
  }

}