/* "Tester set" picker window (home page and cart) */
body.tp-open { overflow: hidden; }
.tp-overlay { position: fixed; inset: 0; height: 100vh; height: 100dvh; padding-top: 28px; box-sizing: border-box; z-index: 80; background: rgba(20, 24, 30, .55); display: flex; align-items: flex-end; justify-content: center; }
.tp-overlay[hidden] { display: none; }
.tp-panel { background: var(--card, #fff); width: min(760px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
@media (min-width: 700px) { .tp-overlay { align-items: center; } .tp-panel { border-radius: 20px; max-height: 88vh; } .tp-overlay { padding-top: 0; } }
.tp-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.tp-head h2 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.tp-sub { margin: 4px 0 0; color: var(--muted, #666); font-size: .88rem; }
.tp-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line, #ddd); background: #fff; cursor: pointer; font-size: 1rem; }
.tp-tools { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 20px; align-items: center; }
.tp-chips { display: flex; gap: 6px; }
.tp-chips .chip { border: 1px solid var(--line, #ddd); background: #fff; border-radius: 999px; padding: 5px 14px; cursor: pointer; font: inherit; font-size: .85rem; }
.tp-chips .chip.on { background: var(--ink, #1e2329); border-color: var(--ink, #1e2329); color: #fff; }
#tpSearch { flex: 1; min-width: 140px; border: 1px solid var(--line, #ddd); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; }
.tp-status { margin: 0 20px 6px; padding: 8px 12px; border-radius: 10px; background: #fff7e0; color: #7a5a00; font-size: .88rem; }
.tp-status[hidden] { display: none; }
.tp-retry { border: 0; background: none; text-decoration: underline; cursor: pointer; color: inherit; font: inherit; }
.tp-list { list-style: none; margin: 0; padding: 6px 20px 14px; overflow-y: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; flex: 1; }
@media (min-width: 560px) { .tp-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 700px) { .tp-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tp-none { grid-column: 1 / -1; text-align: center; color: var(--muted, #666); padding: 20px; }
.tp-item { position: relative; width: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 6px; background: #fff; border: 2px solid transparent; border-radius: 14px; cursor: pointer; font: inherit; text-align: center; transition: border-color .15s, background .15s; }
.tp-item:hover { background: #f6f7f9; }
.tp-item.on { border-color: var(--accent, #0f766e); background: #f0faf8; }
.tp-img { width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--soft, #eee) center / cover no-repeat; }
.tp-name { font-size: .8rem; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.tp-tick { position: absolute; top: 10px; inset-inline-start: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent, #0f766e); color: #fff; display: none; place-items: center; font-size: .8rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.tp-item.on .tp-tick { display: grid; }
.tp-panel { min-height: 0; } .tp-list { min-height: 0; }
.tp-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
.tp-cancel { border: 1px solid var(--line, #ddd); background: #fff; border-radius: 999px; padding: 11px 16px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink, #1e2329); }
.tp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid var(--line, #e5e7eb); }
.tp-count { font-size: .9rem; color: var(--muted, #666); }
.tp-count b { color: var(--ink, #1e2329); font-size: 1.1rem; }
.tp-done { border: 0; border-radius: 999px; padding: 12px 24px; background: var(--accent, #0f766e); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tp-done:disabled { background: #c9ced6; cursor: not-allowed; }
.tp-desc { font-size: .68rem; line-height: 1.4; color: var(--muted, #666); font-weight: 400; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* phone: the count on its own line, then "close" and the main button */
.tp-foot { flex-wrap: wrap; }
.tp-foot .tp-count { flex-basis: 100%; }
.tp-foot .tp-done { flex: 1; }
@media (min-width: 700px) { .tp-foot .tp-count { flex-basis: auto; margin-inline-end: auto; } .tp-foot .tp-done { flex: none; } }
