/* Path: static/builds.css
   Purpose: the panel for a built storage piece or vending machine (static/builds.js): what it holds with
   Take, putting the held item in or on sale, the till, and packing the piece up. Its stacking comes from
   static/windows.js. */

.builds-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100% - 32px));
  max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; display: grid; gap: 10px;
  padding: 16px; background: rgba(7,11,20,.96); border: 1px solid rgba(155,232,155,.45); color: #dcebff; font-size: 13px; }
.builds-box header { display: flex; align-items: center; gap: 10px; }
.builds-box h3 { flex: 1; min-width: 0; margin: 0; font: 400 20px var(--f-type); color: #eaf4ff; overflow-wrap: anywhere; }

/* Each thing it holds: its name, its price on a machine, and Take. */
.builds-list { list-style: none; margin: 0; padding: 0; display: grid; }
.builds-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.08); }
.builds-list li:first-child { border-top: 0; }
.builds-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.builds-price { flex: none; color: #ffcf5a; }
.builds-none { color: #b9cbe0; }
.builds-list button { flex: none; }

.builds-put, .builds-till, .builds-end { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.builds-put button { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.builds-field { display: flex; align-items: center; gap: 8px; color: #b9cbe0; }
.builds-field input { width: 64px; box-sizing: border-box; padding: 4px 6px; background: #0d1626; border: 1px solid rgba(255,255,255,.25); color: #eaf4ff; font: inherit; }
.builds-till span { flex: 1; color: #dcebff; }
.builds-end { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }

html.bk-touch-ui .builds-box button { min-height: 44px; min-width: 44px; font-size: 16px; }
html.bk-touch-ui .builds-field input { min-height: 44px; font-size: 16px; }
html.bk-touch-ui .builds-list li { min-height: 44px; }
/* A phone on its side: less padding, so the list shows sooner; the body scrolls past that. */
@media (max-height: 500px) {
  .builds-box { padding: 10px 12px; gap: 6px; max-height: calc(100% - 16px); }
  .builds-box h3 { font-size: 17px; }
  .builds-list li { padding: 2px 0; }
}
