/* =====================================================
   MODERN "MY ACCOUNT" PAGE STYLING — PURE CSS, NO PLUGIN
   Scoped entirely under body.woocommerce-account so it
   cannot affect the shop, cart, checkout, or any other page.
   Paste this into: Appearance > Customize > Additional CSS
   (or your theme's custom CSS file).
   ===================================================== */

/* ---------- Design tokens (scoped, won't leak) ---------- */
body.woocommerce-account {
  --acc-primary: #4f46e5;
  --acc-primary-dark: #3730a3;
  --acc-primary-hover: #4338ca;
  --acc-accent: #06b6d4;
  --acc-bg: #f4f5fa;
  --acc-card-bg: #ffffff;
  --acc-border: #e8e9f2;
  --acc-text: #171a2b;
  --acc-text-muted: #6b7280;
  --acc-radius: 16px;
  --acc-radius-sm: 10px;
  --acc-shadow: 0 1px 3px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
  --acc-shadow-hover: 0 4px 10px rgba(17, 24, 39, 0.06), 0 14px 32px rgba(17, 24, 39, 0.1);
  --acc-success: #16a34a;
  --acc-danger: #dc2626;
  --acc-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #06b6d4 150%);
}

/* ---------- Page background & container ---------- */
body.woocommerce-account #content,
body.woocommerce-account .woocommerce {
  background: var(--acc-bg);
  padding: 40px 0 56px;
}

body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-account .woocommerce {
  color: var(--acc-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* ---------- Decorative header banner above the account grid ---------- */
body.woocommerce-account .woocommerce-account .woocommerce::before {
  content: "My Account";
  display: block;
  background: var(--acc-gradient);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 36px 32px;
  border-radius: var(--acc-radius);
  margin-bottom: 24px;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.25);
}

/* ---------- Layout: sidebar + content as a card grid ---------- */
body.woocommerce-account .woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-account .woocommerce-MyAccount-content {
  background: var(--acc-card-bg);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow);
  border: 1px solid var(--acc-border);
  transition: box-shadow 0.3s ease;
}

body.woocommerce-account .woocommerce-account .woocommerce-MyAccount-navigation:hover,
body.woocommerce-account .woocommerce-account .woocommerce-MyAccount-content:hover {
  box-shadow: var(--acc-shadow-hover);
}

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

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

/* ---------- Sidebar navigation ---------- */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0 12px;
  border-bottom: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  margin-bottom: 4px;
  border-radius: 9px;
  color: var(--acc-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  transition: all 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #f2f2fc;
  color: var(--acc-primary-dark);
  transform: translateX(2px);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: #fff;
  background: var(--acc-gradient);
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.28);
}

/* ---------- Headings inside account content ---------- */
body.woocommerce-account .woocommerce-MyAccount-content h1,
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
  color: var(--acc-text);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content h2 {
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--acc-border);
  font-size: 20px;
}

body.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  color: var(--acc-text-muted);
  font-size: 15px;
}

/* ---------- Dashboard welcome text links ---------- */
body.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--acc-primary);
  text-decoration: none;
  font-weight: 500;
}

body.woocommerce-account .woocommerce-MyAccount-content a:hover {
  color: var(--acc-primary-dark);
  text-decoration: underline;
}

/* ---------- Orders / addresses tables (desktop) ---------- */
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account table.shop_table {
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius-sm);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

body.woocommerce-account .woocommerce-orders-table thead th,
body.woocommerce-account table.shop_table thead th {
  background: #f7f7fc;
  color: var(--acc-text);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 15px 18px;
  border-bottom: 1px solid var(--acc-border);
}

body.woocommerce-account .woocommerce-orders-table tbody td,
body.woocommerce-account table.shop_table tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--acc-border);
  font-size: 14.5px;
  vertical-align: middle;
}

body.woocommerce-account .woocommerce-orders-table tbody tr:last-child td,
body.woocommerce-account table.shop_table tbody tr:last-child td {
  border-bottom: none;
}

body.woocommerce-account .woocommerce-orders-table tbody tr:hover,
body.woocommerce-account table.shop_table tbody tr:hover {
  background: #fafaff;
}

/* ---------- Order status pills ---------- */
body.woocommerce-account .order-status {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(79, 70, 229, 0.1);
  color: var(--acc-primary-dark);
}

body.woocommerce-account .order-status.status-completed {
  background: rgba(22, 163, 74, 0.1);
  color: var(--acc-success);
}

body.woocommerce-account .order-status.status-cancelled,
body.woocommerce-account .order-status.status-failed {
  background: rgba(220, 38, 38, 0.1);
  color: var(--acc-danger);
}

/* ---------- Address cards ---------- */
body.woocommerce-account .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

body.woocommerce-account .woocommerce-Address {
  background: #fafaff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius-sm);
  padding: 22px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.woocommerce-account .woocommerce-Address:hover {
  border-color: var(--acc-primary);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.1);
}

body.woocommerce-account .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

body.woocommerce-account .woocommerce-Address-title h3 {
  font-size: 15px;
}

body.woocommerce-account .woocommerce-Address-title .edit {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
}

/* ---------- Forms (edit account, addresses, login) ---------- */
body.woocommerce-account .woocommerce-form-row label,
body.woocommerce-account form.edit-account label,
body.woocommerce-account form.woocommerce-EditAccountForm label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--acc-text);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.woocommerce-account .woocommerce-form-row input.input-text,
body.woocommerce-account form.edit-account input.input-text,
body.woocommerce-account form.woocommerce-EditAccountForm input.input-text,
body.woocommerce-account select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--acc-border);
  border-radius: 9px;
  font-size: 14.5px;
  background: #fbfbfd;
  color: var(--acc-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

body.woocommerce-account .woocommerce-form-row input.input-text:focus,
body.woocommerce-account form.edit-account input.input-text:focus,
body.woocommerce-account form.woocommerce-EditAccountForm input.input-text:focus {
  outline: none;
  border-color: var(--acc-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* ---------- Buttons (scoped so global buttons elsewhere are untouched) ---------- */
body.woocommerce-account .woocommerce-MyAccount-content button.button,
body.woocommerce-account .woocommerce-MyAccount-content input.button,
body.woocommerce-account .woocommerce-MyAccount-content a.button {
  background: var(--acc-gradient);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-content button.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content input.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.3);
  filter: brightness(1.04);
}

body.woocommerce-account .woocommerce-MyAccount-content button.button:active,
body.woocommerce-account .woocommerce-MyAccount-content input.button:active,
body.woocommerce-account .woocommerce-MyAccount-content a.button:active {
  transform: translateY(0);
}

/* ---------- Cancel order button (distinct, lower-emphasis style) ----------
   WooCommerce outputs this as <a class="button cancel">Cancel order</a> on
   the View Order page and order-actions column. It shouldn't compete
   visually with primary actions like "Pay" or "Order again", so it gets
   a quiet outlined red look instead of the filled gradient. */
body.woocommerce-account .woocommerce-MyAccount-content a.button.cancel,
body.woocommerce-account .woocommerce-MyAccount-content a.button[href*="cancel_order"],
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.cancel {
  background: #fff;
  color: var(--acc-danger);
  border: 1.5px solid rgba(220, 38, 38, 0.35);
  box-shadow: none;
  padding: 11px 24px;
}

body.woocommerce-account .woocommerce-MyAccount-content a.button.cancel:hover,
body.woocommerce-account .woocommerce-MyAccount-content a.button[href*="cancel_order"]:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.cancel:hover {
  background: rgba(220, 38, 38, 0.06);
  border-color: var(--acc-danger);
  box-shadow: none;
  transform: none;
  filter: none;
}

body.woocommerce-account .woocommerce-MyAccount-content a.button.cancel:active,
body.woocommerce-account .woocommerce-MyAccount-content a.button[href*="cancel_order"]:active,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.cancel:active {
  background: rgba(220, 38, 38, 0.1);
}

/* Prevent the cancel button's own text from wrapping onto two lines */
body.woocommerce-account .woocommerce-MyAccount-content a.button.cancel,
body.woocommerce-account .woocommerce-MyAccount-content a.button[href*="cancel_order"],
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.cancel {
  white-space: nowrap;
  flex-shrink: 0;
}

/* On very narrow screens, if the label is long ("Cancel order" /
   "Cancel request"), collapse it down to just "Cancel" so it always
   fits on one line without wrapping or shrinking the button oddly. */
@media (max-width: 480px) {
  body.woocommerce-account .woocommerce-MyAccount-content a.button.cancel,
  body.woocommerce-account .woocommerce-MyAccount-content a.button[href*="cancel_order"],
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.cancel {
    font-size: 0;
    padding: 10px 16px;
  }

  body.woocommerce-account .woocommerce-MyAccount-content a.button.cancel::after,
  body.woocommerce-account .woocommerce-MyAccount-content a.button[href*="cancel_order"]::after,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.cancel::after {
    content: "Cancel";
    font-size: 13px;
  }
}

/* ---------- Notices (success / error) ---------- */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info {
  border-radius: var(--acc-radius-sm);
  border: 1px solid var(--acc-border);
  padding: 15px 20px;
  font-size: 14.5px;
  box-shadow: var(--acc-shadow);
  background: #fff;
}

body.woocommerce-account .woocommerce-message {
  border-left: 4px solid var(--acc-success);
}

body.woocommerce-account .woocommerce-error {
  border-left: 4px solid var(--acc-danger);
}

body.woocommerce-account .woocommerce-info {
  border-left: 4px solid var(--acc-primary);
}

/* =====================================================
   MOBILE VIEW — orders/address tables become stacked cards
   ===================================================== */
@media (max-width: 768px) {
  body.woocommerce-account .woocommerce-account .woocommerce::before {
    font-size: 21px;
    padding: 26px 22px;
  }

  body.woocommerce-account .woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-account .woocommerce-MyAccount-content {
    padding: 20px;
    border-radius: 12px;
  }

  body.woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 17px;
  }

  /* Turn each order row into its own card — ONLY the "My Orders" list.
     The order_details table (line items on the View Order / order-received
     page) is excluded via :not(.order_details) so it stays a real table. */
  body.woocommerce-account .woocommerce-orders-table,
  body.woocommerce-account table.shop_table:not(.order_details) {
    border: none;
    border-radius: 0;
  }

  body.woocommerce-account .woocommerce-orders-table thead,
  body.woocommerce-account table.shop_table:not(.order_details) thead {
    display: none;
  }

  body.woocommerce-account .woocommerce-orders-table tbody,
  body.woocommerce-account table.shop_table:not(.order_details) tbody {
    display: block;
  }

  body.woocommerce-account .woocommerce-orders-table tbody tr,
  body.woocommerce-account table.shop_table:not(.order_details) tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm);
    box-shadow: var(--acc-shadow);
    padding: 16px 18px;
    margin-bottom: 14px;
  }

  body.woocommerce-account .woocommerce-orders-table tbody tr:hover,
  body.woocommerce-account table.shop_table:not(.order_details) tbody tr:hover {
    background: #fff;
  }

  body.woocommerce-account .woocommerce-orders-table tbody td,
  body.woocommerce-account table.shop_table:not(.order_details) tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--acc-border);
    text-align: right;
    font-size: 14px;
  }

  body.woocommerce-account .woocommerce-orders-table tbody td:last-child,
  body.woocommerce-account table.shop_table:not(.order_details) tbody td:last-child {
    border-bottom: none;
    padding-top: 12px;
  }

  /* WooCommerce prints a data-title attribute on each td for responsive tables;
     use it as the "label" side of the card row */
  body.woocommerce-account .woocommerce-orders-table tbody td::before,
  body.woocommerce-account table.shop_table:not(.order_details) tbody td::before {
    content: attr(data-title);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--acc-text-muted);
    text-align: left;
  }

  body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions,
  body.woocommerce-account table.shop_table:not(.order_details) tbody td.woocommerce-orders-table__cell-order-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  body.woocommerce-account .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions::before,
  body.woocommerce-account table.shop_table:not(.order_details) tbody td.woocommerce-orders-table__cell-order-actions::before {
    content: none;
  }

  body.woocommerce-account .woocommerce-orders-table tbody td .button,
  body.woocommerce-account table.shop_table:not(.order_details) tbody td .button {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Order items table (order_details) on the View Order page: keep it a
     real table, just make it horizontally scrollable so nothing squishes
     or wraps awkwardly on narrow screens. */
  body.woocommerce-account table.shop_table.order_details {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  body.woocommerce-account table.shop_table.order_details thead,
  body.woocommerce-account table.shop_table.order_details tbody,
  body.woocommerce-account table.shop_table.order_details tfoot,
  body.woocommerce-account table.shop_table.order_details tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  body.woocommerce-account table.shop_table.order_details td,
  body.woocommerce-account table.shop_table.order_details th {
    white-space: normal;
  }

  /* Address cards stack full-width on mobile */
  body.woocommerce-account .woocommerce-Addresses {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.woocommerce-account .woocommerce-Address {
    padding: 18px;
  }

  /* Nav becomes a horizontal scroll of pill cards on mobile */
  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
    flex: 0 0 auto;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    white-space: nowrap;
    background: #f7f7fc;
    padding: 10px 16px;
    border-radius: 999px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  }
}

@media (max-width: 480px) {
  body.woocommerce-account .woocommerce-account .woocommerce::before {
    font-size: 19px;
    padding: 22px 18px;
  }

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

/* =====================================================
   PRODUCT THUMBNAILS ON ORDER ITEMS
   (Requires includes/class-order-enhancements.php to
   inject the markup — CSS alone cannot add an image
   that isn't in the page.)
   ===================================================== */
body.woocommerce-account .ss-order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

body.woocommerce-account .ss-order-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--acc-border);
  flex-shrink: 0;
  background: #fafaff;
}

body.woocommerce-account .ss-order-item-title {
  font-weight: 600;
  line-height: 1.4;
}

/* =====================================================
   ORDER STATUS PROGRESS TRACKER
   ===================================================== */
body.woocommerce-account .ss-order-tracker {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--acc-card-bg);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius-sm);
  padding: 28px 32px 22px;
  margin-bottom: 28px;
  box-shadow: var(--acc-shadow);
}

body.woocommerce-account .ss-tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 80px;
}

body.woocommerce-account .ss-tracker-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8e9f2;
  border: 3px solid #e8e9f2;
  display: block;
  position: relative;
}

body.woocommerce-account .ss-tracker-step--done .ss-tracker-dot {
  background: var(--acc-success);
  border-color: var(--acc-success);
}

body.woocommerce-account .ss-tracker-step--done .ss-tracker-dot::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

body.woocommerce-account .ss-tracker-step--active .ss-tracker-dot {
  background: #fff;
  border-color: var(--acc-primary);
  box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.14);
}

body.woocommerce-account .ss-tracker-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--acc-text-muted);
  text-align: center;
  white-space: nowrap;
}

body.woocommerce-account .ss-tracker-step--done .ss-tracker-label,
body.woocommerce-account .ss-tracker-step--active .ss-tracker-label {
  color: var(--acc-text);
}

body.woocommerce-account .ss-tracker-line {
  flex: 1 1 auto;
  height: 3px;
  background: #e8e9f2;
  border-radius: 2px;
  margin-top: 10px;
}

body.woocommerce-account .ss-tracker-line--done {
  background: var(--acc-success);
}

/* Halted-order banner (cancelled / refunded / failed) replaces the tracker */
body.woocommerce-account .ss-order-status-banner {
  padding: 16px 20px;
  border-radius: var(--acc-radius-sm);
  margin-bottom: 28px;
  font-weight: 600;
  font-size: 14.5px;
  border-left: 4px solid var(--acc-danger);
  background: rgba(220, 38, 38, 0.06);
  color: var(--acc-danger);
}

body.woocommerce-account .ss-order-status-banner--refunded {
  border-left-color: var(--acc-primary);
  background: rgba(79, 70, 229, 0.06);
  color: var(--acc-primary-dark);
}

/* =====================================================
   PRINT ORDER BUTTON
   ===================================================== */
body.woocommerce-account .ss-print-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 22px;
  border-radius: 9px;
  border: 1.5px solid var(--acc-border);
  background: #fff;
  color: var(--acc-text);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

body.woocommerce-account .ss-print-order-btn::before {
  content: "\1F5A8";
  font-size: 14px;
}

body.woocommerce-account .ss-print-order-btn:hover {
  border-color: var(--acc-primary);
  color: var(--acc-primary);
  background: #fafaff;
}

@media print {
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-account .woocommerce::before,
  body.woocommerce-account .ss-print-order-btn,
  body.woocommerce-account .ss-orders-search {
    display: none !important;
  }
}

/* =====================================================
   DASHBOARD STAT CARDS
   ===================================================== */
body.woocommerce-account .ss-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

body.woocommerce-account .ss-stat-card {
  position: relative;
  background: #fafaff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

body.woocommerce-account .ss-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--acc-gradient);
}

body.woocommerce-account .ss-stat-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

body.woocommerce-account .ss-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--acc-text);
  letter-spacing: -0.01em;
}

body.woocommerce-account .ss-stat-value .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
}

body.woocommerce-account .ss-stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--acc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* =====================================================
   ORDERS SEARCH / FILTER BOX
   ===================================================== */
body.woocommerce-account .ss-orders-search {
  margin-bottom: 18px;
}

body.woocommerce-account .ss-orders-search input {
  width: 100%;
  max-width: 360px;
  padding: 11px 16px;
  border: 1.5px solid var(--acc-border);
  border-radius: 999px;
  font-size: 14px;
  background: #fafaff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 14px center;
  padding-left: 38px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.woocommerce-account .ss-orders-search input:focus {
  outline: none;
  border-color: var(--acc-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS FOR NEW FEATURES
   ===================================================== */
@media (max-width: 768px) {
  body.woocommerce-account .ss-dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  body.woocommerce-account .ss-order-tracker {
    padding: 20px 14px 16px;
  }

  body.woocommerce-account .ss-tracker-label {
    font-size: 11px;
    white-space: normal;
  }

  body.woocommerce-account .ss-tracker-step {
    min-width: 60px;
  }
}

@media (max-width: 480px) {
  body.woocommerce-account .ss-dashboard-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  body.woocommerce-account .ss-stat-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
  }

  body.woocommerce-account .ss-stat-icon {
    margin-bottom: 0;
  }

  body.woocommerce-account .ss-order-item-thumb {
    width: 44px;
    height: 44px;
  }

  body.woocommerce-account .ss-orders-search input {
    max-width: 100%;
  }
}

/* =====================================================
   COMPACT MOBILE "MY ORDERS" CARDS
   Overrides the earlier card rules with tighter spacing,
   smaller type, and a denser feel — these declarations
   come later in the file so they win the cascade at the
   same specificity.
   ===================================================== */
@media (max-width: 768px) {
  body.woocommerce-account .woocommerce-orders-table tbody tr,
  body.woocommerce-account table.shop_table:not(.order_details) tbody tr {
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
  }

  body.woocommerce-account .woocommerce-orders-table tbody td,
  body.woocommerce-account table.shop_table:not(.order_details) tbody td {
    padding: 6px 0;
    font-size: 13px;
    gap: 8px;
  }

  body.woocommerce-account .woocommerce-orders-table tbody td::before,
  body.woocommerce-account table.shop_table:not(.order_details) tbody td::before {
    font-size: 10.5px;
  }

  body.woocommerce-account .woocommerce-orders-table tbody td:last-child,
  body.woocommerce-account table.shop_table:not(.order_details) tbody td:last-child {
    padding-top: 8px;
  }

  body.woocommerce-account .woocommerce-orders-table tbody td .button,
  body.woocommerce-account table.shop_table:not(.order_details) tbody td .button {
    padding: 7px 14px;
    font-size: 12px;
  }

  /* Address cards more compact too */
  body.woocommerce-account .woocommerce-Address {
    padding: 14px;
  }

  body.woocommerce-account .woocommerce-Address-title h3 {
    font-size: 14px;
  }
}
