:root {
  /* Brighter "Verified Fit" blue (F1 direction) — replaces the earlier,
     duller slate blue. Cascades to every M5 page since they all read the
     same token: homepage, storefront, item detail, Seller Center. */
  --m5-primary: #1a63ff;
  --m5-primary-dark: #0f4fe0;
  --m5-accent: #fbbf24;
  --m5-ink: #0f172a;
  --m5-muted: #64748b;
  --m5-line: #dbe3ef;
  --m5-surface: #fff;
  --m5-bg: #f5f7fb;
  --m5-good: #0e7a45;
  --m5-good-bg: #e8f7ee;
  --m5-good-line: #c7ecd6;
}

* { box-sizing: border-box; }

body.m5-body {
  min-height: 100vh;
  margin: 0;
  background: var(--m5-bg);
  color: var(--m5-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.m5-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid var(--m5-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.m5-topbar-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.m5-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--m5-ink);
  text-decoration: none;
}

.m5-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9 55%, #10b981);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
}

.m5-brand-copy { display: grid; line-height: 1.05; }
.m5-brand-copy strong { font-size: 17px; letter-spacing: -.025em; }
.m5-brand-copy small { margin-top: 4px; color: var(--m5-primary); font-size: 12px; font-weight: 850; }

.m5-public-nav { display: flex; align-items: center; gap: 9px; }
.m5-public-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.m5-public-nav a:hover { background: #eef2f7; }
.m5-public-nav .m5-nav-primary { background: var(--m5-primary); color: #fff; }
.m5-public-nav .m5-nav-primary:hover { background: var(--m5-primary-dark); }
.m5-account-menu { position: relative; }
.m5-account-menu summary {
  min-height: 42px;
  padding: 5px 10px 5px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--m5-line);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.m5-account-menu summary::-webkit-details-marker { display: none; }
.m5-account-menu summary::after { content: "⌄"; color: #94a3b8; font-size: 13px; }
.m5-account-menu[open] summary { border-color: #bfdbfe; background: #eff6ff; }
.m5-account-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--m5-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}
.m5-account-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m5-account-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 30;
  width: 260px;
  padding: 9px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--m5-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .17);
}
.m5-account-identity { padding: 10px 11px 12px; display: grid; gap: 3px; border-bottom: 1px solid var(--m5-line); }
.m5-account-identity span { color: var(--m5-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.m5-account-identity strong { overflow-wrap: anywhere; font-size: 14px; }
.m5-account-identity small { overflow-wrap: anywhere; color: var(--m5-muted); font-size: 11px; }
.m5-public-nav .m5-account-panel > a,
.m5-account-panel button {
  width: 100%;
  padding: 10px 11px;
  display: block;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.m5-public-nav .m5-account-panel > a:hover,
.m5-account-panel button:hover { background: #f1f5f9; }
.m5-account-panel form { margin: 0; padding-top: 3px; border-top: 1px solid var(--m5-line); }
.m5-account-panel button { color: #b91c1c; }

.m5-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.m5-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .7fr);
  gap: 34px;
  align-items: center;
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 6%, rgba(59, 130, 246, .55), transparent 34%),
    linear-gradient(135deg, #0b1220, #172554 75%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.m5-kicker {
  color: var(--m5-primary);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.m5-hero .m5-kicker { color: #93c5fd; }
.m5-hero h1 {
  max-width: 760px;
  margin: 11px 0 15px;
  color: #fff !important;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.055em;
}
.m5-hero-copy > p {
  max-width: 700px;
  margin: 0;
  color: #dbeafe !important;
  font-size: 17px;
  line-height: 1.6;
}

.m5-search {
  max-width: 760px;
  margin-top: 26px;
  padding: 6px;
  display: flex;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
}
.m5-search input {
  min-width: 0;
  flex: 1;
  padding: 14px 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--m5-ink);
  font: inherit;
  font-size: 15px;
}
.m5-search button,
.m5-form button,
.m5-button {
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--m5-primary);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.m5-search button:hover,
.m5-form button:hover,
.m5-button:hover { background: var(--m5-primary-dark); }
.m5-message-seller { margin-top: 10px; display: block; text-align: center; background: #0f172a; }
.m5-message-seller:hover { background: #1e293b; }

.m5-trust-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.m5-trust-row span {
  padding: 7px 10px;
  border: 1px solid rgba(147, 197, 253, .28);
  border-radius: 999px;
  background: rgba(15, 23, 42, .3);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 750;
}

.m5-hero-card {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}
.m5-hero-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #dcfce7;
  color: #15803d;
  font-size: 20px;
  font-weight: 950;
}
.m5-hero-card h2 { margin: 17px 0 8px; color: #fff !important; font-size: 23px; letter-spacing: -.03em; }
.m5-hero-card p { margin: 0 0 17px; color: #dbeafe !important; font-size: 14px; line-height: 1.55; }
.m5-hero-card a {
  display: block;
  padding: 12px 15px;
  border-radius: 10px;
  background: #fff;
  color: #1d4ed8;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}
.m5-hero-card small { display: block; margin-top: 12px; color: #bfdbfe; line-height: 1.45; }
.m5-hero-account .m5-hero-card-icon { background: #dbeafe; color: #1d4ed8; }

.m5-section-head {
  margin: 42px 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.m5-section-head h2,
.m5-panel h2 { margin: 5px 0 0; color: var(--m5-ink); font-size: 29px; letter-spacing: -.04em; }
.m5-section-head p { margin: 6px 0 0; color: var(--m5-muted); font-size: 14px; }
.m5-section-head > span { color: var(--m5-muted); font-size: 13px; font-weight: 800; white-space: nowrap; }

.m5-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.m5-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--m5-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(15, 23, 42, .055);
  transition: transform .18s ease, box-shadow .18s ease;
}
.m5-card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(15, 23, 42, .11); }
.m5-card-media { display: block !important; margin: 0 !important; background: #eef2f7; }
.m5-card-media > img,
.m5-card > .m5-placeholder,
.m5-card-media > .m5-placeholder {
  width: 100%;
  height: 210px;
  display: grid;
  place-items: center;
  object-fit: contain;
  background: #eef2f7;
  color: #94a3b8;
}
.m5-card-body { position: relative; padding: 16px; }
.m5-condition-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  padding: 5px 10px;
  border: 1px solid var(--m5-good-line);
  border-radius: 999px;
  background: var(--m5-good-bg);
  color: var(--m5-good);
  font: inherit;
  font-size: 10.5px;
  font-weight: 850;
  cursor: pointer;
}
.m5-condition-badge:hover { filter: brightness(0.97); }
.m5-card h3 { min-height: 42px; margin: 8px 0 8px; font-size: 16px; line-height: 1.3; }
.m5-card a { color: var(--m5-primary); text-decoration: none; font-weight: 850; }
.m5-store-name {
  display: inline-block;
  color: var(--m5-primary);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.m5-item-link { color: var(--m5-ink) !important; }
.m5-part-number { margin: 0 0 13px; color: var(--m5-muted); font-size: 12px; }
.m5-card-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.m5-card-footer strong { color: var(--m5-ink); font-size: 20px; }
.m5-card-footer span { color: #15803d; font-size: 11px; font-weight: 850; }
.m5-view-item {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  text-align: center;
  font-size: 13px;
}
.m5-empty {
  grid-column: 1 / -1;
  padding: 38px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: var(--m5-muted);
  text-align: center;
}

.m5-join-banner {
  margin-top: 48px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--m5-line);
  border-radius: 22px;
  background: #fff;
}
.m5-join-banner h2 { margin: 5px 0; font-size: 28px; letter-spacing: -.035em; }
.m5-join-banner p { margin: 0; color: var(--m5-muted); }
.m5-join-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.m5-join-actions > a:not(.m5-button) { color: var(--m5-primary); text-decoration: none; font-weight: 850; }

.m5-footer { border-top: 1px solid var(--m5-line); background: #fff; }
.m5-footer > div {
  width: min(1180px, calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  color: var(--m5-ink);
  font-weight: 850;
}
.m5-footer small { color: var(--m5-muted); font-weight: 600; }
.m5-footer-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.m5-footer-nav { display: flex; gap: 18px; }
.m5-footer-nav a { color: var(--m5-muted); text-decoration: none; font-weight: 700; }
.m5-footer-nav a:hover { color: var(--m5-primary); }

.m5-pagination { display: flex; justify-content: center; padding: 8px 0 32px; }

/* Public storefront */
.m5-store-hero { overflow: hidden; border: 1px solid var(--m5-line); border-radius: 26px; background: #fff; }
.m5-banner { width: 100%; height: 260px; display: block; object-fit: cover; }
.m5-store-identity { padding: 32px; display: flex; align-items: center; gap: 22px; border-top: 6px solid var(--m5-primary); }
.m5-store-identity h1 { margin: 4px 0 5px; color: var(--m5-ink); font-size: 42px; letter-spacing: -.05em; }
.m5-store-identity p { margin: 0; color: var(--m5-muted); }
.m5-logo { width: 88px; height: 88px; border: 1px solid var(--m5-line); border-radius: 20px; object-fit: cover; }

/* Public item detail */
.m5-breadcrumb { margin-bottom: 18px; display: flex; gap: 16px; }
.m5-breadcrumb a { color: var(--m5-primary); text-decoration: none; font-weight: 800; }
.m5-item-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 22px; align-items: start; }
.m5-item-media,
.m5-item-purchase { padding: 18px; border: 1px solid var(--m5-line); border-radius: 22px; background: #fff; }
.m5-item-main-photo { width: 100%; max-height: 620px; border-radius: 14px; object-fit: contain; background: #eef2f7; }
.m5-item-thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.m5-item-thumbs img { width: 100%; aspect-ratio: 1; border: 1px solid var(--m5-line); border-radius: 9px; object-fit: cover; }
.m5-item-purchase { position: sticky; top: 98px; }
.m5-item-purchase h1 { margin: 9px 0 14px; color: var(--m5-ink); font-size: 34px; line-height: 1.06; letter-spacing: -.04em; }
.m5-item-price { margin-bottom: 18px; font-size: 30px; font-weight: 950; }
.m5-seller-card { padding: 16px; display: grid; gap: 4px; border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff; color: var(--m5-ink); text-decoration: none; }
.m5-seller-card span,
.m5-seller-card small { color: var(--m5-muted); }
.m5-seller-card strong { font-size: 20px; }
.m5-seller-showcase { padding: 0; gap: 0; overflow: hidden; border-color: #bfdbfe; background: #fff; box-shadow: 0 12px 28px rgba(37, 99, 235, .12); }
.m5-seller-cover { height: 94px; display: block; overflow: hidden; background: linear-gradient(135deg, var(--m5-seller-primary), #0f172a 72%); }
.m5-seller-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.m5-seller-cover .m5-seller-cover-placeholder { height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .78); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.m5-seller-identity { padding: 0 15px 12px; display: flex; align-items: end; gap: 11px; color: var(--m5-ink) !important; }
.m5-seller-logo { width: 64px; height: 64px; margin-top: -25px; flex: 0 0 64px; border: 4px solid #fff; border-radius: 16px; object-fit: cover; background: #fff; box-shadow: 0 6px 16px rgba(15, 23, 42, .18); }
.m5-seller-logo-fallback { display: grid; place-items: center; background: var(--m5-seller-primary); color: #fff !important; font-size: 27px; font-weight: 950; }
.m5-seller-copy { min-width: 0; display: grid; gap: 2px; color: var(--m5-ink) !important; }
.m5-seller-copy small { font-size: 10px; font-weight: 750; }
.m5-seller-copy strong { overflow: hidden; color: var(--m5-ink); font-size: 18px; text-overflow: ellipsis; }
.m5-seller-copy > span { overflow: hidden; color: var(--m5-muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.m5-seller-visit { margin: 0 15px 15px; padding: 11px 13px; display: flex; justify-content: space-between; border-radius: 10px; background: var(--m5-seller-primary); color: #fff !important; font-size: 12px; font-weight: 900; }
.m5-seller-visit b { color: var(--m5-seller-accent); }
.m5-seller-showcase-wide { margin-top: 22px; grid-template-columns: minmax(0, 1fr) auto; border-radius: 22px; box-shadow: 0 16px 38px rgba(37, 99, 235, .14); }
.m5-seller-showcase-wide .m5-seller-cover { height: clamp(190px, 23vw, 280px); grid-column: 1 / -1; }
.m5-seller-showcase-wide .m5-seller-identity { padding: 0 30px 24px; grid-column: 1; gap: 18px; }
.m5-seller-showcase-wide .m5-seller-logo { width: 104px; height: 104px; margin-top: -43px; flex-basis: 104px; border-width: 5px; border-radius: 24px; }
.m5-seller-showcase-wide .m5-seller-copy { gap: 3px; }
.m5-seller-showcase-wide .m5-seller-copy small { color: var(--m5-seller-primary); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.m5-seller-showcase-wide .m5-seller-copy strong { font-size: 28px; }
.m5-seller-showcase-wide .m5-seller-copy > span { max-width: 720px; overflow: visible; font-size: 14px; line-height: 1.5; text-overflow: clip; white-space: normal; }
.m5-seller-showcase-wide .m5-seller-visit { min-width: 190px; margin: 0 30px 24px 12px; padding: 14px 18px; grid-column: 2; align-self: center; font-size: 14px; }
.m5-item-facts { margin: 18px 0 0; display: grid; }
.m5-item-facts div { padding: 12px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--m5-line); }
.m5-item-facts dt { color: var(--m5-muted); font-weight: 750; }
.m5-item-facts dd { margin: 0; text-align: right; font-weight: 850; }
.m5-item-note { padding: 13px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-weight: 750; }
.m5-item-status-row { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m5-item-status-row span,
.m5-quick-badges span {
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 850;
}
.m5-item-status-row .m5-stock-pill { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.m5-quick-badges { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.m5-photo-caption { margin: 13px 4px 0; color: var(--m5-muted); font-size: 12px; line-height: 1.55; }
.m5-item-photo-empty { min-height: 430px; display: grid; place-items: center; border-radius: 14px; background: #eef2f7; color: #94a3b8; }
.m5-item-page { --m5-detail-radius: 20px; }
.m5-detail-section { margin-top: 22px; padding: 28px; border: 1px solid var(--m5-line); border-radius: var(--m5-detail-radius); background: #fff; box-shadow: 0 9px 26px rgba(15, 23, 42, .04); }
.m5-detail-heading { margin-bottom: 19px; }
.m5-detail-heading h2,
.m5-detail-panel h2 { margin: 5px 0 0; color: var(--m5-ink); font-size: 24px; letter-spacing: -.035em; }
.m5-detail-heading p,
.m5-detail-panel > p,
.m5-detail-panel li,
.m5-muted-copy { color: #475569; font-size: 14px; line-height: 1.65; }
.m5-detail-heading p { margin: 7px 0 0; }
.m5-detail-fact-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.m5-detail-fact-grid > div { min-width: 0; padding: 15px; border: 1px solid var(--m5-line); border-radius: 13px; background: #f8fafc; }
.m5-detail-fact-grid dt,
.m5-panel-facts dt { margin-bottom: 6px; color: var(--m5-muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.m5-detail-fact-grid dd,
.m5-panel-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--m5-ink); font-size: 14px; font-weight: 800; line-height: 1.45; }
.m5-description-section { border-left: 5px solid var(--m5-primary); }
.m5-long-copy { margin: 0; white-space: pre-line; color: #334155; font-size: 15px; line-height: 1.75; }
.m5-detail-two-column { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.m5-detail-panel { padding: 25px; border: 1px solid var(--m5-line); border-radius: var(--m5-detail-radius); background: #fff; box-shadow: 0 9px 26px rgba(15, 23, 42, .04); }
.m5-detail-panel > p:last-child { margin-bottom: 0; }
.m5-detail-alert { border-color: #fecaca; background: #fffafa; }
.m5-detail-warn { border-color: #fed7aa; background: #fffaf3; }
.m5-strong-warning { color: #b91c1c !important; font-weight: 850; }
.m5-panel-facts { margin: 17px 0; display: grid; }
.m5-panel-facts > div { padding: 10px 0; border-bottom: 1px solid var(--m5-line); }
.m5-detail-info-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.m5-detail-panel ul { margin: 12px 0 0; padding-left: 20px; }
.m5-detail-panel a { color: var(--m5-primary); font-weight: 800; }

/* Seller Center remains intentionally separate and dark. */
.m5-seller-body { background: #0b1120; }
.m5-seller-body .m5-topbar { background: #0f172a; border-color: #253047; }
.m5-seller-body .m5-brand,
.m5-seller-body .m5-topbar nav a { color: #fff; }
.m5-seller-hero { background: radial-gradient(circle at 90% 10%, #1d4ed8, transparent 42%), #111827; }
.m5-feature-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.m5-feature-row span { padding: 9px 13px; border: 1px solid #334155; border-radius: 999px; color: #dbeafe; font-size: 13px; }
.m5-two-column { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.m5-panel { padding: 28px; border: 1px solid #273449; border-radius: 20px; background: #111827; color: #fff; }
.m5-panel h2 { color: #fff; }
.m5-panel p { color: #94a3b8; line-height: 1.55; }
.m5-form { margin-top: 22px; display: grid; gap: 14px; }
.m5-form label { display: grid; gap: 7px; color: #cbd5e1; font-size: 13px; font-weight: 750; }
.m5-form input,
.m5-form textarea { width: 100%; padding: 12px; border: 1px solid #334155; border-radius: 10px; background: #0f172a; color: #fff; }
.m5-form textarea { min-height: 90px; resize: vertical; }
.m5-form output { min-height: 20px; color: #93c5fd; }
.m5-disabled { opacity: .5; cursor: not-allowed; }
.m5-stores-panel { margin-top: 20px; }
.m5-store-list { margin-top: 18px; display: grid; gap: 10px; }
.m5-store-list article { padding: 16px; display: flex; justify-content: space-between; gap: 18px; border: 1px solid #334155; border-radius: 13px; }
.m5-store-list article div { display: grid; gap: 3px; }
.m5-store-list article span { color: #94a3b8; font-size: 13px; }
.m5-status { white-space: nowrap; }
.m5-manage-store { margin-top: -2px; display: block; text-align: center; }
.m5-workspace-heading h1 { margin: 7px 0 8px; color: #fff; font-size: clamp(34px, 5vw, 50px); letter-spacing: -.05em; }
.m5-workspace-picker { margin-top: 20px; display: grid; gap: 12px; }
.m5-workspace-choice { padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid #334155; border-radius: 17px; background: #111827; color: #fff; text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.m5-workspace-choice:hover { transform: translateY(-2px); border-color: #60a5fa; }
.m5-workspace-choice > img,
.m5-workspace-logo { width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.22); border-radius: 15px; object-fit: cover; background: var(--m5-primary); color: #fff; font-size: 23px; font-weight: 950; }
.m5-workspace-choice-copy { min-width: 0; display: grid; gap: 3px; }
.m5-workspace-choice-copy small { color: #60a5fa; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.m5-workspace-choice-copy strong { overflow: hidden; font-size: 20px; text-overflow: ellipsis; }
.m5-workspace-choice-copy > span,
.m5-workspace-choice > .m5-status { color: #94a3b8; font-size: 12px; }
.m5-workspace-create-note { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.m5-workspace-create-note h2 { font-size: 23px; }
.m5-workspace-create-note p { max-width: 520px; margin: 0; }
.m5-workspace-shell { max-width: 1180px; }
.m5-workspace-hero { overflow: hidden; border: 1px solid #334155; border-radius: 24px; background: #111827; color: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.m5-workspace-cover { height: 180px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--m5-workspace-primary), #0f172a 76%); }
.m5-workspace-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.m5-workspace-cover > span { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.m5-workspace-identity { padding: 0 28px 25px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.m5-workspace-identity > img,
.m5-workspace-identity > .m5-workspace-logo { width: 96px; height: 96px; margin-top: -39px; border: 5px solid #111827; border-radius: 22px; object-fit: cover; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.m5-workspace-identity h1 { margin: 3px 0; color: #fff; font-size: 34px; letter-spacing: -.045em; }
.m5-workspace-identity p { margin: 0; color: #94a3b8; }
.m5-workspace-state { padding: 8px 12px; border: 1px solid #334155; border-radius: 999px; color: #dbeafe; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.m5-workspace-summary { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.m5-workspace-summary article { padding: 19px; display: grid; gap: 5px; border: 1px solid #273449; border-radius: 16px; background: #111827; }
.m5-workspace-summary span { color: #60a5fa; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.m5-workspace-summary strong { overflow-wrap: anywhere; color: #fff; font-size: 18px; }
.m5-workspace-summary small { color: #94a3b8; }
.m5-workspace-layout { margin-top: 18px; display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 18px; align-items: start; }
.m5-workspace-nav { padding: 10px; display: grid; gap: 5px; border: 1px solid #273449; border-radius: 17px; background: #111827; }
.m5-workspace-nav a { padding: 13px; display: grid; gap: 3px; border-radius: 11px; color: #e2e8f0; text-decoration: none; }
.m5-workspace-nav a:hover,
.m5-workspace-nav a.is-active { background: #1e3a8a; }
.m5-workspace-nav span { font-weight: 850; }
.m5-workspace-nav small { color: #94a3b8; }
.m5-workspace-nav .m5-nav-label { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.m5-message-count { min-width: 24px; padding: 3px 7px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 11px; line-height: 1.4; text-align: center; }
.m5-public-nav .m5-nav-messages { display: inline-flex; gap: 7px; align-items: center; }
.m5-workspace-content { padding: 25px; border: 1px solid #273449; border-radius: 20px; background: #111827; }
.m5-workspace-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.m5-workspace-section-head h2 { margin: 5px 0 0; color: #fff; font-size: 29px; }
.m5-workspace-section-head > span { color: #94a3b8; font-size: 12px; }
.m5-operation-grid { margin-top: 19px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.m5-legacy-bridge { margin-top: 19px; padding: 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #1d4ed8; border-radius: 15px; background: #172554; color: #fff; }
.m5-legacy-bridge > div { display: grid; gap: 5px; }
.m5-legacy-bridge span { color: #bfdbfe; font-size: 12px; line-height: 1.5; }
.m5-legacy-bridge form { margin: 0; flex: 0 0 auto; }
.m5-legacy-bridge.is-locked { border-color: #334155; background: #0f172a; }
.m5-legacy-bridge.is-locked span { color: #94a3b8; }
.m5-operation-card { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 13px; border: 1px solid #334155; border-radius: 15px; background: #0f172a; }
.m5-operation-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #1d4ed8; color: #fff; font-weight: 950; }
.m5-operation-card h3 { margin: 1px 0 6px; color: #fff; }
.m5-operation-card p { margin: 0; color: #94a3b8; font-size: 12px; line-height: 1.55; }
.m5-operation-state { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid #273449; color: #93c5fd; font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.m5-workspace-boundary { margin-top: 16px; padding: 15px; display: grid; gap: 4px; border: 1px solid #14532d; border-radius: 13px; background: #052e22; color: #d1fae5; }
.m5-workspace-boundary span { color: #a7f3d0; font-size: 12px; line-height: 1.5; }
.m5-branding-intro h1 { margin: 7px 0 0; color: #fff; font-size: 38px; letter-spacing: -.045em; }
.m5-branding-layout { margin-top: 20px; display: grid; grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.m5-branding-editor h2,
.m5-branding-preview-panel h2 { margin-bottom: 4px; }
.m5-upload-form { padding: 18px 0; border-bottom: 1px solid #334155; }
.m5-upload-form input[type="file"] { cursor: pointer; }
.m5-upload-form small { color: #94a3b8; font-weight: 500; line-height: 1.45; }
.m5-branding-details-form { margin-top: 20px; }
.m5-color-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m5-color-fields input[type="color"] { height: 48px; padding: 5px; cursor: pointer; }
.m5-branding-preview-panel { position: sticky; top: 96px; }
.m5-brand-preview { margin-top: 20px; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 20px; background: #fff; color: var(--m5-ink); box-shadow: 0 18px 45px rgba(0, 0, 0, .22); }
.m5-brand-preview [hidden] { display: none !important; }
.m5-brand-preview-cover { height: 220px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--m5-preview-primary), #0f172a 74%); }
.m5-brand-preview-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.m5-brand-preview-cover span { color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.m5-brand-preview-identity { padding: 0 24px 18px; display: flex; align-items: end; gap: 16px; }
.m5-brand-preview-identity > img,
.m5-brand-preview-logo-empty { width: 92px; height: 92px; margin-top: -38px; flex: 0 0 92px; border: 5px solid #fff; border-radius: 22px; object-fit: cover; background: #fff; box-shadow: 0 8px 22px rgba(15, 23, 42, .22); }
.m5-brand-preview-logo-empty { display: grid; place-items: center; background: var(--m5-preview-primary); color: #fff; font-size: 38px; font-weight: 950; }
.m5-brand-preview-identity > div { min-width: 0; display: grid; }
.m5-brand-preview-identity small { color: var(--m5-preview-primary); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.m5-brand-preview-identity strong { color: var(--m5-ink); font-size: 25px; }
.m5-brand-preview-identity p { margin: 4px 0 0; color: var(--m5-muted); font-size: 13px; line-height: 1.45; }
.m5-brand-preview-button { margin: 0 24px 24px; padding: 12px 16px; display: flex; justify-content: center; border-radius: 10px; background: var(--m5-preview-primary); color: #fff; font-weight: 900; }
.m5-branding-boundary { margin: 18px 0 0 !important; color: #94a3b8 !important; font-size: 12px; }
.m5-error-card { margin-top: 10vh; padding: 40px; border: 1px solid var(--m5-line); border-radius: 22px; background: #fff; }

@media (max-width: 960px) {
  .m5-hero { grid-template-columns: 1fr; }
  .m5-hero-card { max-width: 620px; }
  .m5-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m5-two-column,
  .m5-item-layout,
  .m5-detail-two-column,
  .m5-branding-layout,
  .m5-workspace-layout { grid-template-columns: 1fr; }
  .m5-item-purchase { position: static; }
  .m5-branding-preview-panel { position: static; }
  .m5-detail-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m5-detail-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m5-workspace-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .m5-topbar-inner { min-height: 68px; width: min(100% - 22px, 1180px); }
  .m5-brand-copy strong { font-size: 15px; }
  .m5-public-nav { gap: 4px; }
  .m5-public-nav a { padding: 9px 10px; font-size: 12px; }
  .m5-account-menu summary { padding-right: 7px; }
  .m5-account-name { display: none; }
  .m5-account-panel { position: fixed; top: 70px; right: 11px; width: min(280px, calc(100vw - 22px)); }
  .m5-shell { width: min(100% - 22px, 1180px); padding-top: 18px; }
  .m5-hero { padding: 29px 21px; border-radius: 20px; }
  .m5-hero h1 { font-size: 39px; }
  .m5-search { display: grid; }
  .m5-search button { width: 100%; }
  .m5-trust-row span:last-child { display: none; }
  .m5-section-head { align-items: start; }
  .m5-grid { grid-template-columns: 1fr; }
  .m5-card-media > img,
  .m5-card-media > .m5-placeholder { height: 250px; }
  .m5-join-banner { padding: 25px 21px; display: grid; }
  .m5-join-actions { justify-content: space-between; }
  .m5-footer > div { padding: 22px 0; display: grid; }
  .m5-store-identity { display: grid; align-items: start; }
  .m5-store-list article { display: grid; }
  .m5-workspace-choice { grid-template-columns: auto minmax(0, 1fr); }
  .m5-workspace-choice > .m5-status { grid-column: 2; }
  .m5-workspace-create-note { display: grid; }
  .m5-workspace-cover { height: 120px; }
  .m5-workspace-identity { padding: 0 18px 20px; grid-template-columns: auto 1fr; align-items: center; }
  .m5-workspace-identity > img,
  .m5-workspace-identity > .m5-workspace-logo { width: 72px; height: 72px; margin-top: -28px; border-radius: 18px; }
  .m5-workspace-identity h1 { font-size: 27px; }
  .m5-workspace-state { grid-column: 2; justify-self: start; }
  .m5-workspace-summary,
  .m5-operation-grid,
  .m5-workspace-nav { grid-template-columns: 1fr; }
  .m5-workspace-section-head { display: grid; }
  .m5-color-fields { grid-template-columns: 1fr; }
  .m5-brand-preview-cover { height: 150px; }
  .m5-brand-preview-identity { padding-inline: 17px; }
  .m5-detail-section,
  .m5-detail-panel { padding: 21px; }
  .m5-detail-fact-grid,
  .m5-detail-info-grid { grid-template-columns: 1fr; }
  .m5-item-photo-empty { min-height: 280px; }
  .m5-seller-showcase-wide { grid-template-columns: 1fr; }
  .m5-seller-showcase-wide .m5-seller-cover { height: 155px; grid-column: 1; }
  .m5-seller-showcase-wide .m5-seller-identity { padding: 0 18px 18px; grid-column: 1; align-items: center; }
  .m5-seller-showcase-wide .m5-seller-logo { width: 78px; height: 78px; margin-top: -30px; flex-basis: 78px; border-radius: 19px; }
  .m5-seller-showcase-wide .m5-seller-copy strong { font-size: 22px; }
  .m5-seller-showcase-wide .m5-seller-copy > span { font-size: 12px; }
  .m5-seller-showcase-wide .m5-seller-visit { min-width: 0; margin: 0 18px 18px; grid-column: 1; }
}

/* ------------------------------------------------------------------
   Torque mascot + "Meet the mascot" section (F1 direction). Additive
   only — no selector above this point is modified or removed.
   ------------------------------------------------------------------ */
.m5-meet {
  margin-top: 40px;
  padding: 32px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--m5-line);
  border-radius: 22px;
  background: #fff;
}
.m5-meet-figure {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.m5-meet-figure::before {
  content: "";
  position: absolute;
  width: 126px;
  height: 126px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .16), rgba(37, 99, 235, 0) 68%);
  animation: m5-mascot-halo 3.8s ease-in-out infinite;
}
.m5-meet-copy h2 { margin: 0 0 8px; color: var(--m5-ink); font-size: 21px; letter-spacing: -.02em; }
.m5-meet-copy p { margin: 0 0 10px; max-width: 62ch; color: var(--m5-muted); font-size: 13.5px; line-height: 1.6; }
.m5-meet-note { color: #94a3b8; font-size: 12px; }
.m5-meet-note b { color: var(--m5-good); }

.m5-mascot-anchor { position: relative; display: inline-block; }
.m5-mascot-pop {
  position: absolute;
  top: -58px;
  left: -6px;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  opacity: 0;
  transform: translateY(18px) scale(.68) rotate(-6deg);
  filter: drop-shadow(0 8px 12px rgba(37, 99, 235, .18));
  transition: opacity .24s ease, transform .48s cubic-bezier(.2, 1.55, .42, 1);
  pointer-events: none;
}
.m5-mascot-pop.show {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}
.m5-mascot-pop.is-leaving {
  transform: translateY(-12px) scale(.84) rotate(4deg);
  transition-timing-function: ease-in;
}
.m5-mascot-bubble {
  padding: 7px 11px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
  color: var(--m5-ink);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  transform-origin: 0 100%;
}
.m5-mascot-pop.show .m5-mascot-bubble {
  animation: m5-mascot-bubble-pop .5s .16s cubic-bezier(.2, 1.5, .4, 1) both;
}
.m5-mascot-idle {
  animation: m5-mascot-breathe 3.4s ease-in-out infinite;
  transform-origin: 50% 100%;
  overflow: visible;
}
.m5-mascot-head,
.m5-mascot-arm-right,
.m5-mascot-foot,
.m5-mascot-glint,
.m5-mascot-sparkles,
.m5-mascot-shadow {
  transform-box: view-box;
}
.m5-mascot-head {
  transform-origin: 60px 89px;
  animation: m5-mascot-head-look 6.2s ease-in-out infinite;
}
.m5-mascot-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: m5-mascot-blink 4.8s ease-in-out infinite;
}
.m5-mascot-arm-right {
  transform-origin: 80px 101px;
}
.m5-mascot-stage .m5-mascot-arm-right {
  animation: m5-mascot-wave 6.2s ease-in-out infinite;
}
.m5-mascot-stage .m5-mascot-glint {
  animation: m5-mascot-glint 3.1s ease-in-out infinite;
}
.m5-mascot-stage .m5-mascot-sparkles {
  animation: m5-mascot-sparkle 3.1s ease-in-out infinite;
}
.m5-mascot-shadow {
  transform-origin: 60px 143px;
  animation: m5-mascot-shadow-pulse 3.4s ease-in-out infinite;
}
.m5-mascot-pop.show .m5-mascot-arm-right {
  animation: m5-mascot-celebrate-wave .78s .08s ease-in-out 2;
}
.m5-mascot-pop.show .m5-mascot-sparkles {
  animation: m5-mascot-pop-sparkle .72s .12s ease-out both;
}
.m5-mascot-pop.show .m5-mascot-foot-left {
  transform-origin: 52px 126px;
  animation: m5-mascot-happy-feet .42s .14s ease-in-out 2;
}
.m5-mascot-pop.show .m5-mascot-foot-right {
  transform-origin: 68px 126px;
  animation: m5-mascot-happy-feet .42s .28s ease-in-out 2 reverse;
}
@keyframes m5-mascot-breathe {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-1.5deg); }
}
@keyframes m5-mascot-halo {
  0%, 100% { opacity: .55; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes m5-mascot-head-look {
  0%, 26%, 100% { transform: rotate(0deg); }
  32%, 43% { transform: rotate(-5deg); }
  49%, 61% { transform: rotate(4deg); }
  68% { transform: rotate(0deg); }
}
@keyframes m5-mascot-blink {
  0%, 43%, 47%, 72%, 76%, 100% { transform: scaleY(1); }
  45%, 74% { transform: scaleY(.12); }
}
@keyframes m5-mascot-wave {
  0%, 54%, 82%, 100% { transform: rotate(0deg); }
  59%, 67%, 75% { transform: rotate(-18deg); }
  63%, 71%, 79% { transform: rotate(9deg); }
}
@keyframes m5-mascot-celebrate-wave {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(-24deg); }
  72% { transform: rotate(11deg); }
}
@keyframes m5-mascot-glint {
  0%, 66%, 100% { opacity: .45; transform: scale(1); }
  74% { opacity: 1; transform: scale(2.1); }
  82% { opacity: .2; transform: scale(.7); }
}
@keyframes m5-mascot-sparkle {
  0%, 64%, 100% { opacity: 0; transform: scale(.55) rotate(-8deg); }
  73% { opacity: 1; transform: scale(1.08) rotate(3deg); }
  84% { opacity: 0; transform: scale(1.3) rotate(8deg); }
}
@keyframes m5-mascot-pop-sparkle {
  0% { opacity: 0; transform: scale(.35) rotate(-12deg); }
  45% { opacity: 1; transform: scale(1.2) rotate(5deg); }
  100% { opacity: 0; transform: scale(1.55) rotate(12deg); }
}
@keyframes m5-mascot-shadow-pulse {
  0%, 100% { opacity: .14; transform: scaleX(1); }
  50% { opacity: .08; transform: scaleX(.78); }
}
@keyframes m5-mascot-happy-feet {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px) rotate(-7deg); }
}
@keyframes m5-mascot-bubble-pop {
  0% { opacity: 0; transform: translateY(5px) scale(.72); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .m5-meet-figure::before,
  .m5-mascot-idle,
  .m5-mascot-head,
  .m5-mascot-eye,
  .m5-mascot-arm-right,
  .m5-mascot-glint,
  .m5-mascot-sparkles,
  .m5-mascot-shadow,
  .m5-mascot-foot,
  .m5-mascot-bubble { animation: none !important; }
  .m5-mascot-pop { transition: opacity .15s linear; transform: none !important; }
}
@media (max-width: 900px) {
  .m5-meet { grid-template-columns: 1fr; text-align: center; }
  .m5-meet-copy p { margin-left: auto; margin-right: auto; }
}

/* M7 local marketplace cart and checkout */
.m5-cart-count { min-width: 21px; height: 21px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: #e2e8f0; color: var(--m5-ink); font-size: 11px; font-weight: 950; }
.m5-signed-in-label { padding: 9px 4px; color: var(--m5-muted); font-size: 12px; font-weight: 750; }
.m5-add-cart { margin: 18px 0 4px; display: grid; grid-template-columns: 92px 1fr; gap: 9px; }
.m5-add-cart label { display: grid; gap: 5px; color: var(--m5-muted); font-size: 11px; font-weight: 850; }
.m5-add-cart input { width: 100%; padding: 12px; border: 1px solid var(--m5-line); border-radius: 10px; font: inherit; }
.m5-add-cart button { align-self: end; padding: 13px 18px; border: 0; border-radius: 10px; background: var(--m5-primary); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.m5-add-cart button:disabled { opacity: .55; cursor: wait; }
.m5-add-cart output { grid-column: 1 / 2; min-height: 18px; color: var(--m5-muted); font-size: 12px; font-weight: 750; }
.m5-add-cart > a { grid-column: 2; justify-self: end; color: var(--m5-primary); font-size: 12px; font-weight: 900; }
.m5-checkout-shell { max-width: 1180px; }
.m5-checkout-heading { margin-bottom: 24px; }
.m5-checkout-heading h1 { margin: 7px 0; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.05em; }
.m5-checkout-heading p { max-width: 760px; margin: 0; color: var(--m5-muted); line-height: 1.6; }
.m5-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.m5-cart-groups { display: grid; gap: 17px; }
.m5-cart-store, .m5-cart-summary, .m5-checkout-form-card, .m5-order-stores > article, .m5-order-confirmation, .m5-checkout-empty { border: 1px solid var(--m5-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); }
.m5-cart-store > header, .m5-order-stores article > header { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--m5-line); }
.m5-cart-store h2, .m5-order-stores h2 { margin: 4px 0 0; font-size: 21px; }
.m5-cart-store header a, .m5-order-stores header a { color: var(--m5-primary); font-size: 12px; font-weight: 850; text-decoration: none; }
.m5-cart-row { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 150px 90px auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--m5-line); }
.m5-cart-row:last-child { border-bottom: 0; }
.m5-cart-item-copy { display: grid; gap: 5px; }
.m5-cart-item-copy a, .m5-order-item a { color: var(--m5-ink); font-weight: 850; text-decoration: none; }
.m5-cart-item-copy span, .m5-order-item span { color: var(--m5-muted); font-size: 12px; }
.m5-cart-item-copy strong { color: #b91c1c; font-size: 12px; }
.m5-cart-row form { display: flex; align-items: end; gap: 7px; }
.m5-cart-row form label { display: grid; gap: 4px; color: var(--m5-muted); font-size: 10px; font-weight: 850; }
.m5-cart-row input { width: 62px; padding: 9px; border: 1px solid var(--m5-line); border-radius: 9px; font: inherit; }
.m5-cart-row form button, .m5-cart-remove { padding: 10px; border: 1px solid var(--m5-line); border-radius: 9px; background: #fff; color: #334155; font-weight: 800; cursor: pointer; }
.m5-cart-remove { color: #b91c1c; }
.m5-cart-line-total { text-align: right; }
.m5-cart-message { min-height: 22px; color: #b91c1c; font-weight: 750; }
.m5-cart-summary { position: sticky; top: 98px; padding: 23px; }
.m5-cart-summary > div { padding: 15px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--m5-line); }
.m5-cart-summary > div strong { text-align: right; }
.m5-cart-summary p { color: var(--m5-muted); font-size: 12px; line-height: 1.55; }
.m5-cart-summary .m5-button { margin-top: 9px; display: block; text-align: center; }
.m5-checkout-empty { padding: 44px; text-align: center; }
.m5-checkout-empty h1, .m5-checkout-empty h2 { margin-top: 0; }
.m5-checkout-empty p { margin-bottom: 24px; color: var(--m5-muted); }
.m5-checkout-form-card { padding: 26px; }
.m5-checkout-form-card > h2 { margin-top: 0; }
.m5-checkout-form-card > p { color: var(--m5-muted); line-height: 1.6; }
.m5-checkout-form-card form { margin: 22px 0 12px; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: end; }
.m5-checkout-form-card form label { display: grid; gap: 7px; color: #475569; font-size: 12px; font-weight: 850; }
.m5-checkout-form-card input, .m5-checkout-form-card select { width: 100%; padding: 12px; border: 1px solid var(--m5-line); border-radius: 10px; background: #fff; font: inherit; }
.m5-checkout-form-card output { min-height: 22px; display: block; color: #475569; font-size: 13px; font-weight: 750; }
.m5-quote { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--m5-line); }
.m5-quote [data-quote-groups] { display: grid; gap: 8px; }
.m5-quote [data-quote-groups] article { padding: 13px; display: flex; justify-content: space-between; gap: 14px; border-radius: 11px; background: #f8fafc; }
.m5-quote [data-quote-groups] span { color: var(--m5-muted); }
.m5-quote-total { margin: 15px 0; padding: 17px 0; display: flex; justify-content: space-between; border-block: 1px solid var(--m5-line); font-size: 20px; }
.m5-test-notice { padding: 15px; border: 1px solid #fed7aa; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 13px; line-height: 1.55; }
.m5-quote .m5-button { width: 100%; margin-top: 14px; }
.m5-order-list { display: grid; gap: 12px; }
.m5-order-list > a { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--m5-line); border-radius: 16px; background: #fff; color: var(--m5-ink); text-decoration: none; }
.m5-order-list h2 { margin: 5px 0; }
.m5-order-list p { margin: 0; color: var(--m5-muted); }
.m5-order-confirmation { margin-bottom: 20px; padding: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.m5-order-confirmation h1 { margin: 5px 0; }
.m5-order-confirmation p { margin: 0; color: var(--m5-muted); }
.m5-order-check { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--m5-good-bg); color: var(--m5-good); font-size: 26px; font-weight: 950; }
.m5-order-stores { display: grid; gap: 16px; }
.m5-order-item { padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; border-bottom: 1px solid var(--m5-line); }
.m5-order-stores footer { padding: 17px 20px; display: flex; justify-content: space-between; background: #f8fafc; }
.m5-order-stores + .m5-test-notice { margin-top: 20px; }
@media (max-width: 850px) {
  .m5-cart-layout { grid-template-columns: 1fr; }
  .m5-cart-summary { position: static; }
  .m5-cart-row { grid-template-columns: 1fr auto; }
  .m5-cart-row form { grid-column: 1; }
  .m5-cart-line-total { grid-column: 2; grid-row: 1; }
  .m5-cart-remove { grid-column: 2; }
  .m5-checkout-form-card form { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .m5-signed-in-label { display: none; }
  .m5-add-cart { grid-template-columns: 78px 1fr; }
  .m5-cart-row { padding: 16px; }
  .m5-order-confirmation { grid-template-columns: auto 1fr; }
  .m5-order-confirmation > strong { grid-column: 2; }
  .m5-order-item { grid-template-columns: 1fr auto; }
  .m5-order-item span { grid-column: 1; }
}
