/* "Try a sale" on the homepage. Everything is scoped to #try-sale so no other page or section is touched. It uses the site's own tokens (--blue-d, --ink, --muted, --page, --f-head, --f-body, --f-mono) from home.css. */
#try-sale { --bg: #F3F7FC; --surface: #FFFFFF; --surface-2: #E9EFF8; --ink: #0B1118; --muted: #475569; --line: #D3DCEA; --accent: var(--blue-d, #0057D9); --stamp: var(--blue, #0A84FF); --accent-ink: #FFFFFF; --accent-soft: #DCEBFF; --good: #0C6B43; --good-soft: #E1F4EA; --warn: #8A4B06; --warn-soft: #FDEED6; --badge-year: #E5EAF3; --badge-year-ink: #2A3953; --badge-var: #DCEBFF; --badge-var-ink: #003A9B; --font-display: var(--f-head, "Sora", system-ui, sans-serif); --font-body: var(--f-body, "Plus Jakarta Sans", system-ui, sans-serif); --font-mono: var(--f-mono, "JetBrains Mono", ui-monospace, monospace); position: relative; min-height: 640px; color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
#try-sale[data-ready="1"] { min-height: 0; }
#try-sale, #try-sale * { box-sizing: border-box; }
#try-sale button,
#try-sale input,
#try-sale select,
#try-sale textarea { font-family: inherit; }
#try-sale h1,
#try-sale h2,
#try-sale h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
#try-sale p { margin: 0; }
#try-sale a { color: var(--accent); }
#try-sale :focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; border-radius: 6px; }
#try-sale .mono { font-family: var(--font-mono); }
#try-sale .tnum { font-variant-numeric: tabular-nums; }
#try-sale .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
#try-sale .sample-flag { display: inline-flex; font-size: 0.76rem; font-weight: 600; padding: 4px 11px; border-radius: 99px; background: var(--badge-var); color: var(--badge-var-ink); margin-left: 8px; vertical-align: middle; }
#try-sale label.f { display: grid; gap: 5px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; color: var(--muted); min-width: 0; }
#try-sale input.in,
#try-sale select.in { font: 400 1.05rem var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; width: 100%; min-height: 50px; text-transform: none; letter-spacing: 0; }
#try-sale input.in:focus,
#try-sale select.in:focus { border-color: var(--accent); }
#try-sale .note { font-size: 0.86rem; color: var(--muted); margin-top: 12px; min-height: 1.3em; }
#try-sale .note b { color: var(--ink); }
#try-sale .muted { color: var(--muted); }
#try-sale .progress { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; padding: 0; list-style: none; }
#try-sale .progress li { font: 600 0.8rem var(--font-mono); letter-spacing: 0.04em; padding: 7px 13px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid transparent; }
#try-sale .progress li[aria-current="step"] { background: var(--accent); color: var(--accent-ink); }
#try-sale .progress li.done { color: var(--good); background: var(--good-soft); }
#try-sale .frame { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(6,38,92,.45); min-height: 0; }
#try-sale .frame-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
#try-sale .frame-head .t { font: 800 1rem var(--font-display); font-stretch: 112%; text-transform: uppercase; }
#try-sale .carpill { display: inline-flex; gap: 8px; align-items: center; font-size: 0.86rem; }
#try-sale .plate { font: 700 0.82rem var(--font-mono); padding: 3px 9px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
#try-sale .sample-flag.sm { margin-left: 0; }
#try-sale .label { font: 700 0.7rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
#try-sale .searchbar { display: flex; gap: 8px; }
#try-sale .searchbar input { flex: 1; min-width: 0; }
#try-sale .chips-big { display: flex; flex-wrap: wrap; gap: 10px; }
#try-sale .size-chip { text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 9px 13px; min-height: 52px; cursor: pointer; font: 500 0.78rem var(--font-body); }
#try-sale .size-chip b { display: block; font: 700 1rem var(--font-mono); letter-spacing: -0.02em; }
#try-sale .size-chip .vt { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 0.72rem; margin-top: 2px; }
#try-sale .size-chip:hover,
#try-sale .size-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
#try-sale .size-chip.none { color: var(--muted); background: var(--bg); }
#try-sale .results { display: grid; gap: 8px; }
#try-sale .res { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); min-height: 54px; }
#try-sale .res .meta { min-width: 0; }
#try-sale .res .meta b { display: block; font-weight: 600; }
#try-sale .res .meta span { font-size: 0.8rem; color: var(--muted); }
#try-sale .addbtn { font: 700 0.85rem var(--font-body); border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 10px; padding: 9px 14px; min-height: 44px; cursor: pointer; white-space: nowrap; }
#try-sale .addbtn:hover { background: var(--accent-soft); }
#try-sale .addbtn[disabled] { opacity: .45; cursor: not-allowed; }
#try-sale .svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
#try-sale .svc { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); padding: 10px 12px; min-height: 58px; cursor: pointer; font: 600 0.88rem var(--font-body); }
#try-sale .svc small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; }
#try-sale .svc .plus { color: var(--accent); font: 500 1.3rem var(--font-mono); }
#try-sale .svc:hover { border-color: var(--accent); background: var(--accent-soft); }
#try-sale .emptycart { color: var(--muted); font-size: 0.92rem; border: 1px dashed var(--line); border-radius: 12px; padding: 14px; }
#try-sale .totalrow { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
#try-sale .totalrow span:last-child { font: 700 1.7rem var(--font-mono); }
#try-sale .btn-primary { font: 700 1rem var(--font-body); border: 0; border-radius: 12px; padding: 14px 18px; min-height: 52px; background: var(--accent); color: var(--accent-ink); cursor: pointer; width: 100%; }
#try-sale .btn-primary[disabled] { opacity: .4; cursor: not-allowed; }
#try-sale .btn-outline { font: 600 0.95rem var(--font-body); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; min-height: 48px; background: var(--surface); color: var(--ink); cursor: pointer; }
#try-sale .scrim { position: fixed; inset: 0; height: 100vh; height: 100dvh; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: rgba(6,16,38,.55); display: grid; place-items: start center; padding: 18px; overflow: auto; z-index: 1000; }
#try-sale .scrim[hidden] { display: none; }
#try-sale .modal { width: min(560px, 100%); background: var(--surface); border-radius: 18px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
#try-sale .modal h3 { font: 800 1.15rem var(--font-display); font-stretch: 112%; text-transform: uppercase; }
#try-sale .mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#try-sale .mgrid .full { grid-column: 1 / -1; }
#try-sale .req { color: #c4261d; }
#try-sale .fix { font-size: 0.82rem; color: var(--accent); min-height: 1.2em; font-weight: 600; }
#try-sale .err { color: #c4261d; font-size: 0.88rem; min-height: 1.2em; }
#try-sale .mact { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
#try-sale .mact .btn-primary { width: auto; }
#try-sale .done { padding: clamp(24px, 5vw, 46px); display: grid; gap: 14px; justify-items: start; }
#try-sale .done h3 { font: 800 clamp(1.5rem, 4vw, 2.2rem) var(--font-display); font-stretch: 118%; text-transform: uppercase; }
#try-sale .done .recap { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; width: min(560px, 100%); background: var(--bg); }
#try-sale .done .recap .line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 0.92rem; }
@media (max-width: 860px) {
#try-sale .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
#try-sale .mgrid { grid-template-columns: 1fr; }
#try-sale .svc-grid { grid-template-columns: 1fr; }
}
#try-sale .sg { position: relative; }
#try-sale .sglist { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 4px; list-style: none; max-height: 240px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(6,16,38,.5); text-transform: none; letter-spacing: 0; }
#try-sale .sglist[hidden] { display: none; }
#try-sale .sglist button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); font: 500 0.98rem var(--font-body); padding: 10px 12px; min-height: 44px; border-radius: 8px; cursor: pointer; }
#try-sale .sglist button:hover,
#try-sale .sglist button.on { background: var(--accent-soft); }
#try-sale .sglist .none { padding: 10px 12px; color: var(--muted); font-size: 0.88rem; }
#try-sale #after { margin-top: 26px; display: grid; gap: 18px; }
#try-sale #after[hidden] { display: none; }
#try-sale .after-head h3 { font: 800 clamp(1.4rem, 3.4vw, 2.1rem) var(--font-display); font-stretch: 112%; line-height: 1.1; margin-top: 8px; text-wrap: balance; }
#try-sale .after-head p { margin-top: 8px; max-width: 62ch; }
#try-sale .after-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
#try-sale #after .afterpanel { color: var(--ink); padding-block: 8px; display: grid; gap: 26px; }
#try-sale #after .after-head .eyebrow { color: var(--accent); }
#try-sale #after .after-head h3 { font: 800 clamp(1.7rem, 4.4vw, 2.9rem) var(--font-display); font-stretch: 118%; text-transform: uppercase; line-height: 1.04; margin-top: 10px; text-wrap: balance; }
#try-sale #after .after-head p { color: var(--muted); margin-top: 10px; max-width: 60ch; }
#try-sale .ledger { list-style: none; margin: 0; padding: 0; display: grid; }
#try-sale .lrow { display: grid; grid-template-columns: 190px 1fr; gap: 6px 26px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
#try-sale .lrow:last-child { border-bottom: 1px solid var(--line); }
#try-sale .ltag { font: 700 0.74rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: #05080d; background: var(--stamp); padding: 6px 10px; border-radius: 6px; width: fit-content; }
#try-sale .lbody h4 { margin: 0 0 4px; font: 800 1.1rem var(--font-display); font-stretch: 112%; }
#try-sale .lbody p { margin: 0; color: var(--muted); max-width: 70ch; }
#try-sale #after .after-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); }
@media (max-width: 960px) {
#try-sale .lrow { grid-template-columns: 1fr; }
}
#try-sale .timer { font: 700 0.86rem var(--font-mono); background: var(--stamp); color: #05080d; padding: 4px 11px; border-radius: 99px; white-space: nowrap; }
#try-sale .timer[hidden] { display: none; }
#try-sale .mhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#try-sale .elapsed { display: grid; gap: 2px; margin: 4px 0 2px; }
#try-sale .elapsed .tv { font: 800 clamp(2.4rem, 7vw, 4rem) var(--font-mono); line-height: 1; letter-spacing: -0.03em; }
#try-sale .elapsed .tl { color: var(--muted); font-size: 0.9rem; }
#try-sale .fig { --paper: #f1f2f4; --graphite: #15181d; --rule: #c5cad2; --amber: #12a37f; --amber-tint: #d3f5ea; margin-top: 16px; background: var(--paper); color: var(--graphite); border: 1px solid rgba(0,0,0,.35); border-radius: 12px; overflow: hidden; }
#try-sale .fig-h { background: var(--graphite); color: #7be8c9; font: 700 0.72rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#try-sale .fig .fbody { padding: 14px; display: grid; gap: 12px; }
#try-sale .fig .fnote { margin: 0; padding: 0 14px 14px; font-size: 0.84rem; color: #3b414b; max-width: none; }
#try-sale .fig .fbody .fnote { padding: 0; }
#try-sale .fig .dim { color: #5b626d; font-size: 0.78rem; }
#try-sale .scrollx { overflow-x: auto; }
#try-sale .jt { width: 100%; border-collapse: collapse; font: 500 0.82rem var(--font-body); font-variant-numeric: tabular-nums; min-width: 560px; }
#try-sale .jt th { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--graphite); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.68rem; white-space: nowrap; }
#try-sale .jt td { padding: 9px 10px; border-bottom: 1px dashed var(--rule); vertical-align: top; }
#try-sale .jt .n { text-align: right; font-variant-numeric: tabular-nums; }
#try-sale .jt tr.hot td { background: var(--amber-tint); }
#try-sale .jt tr.hot td:first-child { box-shadow: inset 4px 0 0 var(--amber); }
#try-sale .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--graphite); margin-left: 2px; vertical-align: -0.15em; }
@media (prefers-reduced-motion: no-preference) {
#try-sale .caret { animation: ts-blink 1s steps(2, start) infinite; }
}
@keyframes ts-blink { to { visibility: hidden; } }
#try-sale .vcard { background: #fff; border: 1px solid var(--graphite); border-left: 6px solid var(--amber); padding: 10px 12px; display: grid; gap: 3px; max-width: 460px; }
#try-sale .vcard .vtop { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
#try-sale .vcard .vtop b { font: 800 1.05rem var(--font-mono); }
#try-sale .fchips { display: flex; flex-wrap: wrap; gap: 10px; }
#try-sale .fchip { background: #fff; border: 1px solid var(--graphite); padding: 8px 12px; display: grid; gap: 1px; font-size: 0.78rem; color: #3b414b; }
#try-sale .fchip b { font: 800 1rem var(--font-mono); color: var(--graphite); letter-spacing: -0.02em; }
#try-sale .fchip.mine { background: var(--amber-tint); border-color: #0b6b54; }
#try-sale .fchip em { font: 700 0.64rem var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: 0.06em; color: #0b6b54; }
#try-sale .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#try-sale .kpi { background: #fff; border: 1px solid var(--rule); padding: 10px 12px; display: grid; gap: 2px; }
#try-sale .kpi span { font: 700 0.66rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #5b626d; }
#try-sale .kpi b { font: 800 1.15rem var(--font-body); font-variant-numeric: tabular-nums; }
#try-sale .pay { display: flex; height: 12px; border: 1px solid var(--graphite); border-radius: 99px; overflow: hidden; }
#try-sale .pay i { display: block; background: var(--graphite); }
#try-sale .pay i.g { background: var(--amber); }
#try-sale .paykey { display: flex; gap: 18px; flex-wrap: wrap; font: 600 0.8rem var(--font-body); }
#try-sale .paykey i { display: inline-block; width: 10px; height: 10px; background: var(--graphite); margin-right: 6px; border-radius: 2px; }
#try-sale .paykey i.g { background: var(--amber); }
@media (max-width: 700px) {
#try-sale .kpis { grid-template-columns: 1fr 1fr; }
}
#try-sale .view { padding: 18px; max-width: 760px; display: grid; gap: 12px; align-content: start; }
#try-sale .notice { margin: 0; min-height: 1.3em; font-size: 0.88rem; color: var(--muted); }
#try-sale .opencart { margin-top: 8px; position: sticky; bottom: 12px; }
#try-sale .cart-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#try-sale .clines { display: grid; gap: 10px; }
#try-sale .cline { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); display: grid; gap: 10px; }
#try-sale .cline:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#try-sale .cl-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
#try-sale .cl-name { margin: 0; font-weight: 700; }
#try-sale .cl-size { margin: 2px 0 0; font-size: 0.82rem; color: var(--accent); font-weight: 700; }
#try-sale .trash { border: 0; background: transparent; color: var(--muted); cursor: pointer; min-height: 44px; padding: 0 10px; font: 600 0.82rem var(--font-body); }
#try-sale .trash:hover { color: #b3261e; }
#try-sale .cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#try-sale .cl-grid.one { grid-template-columns: 1fr; }
#try-sale .stepper { display: flex; gap: 6px; }
#try-sale .stepper button { width: 46px; height: 48px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; font-size: 1.1rem; cursor: pointer; }
#try-sale .stepper button:hover { border-color: var(--accent); }
#try-sale .stepper input { flex: 1; min-width: 0; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 700 1.05rem var(--font-mono); min-height: 48px; }
#try-sale .more summary { cursor: pointer; font-size: 0.82rem; font-weight: 700; color: var(--accent); padding: 4px 0; min-height: 32px; }
#try-sale .cl-more { margin-top: 8px; }
#try-sale .cl-sub { text-align: right; font: 700 1rem var(--font-mono); }
#try-sale .addopen { width: 100%; }
#try-sale .addbox { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); }
#try-sale .xbtn { width: 48px; min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 520px) {
#try-sale .cl-grid { grid-template-columns: 1fr; }
}
#try-sale .cl-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
#try-sale .cl-grid.one { grid-template-columns: 1fr; }
#try-sale .cline .f { min-width: 0; }
#try-sale .stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 6px; min-width: 0; }
#try-sale .stepper button { width: auto; min-width: 0; padding: 0; }
#try-sale .stepper input { width: 100%; min-width: 0; -moz-appearance: textfield; appearance: textfield; }
#try-sale .stepper input::-webkit-outer-spin-button,
#try-sale .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#try-sale .timer { background: #ffc233; color: #05080d; }
#try-sale .newsvc { width: 100%; min-height: 48px; text-align: left; border: 1px dashed var(--accent); background: transparent; color: var(--accent); font: 700 0.9rem var(--font-body); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
#try-sale .newsvc:hover { background: var(--accent-soft); }
#try-sale .sample-flag { -webkit-text-fill-color: currentColor; }
#try-sale :focus-visible { outline-color: var(--accent); }
#try-sale .bul { list-style: disc; margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; max-width: 72ch; color: var(--muted); }
#try-sale .bul li::marker { color: var(--accent); }
#try-sale .bul b { color: var(--ink); font-weight: 700; }

/* the site's blue on tags and accents */
#try-sale .ltag { background: var(--accent); color: #fff; }
#try-sale .elapsed .tv, #try-sale #after .after-head h3 .tsec { color: var(--accent); }
#try-sale #after .after-head h3 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
#try-sale .ts-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
#try-sale .ts-top .progress { margin: 22px 0 14px; }
#try-sale .ts-top .sample-flag { margin-left: 0; }
#try-sale .btn { text-decoration: none; color: #fff; }
#try-sale #after .after-head h3, #try-sale .done h3 { text-transform: none; font-weight: 700; font-stretch: normal; }
#try-sale #after .after-head h3 { line-height: 1.1; }
#try-sale .done h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; }

/* "+ Add item" and "Create ticket" use the app's button colours exactly: Create ticket is the app's blue, Add item is
   the app's green (#25D366), both with the same glossy top band, thin top line and own-colour shadow. */
#try-sale #create {
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.14) 48%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #0a6cf0 0%, #0050c8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 12px 24px -12px rgba(10, 108, 240, 0.85);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 40, 120, 0.35);
}
#try-sale #create:hover:not([disabled]) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.18) 48%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #0a6cf0 0%, #0050c8 100%);
}
#try-sale #addopen {
  border: 1px solid #1fb857;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.18) 48%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #46e07f 0%, #25d366 100%);
  color: #04361a;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(0, 90, 40, 0.12), 0 12px 24px -12px rgba(37, 211, 102, 0.9);
}
#try-sale #addopen:hover:not([disabled]) {
  border-color: #19a34b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.22) 48%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #4de585 0%, #22c55e 100%);
}
#try-sale #create:active:not([disabled]),
#try-sale #addopen:active:not([disabled]) { transform: translateY(1px); }

/* ---- popup mode (homepage): the sale is made in a popup; the finished ticket and the explanation stay on the page ---- */
#try-sale .ts-teaser, #try-sale .ts-popclose { display: none; }
#try-sale.ts-pop:not(.ts-open):not(.ts-done) .ts-teaser {
  display: grid; justify-items: center; gap: 12px; text-align: center; padding: 34px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px -30px rgba(6,38,92,.45);
}
#try-sale .ts-teaser-lead { max-width: 34rem; color: var(--ink); font-size: 1.05rem; line-height: 1.5; }
#try-sale .ts-teaser-note { color: #5b6573; font-size: .9rem; }
#try-sale .btn-free {
  font: 800 1.05rem var(--font-body); min-height: 56px; padding: 0 34px; border-radius: 14px; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #4ADE80 0%, #22C55E 100%); color: #052E16; box-shadow: 0 14px 44px rgba(34, 197, 94, 0.4);
}
#try-sale .btn-free:hover, #try-sale .btn-free:focus-visible { background: linear-gradient(180deg, #6EE7A0 0%, #34D26E 100%); }
#try-sale.ts-pop:not(.ts-open):not(.ts-done) .ts-top,
#try-sale.ts-pop:not(.ts-open):not(.ts-done) .frame { display: none; }
#try-sale.ts-pop.ts-open::before { content: ""; position: fixed; inset: 0; background: rgba(6, 16, 38, .78); z-index: 999; }
#try-sale.ts-pop.ts-open .frame {
  position: fixed; z-index: 1000; inset: 0; margin: auto; width: min(640px, calc(100vw - 20px)); height: fit-content; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px);
  overflow: auto; overscroll-behavior: contain; min-height: 0;
}
#try-sale.ts-pop.ts-open .ts-top { display: none; }
#try-sale.ts-pop.ts-open .ts-popclose {
  display: grid; place-items: center; position: sticky; top: 10px; float: right; margin: 10px 12px -44px 0; z-index: 7; width: 34px; height: 34px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 400 1.4rem/1 var(--font-body); cursor: pointer;
}
#try-sale.ts-pop.ts-open .frame-head { padding-right: 58px; }

/* "What you created": the ticket the visitor just made, before the explanation of what it did. */
#try-sale .made { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 14px; margin: 0 0 18px; display: grid; gap: 8px; }
#try-sale .made-k { font: 700 .72rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
#try-sale .made h4 { font: 800 1.15rem var(--font-body); margin: 0; }
#try-sale .made-sub { margin: 0; color: #5b6573; font-size: .92rem; }
#try-sale .made-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
#try-sale .made-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .98rem; }
#try-sale .made-list li b { font-family: var(--font-mono); white-space: nowrap; }
#try-sale .made-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 2px solid var(--ink); font-weight: 700; }
#try-sale .made-total b { font: 800 1.4rem var(--font-mono); }
