/* THE SHOPPING CART (owner, Oct 9 2026): the cart button, the mini-cart, the
   cart page and "Add to cart" on the order page. Same tokens as app.css.
   Since Oct 10 it is the ONE cart the website shares, so a line is a design (its
   proof), an upload (its files) or a quote ("Quote to follow"): the last two have
   a neutral file tile where a design has its picture. Since Oct 24 a line can also be
   a truck decal request (a truck tile), every line is "Ready" or "Needs details", and the
   cart page has three views (js/cart-page.js): the list, the walk through what is
   unfinished (one item at a time) and the order review. */

/* ---------- the cart button (page bars and the designer's toolbar) ---------- */
.cartbtn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-small); font-weight: 600;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cartbtn:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.cartbtn[hidden] { display: none; }
.cartbtn__n {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
/* inside the designer's toolbar group it is a quiet part of the pill */
.hud__group--cart { padding: 3px; }
.hud__group--cart .cartbtn { border: 0; min-height: 34px; }
.hud__group--cart[hidden] { display: none; }

/* ---------- the mini-cart ---------- */
.minicart {
  position: fixed; top: 64px; right: 18px; z-index: 60;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100dvh - 90px);
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.minicart[hidden] { display: none; }
.minicart__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px 18px; }
.minicart__title { margin: 0; font-size: var(--fs-lead); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.minicart__close {
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 22px; line-height: 1; color: var(--ink-70);
}
.minicart__close:hover { background: var(--accent-soft); color: var(--ink); }
.minicart__note {
  margin: 4px 18px 6px; padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  font-size: var(--fs-small); font-weight: 600; color: var(--accent);
}
.minicart__note[hidden] { display: none; }
/* the cart could not be reached: what is shown is what it last knew */
.minicart__note.is-err { background: var(--warn-soft); color: var(--warn-ink); font-weight: 500; }
.minicart__list { list-style: none; margin: 0; padding: 4px 18px; overflow-y: auto; flex: 1 1 auto; }
.minicart__item {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.minicart__item:first-child { border-top: 0; }
.minicart__thumb {
  width: 56px; height: 56px; object-fit: contain;
  border-radius: 6px; border: 1px solid var(--line-soft); background: var(--workspace);
}
.minicart__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.minicart__name { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.minicart__line { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.minicart__price { font-size: var(--fs-small); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* a quote has no price: its words are smaller and wrap */
.minicart__price--quote { max-width: 74px; text-align: right; font-size: 12.5px; line-height: 1.3; color: var(--ink-70); font-variant-numeric: normal; }
/* a line that is not a design: a neutral file tile where the proof would be */
.minicart__thumb--file, .cartitem__thumb--file {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.minicart__thumb--file svg { width: 26px; height: 26px; }
.minicart__acts { display: flex; gap: 14px; margin-top: 4px; }
.minicart__empty { padding: 18px 0; font-size: var(--fs-small); color: var(--muted); }
.minicart__foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line-soft);
}
.minicart__sub { grid-column: 1 / -1; margin: 0 0 2px; font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.minicart__checkout { min-height: 44px; }
.minicart__checkout[hidden] { display: none; }

/* a text button: Edit, Remove */
.linkbtn {
  padding: 0; min-height: 24px;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.linkbtn:hover { color: var(--ink); }
.linkbtn--danger { color: var(--warn-ink); }

/* ---------- "Add to cart" on the order page ---------- */
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--paper); color: var(--accent);
  font-size: var(--fs-body); font-weight: 600;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn-outline:hover:not(:disabled) { background: var(--accent-soft); }
.btn-outline:disabled { opacity: .5; cursor: default; }
.btn-outline.is-working::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
.sum__cart { width: 100%; position: relative; }
.sum__cartbag { flex: 0 0 auto; }
.sum__cart[hidden] { display: none; }

/* ---------- the cart page ---------- */
.cartpage {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--order-w);
}
.cartpage__main {
  min-width: 0; min-height: 0; overflow-y: auto;
  padding: 26px clamp(24px, 4vw, 64px) 40px;
  background: var(--surface);
}
.cartpage__title { margin: 16px 0 0; font-size: var(--fs-page); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.cartpage__title:focus { outline: none; }
.cartpage__side {
  min-width: 0; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 6px 32px 0;
  background: var(--paper);
  border-left: 1px solid var(--line-soft);
}
.cartpage__side .order__summary { position: sticky; bottom: 0; margin: 26px -32px 0; }
.cartpage__side .order__summary[hidden] { display: none; }

.cartlist { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.cartlist[hidden] { display: none; }
.cartitem {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.cartitem.is-bad { border-color: var(--warn); }
.cartitem__thumb {
  width: 112px; height: 112px; object-fit: contain;
  border-radius: 8px; background: var(--workspace);
  border: 1px solid var(--line-soft);
}
.cartitem__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cartitem__n {
  align-self: flex-start;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent-soft);
  font-size: 12px; font-weight: 700; color: var(--accent);
}
.cartitem__name { margin-top: 4px; font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.cartitem__line { font-size: var(--fs-small); color: var(--ink-70); line-height: 1.45; }
.cartitem__meta { font-size: 12.5px; color: var(--muted); }
.cartitem__warn { margin-top: 4px; font-size: var(--fs-small); color: var(--warn-ink); }
.cartitem__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.cartitem__price { font-size: var(--fs-body); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cartitem__price--quote { max-width: 110px; text-align: right; font-size: var(--fs-small); line-height: 1.3; font-weight: 600; color: var(--ink-70); font-variant-numeric: normal; }
.cartlist--done { max-width: none; margin: 22px 0 0; }
/* the picture's box is the grid's own (a proof, or the file tile) */
.cartitem__thumbhost { display: contents; }
.cartitem__thumb--file svg { width: 34px; height: 34px; }

.cartempty { margin-top: 28px; max-width: 520px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cartempty[hidden] { display: none; }
.cartempty__text { margin: 0; font-size: var(--fs-body); color: var(--ink-70); line-height: 1.55; }

@media (max-width: 899px) {
  .cartpage { display: block; overflow-y: auto; }
  .cartpage__main { overflow: visible; padding: 18px 16px 8px; }
  .cartpage__side { overflow: visible; border-left: 0; border-top: 1px solid var(--line-soft); padding: 0 16px; }
  .cartpage__side .order__summary { margin: 22px -16px 0; }
  .cartitem { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .cartitem__thumb { width: 76px; height: 76px; }
  .cartitem__price { grid-column: 2; }
  .cartitem__price--quote { max-width: none; text-align: left; }
  .cartitem__thumb--file svg { width: 28px; height: 28px; }
  .minicart { top: auto; bottom: 12px; right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 40px); }
  /* the order page's bottom bar stays ONE row on a phone: price, the bag, "Place order" */
  .sum__cart { width: 52px; min-height: 52px; padding: 0; flex: 0 0 auto; }
  .sum__cartlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cartbtn__label { display: none; }
}

/* in the website's look (css/site-look.css) the files and the upload button on the cart page
   wear the same outline as the "Your order" screen's (css/order-page.css) */
:root[data-look="site"] .page--cart .ofile { border: 0; box-shadow: inset 0 0 0 1px var(--sl-line); }
:root[data-look="site"] .page--cart .oupload { border: 0; box-shadow: inset 0 0 0 1.5px var(--sl-ink); }
:root[data-look="site"] .page--cart .oupload:hover:not(:disabled) { background: var(--sl-ink); color: #fff; }
:root[data-look="site"] .page--cart .oupload:hover:not(:disabled) .oupload__icon { color: #fff; }

/* the website's big page title would have "Item 2 of 4 — Invoice Books — Black & White" fill the screen: the walk's title is a size down
   (and since Dec 1 another: the owner found "Item 1 of 1 — Lawn Signs" very large) */
:root[data-look="site"] .page--cart .cartpage[data-view="walk"] .cartpage__title { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; }
.cartpage[data-view="walk"] .cartpage__title { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }

/* a file that has gone from the upload store: marked, to be removed and sent again */
.cstep .ofile.is-missing { border-color: var(--warn); }
.cstep .ofile.is-missing .ofile__size { color: var(--warn-ink); }

/* ═══════════ EVERY ITEM FINISHES ITS STEP (owner, Oct 24) ═══════════
   "each product needs to go through its process one by one before you are able to
   go to the order completion screen. and where you can see the full layout of your
   order and total." The list says Ready / Needs details; "Check out" walks what is
   unfinished one item at a time; the order review lays the whole order out. */

/* ---------- the list: Ready / Needs details ---------- */
.cartitem__state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.cartitem__status {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; line-height: 1;
}
.cartitem__status.is-ready { background: var(--accent-soft); color: var(--accent); }
.cartitem__status.is-needs { background: var(--warn-soft); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn); }
.cartitem__tick { display: inline-flex; }
.cartitem__needs { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-70); }
.cartitem.is-todo { border-color: var(--warn); }
.cartitem__finish { min-height: 40px; padding: 0 18px; }
/* the mini-cart says it too */
.minicart__need { font-size: 12.5px; font-weight: 700; color: var(--warn-ink); }

/* the total's note: what is still to finish (list), or why prices cannot be checked (review) */
.sum__need { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--warn-ink); }
.sum__need[hidden] { display: none; }

/* ---------- the three views ---------- */
.cartview[hidden] { display: none; }
/* the list: the total and "Check out" sit at the top of the side, not pinned to a long empty panel */
.cartpage[data-view="list"] .cartpage__side { padding-top: 26px; }
.cartpage[data-view="list"] .cartpage__side .order__summary { position: static; margin: 0 -32px; border-top: 0; box-shadow: none; }
/* the walk is one column: the card is the whole page */
.cartpage[data-view="walk"] { grid-template-columns: minmax(0, 1fr); }
.cartpage[data-view="walk"] .cartpage__side { display: none; }
.cartpage[data-view="walk"] .cartpage__main { width: 100%; max-width: 860px; margin: 0 auto; }

/* ---------- the walk: "Item 2 of 3 — Invoice books" ---------- */
.cartwalk { max-width: 720px; margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.cartwalk__progress { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.cartwalk__progress[hidden] { display: none; }
.cartwalk__card { display: block; }
.cstep { display: flex; flex-direction: column; gap: 16px; }
.cstep__item {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.cstep__item .cartitem__thumb { width: 72px; height: 72px; }
.cstep__item .cartitem__thumb--file svg { width: 30px; height: 30px; }
.cstep__text { min-width: 0; }
.cstep__name { margin: 0; font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.cstep__opts { margin: 2px 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-70); }
.cstep__opts:empty { display: none; }
.cstep__price { margin: 0; font-size: var(--fs-body); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cstep__price--quote { max-width: 110px; text-align: right; font-size: var(--fs-small); line-height: 1.3; font-weight: 600; color: var(--ink-70); font-variant-numeric: normal; }
/* what it needs, in the server's sentence */
.cstep__need {
  margin: 0; padding: 12px 16px;
  border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-body); font-weight: 600; line-height: 1.45; color: var(--warn-ink);
}
.cstep__form { display: flex; flex-direction: column; gap: 4px; }
.cstep__form .osec { margin-top: 12px; }
.cstep__lead { margin: 12px 0 0; font-size: var(--fs-body); line-height: 1.55; color: var(--ink-70); }
.cstep .ofiles__msg { min-height: 0; }
.cstep .ofiles__msg:empty { display: none; }
.cstep .cartupload { min-height: 44px; padding: 0 16px; font-size: var(--fs-small); }
.cstep .cartupload:disabled { opacity: .5; cursor: default; }
.cstep__error { margin-top: 12px; }
.cstep__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 18px; }
.cstep__main { min-width: 220px; }
.cstep__remove { min-height: 44px; padding: 0 4px; font-size: var(--fs-small); }

/* ---------- the order review ---------- */
.cartreview { max-width: 780px; margin-top: 4px; }
.cartreview .flow__lead { margin-top: 12px; }
.rvlist { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rvitem {
  display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 16px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.rvitem__picbox { display: flex; }
.rvitem__pic {
  width: 148px; height: 148px; object-fit: contain;
  border-radius: 8px; background: var(--workspace); border: 1px solid var(--line-soft);
}
.rvitem__pic--file { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.rvitem__pic--file svg { width: 40px; height: 40px; }
.rvitem__body { min-width: 0; }
.rvitem__top { display: flex; align-items: center; gap: 10px; }
.rvitem__name { margin: 0; font-size: var(--fs-lead); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.rvitem__facts { margin: 10px 0 0; display: grid; gap: 7px 0; }
.rvitem__fact { display: grid; grid-template-columns: minmax(92px, 150px) minmax(0, 1fr); gap: 0 14px; }
/* (sentence case, as written: no spaced-out capitals — owner, Dec 1) */
.rvitem__fact dt { padding-top: 1px; font-size: var(--fs-small); color: var(--muted); }
.rvitem__fact dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.rvitem__quotenote { margin: 10px 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-70); }
.rvitem__price { margin: 0; font-size: var(--fs-body); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rvitem__price--quote { max-width: 110px; text-align: right; font-size: var(--fs-small); line-height: 1.3; font-weight: 600; color: var(--ink-70); font-variant-numeric: normal; }

.rvtotals {
  margin: 14px 0 0; padding: 16px 18px; display: grid; gap: 8px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); box-shadow: var(--shadow-card);
}
.rvtotals__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: var(--fs-body); color: var(--ink-70); }
.rvtotals__row dt { min-width: 0; }
.rvtotals__row dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rvtotals__row--quotes dd { font-size: var(--fs-small); font-weight: 500; color: var(--ink-70); }
.rvtotals__row--total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: var(--fs-lead); font-weight: 700; color: var(--ink); }
.rvtotals__row--total dd { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.rvtotals__note { margin: 8px 2px 0; font-size: var(--fs-small); color: var(--muted); }

/* ---------- on a phone: one column, nothing sideways, 44px to tap ---------- */
@media (max-width: 899px) {
  .cartpage[data-view="list"] .cartpage__side { padding-top: 0; }
  .cartpage[data-view="list"] .cartpage__side .order__summary { position: sticky; margin: 22px -16px 0; border-top: 1px solid var(--line-soft); box-shadow: 0 -14px 28px -24px rgba(20, 22, 28, 0.35); }
  .cartpage[data-view="walk"] .cartpage__main { padding-bottom: 40px; }
  .cartitem__acts .linkbtn { min-height: 44px; min-width: 44px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; }
  .cstep .ofile__remove { min-height: 44px; min-width: 44px; }
  .cstep__remove { min-width: 44px; }
  .cartbtn { min-height: 44px; }
  .minicart__close { width: 44px; height: 44px; }
  .minicart__acts .linkbtn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .cartitem__finish { min-height: 44px; }
  .cartitem__needs { flex-basis: 100%; }
  .sum__need { font-size: 12px; }
  .cartwalk { margin-top: 10px; }
  .cstep__item { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .cstep__item .cartitem__thumb { width: 56px; height: 56px; }
  .cstep__price { grid-column: 2; }
  .cstep__price--quote { max-width: none; text-align: left; }
  .cstep .cartupload { align-self: stretch; justify-content: center; }
  .cstep__acts { flex-direction: column; align-items: stretch; gap: 8px; }
  .cstep__main { min-width: 0; }
  .cstep__remove { align-self: center; }
  /* the picture and the name side by side, then the details the whole width under them */
  .rvitem { grid-template-columns: 88px minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
  .rvitem__pic { width: 88px; height: 88px; }
  .rvitem__pic--file svg { width: 30px; height: 30px; }
  .rvitem__body { display: contents; }
  .rvitem__top { grid-column: 2; align-self: center; }
  .rvitem__facts, .rvitem__quotenote { grid-column: 1 / -1; margin-top: 0; }
  .rvitem__fact { grid-template-columns: 112px minmax(0, 1fr); gap: 0 12px; }
  .rvitem__price { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line-soft); }
  .rvitem__price--quote { max-width: none; text-align: left; }
}

/* ═══════════ DEC 1 (owner): REAL PICTURES, GST, MAHI AI UP FRONT ═══════════ */

/* ---------- every line has a real picture ("thumbnails at the checkout page dont show for some
   products like door hangers"): the proof and a file's picture are shown whole; the product's own
   photo (js/cart.js lineThumb, data-pic="photo") fills its box, as the website's tiles do ---------- */
img.minicart__thumb[data-pic="photo"], img.cartitem__thumb[data-pic="photo"], img.rvitem__pic[data-pic="photo"] { object-fit: cover; }

/* ---------- GST ("GST on website checkout needed and calculated"): under the big total, what it is
   made of — Subtotal, Rush, GST (5%) ---------- */
.sum__break { margin: 6px 0 2px; display: grid; gap: 3px; }
.sum__break[hidden] { display: none; }
.sum__breakrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--fs-small); color: var(--ink-70); }
.sum__breakrow dt { min-width: 0; }
.sum__breakrow dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- "Design it with Mahi AI" (js/cart-steps.js designWithMahiAi): a button that wears the
   brand mark — the four process dots, then "Mahi AI" — at least as prominent as "Upload your artwork"
   (it was a small text link). The decal page's "Generate with Mahi AI" is dressed the same way. ---------- */
.aibtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap;
  min-height: 50px; padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--mk-k, #14162b);
  background: #fff; color: var(--mk-k, #14162b);
  font-size: var(--fs-body); font-weight: 600; text-align: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.aibtn:hover:not(:disabled) { background: #fffbe0; box-shadow: 0 8px 22px -12px rgba(20, 22, 43, .5); }
.aibtn:focus-visible { outline: 3px solid var(--mk-c, #00aeef); outline-offset: 3px; }
.aibtn:disabled { opacity: .5; cursor: default; }
.aibtn[hidden] { display: none; }
.aibtn__word { white-space: nowrap; }
.aibtn .mahimark { font-size: 17px; }
/* beside "Finish this item" on a cart line that needs its artwork */
.aibtn--small { min-height: 42px; padding: 0 16px; gap: 7px; font-size: var(--fs-small); }
.aibtn--small .mahimark { gap: 7px; font-size: 15px; }
.aibtn--small .mahimark .dots { --dot: 10px; }

/* the step card: Upload and Design it with Mahi AI side by side, the same size */
.cstep__ways { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.cstep .cstep__ways .cartupload, .cstep .cstep__ways .aibtn { min-height: 54px; padding: 0 22px; font-size: var(--fs-body); }
.cstep__ways.has-ai > * { flex: 1 1 240px; justify-content: center; }
.cstep__ainote { margin: -2px 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-70); }
.cstep__ainote[hidden] { display: none; }

/* in the website's look: the website's outline pill, as the upload button beside it */
:root[data-look="site"] .page--cart .aibtn { border: 0; box-shadow: inset 0 0 0 1.5px var(--sl-ink); font-family: var(--sl-body); }
:root[data-look="site"] .page--cart .aibtn:hover:not(:disabled) { background: #fffbe0; box-shadow: inset 0 0 0 1.5px var(--sl-ink), 0 10px 30px -14px rgba(13, 15, 30, .55); }
:root[data-look="site"] .page--cart .aibtn--small { min-height: 52px; padding: 0 20px; font-size: 15px; }

@media (max-width: 899px) {
  .aibtn--small { min-height: 44px; }
  .cstep__ways { flex-direction: column; }
  /* (a column: the row's 240px basis would be a height here) */
  .cstep__ways > *, .cstep__ways.has-ai > * { flex: 0 0 auto; width: 100%; }
}
