.template-gallery{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:8px;min-width:0}
.template-gallery[hidden],.template-stored-filename[hidden]{display:none}
.template-gallery h3{margin:0;font-size:16px;align-self:center}
.template-gallery>button{min-height:34px;padding:6px 10px;font-size:12px}
.template-gallery-list{grid-column:1/-1;display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px}
.template-gallery-list>button{flex:0 0 260px;max-width:100%;display:flex;flex-direction:column;gap:4px;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:9px 11px;background:#fff;color:#24333c;border:1px solid #d9d4ca;border-radius:6px;min-height:58px}
.template-gallery-list>button[aria-pressed=true]{background:#fff1d6;border-color:#cf8200;box-shadow:inset 3px 0 #cf8200}
.template-gallery-list>button b{font-size:13px}.template-gallery-list>button small{font-size:11px;font-weight:400;color:#655f55}
.template-gallery-list>button:focus-visible{outline:2px solid #cf8200;outline-offset:2px}
.template-gallery-list>p{font-size:12px;margin:0}
.template-stored-filename{font-size:12px;font-weight:600;overflow-wrap:anywhere;margin:0 0 8px}
.template-stored-pdf{width:100%;height:520px;border:1px solid #ddd5c8;background:#fff}
#customerTemplatePreview>a{display:block;font-size:12px;line-height:1.5;margin-top:6px}
@media(max-width:650px){.template-gallery-list>button{flex-basis:220px}.template-stored-pdf{height:400px}}
