/* --- /assets/css/woo-account.css --- */
/* ===== My account — login/register tabs (built by my-account-animations.js) + forms ===== */

.woocommerce-account .woocommerce {
  max-width: 1200px;
  margin-inline: auto;
}
.woocommerce-account .woocommerce::after,
.woocommerce-account .col2-set::after {
  content: "";
  display: table;
  clear: both;
}
.woocommerce-account .woocommerce-notices-wrapper {
  margin-bottom: 18px;
}
.woocommerce-account .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--c-border-soft);
  border-left: 4px solid var(--c-ink-2); /* Info: neutral graphite, not alarm red. */
  border-radius: 12px;
  background: var(--c-surface-soft);
  color: var(--c-ink);
  list-style: none;
}
.woocommerce-account .woocommerce-message { border-left-color: var(--c-success); }
.woocommerce-account .woocommerce-error { border-left-color: var(--c-danger); }
.woocommerce-account .form-row {
  margin: 0 0 16px;
  padding: 0;
}
.woocommerce-account .form-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--c-ink);
  font-weight: 500;
  line-height: 1.35;
}
.woocommerce-account .required,
.woocommerce-account .woocommerce form .form-row .required {
  color: var(--c-accent);
  text-decoration: none;
}
.woocommerce-account .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}
.woocommerce-account .woocommerce-form__label-for-checkbox,
.woocommerce-account .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 0 0;
}
.woocommerce-account input[type="checkbox"] {
  width: auto;
}
.woocommerce-account .ckm-register-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.woocommerce-account .ckm-register-consent input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 3px 0 0;
}
.woocommerce-account .ckm-register-consent .required {
  color: var(--c-accent);
  text-decoration: none;
}
.woocommerce-account .password-input {
  position: relative;
  display: block;
}
.woocommerce-account .password-input input {
  padding-right: 46px;
}
/* Password show/hide toggle. WooCommerce injects `.show-password-input` and
   toggles the field type; its default eye icon comes from the `woocommerce-general`
   stylesheet, which the theme dequeues on account pages — so we draw the icon here
   with inline SVGs and give the hidden/shown states distinct glyphs. */
.woocommerce-account .show-password-input {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  transform: translateY(-50%);
  /* Mask + background-color: the glyph follows the theme colours. */
  background: var(--c-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  transition: background-color .15s ease;
}
.woocommerce-account .show-password-input:hover,
.woocommerce-account .show-password-input:focus-visible { background: var(--c-ink-2); }
.woocommerce-account .show-password-input.display-password {
  background: var(--c-primary-hover);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}
/* Hide the browser-native password reveal (Edge/IE) so only our toggle shows. */
.woocommerce-account input[type="password"]::-ms-reveal,
.woocommerce-account input[type="password"]::-ms-clear { display: none; }
.woocommerce-account .lost_password {
  margin: 10px 0 0;
}
.woocommerce-account .woocommerce-password-strength,
.woocommerce-account .woocommerce-password-hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}
.woocommerce-account .woocommerce-password-strength {
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--c-surface);
  text-align: center;
  font-weight: 600;
}
.woocommerce-account .woocommerce-password-strength.short,
.woocommerce-account .woocommerce-password-strength.bad {
  background: var(--c-danger-surface);
  color: var(--c-danger);
}
.woocommerce-account .woocommerce-password-strength.good {
  background: var(--c-warning-surface);
  color: var(--c-warning);
}
.woocommerce-account .woocommerce-password-strength.strong {
  background: var(--c-success-surface);
  color: var(--c-success);
}

/* Login / register with tabs (tab bar from inc/account.php, switched by my-account.js) */
#customer_login { max-width: 520px; margin: 30px auto; }
/* Without JavaScript the tab bar stays hidden and both forms are shown. */
#customer_login:not(.has-tabs) .u-column2 { margin-top: 28px !important; }
/* Segmented tabs, same language as the header theme switch. */
#customer_login .woo-tabs {
  display: flex; gap: 4px; margin-bottom: 22px; padding: 4px;
  background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: 14px;
}
#customer_login .woo-tabs[hidden] { display: none; }
#customer_login .woo-tab {
  position: relative; flex: 1; min-height: 46px; margin: 0; padding: 12px 10px; text-align: center; cursor: pointer;
  border: 0; font: inherit; font-weight: 600; line-height: 1.2;
  color: var(--c-muted); background: transparent; border-radius: 10px;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
#customer_login .woo-tab:hover { color: var(--c-ink-2); background: transparent; }
#customer_login .woo-tab:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
/* The tab already names the form: keep the h2 for screen readers only. */
#customer_login.has-tabs > .u-column1 > h2,
#customer_login.has-tabs > .u-column2 > h2 {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.woocommerce-account .ckm-register-benefits {
  display: grid; gap: 8px; margin: 0 0 22px; padding: 16px 18px; list-style: none;
  border-radius: 12px; background: var(--c-surface-soft); border: 1px solid var(--c-border-soft);
  color: var(--c-body); font-size: 14px; line-height: 1.45;
}
.woocommerce-account .ckm-register-benefits li { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.woocommerce-account .ckm-register-benefits svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--c-success); }
.woocommerce-account form.login .button,
.woocommerce-account form.register .button { width: 100%; min-height: 48px; margin-top: 4px; }
.woocommerce-account form.login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
#customer_login .woo-tab.active {
  color: var(--c-ink-2); background: var(--c-surface-raised); box-shadow: var(--shadow-card);
}
#customer_login .woo-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 22px; height: 3px;
  background: var(--c-primary); border-radius: 2px; transform: translateX(-50%);
}
html[data-theme="dark"] #customer_login .woo-tab.active { background: var(--c-surface-2); }

#customer_login .u-column1, #customer_login .u-column2 {
  width: 100% !important; float: none !important; margin: 0;
}
#customer_login.has-tabs .u-column1:not(.active),
#customer_login.has-tabs .u-column2:not(.active) { display: none !important; }
#customer_login .u-column1:focus, #customer_login .u-column2:focus { outline: 0; }

.woocommerce-account form.login,
.woocommerce-account form.register,
.woocommerce-account form.lost_reset_password {
  padding: 28px; background: var(--c-surface-raised); border: 1px solid var(--c-border-soft);
  border-radius: 16px; box-shadow: var(--shadow-card);
}
.woocommerce-account .woocommerce-form-row input.input-text,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="tel"],
.woocommerce-account select {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  color: var(--c-ink-2) !important;
  background: var(--c-control-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.woocommerce-account .woocommerce-form-row input.input-text:focus,
.woocommerce-account input[type="text"]:focus,
.woocommerce-account input[type="email"]:focus,
.woocommerce-account input[type="password"]:focus,
.woocommerce-account input[type="tel"]:focus,
.woocommerce-account select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-focus-ring);
  outline: 0;
}

body.woocommerce-account select option {
  background: var(--c-control-bg);
  color: var(--c-ink-2);
}

/* SelectWoo / Select2 moves the open dropdown outside the account form, so
   scope it through the body class rather than the field wrapper. */
body.woocommerce-account .select2-container .select2-selection--single {
  min-height: 46px;
  border: 1px solid var(--c-border-soft) !important;
  border-radius: 12px !important;
  background: var(--c-surface-raised) !important;
  color: var(--c-ink-2) !important;
  box-shadow: none !important;
}

body.woocommerce-account .select2-container--open .select2-selection--single {
  border-color: var(--c-accent) !important;
}

body.woocommerce-account .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 42px 0 14px;
  color: var(--c-ink-2) !important;
  line-height: 44px;
}

body.woocommerce-account .select2-container .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 10px;
}

body.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-top-color: var(--c-muted);
}

body.woocommerce-account .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-bottom-color: var(--c-muted);
}

body.woocommerce-account .select2-dropdown {
  overflow: hidden;
  border: 1px solid var(--c-border) !important;
  border-radius: 12px;
  background: var(--c-surface-raised) !important;
  color: var(--c-ink-2) !important;
  box-shadow: var(--shadow-pop);
}

body.woocommerce-account .select2-search--dropdown {
  padding: 8px;
  background: var(--c-surface-raised);
}

body.woocommerce-account .select2-search--dropdown .select2-search__field {
  min-height: 42px;
  border: 1px solid var(--c-border) !important;
  border-radius: 7px;
  background: var(--c-control-bg) !important;
  color: var(--c-ink-2) !important;
}

body.woocommerce-account .select2-results__options {
  background: var(--c-surface-raised);
}

body.woocommerce-account .select2-results__option {
  color: var(--c-ink-2);
}

body.woocommerce-account .select2-results__option[aria-selected="true"] {
  background: var(--c-surface-2) !important;
}

body.woocommerce-account .select2-results__option--highlighted[aria-selected] {
  background: var(--c-primary-hover) !important;
  color: var(--c-primary-ink) !important;
}
.woocommerce-account form .button,
.woocommerce-account .button {
  background: var(--c-primary) !important; color: var(--c-primary-ink) !important; border-radius: var(--r-btn) !important; padding: 12px 26px !important; font-weight: 700;
}
.woocommerce-account form .button:hover,
.woocommerce-account .button:hover { background: var(--c-primary-hover) !important; color: var(--c-primary-ink) !important; }

/* ===== Logged-in account: layout + menu ===== */
/* Same left/right edge as the page banner above it (header rows). */
@media (min-width: 1025px) {
  .woocommerce-account .site-main.ckm-container {
    max-width: var(--edge-max);
    padding-inline: var(--header-gutter);
  }
}
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  gap: clamp(22px, 2.5vw, 40px);
  max-width: none;
  align-items: start;
}

.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::after {
  content: none;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 18px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--c-border-soft);
  border-radius: 16px;
  background: var(--c-surface-raised);
  box-shadow: var(--shadow-card);
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  position: relative;
  margin: 0 0 2px;
  border: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
  margin-bottom: 0;
}

/* "Log out" set apart from the sections. */
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 6px !important;
  padding-top: 6px;
  border-top: 1px solid var(--c-border-soft) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--c-ink-2);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation .ckm-acc-icon {
  flex: 0 0 auto;
  color: var(--c-muted);
  transition: color .18s ease;
}

.woocommerce-account .ckm-acc-nav__text { flex: 1 1 auto; min-width: 0; }

.woocommerce-account .ckm-acc-nav__badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-primary-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover .ckm-acc-icon { color: var(--c-ink-2); }

.woocommerce-account .woocommerce-MyAccount-navigation li a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
}

/* Active item: red tint + red text, like the selected shop filter. */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--c-surface-hover);
  color: var(--c-accent);
  box-shadow: inset 3px 0 0 var(--c-primary);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active .ckm-acc-icon { color: var(--c-primary); }

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover .ckm-acc-icon { color: var(--c-accent); }

.woocommerce-account .woocommerce-MyAccount-content {
  color: var(--c-ink-2);
}

/* ===== Dashboard (woocommerce/myaccount/dashboard.php) ===== */
.ckm-acc-hello {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid var(--c-border-soft);
  border-radius: 16px;
  background: var(--c-surface-raised);
  box-shadow: var(--shadow-card);
}
.ckm-acc-hello__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-panel-strong);
  color: var(--c-on-dark);
  font-size: 22px;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--c-primary);
}
.ckm-acc-hello__text { flex: 1 1 auto; min-width: 0; }
.woocommerce-account .ckm-acc-hello h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.ckm-acc-hello p { margin: 0; color: var(--c-muted); line-height: 1.5; overflow-wrap: anywhere; }
.ckm-acc-hello p strong { color: var(--c-ink-2); font-weight: 600; }
.ckm-acc-hello p a { margin-left: 4px; color: var(--c-accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ckm-acc-hello p a:hover { text-decoration: underline; }
.woocommerce-account .ckm-acc-hello__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.ckm-acc-gift-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--c-success-border);
  border-radius: 14px;
  background: var(--c-success-surface);
  color: var(--c-success);
  text-decoration: none;
}
.ckm-acc-gift-ready span { flex: 1 1 auto; color: var(--c-ink-2); }
.ckm-acc-gift-ready:hover span { text-decoration: underline; }

.ckm-acc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.ckm-acc-tile { margin: 0; }
.ckm-acc-tile a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--c-border-soft);
  border-radius: 14px;
  background: var(--c-surface-raised);
  box-shadow: var(--shadow-card);
  color: var(--c-ink-2);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ckm-acc-tile a:hover {
  border-color: var(--c-accent-muted);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.ckm-acc-tile a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.ckm-acc-tile__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-surface-hover);
  color: var(--c-primary);
}
.ckm-acc-tile__icon svg { width: 22px; height: 22px; }
.ckm-acc-tile__body { display: grid; align-content: start; gap: 4px; min-width: 0; flex: 1 1 auto; }
.ckm-acc-tile--edit-account .ckm-acc-tile__meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckm-acc-tile__title { font-weight: 700; line-height: 1.3; }
.ckm-acc-tile__meta { color: var(--c-muted); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.ckm-acc-tile__meta strong { color: var(--c-ink-2); }
.ckm-acc-tile__meta .ckm-acc-tile__good { color: var(--c-success); }
.ckm-acc-tile__bar {
  display: block;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--c-surface-2);
}
.ckm-acc-tile__bar span { display: block; height: 100%; border-radius: inherit; background: var(--c-primary); }

.ckm-acc-recent {
  padding: 20px 22px;
  border: 1px solid var(--c-border-soft);
  border-radius: 16px;
  background: var(--c-surface-raised);
  box-shadow: var(--shadow-card);
}
.ckm-acc-recent__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.woocommerce-account .ckm-acc-recent__head h2 { margin: 0; font-size: 1.2rem; }
.ckm-acc-recent__head a { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.ckm-acc-recent__head a:hover { text-decoration: underline; }
.ckm-acc-recent__list { margin: 0; padding: 0; list-style: none; }
.ckm-acc-order { margin: 0; border-top: 1px solid var(--c-border-soft); }
.ckm-acc-order:first-child { border-top: 0; }
.ckm-acc-order__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 20px;
  align-items: center;
  gap: 16px;
  margin: 0 -10px;
  padding: 14px 10px;
  border-radius: 10px;
  color: var(--c-ink-2);
  text-decoration: none;
}
.ckm-acc-order__link:hover { background: var(--c-surface-soft); }
.ckm-acc-order__link > svg { color: var(--c-muted); }
.ckm-acc-order__main { display: grid; gap: 2px; min-width: 0; }
.ckm-acc-order__sub { color: var(--c-muted); font-size: 14px; }
.ckm-acc-order__total { font-weight: 700; white-space: nowrap; }

/* Order status pill (dashboard and Orders table). */
.ckm-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.ckm-status--completed { background: var(--c-success-surface); color: var(--c-success); }
.ckm-status--processing { background: var(--c-info-surface); color: var(--c-ink-2); box-shadow: inset 0 0 0 1px var(--c-info-border); }
.ckm-status--on-hold,
.ckm-status--pending,
.ckm-status--checkout-draft { background: var(--c-warning-surface); color: var(--c-warning); }
.ckm-status--cancelled,
.ckm-status--failed,
.ckm-status--refunded { background: var(--c-danger-surface); color: var(--c-danger); }

.ckm-acc-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px dashed var(--c-border);
  border-radius: 16px;
  background: var(--c-surface-soft);
}
.ckm-acc-empty > svg { flex: 0 0 auto; width: 36px; height: 36px; color: var(--c-muted); }
.ckm-acc-empty > div { flex: 1 1 auto; }
.woocommerce-account .ckm-acc-empty h2 { margin: 0 0 4px; font-size: 1.1rem; }
.ckm-acc-empty p { margin: 0; color: var(--c-muted); }
.woocommerce-account .ckm-acc-empty .button { flex: 0 0 auto; }

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  margin: 0 0 18px;
  color: var(--c-ink-2);
  font-weight: 700;
  line-height: 1.2;
}

.woocommerce-account table.shop_table {
  width: 100%;
  margin: 0 0 26px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0 10px;
  background: transparent;
}

.woocommerce-account table.shop_table thead th {
  padding: 0 16px 8px;
  border: 0;
  background: transparent;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.woocommerce-account table.shop_table td,
.woocommerce-account table.shop_table tbody th {
  padding: 17px 16px;
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
  background: var(--c-surface-raised);
  color: var(--c-ink-2);
  line-height: 1.45;
  text-align: left;
  vertical-align: middle;
}

.woocommerce-account table.shop_table tbody tr {
  box-shadow: var(--shadow-card);
}

.woocommerce-account table.shop_table tbody tr:hover td,
.woocommerce-account table.shop_table tbody tr:hover th {
  background: var(--c-surface-soft);
}

.woocommerce-account table.shop_table td:first-child,
.woocommerce-account table.shop_table tbody th:first-child {
  border-left: 1px solid var(--c-border-soft);
  border-radius: 8px 0 0 8px;
}

.woocommerce-account table.shop_table td:last-child {
  border-right: 1px solid var(--c-border-soft);
  border-radius: 0 8px 8px 0;
}

.woocommerce-account table.shop_table td a:not(.button),
.woocommerce-account table.shop_table th a:not(.button) {
  color: var(--c-accent);
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account table.shop_table td a:not(.button):hover {
  text-decoration: underline;
}

.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-status {
  font-weight: 600;
}

.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-total {
  white-space: nowrap;
}

.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.woocommerce-account table.shop_table .woocommerce-button.button,
.woocommerce-account table.shop_table .button {
  min-width: 88px;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  background: var(--c-primary) !important;
  color: var(--c-primary-ink) !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.woocommerce-account table.shop_table .woocommerce-button.button:hover,
.woocommerce-account table.shop_table .button:hover {
  background: var(--c-primary-hover) !important;
  color: var(--c-primary-ink) !important;
}

/* Only "View" / "Pay" stay red; invoice and other extra actions are secondary. */
.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-actions .button:not(.view):not(.pay) {
  background: var(--c-surface-raised) !important;
  color: var(--c-ink-2) !important;
  box-shadow: inset 0 0 0 1px var(--c-border);
}
.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-actions .button:not(.view):not(.pay):hover {
  background: var(--c-surface) !important;
  color: var(--c-accent) !important;
  box-shadow: inset 0 0 0 1px var(--c-border-strong);
}

.woocommerce-account .woocommerce address {
  padding: 18px;
  border: 1px solid var(--c-border-soft);
  border-radius: 12px;
  background: var(--c-surface-soft);
  color: var(--c-ink-2);
  font-style: normal;
  line-height: 1.65;
}

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

.woocommerce-account .woocommerce-Address,
.woocommerce-account form.edit-account,
.woocommerce-account form.edit-address {
  padding: 24px;
  border: 1px solid var(--c-border-soft);
  border-radius: 16px;
  background: var(--c-surface-raised);
  box-shadow: var(--shadow-card);
}

.woocommerce-account .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  min-width: 0;
}

.woocommerce-account .woocommerce-Address-title h2,
  .woocommerce-account .woocommerce-Address-title h3 {
  flex: 1 1 160px;
  min-width: 0;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: normal;
}

.woocommerce-account .woocommerce-Address-title .edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--c-border-soft);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.woocommerce-account .woocommerce-Address-title .edit:hover {
  background: var(--c-primary-hover);
  color: var(--c-primary-ink);
}

/* Account details / address forms: comfortable width, first + last name side by side. */
.woocommerce-account form.edit-account,
.woocommerce-account form.edit-address { max-width: 880px; }
.woocommerce-account form.edit-account::after,
.woocommerce-account .woocommerce-address-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.woocommerce-account form.edit-account .form-row-first,
.woocommerce-account form.edit-address .form-row-first { float: left; width: calc(50% - 8px); }
.woocommerce-account form.edit-account .form-row-last,
.woocommerce-account form.edit-address .form-row-last { float: right; width: calc(50% - 8px); }
.woocommerce-account form.edit-account .form-row-wide,
.woocommerce-account form.edit-address .form-row-wide,
.woocommerce-account form.edit-account fieldset,
.woocommerce-account form.edit-account .clear { clear: both; }
.woocommerce-account form.edit-account > em,
.woocommerce-account form.edit-account .form-row em,
.woocommerce-account form.edit-account #account_display_name_description {
  display: block; margin-top: 6px; color: var(--c-muted); font-size: 13px; font-style: normal;
}
/* B2BKing prints extra fields (VAT) as a bare label + input. */
.woocommerce-account form.edit-account > label { display: block; margin: 16px 0 7px; color: var(--c-ink); font-weight: 500; }
.woocommerce-account form.edit-account > br { display: none; }
.woocommerce-account form.edit-account > p:last-of-type,
.woocommerce-account form.edit-address > div > p:last-child { margin: 22px 0 0; }
.woocommerce-account .woocommerce-Address address { min-height: 0; }

.woocommerce-account fieldset {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid var(--c-border-soft);
  border-radius: 12px;
  background: var(--c-surface-soft);
}

.woocommerce-account fieldset legend {
  padding: 0 8px;
  color: var(--c-ink-2);
  font-weight: 700;
}

@media (min-width: 768px) and (max-width: 1180px) {
  /* Greeting: button moves under the text instead of squeezing the e-mail. */
  .ckm-acc-hello { flex-wrap: wrap; }
  .ckm-acc-hello__text { flex-basis: calc(100% - 74px); }
  .woocommerce-account .ckm-acc-hello__cta { margin-left: 74px; }
}

@media (max-width: 1024px) {
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    grid-template-columns: minmax(205px, 0.32fr) minmax(0, 1fr);
    gap: 22px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li a {
    padding-inline: 12px;
  }

  .woocommerce-account table.shop_table thead th,
  .woocommerce-account table.shop_table td {
    padding-inline: 12px;
  }
}


@media (max-width: 767px) {
  #customer_login {
    max-width: 100%;
  }

  .woocommerce-account form.login,
  .woocommerce-account form.register {
    padding: 18px;
  }

  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: block;
  }

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

  /* Menu = one swipeable row of chips; my-account.js scrolls the current one into view. */
  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
    margin: 0 -12px 18px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 8px;
    padding: 2px 12px 8px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent);
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }

  .woocommerce-account .woocommerce-MyAccount-navigation li,
  .woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0;
    border: 0 !important;
    scroll-snap-align: start;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li a {
    min-height: 40px;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--c-border-soft);
    border-radius: 999px;
    background: var(--c-surface-raised);
    font-size: 14px;
    white-space: nowrap;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    border-color: var(--c-primary);
    box-shadow: none;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation .ckm-acc-icon { width: 18px; height: 18px; }

  .ckm-acc-hello { flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 18px; }
  .ckm-acc-hello__avatar { width: 46px; height: 46px; font-size: 19px; }
  .ckm-acc-hello__text { flex-basis: calc(100% - 60px); }
  .woocommerce-account .ckm-acc-hello__cta { width: 100%; justify-content: center; }

  .ckm-acc-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ckm-acc-tile a { flex-direction: column; gap: 10px; padding: 14px; }
  .ckm-acc-tile__icon { width: 38px; height: 38px; border-radius: 10px; }
  .ckm-acc-tile__meta { font-size: 13px; }
  .ckm-acc-tile a:hover { transform: none; }

  .ckm-acc-recent { padding: 16px; }
  .ckm-acc-order__link { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .ckm-acc-order__link > svg { display: none; }
  .ckm-acc-order__link .ckm-status { grid-row: 2; grid-column: 1; justify-self: start; }
  .ckm-acc-order__total { grid-row: 1; grid-column: 2; }

  .ckm-acc-empty { flex-wrap: wrap; padding: 18px; }
  .woocommerce-account .ckm-acc-empty .button { width: 100%; text-align: center; }

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

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

  .woocommerce-account .woocommerce-Address,
  .woocommerce-account form.edit-account,
  .woocommerce-account form.edit-address {
    padding: 16px;
  }

  .woocommerce-account .woocommerce-Address-title h2,
  .woocommerce-account .woocommerce-Address-title h3 {
    font-size: 20px;
  }

  .woocommerce-account .woocommerce-Address-title .edit {
    max-width: 100%;
    font-size: 13px;
  }

  .woocommerce-account table.shop_table {
    margin-bottom: 22px;
    border-spacing: 0;
  }

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

  .woocommerce-account table.shop_table tbody tr {
    display: block;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid var(--c-border-soft);
    border-radius: 8px;
    background: var(--c-surface-raised);
    box-shadow: var(--shadow-card);
  }

  .woocommerce-account table.shop_table tbody tr:hover td,
  .woocommerce-account table.shop_table tbody tr:hover th {
    background: transparent;
  }

  .woocommerce-account table.shop_table td,
  .woocommerce-account table.shop_table tbody th {
    display: flex;
    width: auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border: 0;
    background: transparent;
    text-align: right;
  }

  .woocommerce-account table.shop_table td:first-child,
  .woocommerce-account table.shop_table tbody th:first-child,
  .woocommerce-account table.shop_table td:last-child {
    border: 0;
    border-radius: 0;
  }

  .woocommerce-account table.shop_table td::before,
  .woocommerce-account table.shop_table tbody th::before {
    content: attr(data-title);
    flex: 0 0 auto;
    max-width: 42%;
    color: var(--c-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
  }

  /* Amount + "for N items" are separate nodes: keep them on one line. */
  .woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-total {
    display: block;
    white-space: normal;
  }
  .woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-total::before {
    float: left;
    margin-right: 16px;
  }

  .woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-actions {
    flex-direction: column;
    padding-top: 12px;
  }

  .woocommerce-account table.shop_table .woocommerce-button.button,
  .woocommerce-account table.shop_table .button {
    width: 100%;
  }
}

/* Orders table: status colour from the row's status class. */
.woocommerce-account .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: var(--c-success); }
.woocommerce-account .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status { color: var(--c-warning); }
.woocommerce-account .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status { color: var(--c-danger); }

