/**
 * My Account page: layout, membership card, navigation.
 */

/* --- Wrapper and page title --- */
.woocommerce-myaccount-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  font-family: "Montserrat", Sans-serif;
}

.myaccount-page-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
  padding: 0;
  border: none;
  letter-spacing: 0.5em;
}

/* --- Layout: sidebar (card + tabs) | content --- */
.woocommerce-myaccount-layout {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: flex-start;
}

.woocommerce-myaccount-sidebar {
  flex: 0 0 30%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Tier card: same width as sidebar (tabs) */
.myaccount-tier-card {
  width: 100%;
}

/* --- Dashboard block (welcome + description) --- */
.myaccount-dashboard-block {
  margin-bottom: 2rem;
}

.myaccount-dashboard-block p:first-child {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #1a1a1a;
}

.myaccount-dashboard-desc {
  background: #f8f8f8;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333;
}

.myaccount-dashboard-desc a {
  color: #1a1a1a;
  text-decoration: underline;
}

.myaccount-dashboard-block__hello {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.myaccount-dashboard-block__hello strong {
  font-weight: 600;
}

.myaccount-dashboard-block__logout {
  font-size: 0.9375rem;
  font-weight: 400;
  margin-left: 0.35rem;
}

.myaccount-dashboard-block__logout a {
  color: #1a1a1a;
  text-decoration: underline;
}

.myaccount-dashboard-block__intro {
  margin: 0 0 1.5rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #444;
}

/* --- Dashboard: profile summary + recent orders --- */
.myaccount-dashboard-profile,
.myaccount-dashboard-orders {
  margin-bottom: 2rem;
}

.myaccount-dashboard-profile:last-child,
.myaccount-dashboard-orders:last-child {
  margin-bottom: 0;
}

/* Match .woocommerce-Address-title (My Account tab panels) */
.myaccount-dashboard-profile__head,
.myaccount-dashboard-orders__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.myaccount-dashboard-profile__title,
.myaccount-dashboard-orders__title {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  border: none;
  text-transform: none;
}

/* Match .woocommerce-Address-title .edit */
.myaccount-dashboard-profile__edit,
.myaccount-dashboard-orders__view-all {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.myaccount-dashboard-profile__edit:hover,
.myaccount-dashboard-orders__view-all:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

/* Match .woocommerce-Address card (edit-account / addresses tabs) */
.myaccount-dashboard-profile__box {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.myaccount-dashboard-profile__dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem 1rem;
}

.myaccount-dashboard-profile__row {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Labels aligned with form.edit-account field labels */
.myaccount-dashboard-profile__row dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.myaccount-dashboard-profile__row dd {
  margin: 0;
  color: #333;
  word-break: break-word;
}

/* Recent orders table uses .woocommerce-orders-table — same rules as Orders tab */
.myaccount-dashboard-orders__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.myaccount-dashboard-orders__empty {
  margin: 0;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Orders endpoint empty state: match sidebar-cart feel */
.myaccount-orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #fafafa;
}

.myaccount-orders-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: #f0f0f0;
  color: #6b6b6b;
}

.myaccount-orders-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.myaccount-orders-empty__text {
  margin: 0 0 1.25rem;
  max-width: 320px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #6b6b6b;
}

.myaccount-orders-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #2e2e2e;
  border-radius: 4px;
  text-decoration: none;
}

.myaccount-orders-empty__btn:hover {
  color: #fff;
  background: #1a1a1a;
}

.myaccount-orders-empty__btn-arrow {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .myaccount-dashboard-profile__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .myaccount-dashboard-profile__row dt {
    font-size: 0.8125rem;
    color: #666;
  }

  .myaccount-dashboard-orders__table thead {
    display: none;
  }

  .myaccount-dashboard-orders__table tbody tr {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .myaccount-dashboard-orders__table tbody tr:last-child {
    border-bottom: none;
  }

  .myaccount-dashboard-orders__table tbody td {
    display: block;
    padding: 0.25rem 0;
    border: none;
    text-align: left !important;
  }

  .myaccount-dashboard-orders__table tbody td::before {
    content: attr(data-title) ": ";
    font-weight: 600;
    color: #555;
    font-size: 0.75rem;
    display: inline-block;
    min-width: 5rem;
  }

  .myaccount-dashboard-orders__table
    tbody
    td.myaccount-dashboard-orders__actions::before {
    content: "";
    display: none;
  }

  .myaccount-dashboard-orders__actions {
    white-space: normal;
    padding-top: 0.5rem !important;
  }
}

/* --- Membership card (golden-bronze, branding, pattern) --- */
.woocommerce-myaccount-wrapper {
  --joymembership-card-bg: #AA1D39;
  --joymembership-card-text: rgba(255, 255, 255, 0.95);
  --joymembership-card-brand: rgba(255, 255, 255, 0.75);
}

.wlr-custom-card.joymembership-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 180px;
  padding: 15px 18px;
  border-radius: 6px;
  background: var(--joymembership-card-bg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Decorative pattern (right side) */
.joymembership-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-image: none;
  opacity: 0.6;
  pointer-events: none;
}

.joymembership-card__brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.joymembership-card__brand-the {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--joymembership-card-brand);
  text-transform: uppercase;
}

.joymembership-card__brand-name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--joymembership-card-brand);
  text-transform: uppercase;
}

.joymembership-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  color: var(--joymembership-card-text);
  justify-content: space-between;
}

.joymembership-card__number {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.joymembership-card__tier {
  font-size: 14px;
  font-weight: 500;
}

.joymembership-card__points {
  font-size: 14px;
}

/* wpLoyalty: upcoming point expiration section */
.woocommerce-account .wlr-myaccount-page .wlr-expire-point-blog {
  margin-top: 1.25rem;
}

.woocommerce-account .wlr-myaccount-page .wlr-expire-point-blog .wlr-heading {
  font-family: "Montserrat", "Kanit", sans-serif;
}

.woocommerce-account .wlr-myaccount-page .wlr-expire-point-blog .wlr-table {
  border-collapse: collapse;
}

.woocommerce-account .wlr-myaccount-page .wlr-expire-point-blog .wlr-table td,
.woocommerce-account .wlr-myaccount-page .wlr-expire-point-blog .wlr-table th {
  padding: 0.65rem 0.75rem;
}

.woocommerce-account .laventyr-upcoming-expire-points {
  margin: 1.25rem 0 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  background: #fff;
}

.woocommerce-account .laventyr-upcoming-expire-points__head h3 {
  margin: 0;
  font-family: "Montserrat", "Kanit", sans-serif;
  font-size: 1rem;
}

.woocommerce-account .laventyr-upcoming-expire-points__head p {
  margin: 0.35rem 0 0;
  color: #666;
}

.woocommerce-account .laventyr-upcoming-expire-points__list {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .laventyr-upcoming-expire-points__list li {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.3rem 0;
}

/* --- Content area (right of sidebar): framed “tab” panel --- */
.woocommerce-myaccount-layout .woocommerce-MyAccount-content {
  flex: 1 1 0;
  min-width: 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Section titles that are direct children (Orders, Downloads, etc.) */
.woocommerce-MyAccount-content > h2 {
  margin: 0 0 1.25rem;
  padding: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- Addresses page: billing / shipping cards --- */
.woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 20px;                      /* Adjust gap size here */
}

.woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address {
  flex: none;      /* Disable the old flex logic */
  width: 100%;     /* Let the grid control the width */
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* 2. Hide the pseudo-elements if they are still creating invisible gaps */
.woocommerce-Addresses::before,
.woocommerce-Addresses::after {
  display: none !important;
  content: none !important;
}

.woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.woocommerce-MyAccount-content .woocommerce-Address-title h2 {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  border: none;
  text-transform: none;
}



.woocommerce-MyAccount-content .woocommerce-Address-title .edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: #fff !important;
  background: #2e2e2e !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
  background: #1a1a1a !important;
  text-decoration: none;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
  margin: 0;
  padding: 0;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #333;
}

/* --- Navigation (in sidebar, below card) --- */
.woocommerce-myaccount-sidebar .woocommerce-MyAccount-navigation {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.woocommerce-MyAccount-navigation li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: #1a1a1a;
  text-decoration: none;
}

.woocommerce-MyAccount-navigation a:hover {
  text-decoration: underline;
}

.woocommerce-MyAccount-navigation li.is-active {
  border-bottom-color: #a03531;
  border-bottom-width: 2px;
  padding-bottom: 0.55rem;
}

.woocommerce-MyAccount-navigation li.is-active a {
  font-weight: 600;
}

@media (max-width: 768px) {
  .woocommerce-myaccount-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .woocommerce-myaccount-sidebar {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
  }
}

/* --- Orders table: minimal luxury --- */
.woocommerce-MyAccount-content .woocommerce-orders-table,
.woocommerce-MyAccount-content .account-orders-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9375rem;
  background: transparent;
}

.woocommerce-MyAccount-content .woocommerce-orders-table thead th,
.woocommerce-MyAccount-content .account-orders-table thead th {
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
  padding: 1rem 0.75rem 0.75rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  background: transparent;
}

.woocommerce-MyAccount-content .woocommerce-orders-table thead th:last-child,
.woocommerce-MyAccount-content .account-orders-table thead th:last-child {
  text-align: right;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tbody tr,
.woocommerce-MyAccount-content .account-orders-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tbody tr:hover,
.woocommerce-MyAccount-content .account-orders-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.woocommerce-MyAccount-content .woocommerce-orders-table td,
.woocommerce-MyAccount-content .woocommerce-orders-table th,
.woocommerce-MyAccount-content .account-orders-table td,
.woocommerce-MyAccount-content .account-orders-table th {
  padding: 1rem 0.75rem 1rem 1rem;
  border: none;
  vertical-align: middle;
  color: #1a1a1a;
}

.woocommerce-MyAccount-content
  .woocommerce-orders-table
  .woocommerce-orders-table__cell-order-actions,
.woocommerce-MyAccount-content
  .account-orders-table
  .woocommerce-orders-table__cell-order-actions {
  text-align: right;
}

.woocommerce-MyAccount-content
  .woocommerce-orders-table
  a:not(.woocommerce-button),
.woocommerce-MyAccount-content
  .account-orders-table
  a:not(.woocommerce-button) {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}

.woocommerce-MyAccount-content
  .woocommerce-orders-table
  a:not(.woocommerce-button):hover,
.woocommerce-MyAccount-content
  .account-orders-table
  a:not(.woocommerce-button):hover {
  text-decoration: underline;
}

.woocommerce-MyAccount-content .woocommerce-orders-table time,
.woocommerce-MyAccount-content .account-orders-table time {
  color: #6b6b6b;
  font-variant-numeric: tabular-nums;
}

.woocommerce-MyAccount-content
  .woocommerce-orders-table
  .woocommerce-orders-table__cell-order-status,
.woocommerce-MyAccount-content
  .account-orders-table
  .woocommerce-orders-table__cell-order-status {
  font-size: 0.8125rem;
  color: #6b6b6b;
}

.woocommerce-MyAccount-content
  .woocommerce-orders-table
  .woocommerce-Price-amount,
.woocommerce-MyAccount-content .account-orders-table .woocommerce-Price-amount {
  font-variant-numeric: tabular-nums;
}

/* Action buttons: minimal */
.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-button,
.woocommerce-MyAccount-content .account-orders-table .woocommerce-button {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  text-decoration: none;
  margin-left: 0.35rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.woocommerce-MyAccount-content
  .woocommerce-orders-table
  .woocommerce-button:first-child,
.woocommerce-MyAccount-content
  .account-orders-table
  .woocommerce-button:first-child {
  margin-left: 0;
}

.woocommerce-MyAccount-content
  .woocommerce-orders-table
  .woocommerce-button:hover,
.woocommerce-MyAccount-content .account-orders-table .woocommerce-button:hover {
  border-color: #1a1a1a;
  background: rgba(0, 0, 0, 0.03);
}

/* --- Order details table (single order view): minimal luxury --- */
.woocommerce-MyAccount-content .woocommerce-order-details {
  margin-bottom: 2rem;
}

.woocommerce-MyAccount-content .woocommerce-order-details__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  padding: 0;
  border: none;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details.order_details,
.woocommerce-MyAccount-content .order_details.shop_table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9375rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details thead th,
.woocommerce-MyAccount-content .order_details thead th {
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
  padding: 0.75rem 1rem 0.75rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  background: transparent;
}

.woocommerce-MyAccount-content
  .woocommerce-table--order-details
  thead
  th.product-total,
.woocommerce-MyAccount-content .order_details thead th.product-total {
  text-align: right;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details tbody tr,
.woocommerce-MyAccount-content .order_details tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details tbody tr:hover,
.woocommerce-MyAccount-content .order_details tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.woocommerce-MyAccount-content .woocommerce-table--order-details td,
.woocommerce-MyAccount-content .woocommerce-table--order-details th,
.woocommerce-MyAccount-content .order_details td,
.woocommerce-MyAccount-content .order_details th {
  padding: 0.875rem 1rem;
  border: none;
  vertical-align: middle;
  color: #1a1a1a;
  background: transparent;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details .product-total,
.woocommerce-MyAccount-content .order_details .product-total {
  text-align: right;
}

.woocommerce-MyAccount-content
  .woocommerce-table--order-details
  .product-name
  a,
.woocommerce-MyAccount-content .order_details .product-name a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}

.woocommerce-MyAccount-content
  .woocommerce-table--order-details
  .product-name
  a:hover,
.woocommerce-MyAccount-content .order_details .product-name a:hover {
  text-decoration: underline;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr,
.woocommerce-MyAccount-content .order_details tfoot tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
}

.woocommerce-MyAccount-content
  .woocommerce-table--order-details
  tfoot
  tr:first-child
  th,
.woocommerce-MyAccount-content .order_details tfoot tr:first-child th {
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.woocommerce-MyAccount-content .woocommerce-table--order-details tfoot th,
.woocommerce-MyAccount-content .order_details tfoot th {
  font-weight: 500;
  color: #6b6b6b;
  font-size: 0.875rem;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details tfoot td,
.woocommerce-MyAccount-content .order_details tfoot td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.woocommerce-MyAccount-content
  .woocommerce-table--order-details
  .order-total
  th,
.woocommerce-MyAccount-content
  .woocommerce-table--order-details
  .order-total
  td,
.woocommerce-MyAccount-content .order_details .order-total th,
.woocommerce-MyAccount-content .order_details .order-total td {
  font-weight: 600;
  color: #1a1a1a;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.woocommerce-MyAccount-content
  .woocommerce-table--order-details
  .order-actions--heading,
.woocommerce-MyAccount-content .order_details .order-actions--heading {
  font-weight: 500;
  color: #6b6b6b;
  font-size: 0.875rem;
}

.woocommerce-MyAccount-content
  .woocommerce-table--order-details
  .order-actions-button,
.woocommerce-MyAccount-content .order_details .order-actions-button {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  text-decoration: none;
  margin-left: 0.35rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.woocommerce-MyAccount-content
  .woocommerce-table--order-details
  .order-actions-button:first-child,
.woocommerce-MyAccount-content
  .order_details
  .order-actions-button:first-child {
  margin-left: 0;
}

.woocommerce-MyAccount-content
  .woocommerce-table--order-details
  .order-actions-button:hover,
.woocommerce-MyAccount-content .order_details .order-actions-button:hover {
  border-color: #1a1a1a;
  background: rgba(0, 0, 0, 0.03);
}

/* --- Account details & address forms: match checkout (luxury-clean) --- */
.woocommerce-MyAccount-content form.edit-account .form-row,
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row {
  margin-bottom: 1rem;
  padding: 0;
}

.woocommerce-MyAccount-content form.edit-account .form-row label,
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}

.woocommerce-MyAccount-content form.edit-account .form-row label .optional,
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  label
  .optional {
  font-weight: 400;
  color: #6b6b6b;
}

.woocommerce-MyAccount-content form.edit-account .form-row input[type="text"],
.woocommerce-MyAccount-content form.edit-account .form-row input[type="email"],
.woocommerce-MyAccount-content form.edit-account .form-row input[type="tel"],
.woocommerce-MyAccount-content
  form.edit-account
  .form-row
  input[type="password"],
.woocommerce-MyAccount-content form.edit-account .form-row select,
.woocommerce-MyAccount-content form.edit-account .form-row textarea,
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  input[type="text"],
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  input[type="email"],
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  input[type="tel"],
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  input[type="password"],
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  select,
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.woocommerce-MyAccount-content form.edit-account .form-row input:focus,
.woocommerce-MyAccount-content form.edit-account .form-row select:focus,
.woocommerce-MyAccount-content form.edit-account .form-row textarea:focus,
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  input:focus,
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  select:focus,
.woocommerce-MyAccount-content
  .woocommerce-address-fields__field-wrapper
  .form-row
  textarea:focus {
  outline: none;
  border-color: #6b6b6b;
}

.woocommerce-MyAccount-content form.edit-account fieldset {
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.woocommerce-MyAccount-content form.edit-account fieldset legend {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  padding: 0 0 0.75rem;
  margin: 0;
}

.woocommerce-MyAccount-content
  form.edit-account
  .form-row
  + fieldset
  .form-row:first-of-type,
.woocommerce-MyAccount-content form.edit-account fieldset .form-row {
  margin-top: 0;
}

.woocommerce-MyAccount-content form.edit-account p:has(button[type="submit"]),
.woocommerce-MyAccount-content form.edit-account > p:last-of-type {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.woocommerce-MyAccount-content form.edit-account button[type="submit"],
.woocommerce-MyAccount-content
  .woocommerce-address-fields
  button[type="submit"] {
  padding: 0.7rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: #2e2e2e;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.woocommerce-MyAccount-content form.edit-account button[type="submit"]:hover,
.woocommerce-MyAccount-content
  .woocommerce-address-fields
  button[type="submit"]:hover {
  background: #1a1a1a;
}

.woocommerce-MyAccount-content
  form.edit-account
  #account_display_name_description {
  display: block;
  font-size: 0.8125rem;
  color: #6b6b6b;
  font-style: normal;
  margin-top: 0.35rem;
}

.woocommerce-MyAccount-content .woocommerce-address-fields > h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  padding: 0;
  border: none;
}

/* Inline first/last on larger screens (edit account & address) */
@media (min-width: 600px) {
  .woocommerce-MyAccount-content form.edit-account .form-row-first,
  .woocommerce-MyAccount-content form.edit-account .form-row-last,
  .woocommerce-MyAccount-content
    .woocommerce-address-fields__field-wrapper
    .form-row-first,
  .woocommerce-MyAccount-content
    .woocommerce-address-fields__field-wrapper
    .form-row-last {
    display: inline-block;
    width: calc(50% - 0.5rem);
    vertical-align: top;
    margin-bottom: 1rem;
  }
  .woocommerce-MyAccount-content form.edit-account .form-row-first,
  .woocommerce-MyAccount-content
    .woocommerce-address-fields__field-wrapper
    .form-row-first {
    margin-right: 0.5rem;
  }
  .woocommerce-MyAccount-content form.edit-account .form-row-last,
  .woocommerce-MyAccount-content
    .woocommerce-address-fields__field-wrapper
    .form-row-last {
    margin-left: 0.5rem;
  }
}

/* --- Login / Registration tabs (not logged in) --- */
.customer-login-tabs {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Montserrat", Sans-serif;
}

.customer-login-tabs:not(#customer_login) {
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.woocommerce-account .woocommerce-notices-wrapper {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.laventyr-register-success-box {
  max-width: 560px;
  margin: 1.25rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #fafafa;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.55;
  font-family: "Montserrat", "Kanit", sans-serif;
}

.laventyr-register-success-box p {
  margin: 0 0 0.4rem;
}

.laventyr-register-success-box p:last-child {
  margin-bottom: 0;
}

.laventyr-register-success-box__lead {
  font-size: 1rem;
  font-weight: 600;
}

.laventyr-register-success-box__email {
  font-size: 0.9375rem;
  font-weight: 600;
  word-break: break-all;
}

.customer-login-tabs__nav {
  display: flex;
  width: 100%;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.customer-login-tabs__tab {
  flex: 1;
  padding: 0.5rem 0 0.75rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.customer-login-tabs__tab:hover,
.customer-login-tabs__tab:focus {
  background: none;
  color: #1a1a1a;
}

.customer-login-tabs__tab.is-active {
  font-weight: 500;
  color: #1a1a1a;
  background: none !important;
}

.customer-login-tabs__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #a03531;
}

.customer-login-tabs__panel {
  display: none;
}

.customer-login-tabs__panel.is-active {
  display: block;
}

/* Login/register inputs: match checkout form styling */
.customer-login-tabs .woocommerce-form-row {
  margin-bottom: 1rem;
  padding: 0;
}

.customer-login-tabs .woocommerce-form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}

.customer-login-tabs .woocommerce-form-row input[type="text"],
.customer-login-tabs .woocommerce-form-row input[type="email"],
.customer-login-tabs .woocommerce-form-row input[type="password"],
.customer-login-tabs .woocommerce-form-row input[type="date"],
.customer-login-tabs .woocommerce-form-row select,
.customer-login-tabs .woocommerce-form-row .input-text {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 2px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.customer-login-tabs .woocommerce-form-row input::placeholder,
.customer-login-tabs .woocommerce-form-row .input-text::placeholder {
  color: #6b6b6b;
}

.customer-login-tabs .woocommerce-form-row input:focus,
.customer-login-tabs .woocommerce-form-row select:focus,
.customer-login-tabs .woocommerce-form-row .input-text:focus {
  outline: none;
  border-color: #6b6b6b;
}

.customer-login-tabs .laventyr-form-help-text {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #6b6b6b;
}

/* Registration: first/last name side-by-side on larger screens */
@media (min-width: 600px) {
  .customer-login-tabs .form-row-first,
  .customer-login-tabs .form-row-last {
    display: inline-block;
    width: calc(50% - 0.5rem);
    vertical-align: top;
    margin-bottom: 1rem;
  }
  .customer-login-tabs .form-row-first {
    margin-right: 0.5rem;
  }
  .customer-login-tabs .form-row-last {
    margin-left: 0.5rem;
  }
}

.customer-login-tabs .lost_password {
  margin: 0 0 1.75rem 0;
  text-align: right;
}

.customer-login-tabs .lost_password a {
  font-size: 0.875rem;
  font-weight: 400;
  color: #333;
  text-decoration: none;
}

.customer-login-tabs .lost_password a:hover {
  text-decoration: underline;
}

.customer-login-tabs .form-row--actions {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.customer-login-tabs .woocommerce-form-login__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  color: #fff !important;
  background: #2e2e2e !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.customer-login-tabs .woocommerce-form-login__submit:hover {
  background: #1a1a1a;
}

.customer-login-tabs__chevron {
  flex-shrink: 0;
  display: block;
  /* vertical-align doesn't apply to block elements */
}

.customer-login-tabs__or {
  font-size: 0.8125rem;
  color: #6b6b6b;
  margin: 0;
}

.customer-login-tabs .woocommerce-form-register__submit {
  display: inline-block;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff !important;
  background: #2e2e2e !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.customer-login-tabs .woocommerce-form-register__submit:hover {
  background: #1a1a1a;
}

/* Registration: privacy policy checkbox */
.customer-login-tabs .laventyr-register-privacy {
  margin-bottom: 1.25rem;
}

.customer-login-tabs .laventyr-register-privacy__label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: #333;
  cursor: pointer;
}

.customer-login-tabs .laventyr-register-privacy__label input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  cursor: pointer;
}

.customer-login-tabs .laventyr-register-privacy__text a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid rgba(51, 51, 51, 0.35);
}

.customer-login-tabs .laventyr-register-privacy__text a:hover {
  border-bottom-color: #1a1a1a;
  color: #1a1a1a;
}

/* Nationality: WooCommerce SelectWoo styling alignment */
.customer-login-tabs .select2-container--default .select2-selection--single {
  height: auto;
  min-height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 2px;
}

.customer-login-tabs .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.2;
  padding: 0.7rem 2.25rem 0.7rem 1rem;
  font-size: 0.9375rem;
  color: #1a1a1a;
}

.customer-login-tabs .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 8px;
}

/* Match dropdown border to input border */
.select2-container--default .select2-dropdown.laventyr-selectwoo-dropdown {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.select2-container--default .select2-dropdown.laventyr-selectwoo-dropdown .select2-search--dropdown .select2-search__field {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 2px;
}

/* Lost password / reset password — same card as login (templates wrap .customer-login-tabs) */
.customer-login-tabs__lost-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.95rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  text-transform: uppercase;
  text-align: center;
}

.customer-login-tabs__lost-title::after {
  content: "";
  display: block;
  width: 50px;
  margin: 0.85rem auto 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.woocommerce-lost-password-intro,
.woocommerce-reset-password-intro {
  margin: 0 0 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

.customer-login-tabs .woocommerce-ResetPassword .form-row--actions {
  text-align: center;
}

.customer-login-tabs .woocommerce-ResetPassword .form-row-first,
.customer-login-tabs .woocommerce-ResetPassword .form-row-last {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.customer-login-tabs
  .woocommerce-ResetPassword
  .woocommerce-form-lost-password__submit,
.customer-login-tabs
  .woocommerce-ResetPassword
  .woocommerce-form-reset-password__submit,
.customer-login-tabs .woocommerce-ResetPassword .woocommerce-Button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff !important;
  background: #2e2e2e !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.customer-login-tabs
  .woocommerce-ResetPassword
  .woocommerce-form-lost-password__submit:hover,
.customer-login-tabs
  .woocommerce-ResetPassword
  .woocommerce-form-reset-password__submit:hover,
.customer-login-tabs
  .woocommerce-ResetPassword
  .woocommerce-Button.button:hover {
  background: #1a1a1a !important;
}

.customer-login-tabs__back {
  margin: 1.5rem 0 0;
  text-align: center;
}

.customer-login-tabs__back a {
  font-size: 0.875rem;
  font-weight: 400;
  color: #333;
  text-decoration: none;
}

.customer-login-tabs__back a:hover {
  text-decoration: underline;
}

.woocommerce-lost-password-confirmation {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333;
}

.woocommerce-lost-password-confirmation .woocommerce-message,
.woocommerce-lost-password-confirmation .woocommerce-info,
.woocommerce-lost-password-confirmation .woocommerce-error {
  margin-bottom: 1rem;
}

.woocommerce-lost-password-confirmation__text {
  margin: 0 0 1.25rem;
}

.nsl-container-buttons {
  width: 100%;
}

/* Registration confirmation modal */
.register-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.register-confirm-modal[hidden] {
  display: none;
}

.register-confirm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.register-confirm-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 1.5rem 1.75rem;
}

.register-confirm-modal__title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.register-confirm-modal__summary {
  margin: 0 0 1.5rem;
  padding: 0;
}

.register-confirm-modal__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.register-confirm-modal__row:last-child {
  margin-bottom: 0;
}

.register-confirm-modal__row dt {
  margin: 0;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #6b6b6b;
  flex: 0 0 120px;
}

.register-confirm-modal__row dd {
  margin: 0;
  font-size: 0.9375rem;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
}

.register-confirm-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.register-confirm-modal__cancel {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.register-confirm-modal__cancel:hover {
  background: #e5e5e5;
  color: #333;
}

.register-confirm-modal__confirm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  background: #2e2e2e !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.register-confirm-modal__confirm:hover {
  background: #1a1a1a !important;
}

.woocommerce-privacy-policy-text {
  display: none;
}

table
  :where(caption, colgroup, :first-child)
  + thead
  tr:first-child
  :where(td, th),
table thead:first-child tr:first-child :where(td, th) {
  /* Your styles here */
  border-block-start: none !important;
}

/* Target the WooCommerce orders table specifically */
.woocommerce-orders-table tbody tr {
  background-color: #ffffff !important; /* Change this to your preferred row color */
}

.woocommerce-orders-table tbody tr td,
.woocommerce-orders-table tbody tr th {
  background-color: #ffffff !important;
}

.woocommerce-account .addresses .title::after,
.woocommerce-account .addresses .title::before {
  content: none !important;
}

.u-column2.col-2 woocommerce-Address {
  padding: 8px !important;
}
