/* ==========================================================================
   Oranged Software store + cart — shared stylesheet (plain CSS, no build).
   Brand tokens mirror site/src/styles/global.css.
   ========================================================================== */

:root {
  --brand: #fd881a;
  --brand-hover: #fcb628;
  --brand-deep: #fc8703;
  --brand-ink: #fd651a;
  --accent: #9ad113;
  --accent-hover: #b9e64a;
  --accent-deep: #78a900;
  --cloud: #2973bd;
  --cloud-light: #7eb3e8;
  --ink: #4a4a4a;
  --body: #5f5f5f;
  --muted: #8a8a8a;
  --surface: #f4f4f4;
  --surface-2: #fafafa;
  --line: #e6e6e6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px -18px rgba(0, 0, 0, 0.25);
  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--brand-ink);
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand);
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---- Header --------------------------------------------------------- */
.st-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}
.st-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.st-logo {
  flex-shrink: 0;
  display: inline-flex;
}
.st-logo img {
  height: 34px;
  width: auto;
}
.st-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.st-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(74, 74, 74, 0.75);
  text-decoration: none;
  border-radius: 6px;
}
.st-nav a:hover,
.st-nav a[aria-current='page'] {
  color: var(--accent-deep);
  background: var(--surface);
}

/* ---- Page container ---------------------------------------------- */
.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.st-main {
  padding: 2.75rem 0 4rem;
}
/* neutralise the legacy fixed-width wrappers */
#outer_wrapper,
#wrapper,
#content {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  float: none !important;
}

/* ---- Buttons ---------------------------------------------------- */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.st-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}
.st-btn:active {
  transform: translateY(1px);
}
.st-btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.st-btn--ghost:hover {
  background: var(--surface);
  border-color: var(--muted);
  color: var(--ink);
}

/* ========================================================================
   MODERN STORE PAGE  (store/index.php)
   ===================================================================== */
.st-store {
  max-width: 780px;
  margin: 0 auto;
  overflow-x: clip;   /* guard: nothing here should ever scroll the page sideways */
}

.st-promo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cloud-light), var(--cloud));
  color: #fff;
}
.st-promo img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.st-promo-text {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
}
.st-promo-text strong {
  font-weight: 700;
  font-size: 1rem;
}
.st-promo .st-btn--ghost {
  color: var(--cloud);
}
@media (max-width: 560px) {
  .st-promo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.15rem 1.25rem;
  }
  .st-promo img {
    width: 44px;
    height: 44px;
  }
  .st-promo-text {
    min-width: 0;
  }
  .st-promo .st-btn--ghost {
    align-self: stretch;
    text-align: center;
  }
}

.st-store-head {
  margin: 1.75rem 0 1rem;
}
.st-store-head p {
  margin: 0 0 1.25rem;
  color: var(--body);
  font-size: 0.95rem;
  text-align: center;
}
@media (max-width: 560px) {
  .st-store-head p {
    text-align: left; /* centred only on wider screens */
  }
}
.st-store-head p strong {
  color: var(--accent-deep);
  font-weight: 700;
}
.st-store-actions,
.st-store-foot {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.st-store-foot {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.st-sec {
  margin-top: 2.75rem;
}
.st-sec > h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* keeps an app icon glued to its product name and vertically centred on the line */
.st-titlegrp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  vertical-align: middle;
}
h2 .st-sec-sub,
h3 {
  vertical-align: middle;
}
.st-sec-sub {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.st-sec-lead {
  margin: -0.4rem 0 1.1rem;
  color: var(--body);
  max-width: 54ch;
}

/* product cards */
.st-cards {
  display: grid;
  gap: 0.75rem;
}
.st-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.st-card-main {
  flex: 1 1 260px;   /* wraps the buy block below once the card is narrow */
  min-width: 0;
}
.st-card-main h3 {
  margin: 0 0 0.2rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}
.st-card-main p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.st-save {
  color: var(--accent-deep);
  font-weight: 700;
}
.st-card-buy {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  white-space: nowrap;
  margin-left: auto;   /* pushes price+qty to the right edge of the card */
}
.st-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-deep);
}

/* quantity field: label + number on one line */
.st-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.st-qty input,
.st-qty input[type='number'] {
  width: 3.75rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding: 0.35rem 0.3rem;
}
.st-serial {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.75rem;
  min-width: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.st-serial input,
.st-serial input[type='text'] {
  width: 100%;
  min-width: 0;
  max-width: 340px;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  color: var(--ink);
}

/* multi-user / support selectable rows */
.st-packs {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;   /* <fieldset> defaults to min-content — let it shrink on mobile */
  display: grid;
  gap: 0.5rem;
}
.st-packs legend:not(.sr-only) {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.st-pack {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.st-pack:hover {
  border-color: var(--muted);
}
.st-pack:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, #fff);
}
.st-pack input {
  accent-color: var(--brand);
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.st-pack-name {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.st-pack-price {
  margin-left: auto;
  min-width: 0;
  font-weight: 700;
  color: var(--brand-deep);
  text-align: right;
}
.st-pack-price em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent-deep);
  margin-left: 0.4rem;
}
@media (max-width: 520px) {
  /* keep the name + price on one line; let only the fine-print wrap */
  .st-pack-price em {
    display: block;
    margin: 0.1rem 0 0;
  }
}

.st-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Form controls (shared) ----------------------------------- */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
input[type='password'],
select,
textarea {
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  min-width: 0;    /* iOS: let inputs shrink instead of forcing the page wider than the viewport */
  max-width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(253, 136, 26, 0.15);
}
input[type='radio'],
input[type='checkbox'] {
  accent-color: var(--brand);
}
label {
  cursor: pointer;
}

/* ---- Footer ------------------------------------------------------- */
.st-footer {
  margin-top: 3.5rem;
  background: var(--surface);
  font-size: 0.85rem;
}
.st-footer-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
}
@media (max-width: 560px) {
  .st-footer-top {
    gap: 1.75rem;
  }
  .st-footer-top > div {
    flex-basis: 100%;   /* stack the two columns instead of cramming them side by side */
    min-width: 0;
  }
}
.st-footer h2 {
  font-size: 1.1rem;
  font-weight: 300;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin: 0 0 0.75rem;
}
.st-social {
  display: flex;
  gap: 0.75rem;
}
.st-social a {
  color: var(--muted);
}
.st-social a:hover {
  color: var(--brand);
}
.st-mail-form {
  display: flex;
  width: 100%;
  max-width: 320px;
}
.st-mail-form input[type='email'] {
  flex: 1 1 auto;
  min-width: 0;    /* shrink to fit the column instead of widening the page */
  height: 42px;
  border-radius: 8px 0 0 8px;
  border-right: 0;
}
.st-mail-form button {
  flex: 0 0 auto;
  height: 42px;
  border: 0;
  border-radius: 0 8px 8px 0;
  padding: 0 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
  cursor: pointer;
}
.st-mail-form button:hover {
  background: var(--accent-hover);
}
.st-legal {
  background: rgba(230, 230, 230, 0.7);
}
.st-legal-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(74, 74, 74, 0.7);
}
.st-legal-inner nav {
  display: flex;
  gap: 1.25rem;
}

/* ========================================================================
   LEGACY FALLBACK  — cart/*.php and store/renew.php still use table markup.
   Keep it calm: constrained, borderless, clean controls, few rules.
   ===================================================================== */
.st-main > h1:first-child,
.st-main h1 {
  color: var(--ink);
}
.st-main table {
  border-collapse: collapse;
  width: 100% !important;
  margin: 0 auto 1rem;
}
.st-main td,
.st-main th {
  padding: 0.5rem 0.5rem;
  border: 0 !important;
  vertical-align: top;
}
.st-main hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}
/* collapse the runs of <br> the legacy pages use for spacing */
.st-main br + br + br,
.st-main br + br + br + br,
.st-main br + br + br + br + br {
  display: none;
}
/* legacy dotted-border wrappers -> soft cards */
.st-main div[style*='dotted'],
.st-main div[style*='dashed'] {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--surface-2) !important;
  padding: 1rem 1.25rem !important;
}
.st-main table.tableBlackBorder,
.st-main table.tableDarkGreyBorder,
.st-main table.tableDarkGreyBorderNoTD,
.st-main table.tableDarkGreyDoubleBorder,
.st-main table.tableDarkGreyBorderless,
.st-main table.tableGreyBorder,
.st-main table.tableGreyOutsideBorder {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.st-main table.tableBlackBorder td,
.st-main table.tableDarkGreyBorder td,
.st-main table.tableGreyBorder td {
  border-color: var(--line) !important;
}
.st-main tr.tableRowDarkGrey {
  background: var(--surface) !important;
}
.st-main tr.tableRowLightGrey {
  background: var(--surface-2) !important;
}

/* legacy typographic helper spans */
.focusedtext {
  font-weight: 700;
  color: var(--brand-deep);
}
.focusedtextorange {
  font-weight: 700;
  color: var(--brand);
}
.fineprint,
.noteSmall,
.smallBlack {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.liteColor {
  color: var(--muted);
  font-weight: 400;
}
.heading {
  color: var(--ink) !important;
  font-size: 1.15rem !important;
}
.red {
  color: #c0392b !important;
  font-family: var(--font) !important;
}
.miniIcon {
  vertical-align: -3px;
  margin-right: 3px;
}

/* legacy buttons */
.greenSubmitButton,
input.greenSubmitButton,
.btn_store {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.greenSubmitButton:hover,
.btn_store:hover {
  background: var(--accent-hover);
  color: #fff !important;
}
a.btn,
.btn,
.st-main input[type='submit'],
.st-main input[type='button'] {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
a.btn:hover,
.btn:hover,
.st-main input[type='submit']:hover {
  background: var(--brand-hover);
  color: #fff !important;
}
a.btn_white,
.btn_white {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 9px;
  background: #fff;
  color: var(--cloud) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.st-main input[type='submit'].greenSubmitButton {
  background: var(--accent);
}
.st-main input[type='submit'].greenSubmitButton:hover {
  background: var(--accent-hover);
}

/* ---- Small screens ------------------------------------------- */
@media (max-width: 720px) {
  .st-header-inner {
    height: auto;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 20px;
  }
  .st-nav {
    justify-content: center;
  }
  .st-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .st-card-buy {
    width: 100%;
    justify-content: space-between;
  }
  .st-main table,
  .st-main tbody,
  .st-main tr,
  .st-main td {
    display: block;
    width: 100% !important;
  }
  .st-main td {
    padding: 0.2rem 0;
  }
}

/* ========================================================================
   TEXT / FORM / CART PAGES  (renew, custom, cart, checkout, billing,
   preview, thank-you, message pages)
   ===================================================================== */
.st-page {
  max-width: 720px;
  margin: 0 auto;
}
.st-page > h1 {
  margin-bottom: 0.35rem;
}
.st-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
}
.st-msg p {
  max-width: 60ch;
}
.st-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.25rem 0 1.25rem;
}
.st-h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.st-h2:first-child,
.st-page > form > .st-h2:first-of-type {
  margin-top: 0.5rem;
}
.st-note--warn {
  color: var(--brand-deep);
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, #fff);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
}

/* simple stacked forms (renew, custom) */
.st-form {
  display: grid;
  gap: 1.1rem;
  max-width: 460px;
}
.st-field {
  display: grid;
  gap: 0.3rem;
}
.st-field-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.st-field input,
.st-field textarea {
  width: 100%;
}

/* button rows — consistent size + alignment */
.st-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.st-actions .st-btn {
  min-width: 9.5rem;
}
.st-actions--split {
  justify-content: space-between;
  align-items: center;
}
.st-actions-right {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* cart / order tables ------------------------------------------------- */
.st-cart {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

/* head + every prCartRow() row use the SAME fixed-layout table so columns
   line up. prCartRow emits <div style="dotted"><table width=100%><tr><td w=..%> */
.st-cart .st-cart-head,
.st-cart > div[style] table {
  table-layout: fixed;
  width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse;
}
.st-cart .st-cart-head {
  background: var(--surface);
}
.st-cart .st-cart-head th {
  padding: 0.65rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}
.st-cart .st-cart-head th[align="left"] {
  text-align: left;
}
.st-cart .st-cart-head th[align="right"] {
  text-align: right;
}

.st-cart > div[style] {
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  background: #fff !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.st-cart > div[style] td {
  padding: 0.7rem 0.75rem !important;
  border: 0 !important;
  vertical-align: middle !important;
  font-size: 0.9rem;
  color: var(--body);
  text-align: center;
}
.st-cart > div[style] td[align="left"] {
  text-align: left !important;
}
.st-cart > div[style] td[align="right"] {
  text-align: right !important;
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
}
.st-cart > div[style] td .focusedtext,
.st-cart > div[style] td .focusedtext b {
  color: var(--ink) !important;
  font-weight: 700;
}
.st-cart > div[style] td .fineprint {
  display: block;
  margin-top: 0.1rem;
}
.st-cart > div[style] input[type="text"] {
  width: 2.75rem;
  text-align: center;
  padding: 0.35rem 0.25rem;
  font-weight: 700;
}
.st-cart > div[style] input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
}

/* renew.php result rows */
.st-cart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
}
.st-cart-row > span {
  flex: 1;
  min-width: 8rem;
  font-size: 0.9rem;
}
.st-cart-row--bad {
  background: color-mix(in srgb, #c0392b 6%, #fff);
  color: #8a2a20;
}
.st-serial-in {
  width: 100%;
  max-width: 22rem;
}

.st-cart-total {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.75rem;
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
}
.st-cart-total span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.st-cart-total strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-deep);
}

/* order review key/value list (cart_preview) */
.st-review {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.1rem;
}
.st-review > div {
  display: flex;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.st-review dt {
  width: 7rem;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.st-review dd {
  margin: 0;
  color: var(--ink);
}
.st-review dd:empty::before {
  content: "\2014";
  color: var(--muted);
}

/* accepted-card logos on checkout */
.st-cards-accepted {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.st-cards-accepted img {
  height: 20px;
  width: auto;
}

/* legacy 2-column <table> forms (billing, questionnaire) — render each row
   as a stacked field: label on its own line, control below, left-aligned. */
.st-form-table {
  width: 100% !important;
  max-width: 520px;
  margin: 0.5rem 0 0;
  border-collapse: collapse;
}
.st-form-table td:first-child div,
.st-form-table td:first-child div[align="right"] {
  text-align: left !important;
}
.st-form-table tbody,
.st-form-table tr {
  display: block;
  height: auto !important;   /* kill the legacy height="40" attribute */
}
.st-form-table tr {
  margin-bottom: 1rem;
}
.st-form-table td {
  display: block;
  border: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  vertical-align: top;
}
/* pure-spacer rows (<td colspan=2 height="40px">&nbsp;</td>) — collapse them */
.st-form-table tr:has(> td[colspan][height]) {
  display: none;
}
/* the label cell (first td in a field row) */
.st-form-table tr td:first-child:not([colspan]) {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}
.st-form-table .red {
  color: #c0392b;
  margin-right: 3px;
}
.st-form-table input[type="text"],
.st-form-table input[type="email"],
.st-form-table select,
.st-form-table textarea {
  width: 100%;
  max-width: 100%;
}
.st-form-table input[size="4"],
.st-form-table input[size="7"] {
  width: 6rem;
}
.st-form-table select[name="CCExpireMonth"],
.st-form-table select[name="CCExpireYear"] {
  width: auto;
  min-width: 6.5rem;
  display: inline-block;
}
.st-form-table td[colspan] {
  margin-bottom: 0;
}
.st-form-table td[colspan] .st-h2 {
  margin: 2rem 0 0.5rem;
}
.st-form-table tr:first-child td[colspan] .st-h2 {
  margin-top: 0.5rem;
}
/* the questionnaire's OS checkbox cell keeps its inline list */
.st-form-table td span.fineprint input[type="checkbox"] {
  margin-right: 0.35rem;
}

/* ---- inline app icons (the store's own PNGs) — always 24x24, next to the name.
   The headings are flex + align-items:center, so the icon centres on the line. */
.st-ico {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
  flex-shrink: 0;
}
/* icon sits tight against the name it belongs to; the " + " gets a little air */
.st-card-main h3 .st-ico {
  margin-right: -0.05rem;
}

/* more obvious separation between store sections */
.st-sec {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 2px solid var(--line);
}
.st-sec:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.st-sec > h2 {
  font-size: 1.5rem;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 1.1rem;
}

/* card variant: serial field stacks under the description */
.st-card--stack {
  align-items: flex-start;
}
.st-card--stack .st-card-buy {
  align-self: center;
}

@media (max-width: 720px) {
  .st-actions--split {
    flex-direction: column;
    align-items: stretch;
  }
  .st-actions-right {
    justify-content: stretch;
  }
  .st-actions .st-btn,
  .st-actions-right .st-btn {
    flex: 1;
    min-width: 0;
  }
  .st-cart-head {
    display: none;
  }
  .st-cart > div[style] td,
  .st-cart-row > span {
    font-size: 0.85rem;
  }
  .st-form-table,
  .st-form-table tbody,
  .st-form-table tr,
  .st-form-table td {
    display: block;
    width: 100% !important;
  }
  .st-form-table td[align="right"],
  .st-form-table tr[height] td:first-child {
    text-align: left;
    padding-right: 0 !important;
    margin-bottom: 0.2rem;
    font-weight: 700;
  }
  .st-review > div {
    flex-direction: column;
    gap: 0.1rem;
  }
}

/* submit inputs styled as .st-btn must stay accent-green (beat legacy rules) */
input[type="submit"].st-btn,
input[type="button"].st-btn,
.st-page input[type="submit"].st-btn {
  background: var(--accent);
  color: #fff !important;
  border: 0;
}
input[type="submit"].st-btn:hover,
.st-page input[type="submit"].st-btn:hover {
  background: var(--accent-hover);
}
input[type="submit"].st-btn.st-btn--ghost {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
