/* ThemeEngine engine pages (account profile / password / returns / wishlist / password recovery) inside the theme layout.
   Colours: brand settings of 设计 → 结账页设置 (--te-primary / --te-button / --te-button-text); font: the theme's. */
.te-page { --te-border: rgba(0,0,0,.12); --te-muted: rgba(0,0,0,.6); --te-radius: 10px; padding: 32px 0 64px; font-size: 15px; line-height: 1.5; }
.te-page *, .te-page *::before, .te-page *::after { box-sizing: border-box; }
.te-page__inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.te-page__title { margin: 0 0 24px; font-size: 28px; line-height: 1.2; }
.te-page__mobile-header, .te-mobile-account, .te-mobile-orders, .te-addr__mobile-meta, .te-addr__action-label, .te-addr__sheet-close { display: none; }
.te-page__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.te-page__grid--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.te-page__nav ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--te-border); border-radius: var(--te-radius); overflow: hidden; }
.te-page__nav li + li { border-top: 1px solid var(--te-border); }
.te-page__nav a { display: block; padding: 12px 16px; color: inherit; text-decoration: none; }
.te-page__nav a:hover { background: rgba(0,0,0,.03); }
.te-page__nav a.is-active { color: var(--te-primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--te-primary); }
.te-page__main { min-width: 0; display: grid; gap: 20px; align-content: start; }
.te-card { border: 1px solid var(--te-border); border-radius: var(--te-radius); padding: 24px; background: #fff; }
.te-card__title { margin: 0 0 12px; font-size: 18px; }
.te-form { display: grid; gap: 16px; max-width: 560px; }
.te-page__grid--single .te-form { max-width: none; }
.te-field { display: grid; gap: 6px; }
.te-field label { font-weight: 600; font-size: 14px; }
.te-field input, .te-field select, .te-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--te-border); border-radius: 8px; font: inherit; background: #fff; color: inherit; }
.te-field textarea { min-height: 100px; }
.te-field input:focus, .te-field select:focus, .te-field textarea:focus { outline: 2px solid var(--te-primary); outline-offset: 1px; border-color: transparent; }
.te-field.has-error input, .te-field.has-error select { border-color: #d93025; }
.te-field__error { margin: 0; color: #d93025; font-size: 13px; }
.te-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border: 0; border-radius: 8px;
  background: var(--te-button); color: var(--te-button-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; justify-self: start; }
.te-button:hover { filter: brightness(.92); color: var(--te-button-text); }
.te-button[disabled] { opacity: .6; cursor: default; }
.te-button--small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.te-button--ghost { background: transparent; color: inherit; border: 1px solid var(--te-border); }
.te-button--ghost:hover { color: inherit; }
.te-link { color: var(--te-primary); justify-self: start; }
.te-muted { color: var(--te-muted); margin: 0; }
.te-muted a { color: var(--te-primary); }
.te-alert { margin: 0; padding: 12px 16px; border-radius: 8px; background: rgba(0,0,0,.04); }
.te-alert a { color: var(--te-primary); }
.te-alert--success { background: #e7f6ec; color: #145c2c; }
.te-alert--error { background: #fdecea; color: #8a1c13; }
.te-table-wrap { overflow-x: auto; }
.te-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.te-table th, .te-table td { padding: 10px 8px; border-bottom: 1px solid var(--te-border); text-align: left; vertical-align: middle; }
.te-table a { color: var(--te-primary); }
.te-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,.06); font-size: 13px; white-space: nowrap; }
.te-badge--approved, .te-badge--completed { background: #e7f6ec; color: #145c2c; }
.te-badge--rejected { background: #fdecea; color: #8a1c13; }
.te-badge--shipped { background: #e8f0fe; color: #1a4fa0; }
.te-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.te-item { display: flex; gap: 14px; align-items: center; }
.te-items .te-item { padding: 12px; border: 1px solid var(--te-border); border-radius: 8px; }
.te-item__image { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: #f4f4f4; flex: none; }
.te-item__body { flex: 1; min-width: 0; }
.te-item__title { font-weight: 600; }
.te-item__title a { color: inherit; text-decoration: none; }
.te-item__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.te-dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.te-dl dt { color: var(--te-muted); }
.te-dl dd { margin: 0; }
.te-security:empty { display: none; }
@media (max-width: 749px) {
  .te-page { padding: 20px 0 48px; }
  .te-page__title { font-size: 24px; }
  .te-page__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .te-page__nav, .te-page__main { min-width: 0; }
  .te-page__nav ul { display: flex; overflow-x: auto; min-width: 0; border-radius: 8px; }
  .te-page__nav li + li { border-top: 0; border-left: 1px solid var(--te-border); }
  .te-page__nav a { white-space: nowrap; padding: 10px 14px; }
  .te-page__nav a.is-active { box-shadow: inset 0 -3px 0 var(--te-primary); }
  .te-card { padding: 16px; }
  .te-item { flex-wrap: wrap; }
}
/* Shop Blade content inside the theme layout (plugin pages, engine pages): its Bootstrap .btn buttons pick up the theme's
   .btn, and themes that paint the button fill with ::before / ::after expect the label in a child element. Keep those layers
   under a bare text label, so the button keeps the theme look and its text stays visible. */
.te-blade-body .btn, .te-page .btn { position: relative; isolation: isolate; }
.te-blade-body .btn::before, .te-blade-body .btn::after, .te-page .btn::before, .te-page .btn::after { z-index: -1; }
/* Sign-in page / security verification widgets inside the theme layout (their Bootstrap classes, theme button styles). */
.te-blade-body #email-access .btn-dark { background: var(--te-button, #222); color: var(--te-button-text, #fff); border: 0; min-height: 46px; border-radius: 8px; font-weight: 600; }
.te-blade-body #email-access .btn-dark::before { display: none; }
.te-blade-body #email-access .btn-dark:disabled { opacity: .6; }
.te-blade-body #email-access .btn-link { color: var(--te-primary, inherit); background: none; border: 0; padding-left: 0; min-height: 0; }
.te-blade-body #email-access .btn-link::before { display: none; }
.te-blade-body #email-access .card { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; }
/* Legacy top pill strip (pre-sidebar unify). Kept inert if any cached HTML still emits it. */
.te-account-links { display: none !important; }

/* Theme customers/* body inside the shared account sidebar shell (H1 lives on .te-page__title). */
.te-page--account-theme { padding-top: 24px; }
.te-page--account-theme .te-page__main > .top-spacing-normal { padding-top: 0; }
.te-page--account-theme .te-page__main > .customer.account,
.te-page--account-theme .te-page__main > .te-account-body,
.te-page--account-theme .te-page__main > [data-customer-addresses] { max-width: none; width: 100%; }
.te-page--account-theme .te-page__main .page-width-half,
.te-page--account-theme .te-page__main .page-width-main { max-width: none; width: 100%; margin-left: 0; margin-right: 0; }

/* Theme bodies must not re-print a page title / logout / return-to-account under the shell H1. */
.te-page--account-theme .te-account-body > .page-grid-1.addresses:first-child,
.te-page--account-theme .customer.account > .page-grid-1.addresses:first-child { display: none !important; }

.te-account-body { display: grid; gap: 24px; }
.te-account-panel { display: grid; gap: 12px; align-content: start; }
.te-account-panel__title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; }
.te-account-empty { color: var(--te-muted); margin: 0; }
.te-account-more { margin: 0; font-size: 14px; }
.te-account-more a { color: var(--te-primary); }
.te-account-card { border: 1px solid var(--te-border); border-radius: var(--te-radius); padding: 16px 18px; background: #fff; }
.te-account-back { margin: 0 0 8px; }
.te-account-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--te-primary); text-decoration: none; font-size: 14px; }
.te-account-back svg { width: 16px; height: 16px; }

.te-account-dashboard { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr); gap: 24px; align-items: start; }
.te-account-body--orders .te-account-panel { max-width: none; }
.te-account-orders { width: 100%; }
.te-mobile-returns { display: none; }

/* Order detail: readable item columns on desktop, compact item cards on phones. */
.te-page--account-order .te-account-body--order { min-width: 0; }
.te-page--account-order .te-order-detail-layout { display: grid; gap: 28px; min-width: 0; }
.te-page--account-order .te-order-detail-main { min-width: 0; }
.te-page--account-order .te-order-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; min-width: 0; }
.te-page--account-order .te-order-addresses > * { min-width: 0; }
.te-page--account-order .te-order-date { margin: 0 0 18px; color: var(--te-muted); font-size: 14px; }
.te-page--account-order .te-order-items { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.te-page--account-order .te-order-items__product { width: 39%; }
.te-page--account-order .te-order-items__sku { width: 23%; }
.te-page--account-order .te-order-items__price { width: 13%; }
.te-page--account-order .te-order-items__quantity { width: 9%; }
.te-page--account-order .te-order-items__total { width: 16%; }
.te-page--account-order .te-order-items th, .te-page--account-order .te-order-items td { padding: 14px 12px; vertical-align: top; }
.te-page--account-order .te-order-items tbody td:nth-child(2) { overflow-wrap: anywhere; word-break: normal; font-variant-numeric: tabular-nums; }
.te-page--account-order .te-order-items tbody td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
.te-order-product { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.te-order-product__image { width: 64px; height: 64px; flex: none; border-radius: 8px; background: #f5f6f7; object-fit: cover; }
.te-order-product__info { min-width: 0; overflow-wrap: anywhere; }
.te-order-product__info > a { color: var(--te-primary); text-decoration: none; }
.te-order-product__info > a:hover { text-decoration: underline; }
@media (max-width: 749px) {
  .te-page--account-order .te-account-back { display: none; }
  .te-page--account-order .te-order-addresses { grid-template-columns: minmax(0, 1fr); }
  .te-page--account-order .te-order-date { margin-bottom: 12px; }
  .te-page--account-order .te-order-items { display: block; border: 0; background: transparent; }
  .te-page--account-order .te-order-items thead { display: none; }
  .te-page--account-order .te-order-items tbody { display: grid; gap: 12px; }
  .te-page--account-order .te-order-items tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin: 0; padding: 14px; border: 1px solid var(--te-border); border-radius: 12px; background: #fff; }
  .te-page--account-order .te-order-items tbody tr:first-child { margin-top: 0; }
  .te-page--account-order .te-order-items tbody tr::before, .te-page--account-order .te-order-items::after { display: none; content: none; }
  .te-page--account-order .te-order-items tbody td { display: block; width: auto; min-width: 0; padding: 0; border: 0; text-align: left; font-size: 13px; line-height: 1.4; }
  .te-page--account-order .te-order-items tbody td::before { display: none; content: none; min-width: 0; max-width: none; flex-grow: 0; font-weight: inherit; }
  .te-page--account-order .te-order-items tbody td:nth-child(1) { grid-column: 1 / -1; width: auto; font-size: 14px; font-weight: 600; }
  .te-page--account-order .te-order-items tbody td:nth-child(2) { grid-column: 1 / -1; width: auto; color: var(--te-muted); font-size: 12px; }
  .te-page--account-order .te-order-items tbody td:nth-child(2)::before { display: inline; content: attr(data-label) ": "; }
  .te-page--account-order .te-order-items tbody td:nth-child(3) { grid-column: 1; width: auto; color: var(--te-muted); }
  .te-page--account-order .te-order-items tbody td:nth-child(3)::before { display: inline; content: attr(data-label) ": "; }
  .te-page--account-order .te-order-items tbody td:nth-child(4) { grid-column: 2; width: auto; color: var(--te-muted); text-align: right; }
  .te-page--account-order .te-order-items tbody td:nth-child(4)::before { display: inline; content: attr(data-label) ": "; }
  .te-page--account-order .te-order-items tbody td:nth-child(5) { display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: baseline; width: auto; padding-top: 9px; border-top: 1px solid var(--te-border); font-size: 15px; font-weight: 700; }
  .te-page--account-order .te-order-items tbody td:nth-child(5)::before { display: inline; content: attr(data-label); }
  .te-page--account-order .te-order-items tfoot { display: table; width: 100%; margin-top: 16px; border: 1px solid var(--te-border); border-radius: 12px; background: #fff; }
  .te-page--account-order .te-order-items tfoot tr { display: table-row; }
  .te-page--account-order .te-order-items tfoot td { display: table-cell; width: auto; padding: 10px 14px; border: 0; }
  .te-page--account-order .te-order-items tfoot td:first-of-type { display: table-cell; }
  .te-page--account-order .te-order-items tfoot td:last-child { text-align: right; white-space: nowrap; }
  .te-page--account-order .te-order-items tfoot td::before { display: none; content: none; }
  .te-page--account-order .te-order-product__image { width: 58px; height: 58px; }
}

/* Address book (/account/addresses). Cards and the add form follow the account shell,
   not the theme's customer address section. */
.te-addr { display: grid; gap: 16px; align-content: start; width: 100%; min-width: 0; }
.te-addr__toolbar { display: flex; justify-content: flex-start; min-width: 0; }
.te-account-body--addresses .te-account-add-address,
.te-account-body--addresses .te-addr__actions-row .te-button {
  width: max-content;
  max-width: 100%;
  flex: 0 0 auto;
  text-transform: none;
  letter-spacing: normal;
  background-image: none;
}
.te-account-body--addresses .te-button::before,
.te-account-body--addresses .te-button::after,
.te-account-body--addresses .te-addr__icon::before,
.te-account-body--addresses .te-addr__icon::after { content: none !important; display: none !important; }
.te-addr > #AddAddress { width: min(640px, 100%); justify-self: start; }
.te-addr__panel > .te-account-panel__title { margin-bottom: 14px; }
.te-addr__form.te-form { max-width: 592px; width: 100%; }
.te-addr__fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.te-addr__field--wide { grid-column: 1 / -1; }
.te-addr .te-field input,
.te-addr .te-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--te-border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: inherit;
}
.te-addr .te-field select { padding-right: 28px; }
.te-addr .te-field input:focus,
.te-addr .te-field select:focus { outline: 2px solid var(--te-primary); outline-offset: 1px; border-color: transparent; }
.te-addr .te-field.has-error input,
.te-addr .te-field.has-error select { border-color: #b42318; }
.te-addr .te-field.has-error input:focus,
.te-addr .te-field.has-error select:focus { outline-color: #b42318; border-color: #b42318; }
.te-addr__check { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.4; cursor: pointer; }
.te-addr__check input[type="checkbox"] {
  width: 18px !important; height: 18px !important; min-height: 0 !important; margin: 2px 0 0; flex: none;
  accent-color: var(--te-primary);
}
.te-addr__actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.te-account-address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.te-account-address-card { min-width: 0; }
.te-addr__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--te-border);
  border-radius: var(--te-radius);
  background: #fff;
}
.te-addr__card.is-default { box-shadow: inset 3px 0 0 var(--te-primary, #1a4fa0); }
.te-addr__head { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.te-addr__name {
  margin: 0; min-width: 0; flex: 0 1 auto; font-size: 16px; font-weight: 600; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.te-addr__actions { display: flex; gap: 6px; margin-left: auto; flex: none; }
.te-account-body--addresses .te-addr__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-height: 0; padding: 0; flex: none;
  border: 1px solid var(--te-border); border-radius: 8px; background: #fff; color: inherit;
  cursor: pointer; text-transform: none; letter-spacing: normal; background-image: none;
}
.te-account-body--addresses .te-addr__icon:hover { background: rgba(0,0,0,.04); }
.te-account-body--addresses .te-addr__icon--danger:hover { color: #8a1c13; border-color: #f0c2be; background: #fdecea; }
.te-account-body--addresses .te-addr__icon[aria-expanded="true"] {
  color: var(--te-primary); border-color: color-mix(in srgb, var(--te-primary) 45%, var(--te-border));
  background: color-mix(in srgb, var(--te-primary) 8%, #fff);
}
.te-addr__icon svg { width: 16px; height: 16px; display: block; }
.te-addr__icon:focus-visible,
.te-account-body--addresses .te-button:focus-visible { outline: 2px solid var(--te-primary); outline-offset: 2px; }
.te-account-address-badge {
  display: inline-flex; align-items: center; flex: none; margin: 0; padding: 2px 8px;
  border-radius: 999px; background: color-mix(in srgb, var(--te-primary, #005fc6) 12%, transparent);
  color: var(--te-primary, #005fc6); font-size: 12px; font-weight: 600; line-height: 1.4;
}
.te-addr__lines { display: grid; gap: 2px; margin: 0; color: rgba(0,0,0,.78); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.te-addr__phone { margin: 0; color: var(--te-muted); font-size: 14px; }
.te-addr__card .te-addr__panel { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--te-border); }
.te-addr__confirm { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px; }
.te-addr__confirm-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(17, 24, 39, .54); cursor: default; }
.te-addr__confirm-card { position: relative; width: min(100%, 420px); padding: 26px; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .2); text-align: center; }
.te-addr__confirm-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 15px; border-radius: 50%; background: #fdecea; color: #b42318; font-size: 26px; font-weight: 700; }
.te-addr__confirm-card h2 { margin: 0 0 8px; color: var(--te-text, #1f2937); font-size: 20px; line-height: 1.3; }
.te-addr__confirm-card p { margin: 0; color: var(--te-muted, #667085); font-size: 14px; line-height: 1.5; }
.te-addr__confirm-address { display: grid; gap: 3px; margin: 18px 0 22px; padding: 12px 14px; border: 1px solid var(--te-border); border-radius: 10px; background: color-mix(in srgb, var(--te-primary) 4%, #fff); text-align: left; overflow-wrap: anywhere; }
.te-addr__confirm-address strong { color: var(--te-text, #1f2937); font-size: 15px; }
.te-addr__confirm-address span { color: var(--te-muted, #667085); font-size: 13px; }
.te-addr__confirm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.te-account-body--addresses .te-addr__confirm-actions button { min-height: 46px; padding: 8px 12px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.te-account-body--addresses .te-addr__confirm-cancel { border: 1px solid color-mix(in srgb, var(--te-primary) 30%, var(--te-border)); background: color-mix(in srgb, var(--te-primary) 7%, #fff); color: var(--te-primary); }
.te-account-body--addresses .te-addr__confirm-submit { border: 1px solid #b42318; background: #b42318; color: #fff; }
.te-account-body--addresses .te-addr__confirm-submit:hover { background: #8a1c13; }
.te-addr__confirm-actions button:focus-visible { outline: 2px solid var(--te-primary); outline-offset: 2px; }
body.te-addr-confirm-open { overflow: hidden; }
@media (min-width: 750px) {
  .te-account-address-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
  .te-addr__fields { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  /* Editing card owns the full main column; siblings hide so two forms never sit side by side. */
  .te-account-address-card.is-editing { grid-column: 1 / -1; }
  .te-account-address-grid:has(.is-editing) > .te-account-address-card:not(.is-editing) { display: none; }
}
@media (max-width: 749px) {
  .te-account-body--addresses .te-addr__icon { width: 40px; height: 40px; }
}
/* Keep stroke icons visible even if the theme paints svg path { fill } globally. */
.te-account-body--addresses .te-addr__icon svg {
  width: 16px; height: 16px; display: block; flex: none; overflow: visible;
  fill: none !important; stroke: currentColor;
}
.te-account-body--addresses .te-addr__icon svg path {
  fill: none !important; stroke: currentColor !important; stroke-width: 1.8;
}

@media (max-width: 749px) {
  body:has(.te-page__mobile-header) .store-section-group-header-group,
  body:has(.te-page__mobile-header) .breadcrumb,
  body:has(.te-page__mobile-header) footer.footer { display: none !important; }
  body:has(.te-page__mobile-header) footersticky-nav { opacity: 1; transform: none; }
  .te-page:has(.te-page__mobile-header) { min-height: 100dvh; padding: 12px 0 calc(88px + env(safe-area-inset-bottom)); background: #f7f8fa; }
  .te-page:has(.te-page__mobile-header) .te-page__inner { max-width: 520px; padding: 0 16px; }
  .te-page__mobile-header { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; margin-bottom: 16px; pointer-events: none; }
  .te-page__mobile-header + .te-page__title { display: none; }
  .te-page__mobile-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
  .te-page__mobile-back { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; justify-content: center; width: 44px; color: inherit; text-decoration: none; font-size: 34px; font-weight: 300; pointer-events: auto; }
  .te-page__grid { display: block; }
  .te-page__nav { display: none; }
  .te-page--account-overview:not(:has(.te-mobile-account)) .te-page__nav { display: block; margin-bottom: 16px; }
  .te-page__main { gap: 16px; }
  .te-page:has(.te-page__mobile-header) .te-card { border: 0; border-radius: 16px; box-shadow: 0 2px 14px rgba(0,0,0,.035); }
  .te-page:has(.te-page__mobile-header) .te-form .te-button { width: 100%; min-height: 50px; }
  .te-page--account-overview .te-account-dashboard { display: none; }
  .te-page--account-orders .te-account-panel { padding: 0; background: transparent; }
  .te-page--account-orders .te-table-wrap { display: none; }
  .te-mobile-orders { display: grid; gap: 12px; }
  .te-mobile-orders__card { min-width: 0; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.035); }
  .te-mobile-orders__item { display: grid; gap: 12px; padding: 16px; color: inherit; text-decoration: none; }
  .te-mobile-orders__actions { display: flex; justify-content: flex-end; padding: 0 16px 16px; }
  .te-mobile-orders__actions .te-button { min-height: 40px; min-width: 100px; border-radius: 999px; }
  .te-mobile-orders__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .te-mobile-orders__head strong { color: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
  .te-mobile-orders__status { flex: none; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--te-primary) 10%, #fff); color: var(--te-primary); font-size: 12px; font-weight: 600; }
  .te-mobile-orders__date { color: var(--te-muted); font-size: 13px; }
  .te-mobile-orders__foot { display: flex; align-items: center; gap: 10px; padding-top: 11px; border-top: 1px solid var(--te-border); color: var(--te-muted); font-size: 13px; }
  .te-mobile-orders__foot strong { margin-left: auto; color: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
  .te-mobile-orders__arrow { color: var(--te-primary); font-size: 24px; line-height: 1; }
  .te-mobile-orders__head strong { min-width: 0; overflow-wrap: anywhere; }
  .te-page--returns .te-return-requests { padding: 0; background: transparent; box-shadow: none; }
  .te-return-requests > .te-card__title { padding: 0 4px; }
  .te-return-requests > .te-table-wrap { display: none; }
  .te-mobile-returns { display: grid; gap: 12px; }
  .te-mobile-returns__card { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
  .te-mobile-returns__head, .te-mobile-returns__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .te-mobile-returns__head .te-badge { max-width: 75%; white-space: normal; text-align: right; }
  .te-mobile-returns__product { font-size: 15px; line-height: 1.5; }
  .te-mobile-returns__sku, .te-mobile-returns__meta, .te-mobile-returns__foot { color: var(--te-muted); font-size: 12px; }
  .te-mobile-returns__foot { padding-top: 10px; border-top: 1px solid var(--te-border); }
  .te-mobile-returns__foot > span { color: var(--te-primary); white-space: nowrap; }
  .te-page--returns .te-items .te-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); padding: 12px 0; border: 0; border-top: 1px solid var(--te-border); border-radius: 0; }
  .te-page--returns .te-item > .te-button { grid-column: 2; justify-self: end; border-radius: 999px; }
  .te-page--return .te-dl { grid-template-columns: 84px minmax(0, 1fr); gap: 14px 12px; font-size: 14px; }
  .te-page--return .te-dl dd { min-width: 0; overflow-wrap: anywhere; }
  .te-page--return-form .te-item, .te-page--return-form .te-item__body { min-width: 0; }
  .te-page--return-form .te-item__title, .te-page--return-form .te-muted { overflow-wrap: anywhere; }
  .te-page--profile .te-form, .te-page--password .te-form, .te-page--return-form .te-form { gap: 20px; }
  .te-page:has(.te-page__mobile-header) .te-field input, .te-page:has(.te-page__mobile-header) .te-field select { min-height: 48px; }
  .te-page--wishlist #te-wishlist { padding: 0; background: transparent; box-shadow: none; }
  .te-page--wishlist .te-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .te-page--wishlist .te-items .te-item { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; border: 0; border-radius: 14px; background: #fff; min-width: 0; }
  .te-page--wishlist .te-item__image { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
  .te-page--wishlist .te-item__body { flex: 1; font-size: 13px; overflow-wrap: anywhere; }
  .te-page--wishlist .te-item__title { margin-bottom: 8px; line-height: 1.5; }
  .te-page--wishlist .te-item__actions { display: grid; gap: 8px; }
  .te-page--wishlist .te-item__actions .te-button { width: 100%; padding: 6px 8px; min-height: 38px; font-size: 12px; }
  .te-page--wishlist [data-te-wishlist-empty], .te-page--account-orders .te-account-empty { padding: 44px 20px; border-radius: 16px; background: #fff; text-align: center; line-height: 1.8; }
  .te-page--app .te-app:has(.pr-page) { padding: 0; background: transparent; box-shadow: none; }
  .te-page--app .pr-page { padding: 0; }
  .te-page--app .pr-item { padding: 16px; margin-bottom: 12px; border: 0; border-radius: 16px; background: #fff; }
  .te-page--app .pr-item h4 { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
  .te-page--app .pr-item > p { color: var(--te-muted); font-size: 12px; }
  .te-page--app .pr-review { border: 0; padding: 10px 0 0; }
  .te-page--app .pr-body { font-size: 14px; }
  .te-mobile-account { display: grid; gap: 16px; }
  .te-mobile-account__profile, .te-mobile-account__orders, .te-mobile-account__menu { border-radius: 16px; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.035); }
  .te-mobile-account__profile { display: flex; align-items: center; gap: 14px; min-height: 102px; padding: 18px; color: inherit; text-decoration: none; }
  .te-mobile-account__avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--te-primary) 17%, #fff); color: var(--te-primary); font-size: 24px; font-weight: 700; }
  .te-mobile-account__identity { display: grid; gap: 3px; min-width: 0; }
  .te-mobile-account__identity strong, .te-mobile-account__identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .te-mobile-account__identity strong { font-size: 17px; }
  .te-mobile-account__identity small { color: var(--te-muted); font-size: 13px; }
  .te-mobile-account__chevron { margin-left: auto; color: var(--te-muted); font-size: 24px; line-height: 1; }
  .te-mobile-account__orders { padding: 18px 16px; }
  .te-mobile-account__section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--te-border); padding-bottom: 12px; }
  .te-mobile-account__section-head h2 { margin: 0; font-size: 17px; }
  .te-mobile-account__section-head a { color: var(--te-muted); text-decoration: none; font-size: 13px; }
  .te-mobile-account__shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-top: 17px; }
  .te-mobile-account__shortcut { display: grid; justify-items: center; gap: 8px; min-height: 66px; color: inherit; text-align: center; text-decoration: none; font-size: 12px; }
  .te-mobile-account__shortcut-icon { color: var(--te-primary); }
  .te-mobile-account svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .te-mobile-account__menu ul { list-style: none; margin: 0; padding: 0 16px; }
  .te-mobile-account__menu li + li { border-top: 1px solid var(--te-border); }
  .te-mobile-account__menu a { display: flex; align-items: center; gap: 16px; min-height: 60px; color: inherit; text-decoration: none; font-size: 15px; }
  .te-mobile-account__menu-icon { color: var(--te-primary); }
  .te-page--account-addresses .te-page__inner { position: relative; }
  .te-page--account-addresses .te-addr__toolbar { position: absolute; top: 0; right: 16px; z-index: 1; }
  .te-page--account-addresses .te-account-add-address { min-height: 48px; padding: 0; background: transparent; color: var(--te-primary); border: 0; font-size: 14px; }
  .te-page--account-addresses .te-account-add-address::before { content: '+' !important; display: inline !important; margin-right: 5px; font-size: 23px; font-weight: 400; line-height: 0; }
  .te-addr__grid { gap: 14px; }
  .te-addr__card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; padding: 18px 16px 0; border: 0; border-radius: 16px; box-shadow: 0 2px 14px rgba(0,0,0,.035); }
  .te-addr__card.is-default { box-shadow: 0 2px 14px rgba(0,0,0,.035); }
  .te-addr__head { display: contents; }
  .te-addr__name { grid-column: 1; grid-row: 1; align-self: center; font-size: 17px; }
  .te-account-address-badge { grid-column: 2; grid-row: 1; align-self: center; background: color-mix(in srgb, var(--te-primary) 14%, #fff); }
  .te-addr__mobile-meta { display: grid; grid-column: 1 / -1; grid-row: 2; gap: 8px; }
  .te-addr__mobile-meta-line { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; color: var(--te-muted); font-size: 14px; }
  .te-addr__mobile-meta svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .te-addr__lines { grid-column: 1 / -1; grid-row: 3; gap: 0; color: var(--te-muted); }
  .te-addr__email, .te-addr__phone { display: none; }
  .te-addr__actions { display: flex; grid-column: 1 / -1; grid-row: 4; justify-content: stretch; width: 100%; margin: 4px 0 0; border-top: 1px solid var(--te-border); }
  .te-account-body--addresses .te-addr__icon { display: flex; flex: 1 1 50%; gap: 7px; width: auto; min-height: 52px; border: 0; border-radius: 0; color: var(--te-primary); font-size: 14px; }
  .te-account-body--addresses .te-addr__icon + .te-addr__icon { border-left: 1px solid var(--te-border); }
  .te-account-body--addresses .te-addr__icon--danger { color: #b42318; }
  .te-addr__action-label { display: inline; }
  .te-addr__backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 1001; width: 100%; border: 0; background: rgba(0,0,0,.45); }
  .te-addr__panel:not([hidden]), .te-addr > #AddAddress:not([hidden]) { position: fixed; inset: auto 0 0; z-index: 1002; display: block; width: 100%; max-width: none; max-height: 88dvh; margin: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 20px 20px 0 0; padding: 28px 20px calc(20px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 32px rgba(0,0,0,.13); }
  .te-addr__panel:not([hidden])::before { content: ''; display: block; width: 52px; height: 5px; margin: -16px auto 18px; border-radius: 999px; background: #c3cad3; }
  .te-addr__panel > .te-account-panel__title { margin: 0 32px 20px; text-align: center; font-size: 18px; }
  .te-addr__sheet-close { position: absolute; top: 15px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--te-muted); font: inherit; font-size: 26px; }
  .te-addr__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .te-addr .te-field input, .te-addr .te-field select { min-height: 48px; }
  .te-addr__actions-row { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 8px -20px calc(-20px - env(safe-area-inset-bottom)); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--te-border); }
  .te-account-body--addresses .te-addr__actions-row .te-button { width: 100%; min-height: 50px; border-radius: 10px; }
  .te-addr__actions-row .te-button--ghost { display: none; }
  body.te-addr-sheet-open { overflow: hidden; }
}
.te-page [hidden], .te-blade-body [hidden] { display: none !important; }
.te-security input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--te-border); border-radius: 8px; font: inherit; }
.te-security label { font-weight: 600; font-size: 14px; }
.te-page--single .te-page__inner { max-width: 600px; }
/* Order status block below customers/order (OrderStatus): badges, shipments, timeline, plugin panels. */
.te-order-status { padding-top: 8px; }
.te-order-status__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.te-order-status__title { margin: 0; font-size: 24px; line-height: 1.25; }
.te-order-status__badges { display: flex; flex-wrap: wrap; gap: 8px; }
/* order actions (backlog #2, 2026-10-19) */
.te-order-actions__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.te-order-actions__rma { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.te-order-actions__rma li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.te-order-actions [data-te-order-error] { margin-top: 12px; }
.te-order-status__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.te-order-status__main { display: grid; gap: 20px; min-width: 0; }
.te-badge--financial-paid, .te-badge--fulfillment-fulfilled, .te-badge--success { background: #e7f6ec; color: #145c2c; }
.te-badge--financial-pending, .te-badge--fulfillment-partial, .te-badge--warning { background: #fff4e0; color: #7a4b00; }
.te-badge--financial-voided, .te-badge--financial-refunded, .te-badge--danger { background: #fdecea; color: #8a1c13; }
.te-badge--info { background: #e8f0fe; color: #1a4fa0; }
.te-shipments { display: grid; gap: 16px; }
.te-shipments .te-card__title { margin-bottom: 0; }
.te-shipments__meter { width: 100%; height: 8px; accent-color: var(--te-primary); }
.te-shipment { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--te-border); border-radius: 8px; }
.te-shipment__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.te-shipment__number { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.te-shipment__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.te-shipment__items .te-item__image { width: 48px; height: 48px; }
.te-shipment__qty { font-weight: 600; white-space: nowrap; }
.te-timeline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.te-timeline__event { position: relative; display: grid; gap: 2px; padding: 0 0 18px 22px; border-left: 2px solid var(--te-border); margin-left: 5px; }
.te-timeline__event:last-child { border-left-color: transparent; padding-bottom: 0; }
.te-timeline__event::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--te-border); }
.te-timeline__event.is-current::before { background: var(--te-primary); border-color: var(--te-primary); }
.te-timeline__label { font-weight: 600; }
.te-timeline__comment { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 749px) { .te-order-status__grid { grid-template-columns: 1fr; } .te-order-status__title { font-size: 20px; } }
/* Public engine pages (2026-10-18: contact, FAQ, order tracking, reviews, email sign-in): breadcrumb, wider single column. */
.te-page--public .te-page__inner { max-width: 1100px; }
.te-page--public.te-page--narrow .te-page__inner { max-width: 600px; }
.te-breadcrumb ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--te-muted); }
.te-breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.te-breadcrumb a { color: inherit; text-decoration: none; }
.te-breadcrumb a:hover { text-decoration: underline; }
.te-required { color: #b42318; }
.te-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.te-field textarea { width: 100%; min-height: 140px; padding: 10px 12px; border: 1px solid var(--te-border); border-radius: 8px; font: inherit; resize: vertical; }
.te-field.has-error input, .te-field.has-error textarea { border-color: #b42318; }
.te-alert ul { margin: 0; padding-left: 18px; }
/* Contact */
.te-contact__intro { color: var(--te-muted); margin: -8px 0 24px; white-space: pre-line; }
.te-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.te-contact__info dl { margin: 0; }
.te-contact__info dt { font-weight: 600; margin-top: 12px; }
.te-contact__info dt:first-child { margin-top: 0; }
.te-contact__info dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.te-contact__map { position: relative; padding-top: 56%; margin-top: 16px; border-radius: 8px; overflow: hidden; background: #f3f4f6; }
.te-contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.te-contact__faq { margin: 16px 0 0; }
.te-contact__form .te-form { max-width: none; }
.cf-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* FAQ section */
.te-faq__group + .te-faq__group { margin-top: 32px; }
.te-faq__group-title { font-size: 20px; margin: 0 0 12px; }
.te-faq__items { border-top: 1px solid var(--te-border); }
.te-faq__item { border-bottom: 1px solid var(--te-border); }
.te-faq__question { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; cursor: pointer; list-style: none; }
.te-faq__question::-webkit-details-marker { display: none; }
.te-faq__question h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; }
.te-faq__question::after { content: "+"; font-size: 20px; line-height: 1; flex: none; transition: transform .2s; }
.te-faq__item[open] > .te-faq__question::after { transform: rotate(45deg); }
.te-faq__answer { padding: 0 4px 16px; color: var(--te-muted); }
.te-faq__answer img { max-width: 100%; height: auto; }
.te-faq__more { margin-top: 32px; }
@media (max-width: 749px) { .te-contact__grid, .te-form__row { grid-template-columns: 1fr; } }
/* Order tracking */
.te-page--order-tracking .te-page__inner { max-width: 800px; }
.te-tracking { display: grid; gap: 20px; }
.te-tracking .te-form { max-width: none; }
.te-tracking__sub { font-size: 15px; margin: 20px 0 8px; }
.te-tracking__products { list-style: none; margin: 0; padding: 0; }
.te-tracking__products li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--te-border); overflow-wrap: anywhere; }
.te-alert--warning { background: #fff4e0; color: #7a4b00; }
.te-small { font-size: 13px; }
/* System sign-in / sign-up page (core CustomerAccess: email code and password views) */
.te-page--email-access .te-page__inner { max-width: 520px; }
.te-email-access__card { display: grid; gap: 16px; }
.te-email-access__card .te-page__title { margin: 0; }
.te-email-access .te-form { max-width: none; }
.te-button--block { width: 100%; }
.te-button:disabled { opacity: .6; cursor: not-allowed; }
.te-link-button { background: none; border: 0; padding: 0; color: var(--te-primary); font: inherit; cursor: pointer; justify-self: start; text-decoration: underline; }
.te-email-access__links { display: flex; gap: 16px; }
.te-email-access .alert { margin: 0; padding: 12px 16px; border-radius: 8px; }
.te-email-access .alert-success { background: #e7f6ec; color: #145c2c; }
.te-email-access .alert-warning { background: #fff4e0; color: #7a4b00; }
.te-email-access .d-none { display: none !important; }
.te-email-access .spinner-border { display: inline-block; width: 1em; height: 1em; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: te-spin .75s linear infinite; }
@keyframes te-spin { to { transform: rotate(360deg); } }
.te-email-access__social { display: grid; gap: 8px; }
.te-email-access__names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.te-email-access__switch { margin: 0; }
/* return images (backlog #3, 2026-10-19) */
.te-rma-images { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.te-rma-image { position: relative; display: inline-flex; width: 60px; height: 60px; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; overflow: hidden; }
.te-rma-image img { width: 100%; height: 100%; object-fit: cover; }
.te-rma-image__remove { position: absolute; top: 0; right: 0; width: 20px; height: 20px; padding: 0; border: 0; background: #c0392b; color: #fff; line-height: 20px; cursor: pointer; }
