.common-size-template-section{margin:8px 0}
.common-size-template-header{display:flex;align-items:center;gap:9px;margin-bottom:6px}
.common-size-template-header>span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--green);color:#fff;font-size:11px;font-weight:700;flex:none}
.common-size-template-header h3{font-size:15px;margin:0;white-space:nowrap}.common-size-template-header b{font-size:12px;white-space:nowrap}.common-size-template-header small{font-size:10px;color:var(--muted)}
.common-size-template-header>button{margin-left:auto;padding:3px 9px;height:25px;background:#fff;border:1px solid #cddbd4;border-radius:5px;font-size:11px;white-space:nowrap;cursor:pointer}
.common-size-template-box{position:relative;padding:8px 10px;background:#f0ede6;border:1px solid #ddd9cf;border-radius:8px}
.common-size-template-list{display:flex;flex-wrap:wrap;gap:5px}
.common-size-template-add{position:absolute;right:10px;top:4px;z-index:20;display:grid;gap:5px;width:240px;padding:10px;background:#fff;border:1px solid #cddbd4;border-radius:8px;box-shadow:0 8px 24px #173f3526}
.common-size-template-add[hidden]{display:none!important}
.common-size-template-add input,.common-size-template-add button{box-sizing:border-box;width:100%;height:30px;padding:6px 8px;border:1px solid var(--line);border-radius:5px;background:#fff;font-size:11px}
/* Color shortcuts are warm peach; size shortcuts are cool blue. */
body:not(.storefront) .metal-color-presets.compact-color-templates{background:#fff1e5;border-color:#e4bd99}
body:not(.storefront) .compact-color-templates .compact-color-template{background:#fff8ef;border-color:#d9ab7f}
body:not(.storefront) .compact-color-templates .compact-color-template>button{color:#88491d}
body:not(.storefront) .compact-color-templates .compact-color-template:hover{background:#ffdfbd}
body:not(.storefront) .common-size-template-box{background:#eaf3ff;border-color:#aac8eb}
body:not(.storefront) .common-size-template-list .compact-color-template{background:#f3f8ff;border-color:#a7c2e2}
body:not(.storefront) .common-size-template-list .compact-color-template>button{color:#285480}
body:not(.storefront) .common-size-template-list .compact-color-template:hover{background:#cfe4ff}
body:not(.storefront) .manual-spec-additions{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:10px;margin:8px 0;align-items:stretch}
body:not(.storefront) .manual-spec-additions .spec-option-block{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:10px;margin:0;min-width:0}
body:not(.storefront) .manual-spec-additions .spec-option-title{display:flex;align-items:center;gap:9px}
body:not(.storefront) .manual-spec-additions .spec-option-title small{margin:0;font-size:10px}
body:not(.storefront) .manual-spec-additions .spec-option-list{min-height:0;flex-wrap:wrap;overflow:visible}
body:not(.storefront) .manual-spec-additions .spec-option-list:empty{display:none}
body:not(.storefront) .manual-spec-additions .spec-custom-color{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;width:100%;gap:5px;margin-top:auto}
body:not(.storefront) .manual-spec-additions .spec-custom-color input{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:5px;padding:7px 8px;font-size:12px;min-width:0}
body:not(.storefront) .manual-spec-additions .spec-custom-color button{border-radius:5px}
body:not(.storefront) .manual-spec-additions .spec-inline-add{margin-top:auto;width:100%}
body:not(.storefront) .manual-spec-additions .spec-inline-add input{font-size:12px}
@media(max-width:800px){body:not(.storefront) .manual-spec-additions{grid-template-columns:1fr}}
body:not(.storefront) .manual-spec-additions .spec-custom-color:has(#newSpecColorEn[hidden]){grid-template-columns:minmax(0,1fr) auto}
