/* the template's set and map outfits not owned yet (js/tplsets.js, js/avatar_ps.js tiles): locked cards in the dressing
   room's ชุด tab, their headings, and the set shop's buy window. 2026-10-18 */
#ui #avatarps .av-sec.av-lockh { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 12px 0 2px;
  padding: 5px 12px; border-radius: 10px; background: #1b1030; border: 1px solid #8a6cd8; color: #ffe08a; -webkit-text-fill-color: #ffe08a; text-shadow: none; }
#ui #avatarps .av-sec.av-lockh small { font-weight: 600; color: #e6dcc4; -webkit-text-fill-color: #e6dcc4; }
#ui #avatarps .av-tile.av-locked canvas { filter: saturate(0.55) brightness(0.72); }
#ui #avatarps .av-tile.av-locked:hover canvas { filter: none; }
#ui #avatarps .av-tile .av-lockl { position: absolute; z-index: 2; left: 50%; top: 73%; transform: translateX(-50%); white-space: nowrap;
  padding: 2px 10px; border-radius: 999px; background: #1b1030; border: 1px solid #ffd773; color: #ffe9a8; -webkit-text-fill-color: #ffe9a8;
  font: 800 12px/18px 'Mali', sans-serif; font-style: normal; pointer-events: none; }

#tpls-buy { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(8, 4, 16, 0.62); }
#tpls-buy .tpls-card { width: min(360px, calc(100vw - 32px)); box-sizing: border-box; padding: 16px 18px 14px; border-radius: 16px; background: #221636;
  border: 2px solid var(--tc, #ffe08a); color: #f2ead6; font: 15px/1.5 'Mali', Tahoma, sans-serif; text-align: center; }
#tpls-buy .tpls-card > img { width: 128px; height: 128px; object-fit: contain; display: block; margin: 0 auto 6px; }
#tpls-buy h4 { margin: 0 0 6px; font-size: 18px; color: #fff3cf; }
#tpls-buy h4 em { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--tc, #ffe08a); color: var(--tc, #ffe08a); font: 800 12px/20px 'Mali', sans-serif; font-style: normal; vertical-align: 2px; }
#tpls-buy p { margin: 4px 0; color: #e6dcc4; }
#tpls-buy .tpls-price { font-size: 18px; font-weight: 800; color: #ffe08a; display: flex; align-items: center; justify-content: center; gap: 6px; }
#tpls-buy .tpls-price img { width: 24px; height: 24px; }
#tpls-buy .tpls-price small { font-size: 13px; font-weight: 600; color: #cfc4ad; }
#tpls-buy .tpls-btns { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
#tpls-buy .tpls-btns .btn { min-width: 110px; min-height: 40px; font-size: 16px; }
