/* MD: customer account pages (My Account, orders, order detail, addresses, forms, wish list, old orders).
   Linked from Ronixa common/header.twig only when common/header.php sets md_account (routes account/... and
   information/old_orders). Cached for a year: raise the ?v= in header.twig on every edit.
   Every rule starts with the page root:
     :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders)
   so login / register / forgotten keep the theme look and nothing here can reach another page. The root carries
   one id of weight, which is what it takes to beat the theme's own account rules (retrina_builder_custom.css).
   Look follows the new cart/checkout: grey page, white cards, neutral text, red only for the main action. */

:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) {
  --ma-red: var(--ronixa-theme-primary-color, #ff0606);
  --ma-line: #e5e7eb;
  --ma-soft: #f3f4f6;
  --ma-text: #111827;
  --ma-sub: #4b5563;
  --ma-muted: #6b7280;
  --ma-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  color: var(--ma-text);
  padding-top: 12px;
  /* room for the floating order-tracking button (60px, 43px from the bottom) below the last button */
  padding-bottom: 110px;
}
/* Grey page band behind the account content only (header and footer keep their colours): a spread shadow paints
   the band out to both screen edges and clip-path keeps it from spilling above or below the root. */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) { background: #f5f6f8; box-shadow: 0 0 0 100vmax #f5f6f8; clip-path: inset(0 -100vmax); }

/* ---------- Breadcrumb ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) > .breadcrumb { --bs-breadcrumb-divider: "\203A"; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; margin: 0 0 8px !important; padding: 0 !important; background: none; border-radius: 0; font-size: .85rem; scrollbar-width: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) > .breadcrumb::-webkit-scrollbar { display: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) > .breadcrumb .breadcrumb-item { display: flex; align-items: center; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) > .breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #9ca3af; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) > .breadcrumb .breadcrumb-item a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ma-muted) !important; text-decoration: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) > .breadcrumb .breadcrumb-item a:hover { color: var(--ma-text) !important; text-decoration: underline; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) > .breadcrumb .breadcrumb-item:last-child a { color: var(--ma-text) !important; font-weight: 600; }

/* ---------- Content column: one white card for the form pages; pages built from cards (.md-cards) go bare ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content { min-width: 0; margin: 0 12px 16px; padding: 24px; background: #fff; border: 1px solid var(--ma-line); border-radius: 14px; box-shadow: var(--ma-shadow); }
/* Beside the menu the card takes the space that is left: with a fixed width (the account home is col-lg-9) its side margins pushed the menu onto the next line */
@media (min-width: 992px) {
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content { flex: 1 1 0%; width: auto; }
}
/* (The dashboard, order list, order detail and address list drop this card on phones only: see the phone block.) */

:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content h1 { margin: 0 0 18px; padding: 0; border: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: var(--ma-text); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content h2 { margin: 24px 0 12px; padding: 0; border: 0; font-size: 1.1rem; font-weight: 700; color: var(--ma-text); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content h1::after,
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content h2::after { content: none; display: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-muted { color: var(--ma-muted); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-sm-only { display: none; }

:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-head { margin: 0 0 18px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-head h1 { margin: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-sub { margin: 4px 0 0; color: var(--ma-muted); font-size: .9rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-head-split { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }

:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-card { margin: 0 0 16px; padding: 20px; background: #fff; border: 1px solid var(--ma-line); border-radius: 14px; box-shadow: var(--ma-shadow); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-card-title { margin: 0 0 12px; font-size: 1rem; font-weight: 700; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-card-sub { margin: 0 0 4px; color: var(--ma-muted); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-address { margin: 0 0 12px; color: var(--ma-sub); font-style: normal; line-height: 1.55; overflow-wrap: anywhere; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-break { overflow-wrap: anywhere; }

/* ---------- Account menu (Ronixa module "account", rendered in the side column) ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(#column-left, #column-right) .list-group.account-boxes { gap: 2px; margin-bottom: 16px; padding: 8px; overflow: hidden; background: #fff; border: 1px solid var(--ma-line); border-radius: 14px; box-shadow: var(--ma-shadow); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(#column-left, #column-right) .account-boxes .list-group-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; background: transparent; border: 0; border-radius: 10px; color: var(--ma-sub); font-size: .9rem; font-weight: 500; text-decoration: none; transition: background-color .15s; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(#column-left, #column-right) .account-boxes .list-group-item:hover { background: var(--ma-soft); color: var(--ma-text) !important; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(#column-left, #column-right) .account-boxes .list-group-item i,
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(#column-left, #column-right) .account-boxes .list-group-item:hover i { flex: none; width: 20px; margin: 0; color: var(--ma-muted) !important; font-size: 1rem; text-align: center; }
/* the theme's moving accent bar inside the menu; the hover background does that job here */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(#column-left, #column-right) .account-boxes .vertical-line { display: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .aside-toggler { display: none !important; }

/* ---------- Buttons: the theme gives .btn a fixed height and line-height; size them from the content ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: auto; min-height: 44px; padding: 8px 18px; border-radius: 12px; font-size: .95rem; font-weight: 600; line-height: 1.3; box-shadow: none; text-decoration: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .btn-primary { background-color: var(--ma-red); border-color: var(--ma-red); color: #fff; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(.btn-light, .btn-default, .btn-secondary, .btn-info) { background: #fff; border: 1.5px solid var(--ma-line); color: var(--ma-text); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(.btn-light, .btn-default, .btn-secondary, .btn-info):hover { background: var(--ma-soft); border-color: #d1d5db; color: var(--ma-text); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-btn-sm { min-height: 40px; padding: 6px 12px; border-radius: 10px; font-size: .875rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-btn-danger-o { background: #fff; border: 1.5px solid #f3c2c2; color: #b42318; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-btn-danger-o:hover { background: #fff5f5; border-color: #eba5a5; color: #912018; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(a, button, .btn, [tabindex]):focus-visible { outline: 2px solid var(--ma-text); outline-offset: 2px; box-shadow: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* ---------- Forms (stock OpenCart markup: label .col-sm-2 + field .col-sm-10 in a .row) ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content > form { max-width: 760px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content fieldset { margin: 0 0 8px; padding: 0; border: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content legend { float: none; width: auto; margin: 4px 0 14px; padding: 0; border: 0; color: var(--ma-text); font-size: 1rem; font-weight: 700; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content form .row.mb-3 { margin-bottom: 16px !important; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content form .row > .col-form-label { flex: 0 0 100%; width: 100%; max-width: 100%; padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) 6px !important; color: var(--ma-sub); font-size: .875rem; font-weight: 600; text-align: left; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content form .row > .col-form-label + [class*="col-"] { flex: 0 0 100%; width: 100%; max-width: 100%; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content :is(.form-control, .form-select) { min-height: 44px; padding: 10px 12px !important; background-color: #fff; border: 1.5px solid var(--ma-line); border-radius: 10px; box-shadow: none; color: var(--ma-text); font-size: 1rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .form-select { padding-right: 36px !important; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content textarea.form-control { min-height: 104px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content :is(.form-control, .form-select):focus { border-color: var(--ma-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ma-red) 12%, transparent); outline: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content :is(.form-control, .form-select).is-invalid { border-color: #d92d20; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .invalid-feedback { margin-top: 6px; color: #b42318; font-size: .85rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .input-group > :is(.form-control, .form-select):not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .input-group > :is(.input-group-text, .btn):last-child { border-radius: 0 10px 10px 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .form-check { min-height: 28px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .form-check-input { width: 1.15em; height: 1.15em; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .form-check-inline { margin-right: 20px; }
/* Back link left, main button right; on phones the main button goes full width on top */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .row:has(> .col.text-end) { align-items: center; margin-top: 8px; }

/* ---------- Tables (account lists) ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .table { --bs-table-accent-bg: transparent; margin-bottom: 16px; overflow: hidden; background: #fff; border: 1px solid var(--ma-line); border-collapse: separate !important; border-spacing: 0 !important; border-radius: 12px; color: var(--ma-text); font-size: .92rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .table > :not(caption) > * { border-width: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .table > :not(caption) > * > * { padding: 12px 14px; background-color: #fff !important; border-color: #eef0f3 !important; border-style: solid; border-width: 0 0 1px !important; box-shadow: none; vertical-align: middle; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .table > thead > tr > * { background-color: #f9fafb !important; color: var(--ma-muted); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .table > thead strong { font-weight: 600; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .table > :last-child > tr:last-child > * { border-bottom-width: 0 !important; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .table-hover > tbody > tr:hover > * { background-color: #f9fafb !important; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .table a:not(.btn) { color: var(--ma-text); font-weight: 600; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .table a:not(.btn):hover { color: var(--ma-red); }

/* ---------- Pagination and result count ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .pagination { flex-wrap: wrap; gap: 6px; margin: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .pagination .page-link { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; background: #fff; border: 1px solid var(--ma-line); border-radius: 10px !important; color: var(--ma-text); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .pagination .page-item.active .page-link { background: var(--ma-text) !important; border-color: var(--ma-text) !important; color: #fff !important; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-pager { align-items: center; row-gap: 8px; margin-top: 4px; color: var(--ma-muted); font-size: .875rem; }

/* ---------- Notices (same calm style as the cart) ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--ma-line); border-radius: 10px; box-shadow: none; color: #2b2f36; font-size: .9rem; line-height: 1.45; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .alert > i:first-child { flex: none; margin-top: 2px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .alert .btn-close { position: static; flex: none; margin: 2px 0 0 auto; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .alert-success { background: #f0f9f3; border-color: #b9e2c6; color: #14532d; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .alert-danger { background: #fff5f5; border-color: #f3c2c2; color: #7a1f1f; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .alert-warning { background: #fff8e6; border-color: #f1d58a; color: #4a3c10; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .alert-info { background: #f3f6fb; border-color: #cbd9ee; color: #1e3a5f; }

/* ---------- Status pill ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid transparent; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-pill::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-pill-lg { padding: 5px 12px; font-size: .875rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-pill-green { background: #ecfdf3; border-color: #abefc6; color: #067647; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-pill-amber { background: #fffaeb; border-color: #fedf89; color: #b54708; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-pill-red { background: #fef3f2; border-color: #fecdca; color: #b42318; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-pill-grey { background: #f2f4f7; border-color: #e4e7ec; color: #475467; }

/* ---------- My Account dashboard ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-group { margin: 0 0 22px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-group-title { margin: 0 0 10px; color: var(--ma-muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) a.md-tile { position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 36px 14px 14px; background: #fff; border: 1px solid var(--ma-line); border-radius: 14px; box-shadow: var(--ma-shadow); color: var(--ma-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) a.md-tile::after { content: ""; position: absolute; top: 50%; right: 16px; width: 8px; height: 8px; border-top: 2px solid #9ca3af; border-right: 2px solid #9ca3af; transform: translateY(-50%) rotate(45deg); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) a.md-tile:hover { border-color: #d1d5db; box-shadow: 0 4px 14px rgba(16, 24, 40, .08); color: var(--ma-text); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tile-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--ma-soft); border-radius: 10px; color: var(--ma-text); font-size: 1.15rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tile-icon i { line-height: 1; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) a.md-tile:hover .md-tile-icon { color: var(--ma-red); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tile-text { display: flex; flex-direction: column; min-width: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tile-label { font-size: .95rem; font-weight: 600; line-height: 1.3; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tile-hint { margin-top: 2px; color: var(--ma-muted); font-size: .82rem; line-height: 1.35; }

/* ---------- Order list (extension/order_modify: rows, plus shipment rows its script inserts) ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-orders-wrap { position: relative; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-ord-no { font-weight: 700; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > thead > tr > * { white-space: nowrap; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > thead > tr > .md-c-qty { width: 90px; white-space: normal; }
/* the script's spacer rows (they hold the loading bar) stay flat while empty */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > tbody > tr.tr-with-no-data > td:empty { padding: 0; border-width: 0 !important; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders .md-c-name { color: var(--ma-sub); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders .md-c-total { font-weight: 700; white-space: nowrap; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders :is(.md-c-view, .md-c-exp) { width: 1%; white-space: nowrap; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-btn-view { min-height: 40px; padding: 6px 14px; font-size: .875rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) a.md-expand { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; min-height: 40px; padding: 0 10px; background: #fff; border: 1.5px solid var(--ma-line); border-radius: 10px; color: var(--ma-text) !important; font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) a.md-expand:hover { background: var(--ma-soft); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) a.md-expand .fa { transition: transform .15s; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders :is(tr.tr-order-package, tr.tr-order-product, tr.tr-package-product) > td { color: var(--ma-sub); font-size: .875rem; }
@media (min-width: 1200px) {
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.tr-order-package > td { background-color: #f8fafc !important; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders :is(tr.tr-order-product, tr.tr-package-product) > td { background-color: #fcfcfd !important; }
}
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-orders .md-k { display: block; margin-bottom: 2px; color: var(--ma-muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-orders b.marked { color: var(--ma-text); font-weight: 600; overflow-wrap: anywhere; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-orders .md-btn-track { min-height: 36px; margin-top: 8px; padding: 4px 12px; border-radius: 10px; font-size: .85rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-orders :is(.action-btn, .btn-download-info, .btn-order-info) { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; margin: 2px; padding: 0 10px; background: #fff; border: 1.5px solid var(--ma-line); border-radius: 10px; color: var(--ma-text); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-orders :is(.action-btn, .btn-download-info, .btn-order-info):hover { background: var(--ma-soft); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-orders .progress { height: 6px; margin: 10px 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-empty { padding: 32px 16px; text-align: center; background: #fff; border: 1px solid var(--ma-line); border-radius: 14px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-empty p { margin: 0 0 16px; color: var(--ma-sub); }

/* ---------- Order detail ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-bottom: 16px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-info-grid > .md-card { margin: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-dl { margin: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid #f0f1f3; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-dl > div:first-child { border-top: 0; padding-top: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-dl dt { flex: none; color: var(--ma-muted); font-weight: 500; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-dl dd { margin: 0; color: var(--ma-text); font-weight: 600; text-align: right; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-items { margin: 0; padding: 0; list-style: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main nums" "acts acts"; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid #f0f1f3; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-item:first-child { padding-top: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-item-main { grid-area: main; min-width: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) a.md-item-name, :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-item-name { color: var(--ma-text); font-weight: 600; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) a.md-item-name:hover { color: var(--ma-red); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-item-meta { margin-top: 2px; color: var(--ma-muted); font-size: .85rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-item-nums { grid-area: nums; text-align: right; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-item-total { font-weight: 700; white-space: nowrap; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-item-unit { color: var(--ma-muted); font-size: .82rem; white-space: nowrap; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-item-actions { grid-area: acts; display: flex; flex-wrap: wrap; gap: 8px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-item-actions:empty { display: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-totals { max-width: 360px; margin: 14px 0 0 auto; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; color: var(--ma-sub); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-totals dt { font-weight: 500; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-totals dd { margin: 0; color: var(--ma-text); font-weight: 600; white-space: nowrap; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-totals > .md-grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--ma-line); color: var(--ma-text); font-size: 1.1rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-totals > .md-grand :is(dt, dd) { font-weight: 700; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(.md-comment, .md-tl-comment) { padding: 10px 12px; background: #f9fafb; border: 1px solid #eef0f3; border-radius: 10px; color: var(--ma-sub); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }

/* Order history as a timeline (account/order_history.twig) */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-timeline { margin: 0; padding: 0; list-style: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tl-item { position: relative; padding: 0 0 18px 28px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tl-item::before { content: ""; position: absolute; top: 4px; left: 2px; width: 14px; height: 14px; background: #fff; border: 2px solid #9ca3af; border-radius: 50%; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tl-item::after { content: ""; position: absolute; top: 22px; bottom: 2px; left: 8px; width: 2px; background: var(--ma-line); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tl-item:last-child { padding-bottom: 0; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tl-item:last-child::after { display: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tl-item:last-child::before { background: var(--ma-text); border-color: var(--ma-text); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tl-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tl-status { font-weight: 600; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tl-date { color: var(--ma-muted); font-size: .85rem; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tl-comment { margin-top: 6px; }

/* ---------- Address book ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-addr { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--ma-line); border-radius: 14px; box-shadow: var(--ma-shadow); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-addr .md-address { margin: 0; color: var(--ma-text); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-addr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #address .md-btn-sm { width: auto; height: auto; padding: 6px 12px; border-radius: 10px; line-height: 1.3; }

/* ---------- Wish list ---------- */
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist .md-w-img img { width: 64px; height: 64px; object-fit: contain; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist .md-w-price .price { font-weight: 700; white-space: nowrap; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist .md-w-price s { color: var(--ma-muted); font-weight: 400; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish .md-w-act { width: 1%; white-space: nowrap; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist .md-w-act form { display: inline-flex; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist form .btn { width: auto; height: auto; min-height: 40px; padding: 6px 12px; line-height: 1.3; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist .md-w-act .btn-primary { background: #fff; border: 1.5px solid var(--ma-red); color: var(--ma-red); }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist .md-w-act .btn-primary:hover { background: #fff5f5; }
:is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist form .md-btn-danger-o { width: 40px; padding: 0; }

/* ---------- Tablet and phone: the account menu becomes a scrollable row of chips above the page ---------- */
@media (max-width: 991.98px) {
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) > .row > :is(#column-left, #column-right) { display: block !important; order: -1; position: static; top: auto; right: auto; bottom: auto; left: auto; z-index: auto; flex: 0 0 100%; width: 100%; max-width: 100%; padding-top: 0; overflow: visible; background: none; transition: none !important; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(#column-left, #column-right) .list-group.account-boxes { flex-direction: row; flex-wrap: nowrap; gap: 8px; margin: 0 0 14px; padding: 2px 0 6px; overflow-x: auto; background: none; border: 0; border-radius: 0; box-shadow: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(#column-left, #column-right) .list-group.account-boxes::-webkit-scrollbar { display: none; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) :is(#column-left, #column-right) .account-boxes .list-group-item { flex: none; min-height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--ma-line) !important; border-radius: 999px !important; font-size: .875rem; white-space: nowrap; }
}

@media (max-width: 767.98px) {
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content { padding: 16px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content.md-cards,
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content:has(> #address > .md-addr-grid) { margin: 0 0 16px; padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5); background: none; border: 0; border-radius: 0; box-shadow: none; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content h1 { font-size: 1.3rem; margin-bottom: 14px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-card { padding: 16px; border-radius: 12px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-sm-only { display: inline; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) > .breadcrumb .breadcrumb-item a { min-height: 44px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) a.md-tile { min-height: 64px; padding: 10px 36px 10px 12px; border-radius: 12px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-group { margin-bottom: 18px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-btn-sm { min-height: 44px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-actions .btn,
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content > .text-end > .btn { width: 100%; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .row:has(> .col.text-end) { flex-direction: column-reverse; gap: 10px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .row:has(> .col.text-end) > .col { flex: 1 0 100%; width: 100%; text-align: center !important; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .row:has(> .col.text-end) > .col > .btn { width: 100%; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-pager > * { text-align: left !important; }

  /* Wish list: one row per product, picture on the left */
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish,
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish > tbody { display: block; border: 0; border-radius: 0; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish > thead { display: none; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish > tbody > tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "img name" "img model" "img stock" "img price" "act act"; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid #eef0f3; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish > tbody > tr:last-child { border-bottom: 0; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish > tbody > tr > td { display: block; padding: 0; background: none !important; border: 0 !important; text-align: left !important; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish .md-w-img { grid-area: img; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish .md-w-name { grid-area: name; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish .md-w-model { grid-area: model; color: var(--ma-muted); font-size: .85rem; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish .md-w-stock { grid-area: stock; color: var(--ma-muted); font-size: .85rem; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish .md-w-price { grid-area: price; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-wish .md-w-act { grid-area: act; width: auto; margin-top: 8px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist .md-w-act form { display: flex; justify-content: flex-start; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist .md-w-act .btn-primary { flex: 1; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist form .btn { min-height: 44px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #wishlist form .md-btn-danger-o { width: 44px; }
}

@media (max-width: 1199.98px) {
  /* Order list: each order is a card below 1200px, where the eight-column table does not fit next to the menu. The shipment rows the script inserts follow as inset panels; jQuery
     shows and hides them with inline display, which these rules leave alone. */
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-orders-wrap { overflow: visible; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-orders .md-sm-only { display: inline; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders,
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > tbody { display: block; overflow: visible; background: none; border: 0; border-radius: 0; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > thead { display: none; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > tbody > tr { display: block; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > tbody > tr > td { display: block; padding: 0; background: none !important; border: 0 !important; text-align: left; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > tbody > tr.md-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "id status" "date total" "qty qty" "view exp"; align-items: center; gap: 4px 10px; margin-top: 12px; padding: 14px; background: #fff; border: 1px solid var(--ma-line); border-radius: 14px; box-shadow: var(--ma-shadow); }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > tbody > tr.md-row:first-child { margin-top: 0; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.md-row > .md-c-id { grid-area: id; font-size: 1rem; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.md-row > .md-c-status { grid-area: status; justify-self: end; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.md-row > .md-c-date { grid-area: date; color: var(--ma-muted); font-size: .85rem; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.md-row > .md-c-total { grid-area: total; justify-self: end; font-size: 1.05rem; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.md-row > .md-c-qty { grid-area: qty; color: var(--ma-muted); font-size: .85rem; text-align: left !important; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.md-row > .md-c-name { display: none; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.md-row > .md-c-view { grid-area: view; width: auto; margin-top: 8px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.md-row > .md-c-exp { grid-area: exp; width: auto; margin-top: 8px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.md-row :is(.md-btn-view, .md-expand) { width: 100%; min-height: 44px; padding: 6px 10px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > tbody > tr.tr-with-data { margin: 8px 0 0 12px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--ma-line); border-radius: 12px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > tbody > tr.tr-package-product { margin-left: 24px; background: #fff; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > tbody > tr.tr-order-package { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.tr-order-package > :is(.md-p-awb, .md-p-exp) { grid-column: 1 / -1; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.tr-order-package .md-btn-track,
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders tr.tr-order-package .md-expand { width: 100%; min-height: 44px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders > tbody > :is(tr.tr-order-product, tr.tr-package-product) { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders :is(tr.tr-order-product, tr.tr-package-product) > td:first-child { display: none; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders :is(tr.tr-order-product, tr.tr-package-product) > td:nth-child(2) img { max-width: 64px; height: auto; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders :is(tr.tr-order-product, tr.tr-package-product) > td:nth-child(4) { grid-column: 1 / -1; text-align: left !important; white-space: normal !important; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) #content .md-orders :is(tr.tr-order-product, tr.tr-package-product) p.d-flex { flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; }
  :is([id^="account-"]:not(#account-login,#account-register,#account-forgotten,#account-reset),#information-old-orders) .md-orders :is(.action-btn, .btn-download-info, .btn-order-info) { min-width: 44px; min-height: 44px; }
}
