/* LSTECH — made-to-order store: facts, steps, product cards with options and
   the order-code box. Colours fall back to the brand values so the code box
   also looks right on the theme's own WooCommerce product pages. */

.mto-code {
  --mto-ink: var(--ink, #0d2224);
  --mto-ink-2: var(--ink-2, #445a5c);
  --mto-ink-3: var(--ink-3, #7a8d8f);
  --mto-line: var(--line-strong, rgba(13, 34, 36, 0.26));
  --mto-teal: var(--teal, #17b8b8);
  --mto-teal-ink: var(--teal-ink, #087070);
  --mto-wash: var(--teal-wash, rgba(23, 184, 184, 0.12));
  --mto-signal: var(--signal, #d4213a);
  display: grid; gap: 8px; margin: 18px 0 14px;
}
.mto-code .lst-label { font: 500 11.5px/1.2 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--mto-ink-2); }
.mto-code__row { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--mto-line); border-radius: 999px; background: #fff; transition: border-color .25s, box-shadow .25s, background .25s; }
.mto-code__row:focus-within { border-color: var(--mto-teal); box-shadow: 0 0 0 4px var(--mto-wash); }
.mto-code input { flex: 1; min-width: 0; height: 38px; border: 0 !important; outline: 0; box-shadow: none !important; background: none !important; padding: 0 12px !important; margin: 0; font: 500 15px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--mto-ink); }
.mto-code input::placeholder { color: var(--mto-ink-3); letter-spacing: .08em; }
.mto-code__verify { flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--mto-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; }
.mto-code__verify:hover { background: var(--mto-teal-ink); }
.mto-code__msg { margin: 0; min-height: 2.9em; font-size: 13.5px; line-height: 1.45; color: var(--mto-ink-2); }
.mto-code__msg a { color: var(--mto-teal-ink); text-underline-offset: 3px; }
.mto-code__msg b { color: var(--mto-ink); font-weight: 600; }
.mto-code.is-checking .mto-code__verify { opacity: .6; pointer-events: none; }
.mto-code.is-invalid .mto-code__row { border-color: var(--mto-signal); }
.mto-code.is-invalid .mto-code__msg { color: var(--mto-signal); }
.mto-code.is-valid .mto-code__row { border-color: var(--mto-teal); background: var(--mto-wash); }
.mto-code.is-valid input { color: var(--mto-teal-ink); }
.mto-code.is-valid .mto-code__verify { background: none; color: var(--mto-teal-ink); box-shadow: inset 0 0 0 1px var(--mto-teal); }
.mto-ok { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; background: var(--mto-teal); color: #fff; font-size: 10px; vertical-align: -3px; }
/* Theme product pages: a locked button reads as locked. */
form.cart .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; }

/* "Made by Pioneer students · Verified by …" line (store cards and product pages). */
.mto-made { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--teal-ink, #087070); }
.mto-made svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.lst-product__body .mto-made { grid-column: 1 / -1; }
.summary .mto-made { margin: 0 0 1.2em; font-size: 14px; }

/* ---------- store cards ---------- */
.mto-card .mto-form { display: flex; flex-direction: column; }
.mto-opts { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.mto-opt { display: grid; gap: 8px; }
.mto-opt select { appearance: none; -webkit-appearance: none; height: 46px; padding: 0 38px 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230d2224' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center / 11px; font: 500 15px/1 var(--f-sans); color: var(--ink); cursor: pointer; }
.mto-opt select:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-wash); }
.mto-qty .lst-label { cursor: pointer; }
.mto-qty__box { display: flex; align-items: center; height: 46px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; overflow: hidden; }
.mto-qty__box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-wash); }
.mto-qty__btn { flex: none; width: 42px; height: 100%; border: 0; background: none; color: var(--ink); font: 400 20px/1 var(--f-sans); cursor: pointer; }
.mto-qty__btn:hover:not(:disabled) { color: var(--teal-ink); background: var(--teal-wash); }
.mto-qty__btn:disabled { color: var(--ink-3); opacity: .45; cursor: not-allowed; }
.mto-qty input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0 !important; outline: 0; box-shadow: none !important; background: none !important; padding: 0 !important; margin: 0; text-align: center; font: 500 15px/1 var(--f-mono); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.mto-qty input::-webkit-outer-spin-button, .mto-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mto-opts + .mto-code { margin-top: 14px; }
.mto-add { width: 100%; justify-content: center; }
.mto-add .mto-lock { width: 15px; height: 15px; margin-right: 8px; flex: none; }
.mto-add .mto-add__plus { display: none; margin-left: auto; }
.mto-add:disabled, .mto-add:disabled:hover { background: var(--paper-2); border-color: var(--line); color: var(--ink-3); cursor: not-allowed; }
.mto-add:not(:disabled) { justify-content: space-between; background: var(--ink); border-color: var(--ink); color: var(--paper); cursor: pointer; }
.mto-add:not(:disabled) .mto-lock { display: none; }
.mto-add:not(:disabled) .mto-add__plus { display: inline; }
.mto-add:not(:disabled):hover { background: var(--teal-ink); border-color: var(--teal-ink); }
.mto-add.added { justify-content: center; background: var(--teal); border-color: var(--teal); color: var(--ink); }
.mto-add.added .mto-add__plus { display: none; }
.lst-products.mto-grid, .lst-products:has(.mto-card) { align-items: start; }

/* ---------- store sections ---------- */
.lst code { font-family: var(--f-mono); font-size: .92em; background: var(--teal-wash); color: var(--teal-ink); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.mto-facts { margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.mto-facts > div { padding: 22px 24px 4px 0; }
.mto-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.mto-facts dd { margin: 10px 0 8px; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; font-weight: 500; }
.mto-facts p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.mto-how { padding-top: clamp(72px, 9vw, 128px); }
.mto-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mto-steps li { padding: 24px; border-radius: 20px; background: var(--paper-2); display: flex; flex-direction: column; gap: 10px; }
.mto-steps h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.015em; font-weight: 600; }
.mto-steps p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.mto-steps .lst-link { margin-top: auto; font-size: 14px; word-break: break-all; }
.mto-steps__n { font-family: var(--f-mono); font-size: 12px; color: var(--teal-ink); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--teal); }
.mto-why { padding-bottom: clamp(56px, 7vw, 96px); }
.mto-reasons { grid-template-columns: repeat(4, 1fr); }
.mto-faq { padding-bottom: clamp(80px, 10vw, 140px); }
.mto-faq__list { margin-top: 32px; border-top: 1px solid var(--line); max-width: 880px; }
.mto-faq details { border-bottom: 1px solid var(--line); }
.mto-faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.mto-faq summary::-webkit-details-marker { display: none; }
.mto-faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 26px/1 var(--f-sans); color: var(--teal-ink); transition: transform .3s; }
.mto-faq details[open] summary::after { transform: rotate(45deg); }
.mto-faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 64ch; line-height: 1.6; }

@media (max-width: 1080px) {
  .mto-steps, .mto-reasons { grid-template-columns: repeat(2, 1fr); }
  .mto-facts { grid-template-columns: repeat(2, 1fr); }
  .mto-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .mto-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .mto-steps, .mto-reasons, .mto-facts { grid-template-columns: 1fr; }
  .mto-facts > div, .mto-facts > div + div { padding-left: 0; border-left: 0; }
  .mto-facts > div + div { border-top: 1px solid var(--line); }
}
