/* =========================================================
 * TR SHOPPING — MY ACCOUNT
 * ========================================================= */

.tr-myaccount {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  align-items: flex-start;
  box-sizing: border-box;
}

.tr-myaccount__content {
  flex: 1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tr-myaccount__sidebar {
  width: 260px;
  padding: 15px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tr-myaccount__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.tr-myaccount__sidebar-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.tr-myaccount__navigation {
  margin: 0;
  padding: 0;
}

.tr-myaccount__navigation a {
  display: block;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s;
}

.tr-myaccount__navigation a:hover {
  background: #f3f0ff;
  color: var(--tr-myaccount-primary-hover);
}

.tr-myaccount__navigation a.is-active {
  background: var(--tr-myaccount-primary);
  color: #fff;
  font-weight: 600;
}

.tr-myaccount__navigation a.is-active:hover {
  background: var(--tr-myaccount-primary-hover);
  color: #fff;
}

.tr-myaccount__menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.tr-myaccount__menu-toggle:hover,
.tr-myaccount__menu-toggle:focus,
.tr-myaccount__menu-toggle:active {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.tr-myaccount-dashboard {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tr-myaccount-dashboard__content {
  width: 100%;
  min-width: 0;
  padding: 15px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tr-myaccount-dashboard__welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 15px;
  margin-bottom: 25px;
  border-radius: 14px;
  background: var(--tr-myaccount-primary);
  color: #fff;
}

.tr-myaccount-dashboard__welcome-left h2 {
  margin: 15px 0 10px;
  color: #fff;
  font-size: 34px;
}

.tr-myaccount-dashboard__welcome-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 14px;
  font-weight: 600;
}

.tr-myaccount-dashboard__welcome-right {
  display: flex;
  align-items: center;
}

.tr-myaccount-dashboard__status {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 30px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.tr-myaccount-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.tr-myaccount-dashboard__stat-card {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tr-myaccount-dashboard__stat-card h4 {
  margin: 0;
  color: #666;
  font-size: 15px;
}

.tr-myaccount-dashboard__stat-card span {
  display: inline-flex;
  white-space: nowrap;
  color: var(--tr-myaccount-primary);
  font-size: 30px;
  font-weight: 700;
}

.tr-myaccount-dashboard__info-card {
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tr-myaccount-dashboard__info-card h2,
.tr-myaccount-dashboard__info-card h3 {
  margin-top: 0;

  margin-bottom: 25px;
}

.tr-myaccount-dashboard__profile-table {
  width: 100%;
  border-collapse: collapse;
}

.tr-myaccount-dashboard__profile-table th {
  width: 180px;
  padding: 14px;
  background: #fafafa;
  text-align: left;
}

.tr-myaccount-dashboard__profile-table td {
  padding: 14px;
}

.tr-myaccount-dashboard__profile-table th,
.tr-myaccount-dashboard__profile-table td {
  border: 1px solid #eee;
}

.tr-myaccount-orders {
  width: 100%;
  min-width: 0;
}

.tr-myaccount-orders__header {
  margin-bottom: 20px;
}

.tr-myaccount-orders__header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.tr-myaccount-orders__table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.tr-myaccount-orders__table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.tr-myaccount-orders__table th {
  padding: 15px;
  background: #fafafa;
  border: 1px solid #eee;
  color: #444;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.tr-myaccount-orders__table td {
  padding: 15px;
  border: 1px solid #eee;
  vertical-align: middle;
}

.tr-myaccount-orders__table tbody tr {
  transition: 0.2s;
}

.tr-myaccount-orders__table tbody tr:hover {
  background: #fcfcfc;
}

.tr-myaccount-orders__order-id {
  color: var(--tr-myaccount-primary);
  text-decoration: none;
  font-weight: 600;
}

.tr-myaccount-orders__order-id:hover {
  text-decoration: underline;
}

.tr-myaccount-orders__status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tr-myaccount-orders__status--pending {
  background: #fff4cc;
  color: #9a6700;
}

.tr-myaccount-orders__status--processing {
  background: #dbeafe;
  color: var(--tr-myaccount-primary);
}

.tr-myaccount-orders__status--on-hold {
  background: #f3e8ff;
  color: #7c3aed;
}

.tr-myaccount-orders__status--completed {
  background: #dcfce7;
  color: #15803d;
}

.tr-myaccount-orders__status--cancelled,
.tr-myaccount-orders__status--failed {
  background: #fee2e2;
  color: #dc2626;
}

.tr-myaccount-orders__status--refunded {
  background: #f1f5f9;
  color: #475569;
}

.tr-myaccount-orders__total {
  display: block;
  font-weight: 600;
}

.tr-myaccount-orders__table td small {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 12px;
}

.tr-myaccount-orders__action {
  display: inline-block;
  padding: 7px 12px;
  margin: 2px;
  border-radius: 6px;
  background: var(--tr-myaccount-primary);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: 0.25s;
}

.tr-myaccount-orders__action:hover {
  background: var(--tr-myaccount-primary-hover);
}

.tr-myaccount-orders__mobile-list {
  display: none;
}

.tr-myaccount-order-card {
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.tr-myaccount-order-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.tr-myaccount-order-card__header .tr-myaccount-orders__order-id {
  flex: 0 0 auto;

  font-size: 16px;
}

.tr-myaccount-order-card__header .tr-myaccount-orders__status {
  flex: 0 0 auto;
}

.tr-myaccount-order-card__info {
  padding: 8px 0;
}

.tr-myaccount-order-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid #f1f1f1;
}

.tr-myaccount-order-card__row:last-child {
  border-bottom: none;
}

.tr-myaccount-order-card__row span {
  flex: 0 0 auto;
  color: #777;
  font-size: 13px;
}

.tr-myaccount-order-card__row strong {
  min-width: 0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.tr-myaccount-order-card__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.tr-myaccount-order-card__actions .tr-myaccount-orders__action {
  margin: 0;
  padding: 8px 18px;
}

.tr-myaccount-orders__pagination {
  margin-top: 25px;
}

.tr-myaccount-orders__pagination ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-myaccount-orders__pagination li {
  margin: 0;
}

.tr-myaccount-orders__pagination a,
.tr-myaccount-orders__pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  color: #333;
  text-decoration: none;
}

.tr-myaccount-orders__pagination .current {
  background: var(--tr-myaccount-primary);
  border-color: var(--tr-myaccount-primary);
  color: #fff;
}

.tr-myaccount-orders__empty {
  padding: 60px 20px;
  text-align: center;
}

.tr-myaccount-orders__empty-icon {
  margin-bottom: 15px;
  font-size: 55px;
}

.tr-myaccount-orders__empty h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.tr-myaccount-orders__empty p {
  margin: 0 0 25px;
  color: #666;
}

.tr-myaccount-orders__shop-button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 7px;
  background: #6c4cf1;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
}

.tr-myaccount-orders__shop-button:hover {
  background: var(--tr-myaccount-primary-hover);
}

.tr-myaccount-order-details {
  width: 100%;

  min-width: 0;
}

.tr-myaccount-order-details__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.tr-myaccount-order-details__label {
  display: block;
  margin-bottom: 5px;
  color: #777;
  font-size: 13px;
  font-weight: 600;
}

.tr-myaccount-order-details__header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.tr-myaccount-order-details__status {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tr-myaccount-order-details__status--pending {
  background: #fff4cc;
  color: #9a6700;
}

.tr-myaccount-order-details__status--processing {
  background: #dbeafe;
  color: var(--tr-myaccount-primary);
}

.tr-myaccount-order-details__status--on-hold {
  background: #f3e8ff;
  color: var(--tr-myaccount-primary);
}

.tr-myaccount-order-details__status--completed {
  background: #dcfce7;
  color: var(--tr-success);
}

.tr-myaccount-order-details__status--cancelled,
.tr-myaccount-order-details__status--failed {
  background: #fee2e2;
  color: var(--tr-danger);
}

.tr-myaccount-order-details__status--refunded {
  background: #f1f5f9;
  color: #475569;
}

.tr-myaccount-order-details__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.tr-myaccount-order-details__meta>div {
  padding: 15px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
}

.tr-myaccount-order-details__meta span {
  display: block;
  margin-bottom: 5px;
  color: #777;
  font-size: 12px;
}

.tr-myaccount-order-details__meta strong {
  font-size: 14px;
}

.tr-myaccount-order-details__card {
  margin-bottom: 25px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
}

.tr-myaccount-order-details__card h3 {
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid #eee;
  font-size: 20px;
}

.tr-myaccount-order-details__table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.tr-myaccount-order-details__table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.tr-myaccount-order-details__table th {
  padding: 15px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  text-align: left;
}

.tr-myaccount-order-details__table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.tr-myaccount-order-details__product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tr-myaccount-order-details__product-image {
  display: block;
  flex: 0 0 auto;
}

.tr-myaccount-order-details__product-image img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 8px;
}

.tr-myaccount-order-details__product-info {
  min-width: 0;
}

.tr-myaccount-order-details__product-name {
  display: block;
  color: var(--tr-myaccount-primary);
  text-decoration: none;
  font-weight: 600;
}

.tr-myaccount-order-details__product-name:hover {
  text-decoration: underline;
}

.tr-myaccount-order-details__product-info>span {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 13px;
}

.tr-myaccount-order-details__item-meta {
  margin-top: 5px;
  color: #777;
  font-size: 12px;
}

.tr-myaccount-order-details__item-meta p {
  margin: 2px 0;
}

.tr-myaccount-order-details__item-total {
  white-space: nowrap;
  font-weight: 600;
}


.tr-myaccount-order-details__table tfoot th,
.tr-myaccount-order-details__table tfoot td {
  padding: 13px 15px;
  background: #fafafa;
}

.tr-myaccount-order-details__table tfoot th {
  text-align: left;
}

.tr-myaccount-order-details__grand-total th,
.tr-myaccount-order-details__grand-total td {
  font-size: 17px;

  font-weight: 700;
}

.tr-myaccount-order-details__addresses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tr-myaccount-order-details__address-card {
  padding: 25px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
}

.tr-myaccount-order-details__address-card h3 {
  margin: 0 0 15px;
  font-size: 20px;
}

.tr-myaccount-order-details__address-card address {
  margin: 0;
  color: #555;
  font-style: normal;
  line-height: 1.7;
}

.tr-myaccount-order-details__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--tr-myaccount-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.tr-myaccount-order-details__back:hover {
  color: var(--tr-myaccount-primary-hover);

  text-decoration: none;
}

.woocommerce-account .woocommerce-Addresses .col-2 {
  display: none !important;
}

.woocommerce-account .woocommerce-Addresses .col-1 {
  width: 100% !important;
  float: none !important;
}

.tr-myaccount-dashboard__stat-card,
.tr-myaccount-dashboard__stat-card:hover,
.tr-myaccount-dashboard__stat-card:focus {
  text-decoration: none;
}

.woocommerce-account .woocommerce-notices-wrapper {
  display: none !important;
}

/* =========================================================
Tablet
========================================================= */

@media (max-width: 991px) {
  .tr-myaccount {
    width: 100%;
    padding: 0 15px;
    flex-direction: column;
  }

  .tr-myaccount__content {
    width: 100%;
  }

  .tr-myaccount__sidebar {
    width: 100%;
  }

  .tr-myaccount__sidebar-header {
    margin-bottom: 0;
  }

  .tr-myaccount__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tr-myaccount__navigation {
    display: none;
    margin-top: 15px;
  }

  .tr-myaccount__navigation.is-open {
    display: block;
  }

  .tr-myaccount-dashboard__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .tr-myaccount-dashboard__welcome {
    flex-direction: column;
    align-items: flex-start;
  }

  .tr-myaccount-order-details__table-wrapper {
    overflow-x: auto;
  }
}

/* =========================================================
Mobile
========================================================= */

@media (max-width: 600px) {
  .tr-myaccount {
    gap: 15px;
    margin: 20px auto;
    padding: 0 10px;
  }

  .tr-myaccount__content {
    width: 100%;
    min-width: 0;
  }

  .tr-myaccount__sidebar {
    width: 100%;
  }

  .tr-myaccount-dashboard__content {
    padding: 10px;
  }

  .tr-myaccount-dashboard__stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .tr-myaccount-dashboard__welcome {
    gap: 5px;
    padding: 15px;
    margin-bottom: 15px;
  }

  .tr-myaccount-dashboard__welcome-left h2 {
    margin: 12px 0 8px;
    font-size: 24px;
  }

  .tr-myaccount-dashboard__welcome-right {
    width: 100%;
  }

  .tr-myaccount-dashboard__status {
    padding: 8px 14px;
  }

  .tr-myaccount-dashboard__info-card {
    padding: 15px;
    overflow-x: auto;
  }

  .tr-myaccount-dashboard__info-card h2,
  .tr-myaccount-dashboard__info-card h3 {
    margin-bottom: 18px;
    font-size: 19px;
  }

  .tr-myaccount-dashboard__profile-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .tr-myaccount-dashboard__profile-table th {
    width: 100px;
  }

  .tr-myaccount-dashboard__profile-table th,
  .tr-myaccount-dashboard__profile-table td {
    padding: 10px;
    font-size: 13px;
    word-break: break-word;
  }

  .tr-myaccount-orders__header {
    margin-bottom: 15px;
  }

  .tr-myaccount-orders__header h2 {
    font-size: 21px;
  }

  .tr-myaccount-orders__table-wrapper {
    display: none;
  }

  .tr-myaccount-orders__mobile-list {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .tr-myaccount-order-card {
    width: 100%;
    padding: 15px;
    margin-bottom: 12px;
  }

  .tr-myaccount-order-card__header {
    gap: 10px;
  }

  .tr-myaccount-order-card__header .tr-myaccount-orders__order-id {
    font-size: 15px;
  }

  .tr-myaccount-order-card__header .tr-myaccount-orders__status {
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .tr-myaccount-order-card__row {
    gap: 10px;
    padding: 10px 0;
  }

  .tr-myaccount-order-card__row span {
    font-size: 13px;
  }

  .tr-myaccount-order-card__row strong {
    font-size: 13px;
  }

  .tr-myaccount-order-card__actions {
    padding-top: 10px;
  }

  .tr-myaccount-order-card__actions .tr-myaccount-orders__action {
    width: 100%;
    padding: 9px 15px;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
  }

  .tr-myaccount-orders__pagination {
    width: 100%;
    overflow-x: auto;
  }

  .tr-myaccount-orders__pagination ul {
    width: max-content;
  }

  .tr-myaccount-order-details__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }

  .tr-myaccount-order-details__header h2 {
    font-size: 23px;
  }

  .tr-myaccount-order-details__status {
    padding: 6px 12px;

    font-size: 12px;
  }


  .tr-myaccount-order-details__meta {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
  }

  .tr-myaccount-order-details__meta>div {
    padding: 12px;
  }

  .tr-myaccount-order-details__card {
    width: 100%;
    min-width: 0;
    margin-bottom: 15px;
  }

  .tr-myaccount-order-details__card h3 {
    padding: 15px;
    font-size: 18px;
  }

  .tr-myaccount-order-details__table-wrapper {
    width: 100%;
    overflow-x: hidden;
  }

  .tr-myaccount-order-details__table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .tr-myaccount-order-details__table th,
  .tr-myaccount-order-details__table td {
    padding: 10px 8px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .tr-myaccount-order-details__product {
    gap: 8px;
    min-width: 0;
  }

  .tr-myaccount-order-details__product-image img {
    width: 45px;
    height: 45px;
  }

  .tr-myaccount-order-details__product-info {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .tr-myaccount-order-details__product-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .tr-myaccount-order-details__product-info>span {
    font-size: 12px;
  }

  .tr-myaccount-order-details__item-meta {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .tr-myaccount-order-details__item-total {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .tr-myaccount-order-details__table tfoot th,
  .tr-myaccount-order-details__table tfoot td {
    padding: 11px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .tr-myaccount-order-details__grand-total th,
  .tr-myaccount-order-details__grand-total td {
    font-size: 15px;
  }

  .tr-myaccount-order-details__addresses {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tr-myaccount-order-details__address-card {
    padding: 18px;
  }

  .tr-myaccount-order-details__address-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .tr-myaccount-order-details__address-card address {
    font-size: 13px;
  }

  .tr-myaccount-order-details__back {
    margin-bottom: 14px;
    font-size: 13px;
  }
}