* { -webkit-box-sizing: border-box; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: #111;
  background: #f4f5f7;
}
.hidden { display: none !important; }

.bar {
  background: #1f3a5f;
  color: #fff;
  padding: 12px 16px;
  overflow: hidden;
}
.bar .title { font-weight: bold; float: left; }
.bar .links { float: right; }
.bar a { color: #fff; margin-left: 16px; }

main { max-width: 480px; margin: 0 auto; padding: 16px; }

label { display: block; margin: 16px 0 4px; font-weight: bold; }
input[type=text], input[type=password], select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 12px;
  font-size: 20px;
  font-family: inherit;
  color: #111;
  border: 1px solid #999;
  border-radius: 6px;
  background: #fff;
}
input[type=text]:focus, input[type=password]:focus, select:focus { outline: 2px solid #1f3a5f; border-color: #1f3a5f; }

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  /* down arrow (inline SVG data URI, allowed by CSP img-src data:) */
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E") no-repeat 96% 50%;
}

.unit-price { margin: 8px 0 0; font-size: 18px; color: #1f3a5f; font-weight: bold; }
.unit-price.missing { color: #9b1c1c; }

button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 20px;
  border-radius: 6px;
  border: 1px solid #1f3a5f;
  background: #fff;
  color: #1f3a5f;
  cursor: pointer;
  -webkit-appearance: none;
}
button.primary { background: #1f3a5f; color: #fff; font-weight: bold; }
button[disabled] { opacity: 0.6; }

.error { background: #fde8e8; color: #9b1c1c; padding: 12px; border-radius: 6px; margin: 0 0 8px; }
.ok { color: #046c4e; font-weight: bold; text-align: center; }

.qr { background: #fff; padding: 8px; border-radius: 6px; }
.qr svg { display: block; width: 100%; height: auto; }
.total { text-align: center; font-size: 34px; font-weight: bold; margin: 16px 0 4px; }
.summary { text-align: center; color: #333; margin: 0; word-wrap: break-word; }
h2 { font-size: 22px; margin: 0; }
