/* ══════════════════════════════════════════════════════════════
   ACCOUNTCHI — CART, CHECKOUT AND THE POST-PURCHASE PAGES

   Two columns: the form on a light surface, the order summary on a
   dark panel beside it. Applied over WooCommerce's own markup rather
   than a template override, so field plugins and WooCommerce updates
   keep working.

   The shop is paid through a third-party gateway, so there is no card
   form here — the right-hand panel ends at "go to the gateway".
   ══════════════════════════════════════════════════════════════ */

/* ─── Flow header and progress ──────────────────────────────── */

.akch-flow-head {
  max-width: 1180px;
  margin: 0 auto clamp(26px, 4vw, 44px);
  padding: clamp(28px, 5vw, 52px) clamp(16px, 4vw, 32px) 0;
  text-align: center;
}
.akch-flow-head h1 {
  margin: 0 0 26px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--text);
}

.akch-flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.akch-flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  flex: 1 1 0;
  max-width: 190px;
  min-width: 0;
}
/* The connector runs between dots, not under them. */
.akch-flow-step::before {
  content: '';
  position: absolute;
  top: 19px;
  inset-inline-end: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.akch-flow-step:first-child::before { display: none; }
.akch-flow-step.is-done::before,
.akch-flow-step.is-current::before { background: var(--accent); }
.akch-flow-step.is-failed::before { background: var(--border2); }

.akch-flow-dot {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--muted2);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.akch-flow-dot svg { width: 17px; height: 17px; }

.akch-flow-step.is-done .akch-flow-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.akch-flow-step.is-current .akch-flow-dot {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.akch-flow-step.is-failed .akch-flow-dot {
  background: #e5484d;
  border-color: #e5484d;
  color: #fff;
}

.akch-flow-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted2);
  text-align: center;
  line-height: 1.6;
}
.akch-flow-step.is-current .akch-flow-label { color: var(--text); font-weight: 800; }
.akch-flow-step.is-done .akch-flow-label { color: var(--muted); }
.akch-flow-step.is-failed .akch-flow-label { color: #e5484d; font-weight: 800; }

/* ─── Checkout: two columns ─────────────────────────────────────
   The grid itself is shop.css's. These rules only change how the two
   columns look, and every selector is scoped under .akch-page-shell to
   match shop.css's specificity — without that, its
   `.akch-page-shell .woocommerce #place_order` (1,2,0) silently wins
   over a plain `.woocommerce-checkout #place_order` (1,1,0). */

/* Left: the form, on a light card. */
.akch-page-shell .woocommerce-checkout #customer_details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 32px);
}
.akch-page-shell .woocommerce-checkout #customer_details h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Right: the summary, dark in both schemes — it is the anchor of the page. */
.akch-page-shell .woocommerce-checkout #order_review {
  position: sticky;
  top: 90px;
  background: var(--card);
  background-image: linear-gradient(165deg, var(--card2) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 30px);
  color: #eef3f0;
}
.akch-page-shell .woocommerce-checkout #order_review_heading {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

/* WooCommerce paints the review table; recolour it for the dark panel. */
.akch-page-shell .woocommerce-checkout #order_review table.shop_table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  color: #eef3f0;
  margin: 0;
  background: transparent;
}
.akch-page-shell .woocommerce-checkout #order_review table.shop_table th,
.akch-page-shell .woocommerce-checkout #order_review table.shop_table td {
  border: 0;
  padding: 11px 0;
  font-size: 13.5px;
  color: var(--text);
  background: transparent;
}
.akch-page-shell .woocommerce-checkout #order_review table.shop_table thead th {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.akch-page-shell .woocommerce-checkout #order_review table.shop_table tbody td { border-bottom: 1px solid var(--border); }
.akch-page-shell .woocommerce-checkout #order_review table.shop_table tfoot th {
  font-weight: 700;
  color: var(--muted);
}
.akch-page-shell .woocommerce-checkout #order_review table.shop_table tfoot td { text-align: end; font-weight: 700; color: var(--text); }
.akch-page-shell .woocommerce-checkout #order_review table.shop_table tfoot tr:last-child th,
.akch-page-shell .woocommerce-checkout #order_review table.shop_table tfoot tr:last-child td {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
}
.akch-page-shell .woocommerce-checkout #order_review .product-name { color: var(--text); font-weight: 600; }
.akch-page-shell .woocommerce-checkout #order_review .product-quantity { color: var(--muted); }
.akch-page-shell .woocommerce-checkout #order_review .amount,
.akch-page-shell .woocommerce-checkout #order_review .woocommerce-Price-amount { color: var(--text); font-weight: 700; }

/* Payment methods: gateway choices only, no card fields. */
.akch-page-shell .woocommerce-checkout #payment {
  background: transparent;
  border-radius: 0;
  margin-top: 6px;
}
.akch-page-shell .woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
}
.akch-page-shell .woocommerce-checkout #payment ul.payment_methods li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 13px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card2);
  transition: border-color .18s ease, background .18s ease;
}
.akch-page-shell .woocommerce-checkout #payment ul.payment_methods li:hover { border-color: var(--border2); }
.akch-page-shell .woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  accent-color: #4ade80;
  width: 17px;
  height: 17px;
  margin: 0;
}
.akch-page-shell .woocommerce-checkout #payment ul.payment_methods label {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.akch-page-shell .woocommerce-checkout #payment ul.payment_methods label img { max-height: 26px; width: auto; }
.akch-page-shell .woocommerce-checkout #payment .payment_box {
  flex: 1 0 100%;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card2);
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.akch-page-shell .woocommerce-checkout #payment .payment_box::before { display: none; }

.akch-page-shell .woocommerce-checkout #payment .place-order { padding: 0; margin: 0; }
.akch-page-shell .woocommerce-checkout #payment #place_order,
.akch-page-shell .woocommerce-checkout .button[name="woocommerce_checkout_place_order"] {
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease;
}
.akch-page-shell .woocommerce-checkout #payment #place_order:hover { box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .8); }
.akch-page-shell .woocommerce-checkout #payment #place_order:active { transform: translateY(1px); }

.akch-page-shell .woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.akch-page-shell .woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper a { color: #7ee2a8; }

/* ─── The assurances block ──────────────────────────────────── */

.akch-assure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 18px;
  padding: 14px;
  border-radius: 14px;
  background: var(--card2);
  border: 1px solid var(--border);
}
.akch-assure-row { display: flex; align-items: flex-start; gap: 11px; }
.akch-assure-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(126, 226, 168, .14);
  color: #7ee2a8;
}
.akch-assure-icon svg { width: 16px; height: 16px; }
.akch-assure-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.akch-assure-text strong { font-size: 12.5px; font-weight: 700; color: var(--text); }
.akch-assure-text > span { font-size: 11.5px; line-height: 1.85; color: var(--muted); }

/* ─── Cart ──────────────────────────────────────────────────── */

.akch-page-shell .woocommerce-cart .woocommerce {
  max-width: 1180px;
  margin: 0 auto clamp(40px, 6vw, 80px);
  padding: 0 clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: start;
}
.akch-page-shell .woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.akch-page-shell .woocommerce-cart form.woocommerce-cart-form {
  grid-column: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(16px, 2.2vw, 26px);
}
.akch-page-shell .woocommerce-cart .cart-collaterals {
  grid-column: 2;
  width: 100%;
  position: sticky;
  top: 90px;
}
.akch-page-shell .woocommerce-cart .cart-collaterals .cart_totals {
  width: 100%;
  float: none;
  background: var(--card);
  background-image: linear-gradient(165deg, var(--card2) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 30px);
  color: #eef3f0;
}
.akch-page-shell .woocommerce-cart .cart_totals h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
}
.akch-page-shell .woocommerce-cart .cart_totals table th,
.akch-page-shell .woocommerce-cart .cart_totals table td {
  border: 0;
  padding: 11px 0;
  font-size: 13.5px;
  color: var(--text);
  background: transparent;
}
.akch-page-shell .woocommerce-cart .cart_totals table tr { border-bottom: 1px solid var(--border); }
.akch-page-shell .woocommerce-cart .cart_totals .order-total th,
.akch-page-shell .woocommerce-cart .cart_totals .order-total td {
  padding-top: 15px;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
}
.akch-page-shell .woocommerce-cart .cart_totals .checkout-button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 15px 20px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}
.akch-page-shell .woocommerce-cart .cart_totals .checkout-button:hover { box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .8); }

.akch-page-shell .woocommerce-cart table.shop_table { border: 0; }
.akch-page-shell .woocommerce-cart table.shop_table th {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted2);
  border-bottom: 1px solid var(--border);
  padding: 0 8px 12px;
}
.akch-page-shell .woocommerce-cart table.shop_table td {
  border-top: 1px solid var(--border);
  padding: 14px 8px;
  color: var(--muted);
  font-size: 13.5px;
}
.akch-page-shell .woocommerce-cart table.shop_table td.product-name a { color: var(--text); font-weight: 700; }
.akch-page-shell .woocommerce-cart table.shop_table img { border-radius: 12px; }

/* ─── Post-purchase pages ───────────────────────────────────── */

.akch-outcome {
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 90px);
  padding: 0 clamp(16px, 4vw, 32px);
  text-align: center;
}
.akch-outcome-badge {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: akchOutcomePop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
.akch-outcome-badge svg { width: 36px; height: 36px; }
.akch-outcome-badge.is-ok { background: rgba(18, 161, 80, .13); color: #12a150; }
.akch-outcome-badge.is-bad { background: rgba(229, 72, 77, .13); color: #e5484d; }
.akch-outcome-badge.is-wait { background: var(--accent-soft); color: var(--accent-text); }
@keyframes akchOutcomePop { from { opacity: 0; transform: scale(.75); } to { opacity: 1; transform: none; } }

.akch-outcome h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--text);
}
.akch-outcome > p {
  margin: 0 auto 26px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 2.1;
  color: var(--muted);
}
.akch-outcome-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.akch-btn-primary,
.akch-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
}
.akch-btn-primary {
  background: color-mix(in srgb, var(--accent) 84%, #000);
  color: #fff;
}
.akch-btn-primary:hover { filter: brightness(1.1); }
.akch-btn-ghost {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}
.akch-btn-ghost:hover { border-color: var(--border2); }

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 980px) {
  .woocommerce-checkout .akch-checkout-shell,
  .akch-page-shell .woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
  .akch-page-shell .woocommerce-cart form.woocommerce-cart-form,
  .akch-page-shell .woocommerce-cart .cart-collaterals { grid-column: 1; }
  .woocommerce-checkout #order_review,
  .woocommerce-checkout .woocommerce-checkout-review-order,
  .akch-page-shell .woocommerce-cart .cart-collaterals { position: static; }
  .woocommerce-checkout #order_review_heading { grid-column: 1; }
}

@media (max-width: 620px) {
  .akch-flow-label { font-size: 11px; }
  .akch-flow-dot { width: 32px; height: 32px; }
  .akch-flow-dot svg { width: 14px; height: 14px; }
  .akch-flow-step::before { top: 16px; }
  /* The cart table becomes rows rather than a squeezed grid. */
  .akch-page-shell .woocommerce-cart table.shop_table thead { display: none; }
  .akch-page-shell .woocommerce-cart table.shop_table tr { display: block; border-bottom: 1px solid var(--border); padding: 6px 0; }
  .akch-page-shell .woocommerce-cart table.shop_table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 0;
    padding: 7px 0;
  }
  .akch-page-shell .woocommerce-cart table.shop_table td::before {
    content: attr(data-title);
    font-size: 11.5px;
    color: var(--muted2);
    font-weight: 700;
  }
  .akch-page-shell .woocommerce-cart table.shop_table td.product-remove::before,
  .akch-page-shell .woocommerce-cart table.shop_table td.product-thumbnail::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  .akch-flow-dot,
  .akch-outcome-badge,
  .woocommerce-checkout #place_order { transition: none; animation: none; }
}


/* ─── Checkout column placement ───────────────────────────────
   shop.css placed the three checkout children by column only. Auto-placement
   then gave #order_review_heading row 1 of column 2 and pushed #order_review to
   row 2, so row 1 was as tall as the billing panel: the «سفارش شما» title sat
   alone at the top and the order table began ~480px below it. Pin the rows and
   stop the tracks stretching. */
.akch-page-shell form.checkout.woocommerce-checkout { align-items: start; align-content: start; }
.akch-page-shell .woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.akch-page-shell .woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
.akch-page-shell .woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; }

/* The 980px rule moved the heading to column 1 but never collapsed the form's
   own track list, so the checkout stayed two columns on a phone. */
@media (max-width: 980px) {
  .akch-page-shell form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
  .akch-page-shell .woocommerce-checkout #customer_details,
  .akch-page-shell .woocommerce-checkout #order_review_heading,
  .akch-page-shell .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
}

/* ── Order tracking form ───────────────────────────────────────────────────
 * WooCommerce renders this form inside its own .woocommerce wrapper, and its
 * stylesheet selectors (.woocommerce form .form-row input.input-text = 0,3,2)
 * outrank the plain ones in page-order-tracking.php, so the fields and the
 * submit button fell back to WooCommerce's defaults. These are scoped one
 * class deeper so they actually win. Same trap as #place_order in shop.css.
 * ------------------------------------------------------------------------ */
.akch-track-form .woocommerce { margin: 0; }
.akch-track-form .woocommerce form.track_order {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.akch-track-form .woocommerce form.track_order > p { margin: 0; float: none; width: auto; }
.akch-track-form .woocommerce form.track_order > p:first-child,
.akch-track-form .woocommerce form.track_order > p.form-row-wide,
.akch-track-form .woocommerce form.track_order > p:last-of-type { grid-column: 1 / -1; }
.akch-track-form .woocommerce form.track_order .form-row-first,
.akch-track-form .woocommerce form.track_order .form-row-last { grid-column: auto; }

.akch-track-form .woocommerce form .form-row label {
  display: block; margin: 0 0 7px;
  font-size: 12.5px; font-weight: 700; color: var(--text);
}
.akch-track-form .woocommerce form .form-row input.input-text {
  width: 100%; box-sizing: border-box;
  padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 14px; line-height: 1.6;
  transition: border-color .15s, box-shadow .15s;
}
.akch-track-form .woocommerce form .form-row input.input-text::placeholder { color: var(--muted2); }
.akch-track-form .woocommerce form .form-row input.input-text:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
/* The order number is a bare identifier — keep it LTR inside the RTL page. */
.akch-track-form .woocommerce form .form-row input#orderid,
.akch-track-form .woocommerce form .form-row input#order_email {
  direction: ltr; text-align: left;
}

.akch-track-form .woocommerce form.track_order button.button,
.akch-track-form .woocommerce button.button {
  width: 100%; justify-self: start;
  padding: 13px 28px; border: 0; border-radius: 12px;
  /* white on the raw accent is 4.23:1 in dark — darkened to clear AA at 5.65:1 */
  background: color-mix(in srgb, var(--accent) 84%, #000);
  color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 800; line-height: 1.6;
  cursor: pointer; transition: filter .15s, transform .15s;
}
.akch-track-form .woocommerce form.track_order button.button:hover,
.akch-track-form .woocommerce button.button:hover {
  background: color-mix(in srgb, var(--accent) 84%, #000);
  filter: brightness(1.12); transform: translateY(-1px);
}
.akch-track-form .woocommerce form.track_order button.button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

@media (max-width: 640px) {
  .akch-track-form .woocommerce form.track_order { grid-template-columns: minmax(0, 1fr); }
  .akch-track-form .woocommerce form.track_order button.button { width: 100%; }
}
/* ── .akch-btn-primary ink lock ────────────────────────────────────────────
 * The outcome panel renders inside .akch-entry, whose generic
 * `.akch-entry a { color: var(--accent-text) }` (0,1,1) outranks the plain
 * `.akch-btn-primary { color:#fff }` (0,1,0) and is emitted later in the
 * document besides. The CTA on the payment-failure page was therefore
 * #a78bfa on the accent fill — 2.07:1, nowhere near the 4.5:1 minimum.
 *
 * An element with a scheme-independent fill must lock its own ink rather than
 * inherit a link colour. Scoped to (0,2,1) so it wins in both directions.
 * ------------------------------------------------------------------------ */
a.akch-btn-primary,
.akch-entry a.akch-btn-primary,
.akch-outcome-actions a.akch-btn-primary,
.akch-outcome-actions a.akch-btn-primary:hover,
.akch-outcome-actions a.akch-btn-primary:focus,
.akch-entry a.akch-btn-primary:hover,
.akch-entry a.akch-btn-primary:focus {
  color: #fff;
}
/* ── Order tracking result ──────────────────────────────────────────────
 * Rendered by woocommerce/order/tracking.php. Reuses the flow bar, the outcome
 * badge and the facts grid so a tracked order looks like the same product as
 * the checkout it came from.
 * ------------------------------------------------------------------------ */
.akch-track-result {
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border); border-radius: 20px; background: var(--card);
}
.akch-track-result-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.akch-track-result-head h2 { font-size: clamp(17px, 2.4vw, 21px); font-weight: 900; color: var(--text); margin: 0; }
.akch-track-result-head > p { margin: 0; font-size: 13.5px; line-height: 2; color: var(--muted); max-width: 52ch; }

/* The bar is a section here rather than a page header, so it carries its own
   breathing room and a rule above it. */
.akch-flow-order { padding-top: 20px; border-top: 1px solid var(--border); }
.akch-flow-order .akch-flow-list { margin: 0; }

.akch-track-actions { justify-content: center; flex-wrap: wrap; }
.akch-track-actions .akch-btn-primary,
.akch-track-actions .akch-btn-ghost { min-width: 150px; justify-content: center; text-align: center; }

/* Order updates — a timeline, because these arrive over time. */
.akch-track-notes h2 { font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.akch-note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.akch-note-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; position: relative; }
.akch-note-list li:not(:last-child)::before {
  content: ""; position: absolute; top: 16px; bottom: -14px;
  inset-inline-start: 4px; width: 1px; background: var(--border);
}
.akch-note-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; position: relative; z-index: 1; }
.akch-note-list time { display: block; font-size: 11.5px; color: var(--muted2); margin-bottom: 4px; }
.akch-note-body { font-size: 13.5px; line-height: 1.95; color: var(--text); }
.akch-note-body p { margin: 0; }

/* WooCommerce's order table, inside the tracking card. */
.akch-track-result .woocommerce-order-details__title,
.akch-track-result .woocommerce-column__title {
  font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 14px;
}
.akch-track-result table.shop_table {
  width: 100%; margin: 0; border: 1px solid var(--border); border-radius: 16px;
  border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--surface);
}
.akch-track-result table.shop_table th,
.akch-track-result table.shop_table td {
  padding: 13px 16px; border: 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--muted); text-align: start; vertical-align: middle;
}
.akch-track-result table.shop_table thead th { font-weight: 800; color: var(--text); background: var(--chip); }
.akch-track-result table.shop_table td a { color: var(--accent-text); font-weight: 700; }
.akch-track-result table.shop_table tfoot tr:last-child th,
.akch-track-result table.shop_table tfoot tr:last-child td {
  font-size: 15px; font-weight: 900; color: var(--text); border-bottom: 0;
}
.akch-track-result table.shop_table tr:last-child th,
.akch-track-result table.shop_table tr:last-child td { border-bottom: 0; }

/* Any button a payment plugin injects into that table — Zarinpal adds pay/cancel. */
.akch-track-result table.shop_table .button,
.akch-track-result table.shop_table .woocommerce-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; margin: 0 0 0 6px; border: 0; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 84%, #000); color: #fff;
  font-family: inherit; font-size: 12.5px; font-weight: 800; line-height: 1.6;
  text-decoration: none; cursor: pointer;
}
.akch-track-result table.shop_table .button:hover { filter: brightness(1.12); color: #fff; }
.akch-track-result table.shop_table .button.cancel,
.akch-track-result table.shop_table a[href*="cancel_order"] {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
}
.akch-track-result table.shop_table .button.cancel:hover,
.akch-track-result table.shop_table a[href*="cancel_order"]:hover {
  color: #e5484d; border-color: #e5484d; filter: none;
}

@media (max-width: 640px) {
  .akch-track-result { padding: 18px 14px; }
  .akch-track-actions .akch-btn-primary,
  .akch-track-actions .akch-btn-ghost { flex: 1 1 100%; }
  .akch-track-result table.shop_table th,
  .akch-track-result table.shop_table td { padding: 11px 12px; font-size: 12.5px; }
}