@font-face{font-family:'SimpleShirts-Thin';src:url('/simple-shirts/fonts/inter-symbols-v3.ttf') format('truetype');font-weight:100 900;font-display:swap}

.shirt-symbol-picker{margin:5px 0 8px;border:1px solid #cbd2c5;border-radius:8px;padding:8px 10px;background:#fff}
.shirt-symbol-picker summary{cursor:pointer;font-weight:600;min-height:32px;line-height:32px}
.shirt-symbol-picker p{font-size:12px;line-height:1.4;margin:6px 0}
.shirt-symbol-picker .shirt-symbol-filter{display:grid;gap:3px;margin:6px 0;font-size:12px;font-weight:600}
.shirt-symbol-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;max-height:min(300px,42dvh);overflow:auto;overscroll-behavior:contain;padding:3px}
.shirt-symbol-grid button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px;border:1px solid #bdc7b5;border-radius:7px;background:#fff;color:#151918;touch-action:manipulation}
.shirt-symbol-grid button:hover,.shirt-symbol-grid button:focus-visible{background:#edf3e5;outline:2px solid #526d2d}
.shirt-symbol-grid svg{width:28px;height:28px;display:block}
.shirt-symbol-status:empty{display:none}
@media(max-width:360px){.shirt-symbol-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

.shirt-symbol-dialog{
 box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);
 margin:auto;padding:clamp(12px,3vw,22px);border-radius:16px;overflow:auto;overscroll-behavior:contain;
}
.shirt-symbol-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.shirt-symbol-dialog h2,.shirt-symbol-dialog header button{margin:0}
.shirt-symbol-dialog header button{min-height:44px;padding:6px 14px}
.shirt-symbol-dialog .shirt-symbol-filter{margin-block:10px}
.shirt-symbol-dialog [data-shirt-symbol-category]{min-height:44px;margin:0;font-size:16px}
.shirt-symbol-dialog .shirt-symbol-grid{grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}

.shirt-graphic-picker{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:1px solid #c4cdbd;border-radius:16px;background:#f7f8f2;color:#20271f}
.shirt-graphic-picker::backdrop{background:#20372eaa}
.shirt-graphic-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 26px);min-height:min(550px,calc(100dvh - 26px));padding:16px;box-sizing:border-box}
.shirt-graphic-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0}
.shirt-graphic-panel h2{margin:0;font-size:1.3rem}
.shirt-graphic-panel button,.shirt-graphic-panel input,.shirt-graphic-panel select{min-height:44px;border:1px solid #c4cdbd;border-radius:8px;background:white;color:inherit;font:inherit}
.shirt-graphic-panel header button{padding:7px 13px}
.shirt-graphic-filters{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px}
.shirt-graphic-filters label{display:grid;gap:4px;margin:0;font-size:.83rem}
.shirt-graphic-filters :is(input,select){box-sizing:border-box;width:100%;min-width:0;height:44px;margin:0;padding:6px 8px;font-size:16px}
.shirt-graphic-panel [data-graphic-status]{margin:6px 0;font-size:.85rem}
.shirt-graphic-panel [data-graphic-status]:empty{margin:3px 0}
.shirt-graphic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));grid-auto-rows:max-content;align-content:start;gap:7px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:3px}
.shirt-graphic-grid button{position:relative;display:block;box-sizing:border-box;width:100%;height:auto;min-width:0;aspect-ratio:1 / 1;overflow:hidden;padding:0;line-height:1.2;font-size:.8rem;text-align:center;white-space:normal;cursor:pointer}
/* Give images their own row so WebKit cannot collapse the button around them. */
.shirt-graphic-tile-contents{position:absolute;inset:7px 5px;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:4px;min-width:0}
.shirt-graphic-tile-art{position:relative;min-width:0;min-height:0}
.shirt-graphic-tile-art img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.shirt-graphic-tile-name{display:block;min-width:0;overflow-wrap:anywhere}
.shirt-graphic-grid button:hover,.shirt-graphic-grid button:focus-visible{border-color:#628740;background:#eef4e7}
.shirt-graphic-grid button:disabled{cursor:wait;opacity:.65}
@media(max-width:450px){.shirt-graphic-panel{padding:12px}.shirt-graphic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shirt-graphic-grid button{font-size:.75rem}}
