/* ==========================================================================
   Yee Add-ons — WooCommerce My Account restyle
   --------------------------------------------------------------------------
   Loaded by: wp-content/mu-plugins/addons-my-account-style.php
   Scope:     body.woocommerce-account only (login/register, dashboard, orders,
              subscriptions, downloads, addresses, account details, lost password,
              view order). CSS only — no template overrides.
   Brand:     orange #f15a29, slate text, 12–16px radius cards, pill buttons.
   Remove the mu-plugin file to revert.
   ========================================================================== */

.woocommerce-account {
  --ao-primary: #f15a29;
  --ao-primary-dark: #d94d21;
  --ao-primary-soft: #fff1ec;
  --ao-primary-soft-2: #ffe4d9;
  --ao-primary-ring: rgba(241, 90, 41, 0.18);
  --ao-ink: #0f172a;
  --ao-ink-2: #1e293b;
  --ao-text: #475569;
  --ao-muted: #64748b;
  --ao-border: #e2e8f0;
  --ao-border-strong: #cbd5e1;
  --ao-surface: #ffffff;
  --ao-surface-2: #f8fafc;
  --ao-radius: 16px;
  --ao-radius-sm: 10px;
  --ao-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -16px rgba(15, 23, 42, 0.18);
  --ao-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Page frame + title
   -------------------------------------------------------------------------- */
.woocommerce-account .main-container {
  margin-top: 36px;
}

.woocommerce-account #sitefull .entry-header {
  margin: 0 0 24px;
}

.woocommerce-account #sitefull .entry-title {
  margin: 0;
  padding: 0;
  font-family: var(--ao-font);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--ao-ink);
}

.woocommerce-account .entry-content {
  font-family: var(--ao-font);
  color: var(--ao-text);
}

/* The [woocommerce_my_account] wrapper becomes a 2-column grid when logged in.
   Anything that is not the nav/content (notices, login forms, plugin output)
   spans the full width, so unknown markup never breaks the layout. */
.woocommerce-account .entry-content > .woocommerce {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.woocommerce-account .entry-content > .woocommerce > *:not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) {
  grid-column: 1 / -1;
}

/* WooCommerce's clearfix pseudo-elements would otherwise become grid items */
.woocommerce-account .entry-content > .woocommerce::before,
.woocommerce-account .entry-content > .woocommerce::after {
  content: none;
  display: none;
}

.woocommerce-account .entry-content > .woocommerce > .woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}

/* --------------------------------------------------------------------------
   Sidebar navigation
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 24px;
  padding: 12px;
  background: var(--ao-surface);
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius);
  box-shadow: var(--ao-shadow);
}

.admin-bar.woocommerce-account .woocommerce-MyAccount-navigation {
  top: 56px;
}

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

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

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--ao-radius-sm);
  font-family: var(--ao-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ao-text);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--ao-surface-2);
  color: var(--ao-ink);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--ao-primary-soft);
  color: var(--ao-primary);
  font-weight: 700;
}

/* Icons: CSS masks that follow the text colour, one per WooCommerce endpoint. */
.woocommerce-account .woocommerce-MyAccount-navigation a::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--ao-icon) center / contain no-repeat;
  mask: var(--ao-icon) center / contain no-repeat;
  opacity: 0.8;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
  opacity: 1;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='9' x='3' y='3' rx='1'/%3E%3Crect width='7' height='5' x='14' y='3' rx='1'/%3E%3Crect width='7' height='9' x='14' y='12' rx='1'/%3E%3Crect width='7' height='5' x='3' y='16' rx='1'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--orders { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--yeesubscriptions,
.woocommerce-account .woocommerce-MyAccount-navigation-link--subscriptions { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16'/%3E%3Cpath d='M8 16H3v5'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3Cline x1='2' x2='22' y1='10' y2='10'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--support,
.woocommerce-account .woocommerce-MyAccount-navigation-link--support-tickets { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' x2='12.01' y1='17' y2='17'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--licenses,
.woocommerce-account .woocommerce-MyAccount-navigation-link--purchase-codes { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 2-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { --ao-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E"); }

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ao-border);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* --------------------------------------------------------------------------
   Content card
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-content {
  min-height: 320px;
  min-width: 0;
  overflow-x: auto;
  padding: 32px;
  background: var(--ao-surface);
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius);
  box-shadow: var(--ao-shadow);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ao-text);
}

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

.woocommerce-account .woocommerce-MyAccount-content p {
  margin: 0 0 16px;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  margin: 0 0 16px;
  font-family: var(--ao-font);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ao-ink);
}

.woocommerce-account .woocommerce-MyAccount-content h2 {
  font-size: 22px;
  letter-spacing: -0.2px;
}

.woocommerce-account .woocommerce-MyAccount-content h3 {
  font-size: 18px;
}

.woocommerce-account .woocommerce-MyAccount-content * + h2,
.woocommerce-account .woocommerce-MyAccount-content * + h3 {
  margin-top: 28px;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):not(.woocommerce-Button) {
  color: var(--ao-primary);
  font-weight: 500;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):not(.woocommerce-Button):hover {
  color: var(--ao-primary-dark);
  text-decoration: underline;
}

.woocommerce-account .woocommerce-MyAccount-content mark {
  padding: 0;
  background: transparent;
  color: var(--ao-ink);
  font-weight: 700;
}

/* Dashboard greeting ("Hello <name> (not <name>? Log out)") as a soft hero band */
.woocommerce-account.woocommerce-dashboard .woocommerce-MyAccount-content > p:first-of-type {
  margin: 0 0 20px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #fff5ef 0%, #ffe7dc 100%);
  border: 1px solid var(--ao-primary-soft-2);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ao-ink);
}

.woocommerce-account.woocommerce-dashboard .woocommerce-MyAccount-content > p:first-of-type strong {
  color: var(--ao-primary);
  font-weight: 800;
}

.woocommerce-account.woocommerce-dashboard .woocommerce-MyAccount-content > p:first-of-type strong ~ strong {
  color: var(--ao-ink-2);
  font-weight: 600;
}

.woocommerce-account.woocommerce-dashboard .woocommerce-MyAccount-content > p:first-of-type a {
  font-size: 15px;
  font-weight: 600;
}

.woocommerce-account.woocommerce-dashboard .woocommerce-MyAccount-content > p:nth-of-type(2) {
  max-width: 64ch;
  font-size: 16px;
  color: var(--ao-muted);
}

/* --------------------------------------------------------------------------
   Notices (success / info / error) inside the account area
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce .woocommerce-message,
.woocommerce-account .woocommerce .woocommerce-info,
.woocommerce-account .woocommerce .woocommerce-error {
  position: relative;
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--ao-border);
  border-top-width: 1px !important;
  border-radius: 12px;
  background: var(--ao-surface-2);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ao-ink-2);
  list-style: none;
  width: auto;
  word-wrap: break-word;
}

.woocommerce-account .woocommerce .woocommerce-message,
.woocommerce-account .woocommerce .woocommerce-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.woocommerce-account .woocommerce .woocommerce-info {
  background: var(--ao-primary-soft);
  border-color: var(--ao-primary-soft-2) !important;
  color: #7c2d12;
}

.woocommerce-account .woocommerce .woocommerce-message {
  background: #f0fdf4;
  border-color: #bbf7d0 !important;
  color: #14532d;
}

.woocommerce-account .woocommerce .woocommerce-error {
  padding-left: 46px;
  background: #fef2f2;
  border-color: #fecaca !important;
  color: #7f1d1d;
}

.woocommerce-account .woocommerce .woocommerce-message::before,
.woocommerce-account .woocommerce .woocommerce-info::before,
.woocommerce-account .woocommerce .woocommerce-error::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  font: 0/0 a;
  background-color: currentColor;
  -webkit-mask: var(--ao-notice-icon) center / contain no-repeat;
  mask: var(--ao-notice-icon) center / contain no-repeat;
  opacity: 0.9;
}

.woocommerce-account .woocommerce .woocommerce-message::before,
.woocommerce-account .woocommerce .woocommerce-info::before {
  position: static;
}

.woocommerce-account .woocommerce .woocommerce-error::before {
  position: absolute;
  top: 14px;
  left: 16px;
  color: #b91c1c;
}

.woocommerce-account .woocommerce .woocommerce-info { --ao-notice-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce .woocommerce-message { --ao-notice-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.801 10A10 10 0 1 1 17 3.335'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce .woocommerce-error { --ao-notice-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }

.woocommerce-account .woocommerce .woocommerce-error li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce .woocommerce-error li + li {
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Buttons — primary (pill, orange) + small outline variant
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce a.button,
.woocommerce-account .woocommerce button.button,
.woocommerce-account .woocommerce input.button,
.woocommerce-account .woocommerce .woocommerce-button,
.woocommerce-account .woocommerce .woocommerce-Button,
.woocommerce-account .woocommerce a.button.alt,
.woocommerce-account .woocommerce button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 26px !important;
  border: 1px solid transparent;
  border-radius: 999px !important;
  background: var(--ao-primary) !important;
  color: #fff !important;
  font-family: var(--ao-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(241, 90, 41, 0.5);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.woocommerce-account .woocommerce a.button:hover,
.woocommerce-account .woocommerce button.button:hover,
.woocommerce-account .woocommerce input.button:hover,
.woocommerce-account .woocommerce .woocommerce-button:hover,
.woocommerce-account .woocommerce .woocommerce-Button:hover,
.woocommerce-account .woocommerce a.button.alt:hover,
.woocommerce-account .woocommerce button.button.alt:hover {
  background: var(--ao-primary-dark) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px -6px rgba(241, 90, 41, 0.55);
  transform: translateY(-1px);
}

.woocommerce-account .woocommerce button.button:focus-visible,
.woocommerce-account .woocommerce a.button:focus-visible {
  outline: 3px solid var(--ao-primary-ring);
  outline-offset: 2px;
}

.woocommerce-account .woocommerce button.button:disabled,
.woocommerce-account .woocommerce button.button.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Full-width submit buttons on the auth forms */
.woocommerce-account .woocommerce .woocommerce-form-login__submit,
.woocommerce-account .woocommerce .woocommerce-form-register__submit,
.woocommerce-account .woocommerce .woocommerce-ResetPassword .woocommerce-Button {
  width: 100%;
  padding: 14px 26px !important;
  font-size: 16px;
}

/* Small outline buttons: inside notices, table actions, pagination, address "Edit" */
.woocommerce-account .woocommerce .woocommerce-info a.button,
.woocommerce-account .woocommerce .woocommerce-message a.button,
.woocommerce-account .woocommerce .woocommerce-orders-table__cell-order-actions a.button,
.woocommerce-account .woocommerce .woocommerce-pagination a.button,
.woocommerce-account .woocommerce .woocommerce-Address-title a.edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 16px !important;
  border: 1px solid #f7c7b5;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--ao-primary) !important;
  font-family: var(--ao-font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.woocommerce-account .woocommerce .woocommerce-info a.button:hover,
.woocommerce-account .woocommerce .woocommerce-message a.button:hover,
.woocommerce-account .woocommerce .woocommerce-orders-table__cell-order-actions a.button:hover,
.woocommerce-account .woocommerce .woocommerce-pagination a.button:hover,
.woocommerce-account .woocommerce .woocommerce-Address-title a.edit:hover {
  background: var(--ao-primary-soft) !important;
  border-color: var(--ao-primary);
  color: var(--ao-primary-dark) !important;
  transform: none;
  box-shadow: none;
}

.woocommerce-account .woocommerce .woocommerce-info a.button,
.woocommerce-account .woocommerce .woocommerce-message a.button {
  float: none;
  order: 2;
  margin-left: auto;
}

/* Small solid buttons inside tables (download file links, pay/view) */
.woocommerce-account .woocommerce table.shop_table a.button {
  padding: 8px 18px !important;
  font-size: 13.5px;
  white-space: normal;
}

.woocommerce-account .woocommerce .woocommerce-orders-table__cell-order-actions {
  white-space: nowrap;
}

.woocommerce-account .woocommerce .woocommerce-orders-table__cell-order-actions a.button + a.button {
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Forms (login, register, lost password, edit address, edit account)
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register,
.woocommerce-account .woocommerce form.woocommerce-ResetPassword,
.woocommerce-account .woocommerce form.woocommerce-EditAccountForm,
.woocommerce-account .woocommerce form.edit-account {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

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

.woocommerce-account .woocommerce form .form-row label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--ao-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ao-ink-2);
}

.woocommerce-account .woocommerce form .form-row label.woocommerce-form__label-for-checkbox,
.woocommerce-account .woocommerce form .form-row label.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  color: var(--ao-text);
  cursor: pointer;
}

.woocommerce-account .woocommerce form .form-row .required {
  color: var(--ao-primary);
  text-decoration: none;
  border: 0;
}

.woocommerce-account .woocommerce form .form-row .optional {
  font-weight: 400;
  color: var(--ao-muted);
}

.woocommerce-account .woocommerce form .form-row input.input-text,
.woocommerce-account .woocommerce form .form-row textarea,
.woocommerce-account .woocommerce form .form-row select,
.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection--single {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--ao-border-strong);
  border-radius: var(--ao-radius-sm);
  background: #fff;
  box-shadow: none;
  outline: none;
  font-family: var(--ao-font);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ao-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce-account .woocommerce form .form-row textarea {
  height: auto;
  min-height: 110px;
  resize: vertical;
}

.woocommerce-account .woocommerce form .form-row select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.woocommerce-account .woocommerce form .form-row input.input-text:focus,
.woocommerce-account .woocommerce form .form-row textarea:focus,
.woocommerce-account .woocommerce form .form-row select:focus,
.woocommerce-account .woocommerce form .form-row .select2-container--open .select2-selection--single,
.woocommerce-account .woocommerce form .form-row .select2-container--focus .select2-selection--single {
  border-color: var(--ao-primary);
  box-shadow: 0 0 0 4px var(--ao-primary-ring);
}

.woocommerce-account .woocommerce form .form-row input.input-text::placeholder,
.woocommerce-account .woocommerce form .form-row textarea::placeholder {
  color: #94a3b8;
}

.woocommerce-account .woocommerce form .form-row input[type="checkbox"],
.woocommerce-account .woocommerce form .form-row input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ao-primary);
  vertical-align: middle;
}

/* Select2 (country / state pickers on the address form) */
.woocommerce-account .woocommerce form .form-row .select2-container {
  width: 100% !important;
}

.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection--single {
  padding: 0;
}

.woocommerce-account .woocommerce form .form-row .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 40px 0 14px;
  line-height: 44px;
  color: var(--ao-ink);
}

.woocommerce-account .woocommerce form .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 10px;
  height: 44px;
}

/* Password reveal button (WooCommerce core) */
.woocommerce-account .woocommerce form .password-input {
  display: flex;
  flex-direction: column;
  position: relative;
}

.woocommerce-account .woocommerce form .show-password-input {
  right: 14px;
  opacity: 0.7;
}

/* Helper text under "Display name" etc. */
.woocommerce-account .woocommerce form .form-row > span > em,
.woocommerce-account .woocommerce form .form-row .description {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  color: var(--ao-muted);
}

/* Two-column rows (first / last name) */
.woocommerce-account .woocommerce form .form-row-first,
.woocommerce-account .woocommerce form .form-row-last {
  width: 48.5%;
}

/* Readable width for the long account / address forms */
.woocommerce-account .woocommerce form.woocommerce-EditAccountForm,
.woocommerce-account .woocommerce .woocommerce-address-fields {
  max-width: 700px;
}

.woocommerce-account .woocommerce form.woocommerce-EditAccountForm fieldset {
  margin: 28px 0 8px;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--ao-border);
  min-width: 0;
}

.woocommerce-account .woocommerce form.woocommerce-EditAccountForm legend {
  margin: 0;
  padding: 0 14px 0 0;
  font-family: var(--ao-font);
  font-size: 17px;
  font-weight: 700;
  color: var(--ao-ink);
}

.woocommerce-account .woocommerce form.woocommerce-EditAccountForm > p:last-of-type,
.woocommerce-account .woocommerce .woocommerce-address-fields > p:last-of-type {
  margin-top: 8px;
}

/* Cloudflare Turnstile widget spacing */
.woocommerce-account .woocommerce .cf-turnstile {
  margin: 6px 0 18px;
}

.woocommerce-account .woocommerce br.cf-turnstile-br {
  display: none;
}

/* Login / register "Lost your password?" link + remember-me row */
.woocommerce-account .woocommerce .woocommerce-form-login__rememberme {
  margin-bottom: 16px;
}

.woocommerce-account .woocommerce form.login > .form-row:last-of-type,
.woocommerce-account .woocommerce form.login .form-row.form-row--submit {
  margin-bottom: 14px;
}

.woocommerce-account .woocommerce .woocommerce-LostPassword {
  margin: 0;
  text-align: center;
  font-size: 14px;
}

.woocommerce-account .woocommerce .woocommerce-LostPassword a,
.woocommerce-account .woocommerce .woocommerce-privacy-policy-text a {
  color: var(--ao-primary);
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-account .woocommerce .woocommerce-LostPassword a:hover,
.woocommerce-account .woocommerce .woocommerce-privacy-policy-text a:hover {
  text-decoration: underline;
}

.woocommerce-account .woocommerce .woocommerce-privacy-policy-text p,
.woocommerce-account .woocommerce form.register > p:not(.form-row) {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ao-muted);
}

/* --------------------------------------------------------------------------
   Logged-out: Login / Register cards
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce #customer_login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  width: auto;
}

.woocommerce-account .woocommerce #customer_login::before,
.woocommerce-account .woocommerce #customer_login::after {
  display: none;
}

.woocommerce-account .woocommerce #customer_login .col-1,
.woocommerce-account .woocommerce #customer_login .col-2 {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 32px;
  background: var(--ao-surface);
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius);
  box-shadow: var(--ao-shadow);
}

.woocommerce-account .woocommerce #customer_login h2,
.woocommerce-account .woocommerce .woocommerce-MyAccount-content > h2:first-child,
.woocommerce-account .woocommerce > h2 {
  margin: 0 0 20px;
  font-family: var(--ao-font);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--ao-ink);
}

/* Login page without registration: single centered card */
.woocommerce-account:not(.logged-in) .woocommerce > form.login,
.woocommerce-account .woocommerce > form.woocommerce-ResetPassword {
  box-sizing: border-box;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px;
  background: var(--ao-surface);
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius);
  box-shadow: var(--ao-shadow);
}

.woocommerce-account .woocommerce form.woocommerce-ResetPassword .form-row-first {
  float: none;
  width: 100%;
}

.woocommerce-account .woocommerce form.woocommerce-ResetPassword > p:first-child {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--ao-muted);
}

/* --------------------------------------------------------------------------
   Tables (orders, subscriptions, downloads, order details)
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce table.shop_table {
  width: 100%;
  margin: 0 0 20px;
  border: 1px solid var(--ao-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  font-family: var(--ao-font);
  font-size: 14px;
  text-align: left;
}

.woocommerce-account .woocommerce table.shop_table th,
.woocommerce-account .woocommerce table.shop_table td {
  font-family: var(--ao-font);
}

.woocommerce-account .woocommerce table.shop_table thead th {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--ao-border);
  background: var(--ao-surface-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ao-muted);
}

.woocommerce-account .woocommerce table.shop_table tbody td,
.woocommerce-account .woocommerce table.shop_table tbody th,
.woocommerce-account .woocommerce table.shop_table tfoot td,
.woocommerce-account .woocommerce table.shop_table tfoot th {
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--ao-border);
  background: transparent;
  vertical-align: middle;
  line-height: 1.5;
  color: var(--ao-text);
}

.woocommerce-account .woocommerce table.shop_table tbody tr:first-child td,
.woocommerce-account .woocommerce table.shop_table tbody tr:first-child th,
.woocommerce-account .woocommerce table.shop_table > tbody:first-child tr:first-child td,
.woocommerce-account .woocommerce table.shop_table > tr:first-child td {
  border-top: 0;
}

.woocommerce-account .woocommerce table.shop_table thead + tbody tr:first-child td,
.woocommerce-account .woocommerce table.shop_table thead + tbody tr:first-child th,
.woocommerce-account .woocommerce table.shop_table thead + tr td {
  border-top: 0;
}

.woocommerce-account .woocommerce table.shop_table > tr td,
.woocommerce-account .woocommerce table.shop_table > tr th {
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--ao-border);
  vertical-align: middle;
  line-height: 1.5;
  color: var(--ao-text);
}

.woocommerce-account .woocommerce table.shop_table tbody tr:hover td {
  background: #fcfcfd;
}

.woocommerce-account .woocommerce table.shop_table tbody th,
.woocommerce-account .woocommerce table.shop_table tfoot th {
  font-weight: 600;
  color: var(--ao-ink-2);
}

.woocommerce-account .woocommerce table.shop_table tfoot td,
.woocommerce-account .woocommerce table.shop_table tfoot th {
  background: var(--ao-surface-2);
}

.woocommerce-account .woocommerce table.shop_table td.product-name a,
.woocommerce-account .woocommerce table.shop_table td.download-product a,
.woocommerce-account .woocommerce table.shop_table .woocommerce-orders-table__cell-order-number a {
  font-weight: 700;
  color: var(--ao-ink) !important;
  text-decoration: none !important;
}

.woocommerce-account .woocommerce table.shop_table td.product-name a:hover,
.woocommerce-account .woocommerce table.shop_table td.download-product a:hover,
.woocommerce-account .woocommerce table.shop_table .woocommerce-orders-table__cell-order-number a:hover {
  color: var(--ao-primary) !important;
}

.woocommerce-account .woocommerce table.shop_table .woocommerce-orders-table__cell-order-total,
.woocommerce-account .woocommerce table.shop_table .woocommerce-Price-amount {
  font-weight: 600;
  color: var(--ao-ink-2);
}

.woocommerce-account .woocommerce table.shop_table td.download-remaining {
  font-weight: 600;
}

/* Order status: coloured text + dot (desktop only; the stacked mobile table
   uses the cell ::before for the column label). */
.woocommerce-account .woocommerce table.shop_table .woocommerce-orders-table__cell-order-status {
  font-weight: 600;
  color: var(--ao-ink-2);
}

@media (min-width: 1160px) {
  .woocommerce-account .woocommerce table.shop_table .woocommerce-orders-table__cell-order-status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 8px 1px 0;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
  }
}

.woocommerce-account .woocommerce table.shop_table tr.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: #15803d; }
.woocommerce-account .woocommerce table.shop_table tr.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status { color: #1d4ed8; }
.woocommerce-account .woocommerce table.shop_table tr.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce table.shop_table tr.woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status { color: #b45309; }
.woocommerce-account .woocommerce table.shop_table tr.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce table.shop_table tr.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status { color: #6b7280; }
.woocommerce-account .woocommerce table.shop_table tr.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status { color: #b91c1c; }

/* Downloads table: Product | Document (theme) | Expires | Download | Purchase Code (yeepurchasecode) */
/* The theme's order-downloads.php has no header row: <thead> holds the
   "Pro Management Plugin" (license manager) row as <td>s, so style thead cells
   like body cells, highlight that row, and hint column widths on the cells. */
.woocommerce-account .woocommerce table.woocommerce-table--order-downloads thead td {
  padding: 14px 16px;
  border: 0;
  background: var(--ao-primary-soft);
  vertical-align: middle;
  line-height: 1.5;
  font-size: 14px;
  color: var(--ao-text);
}

.woocommerce-account .woocommerce table.woocommerce-table--order-downloads thead + tbody tr:first-child td {
  border-top: 1px solid var(--ao-border);
}

.woocommerce-account .woocommerce table.woocommerce-table--order-downloads tbody td,
.woocommerce-account .woocommerce table.woocommerce-table--order-downloads thead td {
  padding: 12px 14px;
}

.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-product {
  min-width: 140px;
}

.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-remaining {
  min-width: 100px;
}

.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-file {
  min-width: 170px;
}

/* codes wrap at their hyphens instead of forcing the table wider than the card */
.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.purchase_code {
  min-width: 150px;
  white-space: normal;
}

@media (min-width: 1160px) {
  /* no header row → tiny captions on the two cells that are not self-explanatory */
  .woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-expires::before,
  .woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.purchase_code::before {
    content: attr(data-title);
    display: block;
    margin-bottom: 3px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ao-muted);
  }
}

.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-product {
  font-weight: 700;
  color: var(--ao-ink);
  line-height: 1.45;
}

.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-product .required-c-r {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-remaining a,
.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-remaining a.yeepurchase-doc-link,
.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-remaining a.yeepurchase-guide-link {
  display: inline;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ao-primary);
}

.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-remaining a::before {
  display: none;
}

.woocommerce-account .woocommerce table.woocommerce-table--order-downloads td.download-expires {
  color: var(--ao-muted);
}

/* Download file button: compact, left aligned, icon + file name, wraps when long */
.woocommerce-account .woocommerce table.shop_table a.woocommerce-MyAccount-downloads-file.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 14px 8px 12px !important;
  border-radius: 10px !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  box-shadow: 0 2px 8px -3px rgba(241, 90, 41, 0.5);
}

.woocommerce-account .woocommerce table.shop_table a.woocommerce-MyAccount-downloads-file.button::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Purchase code chip (yeepurchasecode plugin) */
.woocommerce-account .woocommerce .yeepurchase-code-display {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--ao-border);
  border-radius: 8px;
  background: var(--ao-surface-2);
  font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--ao-ink);
  white-space: normal;
  overflow-wrap: break-word;
  user-select: all;
}

.woocommerce-account .woocommerce table.shop_table td .description {
  font-size: 13px;
  color: var(--ao-muted);
}

/* Pagination under the orders table */
.woocommerce-account .woocommerce .woocommerce-pagination {
  display: flex;
  gap: 10px;
  margin: 0 0 8px;
}

.woocommerce-account .woocommerce .woocommerce-pagination .woocommerce-button--next {
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   Addresses
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: auto;
}

.woocommerce-account .woocommerce .woocommerce-Addresses::before,
.woocommerce-account .woocommerce .woocommerce-Addresses::after {
  display: none;
}

.woocommerce-account .woocommerce .woocommerce-Address {
  float: none;
  box-sizing: border-box;
  width: auto;
  max-width: 440px;
  padding: 20px 22px;
  background: var(--ao-surface-2);
  border: 1px solid var(--ao-border);
  border-radius: 12px;
}

.woocommerce-account .woocommerce .woocommerce-Addresses .woocommerce-Address {
  max-width: none;
}

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

.woocommerce-account .woocommerce .woocommerce-Address-title::before,
.woocommerce-account .woocommerce .woocommerce-Address-title::after {
  display: none;
}

.woocommerce-account .woocommerce .woocommerce-Address-title h3 {
  float: none;
  margin: 0;
  font-size: 17px;
}

.woocommerce-account .woocommerce .woocommerce-Address-title a.edit {
  float: none;
}

.woocommerce-account .woocommerce .woocommerce-Address address {
  margin: 0;
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ao-text);
}

/* --------------------------------------------------------------------------
   View order (/my-account/view-order/ID/)
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce .woocommerce-order-details,
.woocommerce-account .woocommerce .woocommerce-customer-details {
  margin-bottom: 24px;
}

.woocommerce-account .woocommerce .woocommerce-customer-details address {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--ao-border);
  border-radius: 12px;
  background: var(--ao-surface-2);
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ao-text);
}

.woocommerce-account .woocommerce .woocommerce-customer-details .woocommerce-column__title {
  margin-bottom: 12px;
  font-size: 17px;
}

.woocommerce-account .woocommerce .woocommerce-customer-details--phone,
.woocommerce-account .woocommerce .woocommerce-customer-details--email {
  margin: 0;
}

.woocommerce-account .woocommerce .order-again {
  margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1159px) {
  .woocommerce-account .entry-content > .woocommerce {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
  }

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

  /* Stacked "card" rows for responsive tables below 1160px — with the sidebar
     beside the content there is no room for 5 columns; WooCommerce itself only
     stacks below 768px, so these rules repeat its block-cell approach). */
  .woocommerce-account .woocommerce table.shop_table_responsive thead {
    display: none;
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tbody,
  .woocommerce-account .woocommerce table.shop_table_responsive tr {
    display: block;
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tr {
    padding: 8px 0;
    border-top: 1px solid var(--ao-border);
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tbody tr:first-child,
  .woocommerce-account .woocommerce table.shop_table_responsive thead + tr {
    border-top: 0;
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tr td {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 8px 16px;
    border: 0 !important;
    background: transparent !important;
    text-align: right !important;
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tr td::before {
    content: attr(data-title);
    flex: 0 0 auto;
    float: none;
    margin: 0 auto 0 0;
    padding-right: 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ao-muted);
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions,
  .woocommerce-account .woocommerce table.shop_table_responsive tr td.download-file {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 10px;
    text-align: left !important;
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions::before,
  .woocommerce-account .woocommerce table.shop_table_responsive tr td.download-file::before {
    display: none;
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions a.button,
  .woocommerce-account .woocommerce table.shop_table_responsive tr td.download-file a.button {
    margin: 0;
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tr td.download-file a.woocommerce-MyAccount-downloads-file.button {
    width: 100%;
    justify-content: center;
  }

  .woocommerce-account .woocommerce table.woocommerce-table--order-downloads tr td {
    width: auto !important;
    white-space: normal;
  }

  .woocommerce-account .woocommerce table.woocommerce-table--order-downloads thead {
    display: block;
  }

  .woocommerce-account .woocommerce table.woocommerce-table--order-downloads thead tr {
    padding: 8px 0;
    background: var(--ao-primary-soft);
  }

  .woocommerce-account .woocommerce table.woocommerce-table--order-downloads thead td,
  .woocommerce-account .woocommerce table.woocommerce-table--order-downloads thead + tbody tr:first-child td {
    border-top: 0 !important;
  }

  .woocommerce-account .woocommerce table.woocommerce-table--order-downloads thead + tbody tr:first-child {
    border-top: 1px solid var(--ao-border);
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tr td.download-product {
    text-align: left !important;
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tr td.purchase_code {
    white-space: normal;
  }

  .woocommerce-account .woocommerce table.shop_table_responsive tr td.purchase_code .yeepurchase-code-display {
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    text-align: left;
  }

}

@media (max-width: 900px) {
  .woocommerce-account .entry-content > .woocommerce {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Sidebar becomes a horizontally scrolling tab bar */
  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
    padding: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: row;
    gap: 4px;
    width: max-content;
    min-width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation a {
    padding: 10px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation a::before {
    width: 18px;
    height: 18px;
  }

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

  .woocommerce-account .woocommerce #customer_login {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .woocommerce-account .main-container {
    margin-top: 24px;
  }

  .woocommerce-account #sitefull .entry-title {
    font-size: 28px;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    min-height: 0;
    padding: 20px 16px;
  }

  .woocommerce-account .woocommerce #customer_login .col-1,
  .woocommerce-account .woocommerce #customer_login .col-2,
  .woocommerce-account:not(.logged-in) .woocommerce > form.login,
  .woocommerce-account .woocommerce > form.woocommerce-ResetPassword {
    padding: 22px 18px;
  }

  .woocommerce-account .woocommerce #customer_login h2 {
    font-size: 22px;
  }

  .woocommerce-account.woocommerce-dashboard .woocommerce-MyAccount-content > p:first-of-type {
    padding: 18px 18px;
    font-size: 19px;
  }

  .woocommerce-account .woocommerce form .form-row-first,
  .woocommerce-account .woocommerce form .form-row-last {
    float: none;
    width: 100%;
  }

  .woocommerce-account .woocommerce .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .woocommerce .woocommerce-Address {
    max-width: none;
  }

  .woocommerce-account .woocommerce .woocommerce-message,
  .woocommerce-account .woocommerce .woocommerce-info {
    padding: 12px 14px;
  }

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

  .woocommerce-account .woocommerce .woocommerce-pagination a.button {
    flex: 1 1 0;
  }
}

@media (max-width: 480px) {
  .woocommerce-account #sitefull .entry-title {
    font-size: 26px;
  }

  .woocommerce-account .woocommerce a.button,
  .woocommerce-account .woocommerce button.button,
  .woocommerce-account .woocommerce .woocommerce-button,
  .woocommerce-account .woocommerce .woocommerce-Button {
    padding: 12px 22px !important;
    font-size: 14.5px;
  }
}
