/* My Account donor parity layer.
   Goal: match Too Much donor account structure while keeping TMC colours and native Woo/TMC functionality. */

body.woocommerce-account {
  --tmc-account-red: #147cff;
  --tmc-account-accent: #147cff;
  --tmc-account-accent-dark: #061426;
  --tmc-account-accent-soft: #eaf4ff;
  --tmc-account-ink: #071426;
  --tmc-account-muted: #65738a;
  --tmc-account-line: #d8e0eb;
  --tmc-account-title: #eef4fb;
  --tmc-account-info: #d8f1f6;
  --tmc-account-info-text: #0d5262;
  background: #fff;
  color: var(--tmc-account-ink);
  overflow-x: hidden;
}

html:has(body.woocommerce-account) {
  overflow-x: hidden;
}

body.woocommerce-account .tmc24-header,
body.woocommerce-account .tmc24-topbar,
body.woocommerce-account .tmc24-topbar__center,
body.woocommerce-account .tmc24-topbar-ticker,
body.woocommerce-account .tmc24-topbar-ticker__viewport {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
}

body.woocommerce-account .tmc24-topbar-ticker__viewport {
  position: relative;
  min-height: 26px;
}

body.woocommerce-account .tmc24-topbar-ticker__track {
  position: static;
  height: 100%;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  align-items: center;
  animation: none !important;
  transform: none !important;
}

body.woocommerce-account .tmc24-topbar-ticker__group {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

body.woocommerce-account .tmc24-topbar-ticker__group[aria-hidden="true"] {
  display: none !important;
}

body.woocommerce-account .tmc-account-title-band {
  padding: 34px 0 26px;
  background: #fff;
  border: 0;
}

body.woocommerce-account .tmc-account-title-band .tmc24-container,
body.woocommerce-account .tmc-account-content-band .tmc24-container {
  max-width: 1120px;
}

body.woocommerce-account .tmc-account-title-band h1 {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 18px;
  border: 0;
  border-radius: 0;
  background: var(--tmc-account-title);
  color: var(--tmc-account-ink);
  box-shadow: none;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

body.woocommerce-account .tmc-account-content-band {
  padding: 6px 0 56px;
  background: #fff;
}

body.woocommerce-account .tmc40-content-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 326px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 420px;
  border: 1px solid var(--tmc-account-line);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 14px 30px rgba(7, 20, 38, .05);
  overflow: hidden;
}

/* Logged-out login/register has no account nav; keep donor's two equal panels. */
body.woocommerce-account .woocommerce:has(#customer_login),
body.woocommerce-account:not(.logged-in) .tmc40-content-card > .woocommerce {
  display: block !important;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

body.woocommerce-account #customer_login.u-columns.col2-set,
body.woocommerce-account .woocommerce #customer_login {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 !important;
}

body.woocommerce-account #customer_login.u-columns.col2-set > .u-column1,
body.woocommerce-account #customer_login.u-columns.col2-set > .u-column2 {
  position: static !important;
  float: none !important;
  clear: none !important;
  display: block !important;
  grid-row: 1 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  inset: auto !important;
  transform: none !important;
  flex: none !important;
  box-sizing: border-box !important;
}

body.woocommerce-account #customer_login.u-columns.col2-set > .u-column1,
body.woocommerce-account #customer_login.u-columns.col2-set > .u-column1.col-1 {
  grid-column: 1 !important;
}

body.woocommerce-account #customer_login.u-columns.col2-set > .u-column2,
body.woocommerce-account #customer_login.u-columns.col2-set > .u-column2.col-2 {
  grid-column: 2 !important;
}

body.woocommerce-account #customer_login.u-columns.col2-set::before,
body.woocommerce-account #customer_login.u-columns.col2-set::after {
  content: none !important;
  display: none !important;
}

body.woocommerce-account:not(.logged-in) .u-column1,
body.woocommerce-account:not(.logged-in) .u-column2 {
  padding: 26px 28px 30px;
  border: 1px solid var(--tmc-account-line);
  background: #fff;
  box-shadow: 0 12px 26px rgba(7, 20, 38, .045);
}

body.woocommerce-account:not(.logged-in) .u-column1 > h2,
body.woocommerce-account:not(.logged-in) .u-column2 > h2,
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .tmc-compact-account-dashboard h2 {
  margin: 0 0 24px;
  color: var(--tmc-account-ink);
  font-size: 29px;
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1.12;
  text-transform: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  height: 100%;
  padding: 42px;
  border-right: 1px solid var(--tmc-account-line);
  background: #fff;
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
  min-width: 0;
  margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #3a4656;
  border-radius: 0 !important;
  background: #fff;
  color: #5d6674;
  box-shadow: none;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: .8;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
  border-color: var(--tmc-account-accent);
  background: var(--tmc-account-accent);
  color: #fff;
  outline: none;
}

body.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: 42px;
  box-sizing: border-box;
}

body.woocommerce-account .tmc-compact-account-dashboard,
body.woocommerce-account .woocommerce-MyAccount-content > section,
body.woocommerce-account .woocommerce-MyAccount-content > form,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm,
body.woocommerce-account .woocommerce-MyAccount-content .tmc-account-native-endpoint {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.woocommerce-account .tmc-account-tab-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px !important;
  height: 1px !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

body.woocommerce-account .woocommerce-MyAccount-content input.tmc-account-tab-input,
body.woocommerce-account.page-id-8 .woocommerce-MyAccount-content input.tmc-account-tab-input,
body.woocommerce-account .woocommerce input[type="radio"].tmc-account-tab-input {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  max-width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  max-height: 1px !important;
  min-height: 0 !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  appearance: none !important;
}

body.woocommerce-account .tmc-account-tab-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  margin: 0 0 24px;
  border: 1px solid var(--tmc-account-line);
  border-radius: 0 !important;
  background: #fff;
}

body.woocommerce-account .tmc-account-tab-list label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-right: 1px solid var(--tmc-account-line);
  color: var(--tmc-account-ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
}

body.woocommerce-account .tmc-account-tab-list label:last-child {
  border-right: 0;
}

body.woocommerce-account #tmc-ticket-tab-upcoming:checked ~ .tmc-account-tab-list label[for="tmc-ticket-tab-upcoming"],
body.woocommerce-account #tmc-ticket-tab-drawn:checked ~ .tmc-account-tab-list label[for="tmc-ticket-tab-drawn"],
body.woocommerce-account #tmc-win-tab-prize:checked ~ .tmc-account-tab-list label[for="tmc-win-tab-prize"],
body.woocommerce-account #tmc-win-tab-instant:checked ~ .tmc-account-tab-list label[for="tmc-win-tab-instant"],
body.woocommerce-account #tmc-win-tab-bonus:checked ~ .tmc-account-tab-list label[for="tmc-win-tab-bonus"] {
  background: var(--tmc-account-accent);
  color: #fff;
}

body.woocommerce-account .tmc-account-tab-panel {
  display: none;
}

body.woocommerce-account #tmc-ticket-tab-upcoming:checked ~ .tmc-account-tab-panels .tmc-account-tab-panel--upcoming,
body.woocommerce-account #tmc-ticket-tab-drawn:checked ~ .tmc-account-tab-panels .tmc-account-tab-panel--drawn,
body.woocommerce-account #tmc-win-tab-prize:checked ~ .tmc-account-tab-panels .tmc-account-tab-panel--prize,
body.woocommerce-account #tmc-win-tab-instant:checked ~ .tmc-account-tab-panels .tmc-account-tab-panel--instant,
body.woocommerce-account #tmc-win-tab-bonus:checked ~ .tmc-account-tab-panels .tmc-account-tab-panel--bonus {
  display: block;
}

body.woocommerce-account .tmc-empty,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message {
  margin: 0 0 18px;
  padding: 15px 18px;
  border: 1px solid #b7deea;
  border-radius: 3px;
  background: var(--tmc-account-info);
  color: var(--tmc-account-info-text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

body.woocommerce-account .woocommerce-error {
  margin: 0 0 18px;
  padding: 15px 18px;
  border: 1px solid #f1bec5;
  border-radius: 3px;
  background: #fff0f2;
  color: #8a1621;
}

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

body.woocommerce-account .woocommerce label,
body.woocommerce-account .woocommerce legend {
  display: block;
  margin: 0 0 8px;
  color: var(--tmc-account-ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.25;
  text-transform: uppercase;
}

body.woocommerce-account:not(.logged-in) #customer_login label .optional,
body.woocommerce-account:not(.logged-in) .woocommerce-form-register label .optional,
body.woocommerce-account:not(.logged-in) form.register label .optional {
  display: none !important;
}

body.woocommerce-account .woocommerce .woocommerce-form__label-for-checkbox,
body.woocommerce-account .woocommerce .form-row label:has(input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f3a4c;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

body.woocommerce-account .woocommerce input.input-text,
body.woocommerce-account .woocommerce input[type="text"],
body.woocommerce-account .woocommerce input[type="email"],
body.woocommerce-account .woocommerce input[type="password"],
body.woocommerce-account .woocommerce input[type="tel"],
body.woocommerce-account .woocommerce input[type="date"],
body.woocommerce-account .woocommerce textarea,
body.woocommerce-account .woocommerce select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--tmc-account-line);
  border-radius: 0;
  background: #fff;
  color: var(--tmc-account-ink);
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

body.woocommerce-account .woocommerce textarea {
  min-height: 94px;
  padding-top: 10px;
}

body.woocommerce-account .woocommerce input:focus,
body.woocommerce-account .woocommerce textarea:focus,
body.woocommerce-account .woocommerce select:focus,
body.woocommerce-account .woocommerce button:focus-visible,
body.woocommerce-account .woocommerce a:focus-visible {
  border-color: var(--tmc-account-accent);
  outline: 2px solid rgba(20, 124, 255, .22);
  outline-offset: 2px;
}

body.woocommerce-account .woocommerce select.select2-hidden-accessible,
body.woocommerce-account .woocommerce-MyAccount-content select.select2-hidden-accessible {
  position: absolute !important;
  left: 0 !important;
  width: 1px !important;
  max-width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
}

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

body.woocommerce-account .woocommerce .button,
body.woocommerce-account .woocommerce button,
body.woocommerce-account .woocommerce input[type="submit"],
body.woocommerce-account .tmc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--tmc-account-accent-dark);
  color: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

body.woocommerce-account .woocommerce .button:hover,
body.woocommerce-account .woocommerce button:hover,
body.woocommerce-account .woocommerce input[type="submit"]:hover,
body.woocommerce-account .tmc-button:hover {
  background: var(--tmc-account-accent);
  color: #fff;
  transform: none;
}

body.woocommerce-account .lost_password a,
body.woocommerce-account .woocommerce-privacy-policy-link,
body.woocommerce-account .woocommerce a:not(.button) {
  color: var(--tmc-account-accent);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.woocommerce-account .tmc-social-login,
body.woocommerce-account .nsl-container {
  margin: 0 0 20px !important;
  text-align: left !important;
}

body.woocommerce-account .nsl-container-buttons,
body.woocommerce-account .tmc-social-login .nsl-container {
  display: grid !important;
  gap: 8px !important;
}

body.woocommerce-account .nsl-button,
body.woocommerce-account .nsl-container a {
  width: 100% !important;
  min-height: 38px !important;
  border: 1px solid #9ba8ba !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--tmc-account-ink) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  justify-content: center !important;
}

body.woocommerce-account .tmc-register-protection-card {
  margin: 16px 0 18px;
  padding: 16px;
  border: 1px solid var(--tmc-account-line);
  border-radius: 0;
  background: #f8fbff;
  box-shadow: none;
}

body.woocommerce-account .tmc-register-protection-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
}

body.woocommerce-account .tmc-register-protection-card p {
  margin: 0 0 14px;
  color: var(--tmc-account-muted);
  font-size: 14px;
  line-height: 1.55;
}

body.woocommerce-account .woocommerce-MyAccount-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--tmc-account-line);
  background: #fff;
  color: var(--tmc-account-ink);
}

body.woocommerce-account .woocommerce-MyAccount-content th,
body.woocommerce-account .woocommerce-MyAccount-content td {
  padding: 14px 12px;
  border: 1px solid var(--tmc-account-line);
  background: #fff;
  color: var(--tmc-account-ink);
  text-align: left;
  vertical-align: top;
}

body.woocommerce-account .woocommerce-MyAccount-content th {
  background: var(--tmc-account-accent-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details,
body.woocommerce-account .woocommerce-MyAccount-content table.order_details {
  border-color: var(--tmc-account-line) !important;
  background: #fff !important;
  color: var(--tmc-account-ink) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table thead th,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details thead th,
body.woocommerce-account .woocommerce-MyAccount-content table.order_details thead th {
  background: var(--tmc-account-accent-dark) !important;
  color: #fff !important;
  border-color: var(--tmc-account-line) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody td,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot td,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table tbody th,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table tbody td,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table tfoot td,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tbody th,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tbody td,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot td {
  background: #fff !important;
  color: var(--tmc-account-ink) !important;
  border-color: var(--tmc-account-line) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot td,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table tfoot td,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot td {
  background: #f4f7fb !important;
  font-weight: 850 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table,
body.woocommerce-account .tmc-account-ledger {
  max-width: 100%;
  overflow-x: auto;
}

body.woocommerce-account .tmc-account-ticket-groups {
  display: grid;
  gap: 14px;
  overflow: visible;
}

body.woocommerce-account .tmc-account-ticket-group {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--tmc-account-line);
  background: #fff;
  color: var(--tmc-account-ink);
}

body.woocommerce-account .tmc-account-ticket-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.woocommerce-account .tmc-account-ticket-group__head h3 {
  margin: 0 0 8px;
  color: var(--tmc-account-ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.18;
}

body.woocommerce-account .tmc-account-ticket-group__head h3 a {
  color: inherit;
  text-decoration: none;
}

body.woocommerce-account .tmc-account-ticket-group__head p,
body.woocommerce-account .tmc-account-ticket-group__meta {
  margin: 0;
  color: var(--tmc-account-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

body.woocommerce-account .tmc-account-ticket-group__head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #b9d8ff;
  background: var(--tmc-account-accent-soft);
  color: var(--tmc-account-accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body.woocommerce-account .tmc-account-ticket-group__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

body.woocommerce-account .tmc-account-ticket-group__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

body.woocommerce-account .tmc-account-ticket-numbers {
  border-top: 1px solid var(--tmc-account-line);
  padding-top: 12px;
}

body.woocommerce-account .tmc-account-ticket-numbers summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--tmc-account-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

body.woocommerce-account .tmc-account-ticket-numbers summary::-webkit-details-marker {
  display: none;
}

body.woocommerce-account .tmc-account-ticket-numbers summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

body.woocommerce-account .tmc-account-ticket-numbers[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

body.woocommerce-account .tmc-account-ticket-numbers__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

body.woocommerce-account .tmc-account-ticket-numbers__grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #c8d5e6;
  background: #f7fbff;
  color: var(--tmc-account-ink);
  font-size: 14px;
  font-weight: 850;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a,
body.woocommerce-account .woocommerce-MyAccount-content a.button,
body.woocommerce-account .woocommerce-MyAccount-content .reveal-results,
body.woocommerce-account .woocommerce-MyAccount-content a[href*="order-received"] {
  min-height: 36px;
  padding: 0 18px;
  background: var(--tmc-account-accent-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.woocommerce-account .tmc-prize-claim-details {
  border: 1px solid var(--tmc-account-line);
  border-radius: 0;
  background: #f8fbff;
  overflow: hidden;
}

body.woocommerce-account .tmc-prize-claim-details summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--tmc-account-accent);
  font-weight: 850;
  cursor: pointer;
}

body.woocommerce-account .tmc-wallet-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.woocommerce-account .tmc-wallet-balance {
  margin: 0;
  color: var(--tmc-account-ink);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

body.woocommerce-order-received .tmc128-winner-summary {
  max-width: 760px;
  margin: 18px auto 24px;
  padding: 22px;
  border: 1px solid #b7deea;
  border-radius: 4px;
  background: #d8f1f6;
  color: #071426;
}

body.woocommerce-order-received .tmc128-winner-summary h2 {
  margin: 0 0 10px;
  color: #071426;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.12;
}

body.woocommerce-order-received .tmc128-winner-summary p {
  margin: 0 0 12px;
  color: #183049;
  font-size: 15px;
  font-weight: 650;
}

body.woocommerce-order-received .tmc128-winner-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-order-received .tmc128-winner-summary li {
  padding: 10px 12px;
  border: 1px solid rgba(20, 124, 255, .22);
  background: #fff;
  color: #071426;
  font-size: 14px;
  font-weight: 800;
}

body.woocommerce-account .tmc128-reveal-result-card,
body.woocommerce-order-received .tmc128-reveal-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid rgba(20, 124, 255, .18);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(242,248,255,.94)),
    radial-gradient(circle at 96% 0%, rgba(20,124,255,.14), transparent 34%);
  color: var(--tmc-account-ink);
  box-shadow: 0 18px 46px rgba(7, 20, 38, .08);
}

body.woocommerce-account .tmc128-reveal-result-card__copy,
body.woocommerce-order-received .tmc128-reveal-result-card__copy {
  display: grid;
  gap: 6px;
}

body.woocommerce-account .tmc128-reveal-result-card__copy span,
body.woocommerce-order-received .tmc128-reveal-result-card__copy span {
  justify-self: start;
  padding: 4px 9px;
  border: 1px solid rgba(20, 124, 255, .22);
  border-radius: 999px;
  background: #f3f9ff;
  color: var(--tmc-account-accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.woocommerce-account .tmc128-reveal-result-card__copy h2,
body.woocommerce-order-received .tmc128-reveal-result-card__copy h2 {
  margin: 0;
  color: var(--tmc-account-ink);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
}

body.woocommerce-account .tmc128-reveal-result-card__copy p,
body.woocommerce-order-received .tmc128-reveal-result-card__copy p {
  max-width: 680px;
  margin: 0;
  color: var(--tmc-account-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

body.woocommerce-account .tmc128-reveal-result-card__copy strong,
body.woocommerce-order-received .tmc128-reveal-result-card__copy strong {
  color: var(--tmc-account-ink);
  font-size: 14px;
  font-weight: 900;
}

body.woocommerce-account .tmc128-reveal-result-card__actions,
body.woocommerce-order-received .tmc128-reveal-result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body.woocommerce-account .tmc128-reveal-result-card__actions a,
body.woocommerce-order-received .tmc128-reveal-result-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(20, 124, 255, .25);
  background: #fff;
  color: var(--tmc-account-accent) !important;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-decoration: none !important;
  text-transform: uppercase;
}

body.woocommerce-account .tmc128-reveal-result-card__actions .tmc128-reveal-result-card__primary,
body.woocommerce-order-received .tmc128-reveal-result-card__actions .tmc128-reveal-result-card__primary {
  border-color: var(--tmc-account-accent);
  background: var(--tmc-account-accent);
  color: #fff !important;
}

/* Late donor-geometry guard: the legacy theme account block uses page-id-8 selectors,
   so this file must match that specificity to keep the menu simple and rectangular. */
body.woocommerce-account.page-id-8 .woocommerce {
  border-radius: 0 !important;
  overflow: hidden !important;
}

body.woocommerce-account.page-id-8 .woocommerce-MyAccount-navigation,
body.woocommerce-account.page-id-8 .woocommerce-MyAccount-navigation ul,
body.woocommerce-account.page-id-8 .woocommerce-MyAccount-navigation li,
body.woocommerce-account.page-id-8 .woocommerce-MyAccount-navigation a,
body.woocommerce-account.page-id-8 .tmc-account-tab-list,
body.woocommerce-account.page-id-8 .tmc-account-tab-list label {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-account.page-id-8 .woocommerce-MyAccount-navigation ul {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.woocommerce-account.page-id-8 .woocommerce-MyAccount-navigation a {
  min-height: 40px !important;
  border: 1px solid #263241 !important;
  background: #fff !important;
  color: var(--tmc-account-ink) !important;
  font-size: 12px !important;
  letter-spacing: .035em !important;
}

body.woocommerce-account.page-id-8 .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account.page-id-8 .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account.page-id-8 .woocommerce-MyAccount-navigation a:focus-visible {
  border-color: var(--tmc-account-accent) !important;
  background: var(--tmc-account-accent) !important;
  color: #fff !important;
}

body.woocommerce-account .select2-container--default .select2-selection__placeholder {
  color: #4f6078 !important;
}

body.woocommerce-account .select2-container--default .select2-selection--single {
  border-radius: 0 !important;
}

@media (max-width: 700px) {
  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table,
  body.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders,
  body.woocommerce-account .woocommerce-MyAccount-content table.account-orders-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table thead,
  body.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders thead,
  body.woocommerce-account .woocommerce-MyAccount-content table.account-orders-table thead {
    display: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody,
  body.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody,
  body.woocommerce-account .woocommerce-MyAccount-content table.account-orders-table tbody {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr,
  body.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr,
  body.woocommerce-account .woocommerce-MyAccount-content table.account-orders-table tbody tr {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--tmc-account-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td,
  body.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody td,
  body.woocommerce-account .woocommerce-MyAccount-content table.account-orders-table tbody td {
    display: grid !important;
    grid-template-columns: minmax(84px, 33%) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 11px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--tmc-account-line) !important;
    background: #fff !important;
    color: var(--tmc-account-ink) !important;
    box-sizing: border-box !important;
    text-align: left !important;
    white-space: normal !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td:last-child,
  body.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody td:last-child,
  body.woocommerce-account .woocommerce-MyAccount-content table.account-orders-table tbody td:last-child {
    border-bottom: 0 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td::before,
  body.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody td::before,
  body.woocommerce-account .woocommerce-MyAccount-content table.account-orders-table tbody td::before {
    content: attr(data-title) ":" !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    color: var(--tmc-account-ink) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions,
  body.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody td.woocommerce-orders-table__cell-order-actions,
  body.woocommerce-account .woocommerce-MyAccount-content table.account-orders-table tbody td.woocommerce-orders-table__cell-order-actions {
    grid-template-columns: minmax(84px, 33%) minmax(0, 1fr) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions a,
  body.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody td.woocommerce-orders-table__cell-order-actions a,
  body.woocommerce-account .woocommerce-MyAccount-content table.account-orders-table tbody td.woocommerce-orders-table__cell-order-actions a {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 900px) {
  body.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  body.woocommerce-account #customer_login.u-columns.col2-set,
  body.woocommerce-account .woocommerce #customer_login {
    display: block !important;
    grid-template-columns: none !important;
  }

  body.woocommerce-account #customer_login.u-columns.col2-set > .u-column1,
  body.woocommerce-account #customer_login.u-columns.col2-set > .u-column2 {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    margin: 0 0 18px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--tmc-account-line);
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  body.woocommerce-account .tmc-account-title-band {
    padding: 26px 0 18px;
  }

  body.woocommerce-account .tmc-account-title-band h1 {
    padding: 18px 14px;
    font-size: 18px;
  }

  body.woocommerce-account .tmc-account-content-band {
    padding-bottom: 40px;
  }

  body.woocommerce-account:not(.logged-in) .u-column1,
  body.woocommerce-account:not(.logged-in) .u-column2 {
    padding: 20px 18px 24px;
  }

  body.woocommerce-account:not(.logged-in) .u-column1 > h2,
  body.woocommerce-account:not(.logged-in) .u-column2 > h2,
  body.woocommerce-account .woocommerce-MyAccount-content h2,
  body.woocommerce-account .tmc-compact-account-dashboard h2 {
    font-size: 24px;
  }

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

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation a {
    min-height: 40px;
    font-size: 11px;
  }

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

  body.woocommerce-account .tmc-account-tab-list {
    grid-template-columns: 1fr 1fr;
  }

  body.woocommerce-account .woocommerce-MyAccount-content th,
  body.woocommerce-account .woocommerce-MyAccount-content td {
    padding: 12px 10px;
    font-size: 13px;
  }

  body.woocommerce-account .tmc-wallet-summary {
    display: grid;
    gap: 8px;
  }

  body.woocommerce-account .tmc-wallet-balance {
    text-align: left;
  }

  body.woocommerce-account .tmc-account-ticket-group {
    padding: 14px;
  }

  body.woocommerce-account .tmc-account-ticket-group__head {
    display: grid;
    gap: 10px;
  }

  body.woocommerce-account .tmc-account-ticket-group__head > span {
    width: fit-content;
  }

  body.woocommerce-account .tmc128-reveal-result-card,
  body.woocommerce-order-received .tmc128-reveal-result-card {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 14px 0 20px;
    padding: 15px;
  }

  body.woocommerce-account .tmc128-reveal-result-card__actions,
  body.woocommerce-order-received .tmc128-reveal-result-card__actions {
    justify-content: stretch;
  }

  body.woocommerce-account .tmc128-reveal-result-card__actions a,
  body.woocommerce-order-received .tmc128-reveal-result-card__actions a {
    flex: 1 1 130px;
  }
}
