@media screen and (max-width: 1199px) {
  .noha-myaccount-content {
    /* Orders Page */
    .woocommerce-orders-table {
      tbody {
        tr {
          border: 1px solid #e5e5e5;
          padding: 14px;
          gap: 0;
          th,
          td {
            font-family: var(--font-myriad);
            font-weight: 300;
            font-size: 16px;
            line-height: 100%;
            letter-spacing: 0px;
            color: var(--grey) !important;
            * {
              font: inherit;
              color: inherit;
            }
          }
          th,
          td {
            &::before {
              font: inherit;
              color: var(--grey);
              font-weight: 300 !important;
            }
            &[data-title="Actions"] {
              a {
                font-size: 19.85px;
                line-height: 18.2px;
                min-height: 100%;
                &::after {
                  top: 1px;
                }
              }
            }
            &[data-title="Status"] {
              color: var(--brown) !important;
              font-weight: 400 !important;
            }
            &:not(:last-child) {
              border-bottom: 1px solid #e4e4e4;
              padding-bottom: 12px;
              margin-bottom: 12px;
            }
          }
          &:not(:last-child) {
            margin-bottom: 15px;
          }
        }
      }
    }
    .wd-wishlist-content {
      /* Wishlist Empty */
      .wd-empty-wishlist {
        .wd-empty-block-title {
          font-size: 16px;
          line-height: 24px;
          &::before {
            font-size: 68px;
          }
        }
        .wd-empty-block-text {
          max-width: 343px;
        }
        a.button.btn.btn-accent.wd-empty-block-btn {
          font-size: 18px;
          line-height: 22px;
          &:hover {
            color: var(--brown);
            &::after {
              background: url(/wp-content/uploads/2026/04/slider-arrow-pre.svg-6.svg)
                no-repeat;
            }
          }
          &::after {
            content: "";
            display: block;
            position: absolute;
            top: 13px;
            right: -23px;
            width: 10px;
            height: 18px;
            background: url(/wp-content/uploads/2026/03/slider-arrow-pre.svg-5.svg)
              no-repeat;
          }
        }
      }
      /* WishList */
      .wd-wishlist-bulk-action {
        height: 100% !important;
        .wd-action-btn {
          .wd-action-text {
            font-family: var(--font-myriad);
            font-weight: 400;
            font-size: 16px;
            line-height: 100%;
            color: var(--grey);
          }
          .wd-action-icon {
            scale: 0.65;
            margin-top: 3px;
          }
        }
      }
      .wd-products-element {
        .products {
          .wd-product {
            .wd-wishlist-product-actions {
              .wd-wishlist-remove {
                .wd-action-text {
                  font-family: var(--font-myriad);
                  font-weight: 400;
                  font-size: 16px;
                  line-height: 100%;
                  color: var(--grey);
                }
                .wd-action-icon {
                  scale: 0.75;
                  margin-top: 3px;
                }
              }
              .wd-wishlist-product-checkbox {
                input[type="checkbox"] {
                  width: 14.7px;
                  height: 14.7px;
                  accent-color: var(--brown);
                }
              }
            }
          }
        }
      }
    }
    /* Order Inner Page */
    .thank-you-main-container {
      .main-wrapper {
        .mobile-order-table {
          display: none;
        }
      }
    }
    &.noha-product-list {
      & .products {
        & .product-grid-item {
          .wd-product-thumb {
            height: 220px;
          }
        }
      }
      .wd-wishlist-head {
        .title {
          font-size: 20px;
        }
      }
    }
  }
}

@media screen and (max-width: 940px) {
  .myaccount-billing-form {
    #custom-billing-form {
      .billing-fields-wrapper {
        .form-row {
          flex: 0 0 100%;
        }
      }
    }
  }
}

@media screen and (max-width: 767px) {
  .noha-myaccount-content {
    &.noha-product-list {
      & .products {
        & .product-grid-item {
          .wd-product-thumb {
            height: 191px;
          }
        }
      }
      .wd-wishlist-head {
        .title {
          font-size: 16px;
          line-height: 24px;
        }
      }
    }
    .thank-you-main-container {
      .common-title {
        font-size: 18px;
        line-height: 100%;
        font-weight: 400;
      }
      .main-wrapper {
        .invoice-table-wrapper {
          display: none;
        }
        .mobile-order-table {
          display: block;
          margin-top: 24px;
          .header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            padding: 0;
            margin: 0;
            li {
              flex-basis: 50%;
              font-family: var(--font-myriad);
              font-weight: 300;
              font-size: 16px;
              line-height: 100%;
              color: var(--grey);
              list-style: none;
              margin: 0;
              &:last-child {
                text-align: right;
              }
            }
          }
          .product-container {
            .product-item {
              margin-top: 10px;
              padding-top: 10px;
              border-top: 1px solid #e4e4e4;
              .flex-item {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                padding: 0;
                margin-bottom: 10px;
                li {
                  flex-basis: 50%;
                  font-family: var(--font-myriad);
                  font-weight: 300;
                  font-size: 16px;
                  line-height: 100%;
                  color: var(--grey);
                  list-style: none;
                  margin: 0;
                  * {
                    color: inherit;
                    font: inherit;
                  }
                  &:last-child {
                    text-align: right;
                  }
                }
              }
            }
          }
          .product-total-items-container {
            margin-top: 5px;
            padding-top: 5px;
            border-top: 1px solid #e4e4e4;
            .flex-total-items {
              display: flex;
              flex-wrap: wrap;
              align-items: center;
              margin-top: 5px;
              padding-top: 5px;
              margin-bottom: 8px;
              padding-bottom: 8px;
              border-bottom: 1px solid #e4e4e4;
              padding-left: 0;
              li {
                flex-basis: 50%;
                font-family: var(--font-myriad);
                font-weight: 300;
                font-size: 16px;
                line-height: 100%;
                color: var(--grey);
                list-style: none;
                margin: 0;
                * {
                  color: inherit;
                  font: inherit;
                }
                &:last-child {
                  text-align: right;
                }
              }
            }
          }
        }
        .download-invoice-wrapper {
          text-align: center;
          margin-top: 15px;
          .download-invoice {
            font-family: var(--font-myriad);
            font-weight: 600;
            font-size: 14px;
            line-height: 14px;
            text-align: center;
            vertical-align: middle;
            text-transform: uppercase;
            text-decoration: underline;
            color: var(--brown);
            &:hover {
              color: var(--grey);
            }
            img {
              margin-left: 5px;
            }
          }
        }
      }
      .order-id-details {
        margin-top: 30px;
        .detailed-wrapper {
          .order-details-flex-wrapper {
            display: flex;
            flex-wrap: wrap;
            margin-top: 20px;
            row-gap: 0px;
            .order-item {
              display: flex;
              flex-wrap: wrap;
              flex: 0 0 100%;
              gap: 20px;
              position: relative;
              &:not(:last-child)::after {
                display: none;
              }
              &:nth-child(even)::after {
                display: none;
              }
              &:not(:last-child) {
                margin-bottom: 10px;
                padding-bottom: 10px;
                border-bottom: 1px solid #e4e4e4;
              }
              .item-no {
                .id-no {
                  font-family: var(--font-skia);
                  font-weight: 300;
                  font-size: 20px;
                  line-height: 24px;
                  color: var(--grey);
                  margin: 15px 0 0 0;
                }
              }
              .item-image {
                width: 74px;
                height: 93px;
                min-width: 74px;
                img {
                  width: 100%;
                  height: 100%;
                }
              }
              .product-detail-wrapper {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
                flex-direction: column;
                .product-title {
                  font-family: var(--font-myriad);
                  font-weight: 300;
                  font-size: 16px;
                  line-height: 100%;
                  color: var(--grey);
                  margin: 0;
                }
                .product-order-number {
                  font-family: var(--font-myriad);
                  font-weight: 300;
                  font-size: 16px;
                  line-height: 100%;
                  color: var(--grey);
                  margin: 0;
                }
                .product-image-logo {
                  margin: 0;
                  width: 74px;
                  height: 18.96px;
                  img {
                    width: 100%;
                    height: 100%;
                  }
                }
              }
            }
          }
        }
      }
      .billing-address-wrapper {
        .billing-address-item,
        p {
          font-size: 14px;
          line-height: 20px;
        }
      }
    }
    /* Account Page */
    .edit-account {
      display: flex;
      flex-wrap: wrap;
      gap: 25px 25px !important;
      .woocommerce-form-row {
        flex: 0 0 100% !important;
        margin: 0;
      }
      #account_display_name_description {
        display: none;
      }
      fieldset {
        margin-top: 0px !important;
        flex: 0 0 100%;
        gap: 25px 25px !important;
        &::before {
          display: none;
        }
        legend {
          font-size: 18px !important;
          line-height: 20px;
        }
        .woocommerce-form-row {
          flex: 0 0 100% !important;
          width: 100% !important;
        }
      }
      > p {
        width: 100%;
        display: flex;
      }
      button.woocommerce-Button.button {
        font-size: 18px;
        line-height: 22px;
        margin: 0 auto;
        display: inline-block;
        &::after {
          top: 13px;
          right: -21px;
        }
      }
    }
  }
  /* Address Management */
  .myaccount-add-address {
    .add-address-button {
      h3 {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 15px;
      }
      a {
        font-size: 16px;
        line-height: 22px;
      }
      p {
        font-size: 14px;
        line-height: 22.4px;
      }
    }
  }
  .myaccount-address-list {
    .select-address-container {
      position: relative;
      .select-address-fixed-wrapper {
        .select-address-item-wrapper {
          .select-address-item {
            padding: 15px 15px 15px 10px;
            .address-wrapper {
              flex: 0 0 85%;
              p {
                font-size: 14px;
                line-height: 100%;
              }
            }
            .options-wrapper {
              .edit-delete-wrapper {
                position: absolute;
                top: 30px;
                left: -95px;
                width: 97px;
              }
            }
          }
        }
        .add-new-address-wrapper {
          display: none;
        }
        .update-address-button {
          display: none;
        }
      }
    }
  }
  .myaccount-billing-form {
    display: none;
    &.active {
      display: block;
    }
    .select-header-wrapper {
      display: none;
    }
    #custom-billing-form {
      padding: 0;
      .woocommerce-error {
        padding-left: 50px !important;
        li {
          font-family: var(--font-myriad);
          font-weight: 300;
          font-size: 16px;
          line-height: 100%;
          letter-spacing: 0px;
          color: var(--white);
          list-style: none;
        }
      }
      .billing-fields-wrapper {
        gap: 30px;
        margin-bottom: 30px;
        .form-row {
          flex: 0 0 100%;
        }
      }
      .custom-save-button {
        display: flex;
      }
      #save-billing-address-btn {
        font-size: 18px;
        line-height: 22px;
        &::after {
          top: 12px;
          right: -21px;
        }
      }
    }
  }
  /* Order Empty */
  .myaccount-orders-empty {
    max-width: 360px !important;
    margin-bottom: 0 !important;
    .order-no-items-container {
      .order-no-wrapper {
        .order-no-image {
          img {
            height: 68px;
            width: 68px;
          }
        }
        .order-no-title {
          margin: 10px 0 0;
          h5 {
            font-size: 16px;
            line-height: 24px;
          }
        }
        .order-no-sub-title {
          margin: 15px 0 18px;
          p {
            font-size: 14px;
            line-height: 22px;
          }
        }
        .return-to-shop {
          a {
            font-size: 18px;
            line-height: 22px;
            img {
              margin-left: 5px;
            }
          }
        }
      }
    }
  }
  /* Non Login Users */
  .wishlist-guest-container {
    .wishlist-guest-content-list {
      .wd-wishlist-content {
        .wd-wishlist-head {
          margin-bottom: 30px;
          .title {
            font-size: 16px;
            line-height: 24px;
          }
        }
        .wd-empty-block {
          max-width: 343px;
        }
        .wd-empty-block-title {
          font-size: 16px;
          line-height: 24px;
        }
        .wd-empty-block-text {
          font-size: 14px;
          line-height: 22px;
        }
        .wd-wishlist-bulk-action {
          .wd-action-btn {
            opacity: 1;
          }
          .wd-action-text {
            font-family: var(--font-myriad);
            font-weight: 400;
            font-size: 16px;
            line-height: 100%;
            color: var(--grey);
          }
        }
        .wd-wishlist-product-actions {
          .wd-action-text {
            font-family: var(--font-myriad);
            font-weight: 400;
            font-size: 16px;
            line-height: 100%;
            color: var(--grey);
          }
        }
        .button {
          font-size: 18px;
          line-height: 22px;
          &::after {
            top: 13px;
          }
        }
        .wd-wishlist-product-checkbox {
          width: 14.7px;
          height: 14.7px;
          min-width: 14.7px;
          min-height: 14.7px;
          display: flex;
          input[type="checkbox"] {
            width: 14.7px;
            height: 14.7px;
            min-width: 14.7px;
          }
        }
      }
    }
  }
}

@media (max-width: 768px) {
  /* Make TH behave like a block row */
  .noha-myaccount-content .woocommerce-orders-table tbody th {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Label (Order) on left — no colon */
  .noha-myaccount-content .woocommerce-orders-table tbody th::before {
    content: attr(data-title);
  }

  /* Value (#1234) on right */
  .noha-myaccount-content .woocommerce-orders-table tbody th a {
    margin-left: auto;
    text-align: right;
  }
}
