/*
 * Royal Vision Traders - My Account skin.
 *
 * Styling only, on top of WooCommerce's classic myaccount templates.
 * Tokens come from rvt-design.css (:root), which loads site wide.
 *
 * Unlike the Cart and Checkout blocks, these are classic templates with
 * ordinary labels above the fields, so input height and padding are safe
 * to set here.
 */

/* ===============================================================
   1. Page shell
   =============================================================== */

body.woocommerce-account {
  background: var(--rvt-bg);
  color: var(--rvt-ink);
  font-family: var(--rvt-b);
}

body.woocommerce-account .woocommerce {
  max-width: 1160px;
  margin-inline: auto;
  padding: 48px 24px 96px;
}

body.woocommerce-account h1,
body.woocommerce-account h2,
body.woocommerce-account h3 {
  color: var(--rvt-ink);
  font-family: var(--rvt-h);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.woocommerce-account .woocommerce-MyAccount-content p,
body.woocommerce-account .woocommerce-MyAccount-content li {
  color: var(--rvt-muted);
  font-size: 15px;
  line-height: 1.6;
}

body.woocommerce-account a {
  color: var(--rvt-accent);
  text-decoration: none;
}

body.woocommerce-account a:hover {
  color: var(--rvt-accent-h);
}

/* ===============================================================
   2. Two column shell

   The nav and the content are siblings. The .rvt-account-has-nav body
   class, set in rvt-account.php, scopes the grid to the
   logged-in view so the login screen, which has no nav, keeps its own
   full width layout.
   =============================================================== */

body.rvt-account-has-nav .woocommerce {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

/* ===============================================================
   2b. Undo WooCommerce's float layout

   woocommerce-layout.css lays this screen out with floats and
   percentage widths:

     .woocommerce-MyAccount-navigation { float: left;  width: 30%; }
     .woocommerce-MyAccount-content    { float: right; width: 68%; }
     .col2-set .col-1                  { float: left;  width: 48%; }
     .col2-set .col-2                  { float: right; width: 48%; }

   A grid container ignores the floats but the percentages still apply,
   now resolved against each item's own track, so every box shrinks to a
   fraction of the space meant for it. The .col2-set clearfix pseudo
   elements also become stray grid items and displace the real columns.
   Both are neutralised here.
   =============================================================== */

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .col2-set .col-1,
body.woocommerce-account .col2-set .col-2,
body.woocommerce-account .woocommerce-Address {
  width: auto;
  float: none;
  margin: 0;
}

body.woocommerce-account .col2-set::before,
body.woocommerce-account .col2-set::after {
  content: none;
}

/* ===============================================================
   3. Account navigation
   =============================================================== */

body.woocommerce-account .woocommerce-MyAccount-navigation {
  padding: 12px;
  border: 1px solid var(--rvt-border);
  border-radius: var(--rvt-rm);
  background: var(--rvt-surface);
  box-shadow: var(--rvt-sh);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li + li {
  margin-top: 2px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--rvt-rp);
  color: var(--rvt-ink);
  font-family: var(--rvt-b);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a::after {
  color: currentColor;
  content: "\203A";
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--rvt-bg);
  color: var(--rvt-accent);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover::after {
  opacity: 0.6;
  transform: translateX(0);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--rvt-accent);
  color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::after {
  opacity: 1;
  transform: translateX(0);
}

/* Log out reads as a quieter, separate action. */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rvt-border);
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: var(--rvt-muted);
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: rgba(240, 128, 111, 0.12);
  color: var(--rvt-coral);
}

/* ===============================================================
   4. Content card
   =============================================================== */

body.woocommerce-account .woocommerce-MyAccount-content {
  padding: 28px;
  border: 1px solid var(--rvt-border);
  border-radius: var(--rvt-rm);
  background: var(--rvt-surface);
  box-shadow: var(--rvt-sh);
}

body.woocommerce-account .woocommerce-MyAccount-content > :first-child {
  margin-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content > :last-child {
  margin-bottom: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

/* ===============================================================
   5. Login and register
   =============================================================== */

body.woocommerce-account #customer_login.u-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* WooCommerce lays these out with floats and percentage widths. */
body.woocommerce-account #customer_login .u-column1,
body.woocommerce-account #customer_login .u-column2,
body.woocommerce-account .woocommerce-Addresses .u-column1,
body.woocommerce-account .woocommerce-Addresses .u-column2 {
  width: 100%;
  float: none;
  margin: 0;
}

body.woocommerce-account #customer_login .u-column1,
body.woocommerce-account #customer_login .u-column2 {
  padding: 28px;
  border: 1px solid var(--rvt-border);
  border-radius: var(--rvt-rm);
  background: var(--rvt-surface);
  box-shadow: var(--rvt-sh);
}

body.woocommerce-account #customer_login h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register {
  margin: 0;
  padding: 0;
  border: 0;
}

body.woocommerce-account .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rvt-muted);
  font-size: 14px;
}

body.woocommerce-account .woocommerce-LostPassword {
  margin: 12px 0 0;
  font-size: 14px;
}

/* ===============================================================
   6. Forms
   =============================================================== */

body.woocommerce-account .woocommerce-form-row,
body.woocommerce-account .form-row {
  margin: 0 0 18px;
  padding: 0;
}

body.woocommerce-account .woocommerce-form__label,
body.woocommerce-account .form-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--rvt-muted);
  font-size: 14px;
  font-weight: 500;
}

body.woocommerce-account .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

body.woocommerce-account .required {
  border: 0;
  color: var(--rvt-coral);
  text-decoration: none;
}

body.woocommerce-account input.input-text,
body.woocommerce-account .woocommerce-Input,
body.woocommerce-account select,
body.woocommerce-account textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--rvt-border);
  border-radius: var(--rvt-rs);
  background: var(--rvt-surface);
  color: var(--rvt-ink);
  font-family: var(--rvt-b);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-account textarea {
  min-height: 110px;
  padding: 12px 14px;
}

body.woocommerce-account input.input-text:focus,
body.woocommerce-account .woocommerce-Input:focus,
body.woocommerce-account select:focus,
body.woocommerce-account textarea:focus {
  border-color: var(--rvt-accent);
  box-shadow: 0 0 0 3px rgba(47, 169, 160, 0.16);
  outline: none;
}

body.woocommerce-account input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--rvt-accent);
}

body.woocommerce-account .woocommerce-password-strength {
  border-radius: var(--rvt-rs);
  font-size: 13px;
  font-weight: 500;
}

body.woocommerce-account .woocommerce-password-hint,
body.woocommerce-account .woocommerce-form__label ~ em,
body.woocommerce-account fieldset legend {
  color: var(--rvt-muted);
  font-size: 13px;
}

body.woocommerce-account fieldset {
  margin: 24px 0 0;
  padding: 20px;
  border: 1px solid var(--rvt-border);
  border-radius: var(--rvt-rm);
  background: var(--rvt-bg);
}

/* Paired fields sit side by side on wide screens. */
body.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
body.woocommerce-account .woocommerce-EditAccountForm .form-row-last,
body.woocommerce-account .woocommerce-address-fields .form-row-first,
body.woocommerce-account .woocommerce-address-fields .form-row-last {
  display: inline-block;
  box-sizing: border-box;
  width: calc(50% - 9px);
  float: none;
  vertical-align: top;
}

body.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
body.woocommerce-account .woocommerce-address-fields .form-row-first {
  margin-right: 14px;
}

/* ===============================================================
   7. Buttons
   =============================================================== */

body.woocommerce-account .woocommerce-Button,
body.woocommerce-account .woocommerce-button,
body.woocommerce-account button[type="submit"],
body.woocommerce-account a.button,
body.woocommerce-account .woocommerce-MyAccount-content .button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--rvt-rp);
  background: var(--rvt-accent);
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font-family: var(--rvt-b);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

body.woocommerce-account .woocommerce-Button:hover,
body.woocommerce-account .woocommerce-button:hover,
body.woocommerce-account button[type="submit"]:hover,
body.woocommerce-account a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .button:hover {
  background: var(--rvt-accent-h);
  color: #fff;
}

/* Row level actions stay quiet so the primary action keeps its weight. */
body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
body.woocommerce-account .woocommerce-Address .edit {
  min-height: 40px;
  padding: 9px 18px;
  border: 1.5px solid var(--rvt-ink);
  background: transparent;
  color: var(--rvt-ink);
  font-size: 14px;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:hover,
body.woocommerce-account .woocommerce-Address .edit:hover {
  background: var(--rvt-ink);
  color: var(--rvt-surface);
}

/* ===============================================================
   8. Orders table
   =============================================================== */

body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account table.shop_table {
  width: 100%;
  border: 1px solid var(--rvt-border);
  border-collapse: separate;
  border-radius: var(--rvt-rm);
  border-spacing: 0;
  overflow: hidden;
}

body.woocommerce-account .woocommerce-orders-table__header,
body.woocommerce-account table.shop_table thead th {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--rvt-border);
  background: var(--rvt-bg);
  color: var(--rvt-muted);
  font-family: var(--rvt-b);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

body.woocommerce-account .woocommerce-orders-table__cell,
body.woocommerce-account table.shop_table tbody td {
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--rvt-border);
  color: var(--rvt-ink);
  font-size: 15px;
  vertical-align: middle;
}

body.woocommerce-account .woocommerce-orders-table__row:last-child .woocommerce-orders-table__cell {
  border-bottom: 0;
}

body.woocommerce-account .woocommerce-orders-table__row:hover .woocommerce-orders-table__cell {
  background: rgba(47, 169, 160, 0.04);
}

body.woocommerce-account .woocommerce-orders-table__cell-order-number a {
  color: var(--rvt-ink);
  font-family: var(--rvt-h);
  font-weight: 600;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-number a:hover {
  color: var(--rvt-accent);
}

body.woocommerce-account .woocommerce-orders-table__cell-order-total {
  font-family: var(--rvt-h);
  font-weight: 700;
}

body.woocommerce-account .woocommerce-Price-currencySymbol {
  color: var(--rvt-muted);
  font-size: 80%;
}

/* Order status reads as a badge rather than plain text. */
body.woocommerce-account .woocommerce-orders-table__cell-order-status {
  color: var(--rvt-ink);
  font-size: 13px;
  font-weight: 500;
}

/* ===============================================================
   9. Addresses
   =============================================================== */

body.woocommerce-account .woocommerce-Addresses.col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.woocommerce-account .woocommerce-Address {
  padding: 22px;
  border: 1px solid var(--rvt-border);
  border-radius: var(--rvt-rm);
  background: var(--rvt-bg);
}

body.woocommerce-account .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 17px;
}

body.woocommerce-account .woocommerce-Address address {
  color: var(--rvt-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.7;
}

/* ===============================================================
   10. Notices
   =============================================================== */

body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--rvt-border);
  border-radius: var(--rvt-rm);
  background: var(--rvt-surface);
  color: var(--rvt-ink);
  font-size: 15px;
  list-style: none;
}

body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before {
  content: none;
}

body.woocommerce-account .woocommerce-message {
  border-color: var(--rvt-mint);
  background: rgba(111, 207, 168, 0.12);
}

body.woocommerce-account .woocommerce-error {
  border-color: var(--rvt-coral);
  background: rgba(240, 128, 111, 0.12);
}

body.woocommerce-account .woocommerce-info {
  border-color: var(--rvt-border);
  background: var(--rvt-bg);
}

body.woocommerce-account .woocommerce-error li,
body.woocommerce-account .woocommerce-message li {
  margin: 0;
  color: inherit;
}

body.woocommerce-account .woocommerce-info .button,
body.woocommerce-account .woocommerce-message .button {
  margin-left: auto;
}

/* ===============================================================
   10b. Order details (view-order endpoint)

   This table carries no data-title attributes, so it is not restacked
   as cards the way the orders list is. It is only two columns wide and
   fits a phone once the padding is tightened.
   =============================================================== */

body.woocommerce-account .woocommerce-order-details__title,
body.woocommerce-account .woocommerce-column__title {
  margin: 0 0 14px;
  font-size: 19px;
}

body.woocommerce-account .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  list-style: none;
}

body.woocommerce-account .woocommerce-order-overview li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--rvt-border);
  border-radius: var(--rvt-rm);
  background: var(--rvt-bg);
  color: var(--rvt-muted);
  font-size: 13px;
  text-transform: none;
}

body.woocommerce-account .woocommerce-order-overview li strong {
  display: block;
  margin-top: 4px;
  color: var(--rvt-ink);
  font-family: var(--rvt-h);
  font-size: 15px;
  font-weight: 600;
}

body.woocommerce-account .woocommerce-table--order-details th,
body.woocommerce-account .woocommerce-table--order-details td {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--rvt-border);
  word-break: break-word;
}

body.woocommerce-account .woocommerce-table--order-details tfoot th {
  color: var(--rvt-muted);
  font-weight: 500;
  text-align: left;
}

body.woocommerce-account .woocommerce-table--order-details tfoot td {
  font-family: var(--rvt-h);
  font-weight: 600;
  text-align: right;
}

body.woocommerce-account .woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-account .woocommerce-table--order-details tfoot tr:last-child td {
  border-bottom: 0;
  color: var(--rvt-ink);
  font-size: 17px;
  font-weight: 700;
}

body.woocommerce-account .woocommerce-table__product-name a {
  color: var(--rvt-ink);
  font-family: var(--rvt-h);
  font-weight: 600;
}

body.woocommerce-account .woocommerce-table__product-name a:hover {
  color: var(--rvt-accent);
}

body.woocommerce-account .product-quantity {
  color: var(--rvt-muted);
}

body.woocommerce-account .woocommerce-customer-details address {
  padding: 18px;
  border: 1px solid var(--rvt-border);
  border-radius: var(--rvt-rm);
  background: var(--rvt-bg);
  color: var(--rvt-muted);
  font-style: normal;
  line-height: 1.7;
}

/* ===============================================================
   11. Focus visibility
   =============================================================== */

body.woocommerce-account a:focus-visible,
body.woocommerce-account button:focus-visible,
body.woocommerce-account input:focus-visible,
body.woocommerce-account select:focus-visible {
  outline: 2px solid var(--rvt-accent);
  outline-offset: 3px;
}

/* ===============================================================
   12. Responsive
   =============================================================== */

@media (max-width: 1024px) {
  body.woocommerce-account .woocommerce {
    padding: 32px 20px 72px;
  }

  body.rvt-account-has-nav .woocommerce {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 22px;
  }
}

@media (max-width: 860px) {
  /* Nav moves above the content and becomes a scrollable pill row. */
  body.rvt-account-has-nav .woocommerce {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 8px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li + li {
    margin-top: 0;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li a {
    padding: 10px 16px;
    white-space: nowrap;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li a::after {
    content: none;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--rvt-border);
    margin-left: 6px;
    padding-left: 6px;
  }
}

@media (max-width: 767px) {
  body.woocommerce-account .woocommerce {
    padding: 24px 16px 56px;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 18px 16px;
  }

  body.woocommerce-account #customer_login.u-columns,
  body.woocommerce-account .woocommerce-Addresses.col2-set {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.woocommerce-account #customer_login .u-column1,
  body.woocommerce-account #customer_login .u-column2 {
    padding: 22px 18px;
  }

  /* Paired fields stack rather than squeezing to half width. */
  body.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
  body.woocommerce-account .woocommerce-EditAccountForm .form-row-last,
  body.woocommerce-account .woocommerce-address-fields .form-row-first,
  body.woocommerce-account .woocommerce-address-fields .form-row-last {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  /*
   * The orders table becomes one card per order. WooCommerce puts the
   * column name on every cell as data-title, so each row can carry its
   * own labels instead of relying on a header the phone cannot show.
   */
  body.woocommerce-account .woocommerce-orders-table {
    border: 0;
    border-radius: 0;
  }

  body.woocommerce-account .woocommerce-orders-table thead {
    display: none;
  }

  body.woocommerce-account .woocommerce-orders-table,
  body.woocommerce-account .woocommerce-orders-table tbody,
  body.woocommerce-account .woocommerce-orders-table tr,
  body.woocommerce-account .woocommerce-orders-table td {
    display: block;
    width: 100%;
  }

  body.woocommerce-account .woocommerce-orders-table__row {
    margin-bottom: 14px;
    padding: 6px 16px;
    border: 1px solid var(--rvt-border);
    border-radius: var(--rvt-rm);
    background: var(--rvt-surface);
  }

  body.woocommerce-account .woocommerce-orders-table__row:last-child {
    margin-bottom: 0;
  }

  body.woocommerce-account .woocommerce-orders-table__cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rvt-border);
    text-align: right;
  }

  body.woocommerce-account .woocommerce-orders-table__cell:last-child {
    border-bottom: 0;
  }

  body.woocommerce-account .woocommerce-orders-table__cell::before {
    flex-shrink: 0;
    color: var(--rvt-muted);
    content: attr(data-title);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
  }

  body.woocommerce-account .woocommerce-orders-table__cell-order-actions {
    display: block;
    text-align: left;
  }

  body.woocommerce-account .woocommerce-orders-table__cell-order-actions::before {
    display: block;
    margin-bottom: 8px;
  }

  body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
    width: 100%;
  }

  body.woocommerce-account .woocommerce-Button,
  body.woocommerce-account button[type="submit"],
  body.woocommerce-account .woocommerce-MyAccount-content > .button {
    width: 100%;
  }

  body.woocommerce-account .woocommerce-info .button,
  body.woocommerce-account .woocommerce-message .button {
    width: 100%;
    margin-left: 0;
  }

  body.woocommerce-account .woocommerce-table--order-details th,
  body.woocommerce-account .woocommerce-table--order-details td {
    padding: 12px 10px;
    font-size: 14px;
  }

  body.woocommerce-account .woocommerce-order-overview {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 400px) {
  body.woocommerce-account .woocommerce {
    padding: 20px 12px 48px;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 16px 14px;
  }

  body.woocommerce-account .woocommerce-orders-table__cell {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-account .woocommerce-MyAccount-navigation li a,
  body.woocommerce-account .woocommerce-MyAccount-navigation li a::after,
  body.woocommerce-account .woocommerce-Button,
  body.woocommerce-account input.input-text {
    transition: none;
  }
}
