/* Account pages — /account-login and /account-callback share this file.
   Layout: single centered card on a light-grey page. Uses site tokens:
   #131917 (ink), #F15A27 (accent), Inter, 14px buttons, 4px cards. */

.mq-account-shell {
  min-height: calc(100vh - 200px);
  background: #f7f7f5;
  color: #131917;
  padding: 80px 4vw;
  font-family: var(--font-body--family);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mq-account-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 40px 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 1px 2px rgba(19, 25, 23, 0.04),
              0 8px 24px rgba(19, 25, 23, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.mq-account-card__title {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  font-size: 28px;
  line-height: 1.15;
  color: #131917;
  margin: 0;
  letter-spacing: -0.01em;
}

.mq-account-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(19, 25, 23, 0.75);
}

.mq-account-card__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(19, 25, 23, 0.55);
  border-top: 1px solid rgba(19, 25, 23, 0.08);
  padding-top: 14px;
  margin-top: 4px;
}

.mq-account-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  min-height: 46px;
  background: #F15A27;
  color: #ffffff;
  border: 0;
  border-radius: 14px;               /* button radius token */
  font-family: var(--font-body--family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  align-self: flex-start;
}
.mq-account-card__cta:hover      { background: #d84a1c; }
.mq-account-card__cta:active     { transform: translateY(1px); }
.mq-account-card__cta:disabled   { background: rgba(241, 90, 39, 0.55); cursor: not-allowed; }
.mq-account-card__cta:focus-visible {
  outline: 2px solid #131917;
  outline-offset: 3px;
}

/* Ghost/link-style secondary action (used for Sign out) */
.mq-account-card__link {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 4px 0;
  font-family: var(--font-body--family);
  font-size: 13px;
  color: #131917;
  text-decoration: underline;
  cursor: pointer;
}
.mq-account-card__link:hover { color: #F15A27; }

/* ---- Callback states -------------------------------------------------- */
.mq-account-card__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(19, 25, 23, 0.15);
  border-top-color: #F15A27;
  border-radius: 50%;
  animation: mq-account-spin 0.8s linear infinite;
}
[data-state="success"] .mq-account-card__spinner {
  border-color: #7BBFB5;
  animation: none;
  border-top-color: #7BBFB5;
}
[data-state="error"] .mq-account-card__spinner {
  border-color: rgba(241, 90, 39, 0.35);
  border-top-color: #F15A27;
  animation: none;
}
@keyframes mq-account-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mq-account-card__spinner { animation: none; }
}

.mq-account-card__error {
  background: rgba(241, 90, 39, 0.08);
  border: 1px solid rgba(241, 90, 39, 0.2);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 13px;
  color: #a13411;
  font-family: var(--font-body--family);
  word-break: break-word;
}

.mq-account-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Mobile ---------------------------------------------------------- */
@media (max-width: 749px) {
  .mq-account-shell { padding: 40px 20px; }
  .mq-account-card  { padding: 28px 22px; }
  .mq-account-card__title { font-size: 24px; }
  /* a11y audit item 5: Sign out ghost link was 51×24 (too small for touch).
     Grow the tap area via padding — visually the underlined text stays the
     same size, just the click surface expands. */
  .mq-account-card__link {
    padding: 12px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ---- Header account button (replaces the old shopify-account element) - */
.account-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  padding: 4px;
}
.account-button__link:focus-visible {
  outline: 2px solid #F15A27;
  outline-offset: 2px;
  border-radius: 4px;
}
.account-button__link[data-mq-auth-state="in"] .account-button__icon {
  color: #F15A27;                    /* orange accent when logged in */
}

/* ===== Mobile fixes (a11y audit items 2 + 6) ============================
   Header icons stay visually the same size (15×17 for account, ~20×20 for
   cart) but get a 44×44 invisible tap area via ::before per audit
   constraint (no visual size changes to icons). Only on mobile since
   desktop uses precise mouse hits.

   `hover: none` catches touch devices regardless of viewport width;
   `max-width: 749px` catches narrow desktop windows. Either triggers
   the fix. */
@media (hover: none), (max-width: 749px) {
  .account-button__link,
  .account-button,
  .header-actions__action {
    position: relative;
  }
  .account-button__link::before,
  .header-actions__action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    /* Pseudo-element on <a>/<button> — clicks pass through to the parent's
       handler; no z-index needed. */
  }
}

/* =========================================================================
   /account-login page redesign — 2-col: form left, video hero right.
   Layout riffs off the reference; content stays scoped to our real
   passwordless OAuth flow (no password / name / social fields).
   ========================================================================= */
.mq-login {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  min-height: calc(100vh - 200px);        /* leaves room for header + newsletter/footer */
  background: #ffffff;
}
@media (max-width: 899px) {
  .mq-login {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 20px 32px;
    min-height: auto;
  }
}

/* ---- Form column ------------------------------------------------------ */
.mq-login__col--form {
  border: 1px solid rgba(19, 25, 23, 0.15);
  border-radius: 6px;
  background: #ffffff;
  padding: 72px 48px;
  display: flex;
  align-items: flex-start;
  min-height: 620px;
}
@media (max-width: 999px) { .mq-login__col--form { padding: 48px 32px; } }
@media (max-width: 559px) { .mq-login__col--form { padding: 40px 24px; min-height: 480px; } }

.mq-login__form-inner {
  width: 100%;
  max-width: 590px;
  margin: 0 auto;
}
.mq-login__intro { display: flex; flex-direction: column; gap: 12px; }
.mq-login__h1 {
  font-family: var(--font-heading--family);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #131917;
  margin: 0;
}
.mq-login__sub {
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.3;
  color: rgba(19, 25, 23, 0.6);
  margin: 0;
}

/* ---- Form + floating-label field ------------------------------------- */
.mq-login__form { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; }

.mq-login__field {
  position: relative;
  display: flex;
  height: 54px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(19, 25, 23, 0.22);
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mq-login__field:focus-within {
  border-color: #131917;
  box-shadow: 0 0 0 3px rgba(19, 25, 23, 0.08);
}
/* Note: `.mq-contact-form .mq-contact-form__input` in contact-page.css uses a
   context selector to beat Horizon's `input:not(...)` rule. Same trick here:
   `.mq-login__form` context (0,2,0) wins over Horizon's (0,1,1). */
.mq-login__form .mq-login__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #131917;
  font-family: var(--font-body--family);
  font-size: 16px;                        /* iOS-safe (no auto-zoom) */
  font-weight: 400;
  padding: 0;
}
.mq-login__label {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #131917;
  font-weight: 500;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
/* Once the user types anything, `:placeholder-shown` flips off → label hides.
   Also hide when the input is focused so the field is ready for typing. */
.mq-login__field:focus-within .mq-login__label,
.mq-login__field:has(.mq-login__input:not(:placeholder-shown)) .mq-login__label {
  opacity: 0;
}

/* ---- Reassurance benefits row + passive terms microcopy -------------- */
.mq-login__benefits {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: rgba(19, 25, 23, 0.55);
}
.mq-login__benefits li {
  position: relative;
  padding-left: 16px;
}
.mq-login__benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F15A27;
}
.mq-login__terms {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(19, 25, 23, 0.45);
}
.mq-login__legal-link {
  color: rgba(19, 25, 23, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mq-login__legal-link:hover { color: #F15A27; }

/* ---- Submit CTA ------------------------------------------------------ */
.mq-login__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin-top: 20px;
  padding: 0 20px;
  background: #131917;
  color: #ffffff;
  border: 1px solid #131917;
  border-radius: 10px;
  font-family: var(--font-body--family);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mq-login__submit:hover  { background: #000000; }
.mq-login__submit:active { transform: translateY(1px); }
.mq-login__submit:disabled { background: rgba(19, 25, 23, 0.5); cursor: not-allowed; }
.mq-login__submit:focus-visible {
  outline: 2px solid #F15A27;
  outline-offset: 3px;
}

.mq-login__ghost {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 12px 4px;
  min-height: 44px;
  margin-top: 12px;
  font-family: var(--font-body--family);
  font-size: 14px;
  color: #131917;
  text-decoration: underline;
  cursor: pointer;
}
.mq-login__ghost:hover { color: #F15A27; }

/* ---- Video hero column ------------------------------------------------ */
.mq-login__col--hero {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #131917;                    /* fallback while video loads */
  min-height: 620px;
  padding: 48px;
  display: flex;
  align-items: stretch;                   /* inner content div fills height */
  color: #ffffff;
}
@media (max-width: 899px) { .mq-login__col--hero { min-height: 320px; padding: 32px; } }
@media (max-width: 559px) { .mq-login__col--hero { min-height: 260px; padding: 24px; } }

.mq-login__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
/* Dark overlay so the headline stays legible over any video frame. */
.mq-login__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 25, 23, 0.2) 0%, rgba(19, 25, 23, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}
.mq-login__hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;         /* h2 top, CTA bottom */
  width: 100%;
  height: 100%;
  gap: 24px;
}
.mq-login__hero-h2 {
  font-family: var(--font-heading--family);
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0;
  max-width: 620px;
}
.mq-login__hero-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body--family);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.mq-login__hero-cta:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .mq-login__video { display: none; }   /* strong fallback: hide video, brand-dark bg shows through */
}

/* =========================================================================
   /account page (Chunk 2) — hero (name + email) + order history list
   ========================================================================= */
/* Full-width shell — matches contact/collection page rhythm (1280px inner,
   4vw side padding). Overrides the login-page base .mq-account-shell which
   is display:flex + justify-content:center (that centered the login card
   but constrained the account layout when combined with max-width). */
.mq-account-shell--page {
  display: block;
  max-width: none;
  min-height: calc(100vh - 200px);
  padding: 40px 4vw 80px;
  background: #ffffff;
  font-family: var(--font-body--family);
}
.mq-account-shell--page > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
/* Nav is sticky and full-viewport-width; its inner content still caps at
   1280 via padding + max-width above. */
.mq-account-shell--page .mq-acct-nav {
  max-width: 1280px;
}

.mq-account-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid rgba(19, 25, 23, 0.08);
  padding-bottom: 32px;
}
.mq-account-hero__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F15A27;
  font-weight: 600;
  margin: 0;
}
.mq-account-hero__name {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  color: #131917;
  margin: 0;
  letter-spacing: -0.01em;
}
.mq-account-hero__email {
  font-size: 15px;
  color: rgba(19, 25, 23, 0.65);
  margin: 0;
}

/* ---- Orders section --------------------------------------------------- */
.mq-orders__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.mq-orders__heading {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  font-size: 22px;
  color: #131917;
  margin: 0;
}
.mq-orders__body { display: flex; flex-direction: column; gap: 20px; }

/* Individual order card */
.mq-order-card {
  border: 1px solid #e3e6e4;
  border-radius: 4px;
  background: #ffffff;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mq-order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mq-order-card__head-l { display: flex; flex-direction: column; gap: 2px; }
.mq-order-card__head-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.mq-order-card__num {
  font-family: var(--font-heading--family);
  font-size: 15px;
  font-weight: 600;
  color: #131917;
  margin: 0;
  letter-spacing: -0.005em;
}
.mq-order-card__date {
  font-size: 13px;
  color: rgba(19, 25, 23, 0.6);
  margin: 0;
}
.mq-order-card__total {
  font-family: var(--font-body--family);
  font-size: 16px;
  font-weight: 700;
  color: #131917;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Fulfillment badge — colour by tone */
.mq-order-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  line-height: 1;
}
.mq-order-badge--success { background: rgba(58, 164, 106, 0.12); color: #256d5f; }
.mq-order-badge--info    { background: rgba(43, 108, 176, 0.10); color: #2b6cb0; }
.mq-order-badge--warn    { background: rgba(241, 90, 39, 0.12);  color: #a13411; }
.mq-order-badge--muted   { background: rgba(19, 25, 23, 0.06);   color: rgba(19, 25, 23, 0.65); }

/* Line items list */
.mq-order-card__lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border-top: 1px solid rgba(19, 25, 23, 0.06);
  padding-top: 16px;
}
.mq-order-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mq-order-line__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: #f7f7f5;
}
.mq-order-line__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mq-order-line__thumb-empty { width: 100%; height: 100%; }
.mq-order-line__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mq-order-line__title {
  font-size: 14px;
  color: #131917;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mq-order-line__qty {
  font-size: 12px;
  color: rgba(19, 25, 23, 0.6);
  margin: 0;
}
.mq-order-line--more {
  font-size: 13px;
  color: rgba(19, 25, 23, 0.55);
  padding-left: 68px;                    /* aligns under the title column */
}

/* Tracking footer */
.mq-order-card__foot {
  border-top: 1px solid rgba(19, 25, 23, 0.06);
  padding-top: 14px;
}
.mq-order-card__track {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #131917;
  text-decoration: none;
  padding: 12px 4px;                     /* 44px min tap height */
  min-height: 44px;
}
.mq-order-card__track:hover { color: #F15A27; }

/* ---- States: skeleton / empty / error --------------------------------- */
.mq-orders__skel { display: flex; flex-direction: column; gap: 20px; }
.mq-order-card--skel {
  border: 1px solid #e3e6e4;
  padding: 20px 22px;
}
.mq-order-card__head-skel {
  height: 20px;
  width: 60%;
  border-radius: 3px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #eeeeee 0%, #f6f6f6 50%, #eeeeee 100%);
  background-size: 200% 100%;
  animation: mq-skel-shim 1.4s ease-in-out infinite;
}
.mq-order-card__lines-skel { display: flex; flex-direction: column; gap: 10px; }
.mq-order-card__lines-skel > div {
  height: 56px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eeeeee 0%, #f6f6f6 50%, #eeeeee 100%);
  background-size: 200% 100%;
  animation: mq-skel-shim 1.4s ease-in-out infinite;
}
@keyframes mq-skel-shim {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mq-order-card__head-skel,
  .mq-order-card__lines-skel > div { animation: none; background: #f0f0f0; }
}

.mq-orders__empty {
  border: 1px dashed rgba(19, 25, 23, 0.18);
  border-radius: 4px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mq-orders__empty-title {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  font-size: 20px;
  color: #131917;
  margin: 0;
}
.mq-orders__empty-sub {
  font-size: 14px;
  color: rgba(19, 25, 23, 0.65);
  margin: 0 0 8px;
  max-width: 44ch;
}
.mq-orders__empty-cta {
  display: inline-block;
  padding: 12px 22px;
  min-height: 46px;
  background: #F15A27;
  color: #ffffff;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-body--family);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.mq-orders__empty-cta:hover { background: #d84a1c; }

.mq-orders__error {
  border: 1px solid rgba(241, 90, 39, 0.25);
  background: rgba(241, 90, 39, 0.05);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.mq-orders__error-title { margin: 0; font-size: 15px; font-weight: 600; color: #131917; }
.mq-orders__error-msg   { margin: 0; font-size: 13px; color: rgba(19, 25, 23, 0.7); word-break: break-word; }
.mq-orders__error-retry {
  margin-top: 8px;
  padding: 10px 18px;
  min-height: 44px;
  background: transparent;
  border: 1px solid #131917;
  color: #131917;
  border-radius: 14px;
  font-family: var(--font-body--family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.mq-orders__error-retry:hover { background: #131917; color: #ffffff; }

/* ---- Mobile (a11y rules from the audit pass baked in) ---------------- */
@media (max-width: 749px) {
  .mq-account-shell--page {
    padding: 32px 20px 64px;
    gap: 28px;
  }
  .mq-account-hero { padding-bottom: 24px; }
  .mq-order-card {
    padding: 16px 16px;
    gap: 14px;
  }
  .mq-order-card__head { gap: 8px 12px; }
  .mq-order-card__head-r {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
  }
  .mq-order-line__thumb { width: 48px; height: 48px; }
  .mq-order-line--more { padding-left: 60px; }
  /* CTA + retry keep 44px min via padding above — nothing to override. */
}

/* =========================================================================
   /account v2 — composed sections, sticky pill anchor nav, addresses CRUD,
   name-capture prompt, offers, "You may also like" grid.
   ========================================================================= */

/* Sticky pill nav — sits just under the site header. Horizontal-scroll
   fallback on very narrow screens so all 5 sections stay reachable. */
.mq-acct-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 6px;
  padding: 10px 4px;
  margin: 8px 0 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(19, 25, 23, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.mq-acct-nav::-webkit-scrollbar { display: none; }
.mq-acct-nav__link {
  flex-shrink: 0;
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgba(19, 25, 23, 0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
.mq-acct-nav__link:hover  { background: rgba(19, 25, 23, 0.05); color: #131917; }
.mq-acct-nav__link.is-active {
  background: #131917;
  color: #ffffff;
}

/* Section container */
.mq-acct-section {
  padding-top: 40px;
  scroll-margin-top: 80px;               /* keeps target flush under sticky nav */
}
.mq-acct-section--last { padding-bottom: 24px; }
.mq-acct-section__h {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  font-size: 22px;
  color: #131917;
  margin: 0 0 16px;
}
.mq-acct-subsection__h {
  font-family: var(--font-heading--family);
  font-weight: var(--font-heading--weight);
  font-size: 17px;
  color: #131917;
  margin: 32px 0 12px;
}
.mq-acct-section__body { display: flex; flex-direction: column; gap: 20px; }

/* Past orders: muted appearance so live orders stand out */
.mq-order-card--muted {
  opacity: 0.86;
}
.mq-order-card--muted .mq-order-card__num { color: rgba(19, 25, 23, 0.75); }

/* Inline empty text inside a section (differs from combined empty state) */
.mq-orders__empty-inline {
  padding: 20px 22px;
  border: 1px dashed rgba(19, 25, 23, 0.15);
  border-radius: 4px;
  color: rgba(19, 25, 23, 0.55);
  font-size: 14px;
  text-align: center;
}

/* ---- Name-capture prompt (dismissible) ------------------------------- */
.mq-name-prompt {
  border: 1px solid #131917;
  background: #ffffff;
  border-radius: 4px;
  padding: 20px 22px;
  margin: 24px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mq-name-prompt__title  { margin: 0; font-family: var(--font-heading--family); font-size: 17px; color: #131917; font-weight: var(--font-heading--weight); }
.mq-name-prompt__sub    { margin: 0; font-size: 13px; color: rgba(19, 25, 23, 0.65); }
.mq-name-prompt__form   { display: flex; flex-wrap: wrap; gap: 10px; }
.mq-name-prompt__form input {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e3e6e4;
  border-radius: 4px;
  font-family: var(--font-body--family);
  font-size: 16px;
  color: #131917;
  background: #ffffff;
}
.mq-name-prompt__form input:focus {
  outline: none;
  border-color: #F15A27;
  box-shadow: 0 0 0 3px rgba(241, 90, 39, 0.15);
}
.mq-name-prompt__status { margin: 0; font-size: 13px; color: rgba(19, 25, 23, 0.65); min-height: 16px; }

/* ---- Settings — reusable button + row --------------------------------- */
.mq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 14px;
  font-family: var(--font-body--family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mq-btn--dark   { background: #131917; color: #ffffff; border-color: #131917; }
.mq-btn--dark:hover { background: #000000; }
.mq-btn--ghost  { background: transparent; color: #131917; border-color: rgba(19, 25, 23, 0.22); }
.mq-btn--ghost:hover { border-color: #131917; }
.mq-btn--danger { color: #a13411; border-color: rgba(241, 90, 39, 0.35); }
.mq-btn--danger:hover { color: #ffffff; background: #a13411; border-color: #a13411; }

.mq-settings { border: 1px solid #e3e6e4; border-radius: 4px; overflow: hidden; }
.mq-setting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(19, 25, 23, 0.06);
}
.mq-setting-row--last { border-bottom: 0; }
.mq-setting-row__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mq-setting-row__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(19, 25, 23, 0.55); font-weight: 600; margin: 0; }
.mq-setting-row__value { font-size: 15px; color: #131917; margin: 0; word-break: break-word; }
.mq-setting-row__note  { font-size: 12px; color: rgba(19, 25, 23, 0.55); margin: 4px 0 0; }
.mq-setting-row__edit {
  align-self: center;
  background: none;
  border: 0;
  color: #131917;
  text-decoration: underline;
  font-size: 13px;
  padding: 12px 4px;
  min-height: 44px;
  cursor: pointer;
}
.mq-setting-row__edit:hover { color: #F15A27; }

.mq-setting-form {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(19, 25, 23, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mq-setting-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 559px) { .mq-setting-form__row { grid-template-columns: 1fr; } }
.mq-setting-form__field { display: flex; flex-direction: column; gap: 6px; }
.mq-setting-form__field span {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(19, 25, 23, 0.7);
  font-weight: 600;
}
.mq-setting-form__field input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e3e6e4;
  border-radius: 4px;
  font-family: var(--font-body--family);
  font-size: 16px;
  color: #131917;
  background: #ffffff;
}
.mq-setting-form__field input:focus {
  outline: none;
  border-color: #F15A27;
  box-shadow: 0 0 0 3px rgba(241, 90, 39, 0.15);
}
.mq-setting-form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mq-setting-form__status  { margin: 0; font-size: 13px; color: rgba(19, 25, 23, 0.65); min-height: 16px; }

/* ---- Addresses -------------------------------------------------------- */
.mq-addr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.mq-addr-empty { padding: 16px 20px; border: 1px dashed rgba(19, 25, 23, 0.15); border-radius: 4px; color: rgba(19, 25, 23, 0.6); font-size: 14px; text-align: center; margin: 0; }

.mq-addr-card {
  border: 1px solid #e3e6e4;
  border-radius: 4px;
  padding: 16px 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mq-addr-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mq-addr-card__name { margin: 0; font-size: 15px; font-weight: 600; color: #131917; }
.mq-addr-card__badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  background: #131917; color: #ffffff;
}
.mq-addr-card__body { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(19, 25, 23, 0.75); }
.mq-addr-card__phone { margin: 0; font-size: 13px; color: rgba(19, 25, 23, 0.65); }
.mq-addr-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.mq-addr-card__actions .mq-btn { padding: 8px 12px; min-height: 40px; font-size: 12px; }

.mq-addr-add-wrap { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.mq-addr-form {
  border: 1px solid #131917;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}
.mq-addr-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.02em; color: rgba(19, 25, 23, 0.7); font-weight: 600; }
.mq-addr-form input[type="text"], .mq-addr-form input[type="tel"] {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e3e6e4;
  border-radius: 4px;
  font-family: var(--font-body--family);
  font-size: 16px;
  color: #131917;
  background: #ffffff;
  font-weight: 400;
  letter-spacing: 0;
}
.mq-addr-form input:focus { outline: none; border-color: #F15A27; box-shadow: 0 0 0 3px rgba(241, 90, 39, 0.15); }
.mq-addr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 559px) { .mq-addr-form__row { grid-template-columns: 1fr; } }
.mq-addr-form__default { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: rgba(19, 25, 23, 0.75); font-weight: 500; text-transform: none; letter-spacing: 0; }
.mq-addr-form__default input { min-height: auto; width: 16px; height: 16px; }
.mq-addr-form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mq-addr-form__status  { margin: 0; font-size: 13px; color: rgba(19, 25, 23, 0.7); min-height: 16px; }

/* ---- You may also like ------------------------------------------------ */
.mq-foryou-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 12px;
}
@media (max-width: 999px) { .mq-foryou-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 749px) { .mq-foryou-grid { grid-template-columns: repeat(2, 1fr); } }
.mq-foryou__empty { padding: 20px; border: 1px dashed rgba(19, 25, 23, 0.15); border-radius: 4px; color: rgba(19, 25, 23, 0.55); text-align: center; font-size: 14px; }

/* ---- Offers ---------------------------------------------------------- */
.mq-offers__empty {
  padding: 24px;
  border: 1px dashed rgba(19, 25, 23, 0.15);
  border-radius: 4px;
  color: rgba(19, 25, 23, 0.65);
  text-align: center;
}
.mq-offers__empty p { margin: 0; }
.mq-offers__note { font-size: 13px; color: rgba(19, 25, 23, 0.5); margin-top: 6px !important; }

.mq-offers__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mq-offer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #e3e6e4;
  border-radius: 4px;
  background: #ffffff;
}
@media (max-width: 749px) { .mq-offer { grid-template-columns: 1fr; } }
.mq-offer__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mq-offer__title { margin: 0; font-family: var(--font-heading--family); font-size: 16px; font-weight: 600; color: #131917; }
.mq-offer__desc  { margin: 0; font-size: 14px; color: rgba(19, 25, 23, 0.7); }
.mq-offer__expiry { margin: 4px 0 0; font-size: 12px; color: rgba(19, 25, 23, 0.55); }
.mq-offer__code {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border: 1px dashed rgba(19, 25, 23, 0.35);
  border-radius: 4px;
  background: rgba(241, 90, 39, 0.05);
}
.mq-offer__code-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(19, 25, 23, 0.55); }
.mq-offer__code-value { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: #131917; }
.mq-offer__cta {
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 14px;
  background: #F15A27;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mq-offer__cta:hover { background: #d84a1c; }

/* ---- Mobile tweaks --------------------------------------------------- */
@media (max-width: 749px) {
  .mq-acct-nav { margin: 4px 0 12px; padding: 8px 4px; }
  .mq-acct-nav__link { font-size: 12px; padding: 8px 12px; }
  .mq-acct-section { padding-top: 32px; }
  .mq-acct-section__h { font-size: 20px; }
  .mq-setting-row { padding: 14px 16px; gap: 12px; }
  .mq-setting-form, .mq-addr-form { padding: 16px; }
  .mq-addr-card { padding: 14px 16px; }
  .mq-addr-form__default input { width: 18px; height: 18px; }
}

