/* /order-site: "We build it for you", one short form and then payment. Loaded by that page alone, after site.css, so it
 * borrows the one type scale, the one spacing scale and the palette from there and declares none of its own. The form's
 * look is the Buy panel's (build.css .buy-*): the same fields, the same price card, the same message line. */
.os { padding-block: 0 var(--s-9); }
.os .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.os-note { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r); background: var(--paper-2); font-size: var(--fs-sm); color: var(--ink); }

/* A section: its numeral and heading over a hairline, then the fields. */
.os-sec { padding-block: var(--s-6) var(--s-6); border-top: 1px solid var(--rule); }
.os-sec h2 { margin: 0 0 var(--s-3); font-size: var(--fs-h3); line-height: 1.15; }
.os-sec h2[tabindex="-1"]:focus { outline: none; }
.os-intro { margin: 0 0 var(--s-4); color: var(--ink-2); font-size: var(--fs-md); }

.os-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.os-grid .wide { grid-column: 1 / -1; }
.os label, .os legend { display: flex; flex-direction: column; gap: 5px; font-size: var(--fs-note); color: var(--ink-2); }
.os fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.os legend { padding: 0; margin-bottom: 5px; }
.os input[type="text"], .os input[type="email"], .os input[type="url"], .os select, .os textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--field-line); background: #fff; color: var(--ink); font: 400 var(--fs-md)/1.4 var(--sans);
}
.os input[type="file"] { width: 100%; padding: var(--s-2) 0; color: var(--ink); font: 400 var(--fs-sm)/1.4 var(--sans); }
.os input[type="color"] { width: 100%; height: 44px; padding: 2px; border-radius: var(--r); border: 1px solid var(--field-line); background: #fff; }
.os textarea { min-height: 88px; resize: vertical; }
.os select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23171512' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 36px; }
.os input:focus, .os select:focus, .os textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.os [aria-invalid="true"] { border-color: var(--deep); }
.os label.check { flex-direction: row; align-items: flex-start; gap: var(--s-2); }
.os label.check input { width: auto; margin-top: 3px; }
.os .req { font: 400 var(--fs-2xs)/1 var(--label); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); }
.os-hint { font-size: var(--fs-note); line-height: 1.45; color: var(--ink-2); }
.os-hint.err { color: var(--deep); }

/* Seasons and teams: chips a thumb can hit. */
.os-set { display: grid; gap: var(--s-2); }
.os-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.os-chip { appearance: none; min-width: 44px; min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: 500 var(--fs-sm)/1 var(--sans); cursor: pointer; }
.os-chip:hover { border-color: var(--ink); }
.os-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.os-chip[disabled] { opacity: .45; cursor: default; }

/* Graphics: one card for each of the four places a graphic can go. */
.os-graphics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin-bottom: var(--s-5); }
.os-g { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-4); border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--cream); min-width: 0; }
.os-g > label { font: 600 var(--fs-md)/1.3 var(--sans); color: var(--ink); }
.os-held { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-3); }
.os-held img { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: var(--r); border: 1px solid var(--hair); background: #fff; }
.os-held label { flex: 1 1 140px; min-width: 0; }
.os-photo-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.os-photo-list:empty { display: none; }
.os-photo-list img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--hair); }
.os-gc { display: grid; gap: var(--s-4); }
.os-gc:empty { display: none; }

/* Pay: the Buy panel's price card, its account line, its message and its button. */
.os-pay .price { justify-items: start; gap: 0; max-width: none; margin: 0 0 var(--s-5); padding: 0 0 var(--s-4); border-top: 0; border-bottom: 1px solid var(--hair); text-align: left; }
.os-pay .price-fig { margin: 0; font: 600 var(--fs-h3)/1.2 var(--serif); }
.os-pay .price-fig small { display: inline; margin: 0 0 0 var(--s-2); font: 400 var(--fs-sm)/1.2 var(--sans); color: var(--ink-2); }
.os-pay .price-what { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.os-pay .price-terms { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.os-acct, .os-closed { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r); background: var(--paper-2); font-size: var(--fs-sm); color: var(--ink); }
.os-link { appearance: none; border: 0; background: none; padding: 0; color: var(--deep); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.os-go { display: flex; flex-direction: column; gap: var(--s-3); }
.os-go .btn.big { width: 100%; min-height: 52px; font-size: var(--fs-md); }
.os-go .fine { margin: 0; font-size: var(--fs-note); color: var(--ink-2); }
.os-msg { margin: var(--s-4) 0 0; padding: 12px 14px; border-radius: var(--r); font-size: var(--fs-sm); }
.os-msg:empty { display: none; }
.os-msg.ok { background: var(--green-soft); color: var(--green); }
.os-msg.err { background: var(--red-soft); color: var(--deep); }
.os-msg:focus { outline: none; }
.os-talk { margin: var(--s-5) 0 0; text-align: center; }

@media (max-width: 640px) {
  .os-grid, .os-graphics { grid-template-columns: 1fr; }
  .os-sec { padding-block: var(--s-5) var(--s-5); }
  .os-g { padding: var(--s-3); }
}
