/* Partner badge (22 Nov 2026): the "Student discount on The Uni Deals" badge page, on the Setup parts (setup.css:
 * hero, pill, bands, side heads, check cards, the questions beside a sticky intro). This file adds the hero badge,
 * the two download tiles, the snippet builder with its dark code slab (the Widget docs slab, sdk-docs.css) and
 * the rules band. Loaded after setup.css and shopify.css, before company-theme.css.
 */

/* ---------- hero: the badge itself, right of the copy, on light or dark to match the theme ---------- */
.ls .bd-hero-badge { display: flex; justify-content: flex-end; margin: 0; }
.ls .bd-badge-img { display: block; width: min(100%, 420px); height: auto; }
:root:not([data-theme="dark"]) .ls .bd-badge-dark, :root[data-theme="dark"] .ls .bd-badge-light { display: none; }

/* ---------- download tiles ---------- */
.ls .bd-files { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px 80px; align-items: start; }
.ls .bd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ls .bd-tile { display: flex; flex-direction: column; margin: 0; border-radius: 18px; overflow: hidden; background: var(--ls-paper); box-shadow: inset 0 0 0 1px var(--ls-line-2); }
.ls .bd-tile-art { display: grid; place-items: center; min-height: 168px; padding: 28px; }
.ls .bd-tile--light .bd-tile-art { background: #FFFFFF; }
.ls .bd-tile--dark .bd-tile-art { background: #161512; }
.ls .bd-tile-art img { display: block; width: 100%; max-width: 260px; height: auto; }
.ls .bd-tile figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--ls-line-2); color: var(--ls-ink); font-size: 16px; font-weight: 700; }
.ls .bd-tile-links { display: flex; gap: 8px; }
.ls .bd-tile-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ls-ink); box-shadow: inset 0 0 0 1.5px var(--ls-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.ls .bd-tile-links a:hover { color: var(--ls-paper); background: var(--ls-ink); }
.ls .bd-tile-links a:focus-visible { outline: 2px solid var(--ls-accent-text); outline-offset: 3px; }

/* ---------- snippet builder ---------- */
.ls .bd-snippet { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px 80px; align-items: start; }
.ls .bd-builder { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ls .bd-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ls .bd-label { color: var(--ls-ink); font-size: 16px; font-weight: 700; line-height: 1.4; }
.ls .bd-input { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--ls-control); border-radius: 14px; color: var(--ls-ink); background: var(--ls-paper); font: inherit; font-size: 16px; font-weight: 500; }
.ls .bd-input:focus-visible { outline: 2px solid var(--ls-accent-text); outline-offset: 2px; border-color: var(--ls-ink); }
.ls .bd-input[aria-invalid="true"] { border-color: #C0362C; }
.ls .bd-hint { color: var(--ls-soft); font-size: 15px; font-weight: 500; line-height: 1.5; }
.ls .bd-hint.is-error { color: #C0362C; }
.ls .bd-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 8px 0 0; padding: 0; border: 0; }
.ls .bd-choice legend { float: left; margin-right: 16px; padding: 0; }
.ls .bd-choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ls-ink); font-size: 16px; font-weight: 500; cursor: pointer; }
.ls .bd-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ls-accent-text); }
.ls .bd-preview { display: flex; align-items: center; min-height: 116px; padding: 28px; border-radius: 18px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--ls-line-2); }
.ls .bd-preview[data-theme-choice="dark"] { background: #161512; box-shadow: none; }
.ls .bd-preview a { display: inline-block; line-height: 0; border-radius: 10px; }
.ls .bd-preview a:focus-visible { outline: 2px solid var(--ls-accent-text); outline-offset: 4px; }
.ls .bd-preview img { display: block; width: 195px; height: 60px; }

.ls .bd-code { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 14px; color: #FFFFFF; background: #141412; }
.ls .bd-code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ls .bd-code-label { color: #FFFFFF; font-size: 14px; font-weight: 600; line-height: 1.5; }
.ls .bd-code-copy { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1.5px solid #FFFFFF; border-radius: 999px; color: #FFFFFF; background: transparent; font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; transition: background-color 160ms var(--ls-ease), color 160ms var(--ls-ease); }
.ls .bd-code-copy:hover { color: #141412; background: #FFFFFF; }
.ls .bd-code-copy:focus-visible { outline: 2px solid #FF8A5C; outline-offset: 3px; }
.ls .bd-code-body { margin: 0; color: #FFFFFF; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ls .bd-code-body code { padding: 0; color: inherit; background: none; font: inherit; }
.ls .bd-code ::selection { color: #141412; background: #FF8A5C; }
.ls .bd-code-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- rules ---------- */
.ls .bd-rules { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px 80px; align-items: start; }
.ls .bd-checks { grid-area: auto; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .ls :is(.bd-files, .bd-snippet, .bd-rules) { grid-template-columns: 320px minmax(0, 1fr); column-gap: 48px; }
}
@media (max-width: 900px) {
  .ls .bd-hero-badge { justify-content: flex-start; }
  .ls :is(.bd-files, .bd-snippet, .bd-rules) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ls .bd-tiles { grid-template-columns: minmax(0, 1fr); }
  .ls .bd-tile-art { min-height: 136px; padding: 24px; }
  .ls .bd-preview { min-height: 96px; padding: 18px; }
  .ls .bd-code { padding: 16px; }
  .ls .bd-code-body { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .ls .bd-code-copy { transition: none; } }

/* ---------- dark ---------- */
/* Tiles and check cards rise to the raised surface on the dark tint; the light tile and preview keep their white
   so the light badge is seen on the ground it is made for; the code slab drops below the ground with a hairline. */
:root[data-theme="dark"] .ls .su-band--tint :is(.bd-tile, .su-check) { background: var(--ls-raised); box-shadow: inset 0 0 0 1px var(--ls-line-2); }
:root[data-theme="dark"] .ls .bd-tile--dark .bd-tile-art { box-shadow: inset 0 -1px 0 var(--ls-line-2); }
:root[data-theme="dark"] .ls .bd-code { background: var(--ls-band); box-shadow: inset 0 0 0 1px #2E2822; }
:root[data-theme="dark"] .ls :is(.bd-code-label, .bd-code-body) { color: #F6EFE4; }
:root[data-theme="dark"] .ls .bd-code-copy { border-color: #F6EFE4; color: #F6EFE4; }
:root[data-theme="dark"] .ls :is(.bd-input[aria-invalid="true"]) { border-color: #FF8A7A; }
:root[data-theme="dark"] .ls .bd-hint.is-error { color: #FF8A7A; }
