/* Locally hosted fonts; no Google/Replit requests from customer accounts. */
@font-face {
  font-family: "MKT Account Inter"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "MKT Account Oswald"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("fonts/oswald-latin.woff2") format("woff2");
}
/* Scoped to signed-in WooCommerce account content. Site chrome is unchanged. */
/* The actual MKT theme wraps WooCommerce in a narrow WHITE login panel.
   Expand that real parent, not just the plugin's already-constrained child.
   This body class is added only for signed-in account requests. */
body.mkt-account-history {
  background: #111110;
}
body.mkt-account-history #mkt-main.mkt-main {
  width: 100% !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important;
}
body.mkt-account-history .mkt-account {
  background: #111110 !important; color: #f2f0eb !important;
  width: 100% !important; max-width: none !important;
  margin: 0 !important; padding: 0 0 48px !important;
}
body.mkt-account-history .mkt-account__inner {
  width: 100% !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important;
}
body.mkt-account-history .mkt-account__notice { display: none; }
body.mkt-account-history .mkt-account__inner > .woocommerce {
  display: block !important; width: 100% !important;
  max-width: none !important; margin: 0 !important; padding: 0 !important;
}
.woocommerce .mkt-orders {
  --mkt-bg: #111110; --mkt-panel: #191918; --mkt-line: #34332f;
  --mkt-line-soft: #292825; --mkt-text: #f2f0eb; --mkt-muted: #aaa79f;
  --mkt-subtle: #aaa79f; --mkt-gold: #c5a059; --mkt-gold-soft: #dfc17f;
  background: var(--mkt-bg); color: var(--mkt-text);
  font-family: "MKT Account Inter", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.5; padding: 0 48px 34px;
  width: 100%; max-width: none; clear: both; box-sizing: border-box;
}
.mkt-orders *, .mkt-orders *::before, .mkt-orders *::after { box-sizing: border-box; }
.mkt-orders a, .mkt-orders button, .mkt-orders input, .mkt-orders select { font: inherit; }
.mkt-orders a:focus-visible, .mkt-orders button:focus-visible, .mkt-orders summary:focus-visible,
.mkt-orders input:focus-visible, .mkt-orders select:focus-visible {
  outline: 2px solid var(--mkt-gold-soft); outline-offset: 3px;
}
.woocommerce .mkt-orders a { text-decoration: none; }
.mkt-orders__layout {
  width: min(1250px, 100%); margin: 0 auto; padding-top: 45px; display: grid;
  grid-template-columns: 205px minmax(0, 1fr); gap: clamp(36px, 5vw, 78px);
}
.woocommerce .mkt-orders .woocommerce-MyAccount-content,
.woocommerce .mkt-orders .woocommerce-MyAccount-navigation {
  float: none; width: auto; max-width: none; margin: 0; padding: 0;
}
.mkt-orders__sidebar { min-width: 0; padding-top: 8px; }
.mkt-orders__eyebrow {
  color: var(--mkt-subtle); display: block; font-size: 10px;
  font-weight: 700; letter-spacing: .12em; line-height: 1.35;
}
.mkt-orders__side-heading { margin-bottom: 17px; }
.woocommerce .mkt-orders__nav { display: grid; gap: 3px; }
.woocommerce .mkt-orders a.mkt-orders__nav-link {
  min-height: 39px; padding: 9px 12px; background: transparent; color: #b8b5ad;
  border: 0; border-radius: 2px; display: flex; align-items: center;
  transition: background-color .18s ease, color .18s ease; overflow-wrap: anywhere;
}
.woocommerce .mkt-orders a.mkt-orders__nav-link:hover { color: var(--mkt-text); background: #20201e; }
.woocommerce .mkt-orders a.mkt-orders__nav-link.is-active {
  color: var(--mkt-gold-soft); background: #24221d;
  box-shadow: inset 2px 0 0 var(--mkt-gold); font-weight: 600;
}
.mkt-orders__help {
  margin: 42px 0 0 1px; padding-top: 16px; border-top: 1px solid var(--mkt-line);
  display: grid; gap: 4px; color: var(--mkt-muted); font-size: 12px;
}
.woocommerce .mkt-orders__help a { color: var(--mkt-gold-soft); width: fit-content; }
.mkt-orders__content { min-width: 0; }
.mkt-orders__heading-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 32px;
}
.woocommerce .mkt-orders__heading-row h1 {
  color: var(--mkt-text); font-family: "MKT Account Oswald", "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(32px, 3.2vw, 41px); line-height: 1.12; font-weight: 500;
  letter-spacing: .005em; margin: 8px 0 6px; text-transform: none;
}
.mkt-orders__intro { color: var(--mkt-muted); margin: 0; font-size: 14px; }
.mkt-orders__list-heading {
  min-height: 35px; display: flex; justify-content: space-between; gap: 12px;
  color: var(--mkt-subtle); font-size: 10px; font-weight: 700; letter-spacing: .12em;
}
.mkt-orders__order-list { display: grid; gap: 15px; }
.mkt-order {
  border: 1px solid var(--mkt-line); background: var(--mkt-panel); min-width: 0;
  transition: border-color .18s ease;
}
.mkt-order:hover { border-color: #514c40; }
.mkt-order__header {
  min-height: 78px; padding: 14px 17px; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(0, .6fr) auto;
  gap: 18px; border-bottom: 1px solid var(--mkt-line-soft);
}
.mkt-order__identity, .mkt-order__date, .mkt-order__total { min-width: 0; overflow-wrap: anywhere; }
.mkt-order__identity strong, .mkt-order__date strong, .mkt-order__total strong {
  margin-top: 4px; display: block; font-size: 13px; font-weight: 600; color: var(--mkt-text);
}
.mkt-order__identity strong { color: var(--mkt-gold-soft); letter-spacing: .025em; }
.woocommerce .mkt-orders a.mkt-order__view {
  min-height: 36px; min-width: 112px; display: inline-flex; justify-content: center;
  align-items: center; gap: 7px; border: 1px solid #75613b; background: var(--mkt-gold);
  color: #171612; padding: 7px 11px; border-radius: 2px; font-weight: 700;
  font-size: 12px; line-height: 1.5; text-align: center;
  transition: background-color .18s ease, border-color .18s ease;
}
.woocommerce .mkt-orders a.mkt-order__view:hover { background: #d8b875; border-color: #d8b875; }
.mkt-order__products { padding: 4px 17px; }
.mkt-order__product {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center; gap: 15px; min-height: 105px; padding: 13px 0;
}
.mkt-order__product + .mkt-order__product { border-top: 1px solid var(--mkt-line-soft); }
.mkt-order__image {
  height: 76px; width: 76px; background: #232321; border: 1px solid #373632;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.woocommerce .mkt-order__image img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
.mkt-order__product-info { min-width: 0; overflow-wrap: anywhere; }
body.mkt-account-history .woocommerce .mkt-order__product-info h2 {
  margin: 0 0 5px; color: #f0eee8; font: 600 14px/1.35 "MKT Account Inter", "Inter", sans-serif; text-transform: none;
}
.mkt-order__option { color: var(--mkt-muted); font-size: 11px; line-height: 1.55; }
.mkt-order__option p { display: inline; margin: 0; }
.mkt-order__option a { color: var(--mkt-gold-soft); }
.mkt-order__quantity { display: block; color: var(--mkt-subtle); font-size: 11px; margin-top: 3px; }
.mkt-order__item-price { font-size: 13px; font-weight: 600; color: #e5e1d8; text-align: right; }
.mkt-order__details {
  border-top: 1px solid var(--mkt-line); background: #151514; padding: 12px 18px;
  color: var(--mkt-muted); font-size: 12px;
}
.mkt-order__details summary { color: var(--mkt-gold-soft); cursor: pointer; width: fit-content; }
.mkt-order__totals { margin: 14px 0 0; }
.mkt-order__totals > div { display: flex; gap: 20px; justify-content: space-between; padding: 5px 0; }
.mkt-order__totals dt { font-weight: 500; }
.mkt-order__totals dd { color: var(--mkt-text); margin: 0; text-align: right; }
.mkt-order__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 17px; }
.mkt-orders__pagination { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.woocommerce .mkt-orders a.mkt-order__secondary {
  border: 1px solid var(--mkt-line); padding: 8px 13px; color: var(--mkt-gold-soft);
  background: #20201e; font-size: 12px; display: inline-flex; align-items: center; min-height: 36px;
}
.woocommerce .mkt-orders a.mkt-order__secondary:hover { border-color: var(--mkt-gold); }
.mkt-orders__empty { border: 1px solid var(--mkt-line); background: var(--mkt-panel); padding: 28px; }
.mkt-orders__empty h2 { color: var(--mkt-text); font-size: 22px; margin: 0 0 8px; }
.mkt-orders__empty p { color: var(--mkt-muted); margin: 0 0 20px; }
.woocommerce .mkt-orders__back { color: var(--mkt-gold-soft); display: inline-block; margin-bottom: 16px; }
.mkt-orders__detail-products { margin-bottom: 22px; }
/* Native WooCommerce forms/details retain their semantics and validation. */
.woocommerce .mkt-orders h2, .woocommerce .mkt-orders h3, .woocommerce .mkt-orders label,
.woocommerce .mkt-orders legend { color: var(--mkt-text); }
.woocommerce .mkt-orders .shop_table {
  color: var(--mkt-text); background: var(--mkt-panel); border: 1px solid var(--mkt-line); width: 100%;
}
.woocommerce .mkt-orders .shop_table th, .woocommerce .mkt-orders .shop_table td {
  border-color: var(--mkt-line); padding: 12px; overflow-wrap: anywhere;
}
.woocommerce .mkt-orders .woocommerce-order-details a,
.woocommerce .mkt-orders .woocommerce-customer-details a,
.woocommerce .mkt-orders .woocommerce-Address a { color: var(--mkt-gold-soft); }
.woocommerce .mkt-orders address { border-color: var(--mkt-line); background: var(--mkt-panel); }
body.mkt-account-history .woocommerce .mkt-orders .input-text,
body.mkt-account-history .woocommerce .mkt-orders select,
body.mkt-account-history .woocommerce .mkt-orders textarea {
  background: #191918; color: var(--mkt-text); border: 1px solid #68645b; padding: 10px;
}
.mkt-orders__notes li { padding: 12px 0; color: var(--mkt-text); }
.mkt-orders__notes time { color: var(--mkt-muted); font-size: 12px; }
@media (max-width: 980px) {
  .woocommerce .mkt-orders { padding-left: 28px; padding-right: 28px; }
  .mkt-orders__layout { grid-template-columns: 170px minmax(0, 1fr); gap: 30px; }
  .mkt-order__header { gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .mkt-order__date { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 700px) {
  .woocommerce .mkt-orders { padding: 0 17px 24px; }
  .mkt-orders__layout { display: block; padding-top: 22px; }
  .mkt-orders__sidebar { padding: 0 0 16px; margin-bottom: 24px; border-bottom: 1px solid var(--mkt-line); }
  .mkt-orders__side-heading { margin-bottom: 10px; }
  /* Visible without JavaScript; Sign Out and account links never disappear. */
  .woocommerce .mkt-orders__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .woocommerce .mkt-orders a.mkt-orders__nav-link { min-height: 40px; font-size: 12px; }
  .mkt-orders__help { margin: 12px 0 0; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
  .mkt-orders__heading-row { margin-bottom: 23px; }
  .woocommerce .mkt-orders__heading-row h1 { font-size: 34px; margin-top: 6px; }
  .mkt-orders__intro { font-size: 13px; }
  .mkt-orders__list-heading { min-height: 31px; }
  .mkt-orders__order-list { gap: 12px; }
  .mkt-order__header {
    padding: 12px; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "identity date" "total view"; gap: 10px 8px; min-height: 0;
  }
  .mkt-order__identity { grid-area: identity; }
  .mkt-order__date { grid-area: date; justify-self: end; text-align: right; }
  .mkt-order__date strong { margin-top: 3px; font-size: 11px; color: var(--mkt-muted); }
  .mkt-order__total { grid-area: total; }
  .mkt-order__total .mkt-orders__eyebrow { display: none; }
  .mkt-order__total strong { margin-top: 0; font-size: 14px; }
  .woocommerce .mkt-orders a.mkt-order__view { grid-area: view; justify-self: end; min-width: 105px; min-height: 40px; }
  .mkt-order__products { padding: 3px 12px; }
  .mkt-order__product { grid-template-columns: 66px minmax(0, 1fr) auto; gap: 11px; min-height: 92px; padding: 11px 0; }
  .mkt-order__image { width: 66px; height: 66px; }
  body.mkt-account-history .woocommerce .mkt-order__product-info h2 { font-size: 13px; }
  .mkt-order__item-price { font-size: 12px; align-self: start; padding-top: 3px; max-width: 90px; overflow-wrap: anywhere; }
  .mkt-order__details { padding: 13px 12px; }
  .mkt-order__actions { padding: 12px; }
  .woocommerce .mkt-orders .shop_table { table-layout: fixed; }
  .woocommerce .mkt-orders .col2-set .col-1, .woocommerce .mkt-orders .col2-set .col-2 { float: none; width: 100%; }
}
@media (max-width: 370px) {
  .woocommerce .mkt-orders { padding-left: 12px; padding-right: 12px; }
  .mkt-order__product { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 9px; }
  .mkt-order__image { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-orders *, .mkt-orders *::before, .mkt-orders *::after { transition: none !important; }
}
