/* A work order from the same desk as the model. */
.work-order {
  --order-ink: #282e27;
  --order-line: #999989;
  --order-muted: #596056;
  --order-green: #294539;
  --order-paper: #f1eee2;
  position: fixed;
  inset: 0;
  width: min(580px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--order-paper);
  color: var(--order-ink);
  color-scheme: light;
  border: 1px solid #6c6a5c;
  border-radius: 1px;
  box-shadow: 3px 4px 0 #a09c87, 0 20px 70px #10171073;
  font-family: Manrope, Arial, sans-serif;
}
.work-order::backdrop { background: #101913b8; backdrop-filter: blur(3px); }
.wo-sheet {
  padding: 18px clamp(22px, 5vw, 42px) 34px;
  background: linear-gradient(110deg, #fff3, transparent 45%), url('/landing/grain.svg');
  background-blend-mode: normal, soft-light;
  background-color: var(--order-paper);
}
.wo-register {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px double var(--order-line);
  padding-bottom: 7px;
  font: 800 19px/1.2 Manrope,Arial,sans-serif;
  letter-spacing: -.05em;
}
.wo-dismiss {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--order-ink);
  cursor: pointer;
}
.wo-dismiss span { position: relative; width: 20px; height: 2px; background: currentColor; transform: rotate(45deg); }
.wo-dismiss span::after { content: ''; position: absolute; inset: 0; background: currentColor; transform: rotate(90deg); }
.wo-dismiss:hover { background: #32442e0c; }
.work-order h2 {
  margin: 24px 0 12px;
  color: var(--order-ink);
  font: 800 clamp(30px,5vw,45px)/1.1 Manrope, Arial, sans-serif;
  letter-spacing: -.05em;
}
.work-order h2:focus { outline: none; }
.work-order .wo-intro { max-width: 45ch; margin: 0 0 25px; font-size: 15px; line-height: 1.5; color: var(--order-muted); }
.work-order form { display: grid; gap: 19px; margin: 0; }
.work-order .wo-estimate {
  margin: -8px 0 23px;
  padding: 11px 14px;
  border-left: 3px solid #9c711e;
  color: #383727;
  background: #e8ce884d;
  font: 600 13px/1.55 Manrope, Arial, sans-serif;
}
.wo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.wo-field { display: grid; gap: 4px; min-width: 0; font: 700 14px/1.4 Manrope, Arial, sans-serif; }
.wo-field small { color: var(--order-muted); font-size: 12px; font-weight: 400; margin-left: 5px; }
.work-order .wo-field input, .work-order .wo-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 6px 3px;
  border: 0;
  border-bottom: 1px solid var(--order-line);
  border-radius: 0;
  background: #fff3;
  color: var(--order-ink);
  font: 400 16px/1.5 Manrope,Arial,sans-serif;
}
.wo-field textarea { resize: vertical; }
.wo-field textarea::placeholder { color: #666b60; font-size: 14px; }
.wo-consent { display: flex; align-items: flex-start; gap: 11px; font: 400 13px/1.5 Manrope,Arial,sans-serif; cursor: pointer; }
.wo-consent input { width: 18px; height: 18px; flex: none; margin: 1px 0; accent-color: var(--order-green); }
.wo-action, .wo-secondary {
  min-height: 46px;
  padding: 10px 18px;
  font: 700 15px/1.4 Manrope, Arial, sans-serif;
  border: 1px solid var(--order-green);
  border-radius: 1px;
  cursor: pointer;
}
.wo-action { background: var(--order-green); color: #fffdf2; }
.wo-action:hover { background: #1c362a; }
.wo-action:disabled { opacity: .7; cursor: progress; }
.wo-action small { font: 400 12px monospace; }
.wo-secondary { color: var(--order-green); background: transparent; }
.wo-secondary:hover { background: #223e3110; }
.work-order button:focus-visible, .wo-consent input:focus-visible { outline: 2px solid #396a50; outline-offset: 3px; }
.work-order .wo-field input:focus, .work-order .wo-field textarea:focus {
  outline: none;
  background: #fff8;
  border-color: #396a50;
  box-shadow: inset 0 -1px #396a50;
}
.wo-error { margin: 0; color: #973d24; font-size: 14px; line-height: 1.5; }
.wo-error:empty { display: none; }
.wo-receipt { border-top: 2px solid var(--order-ink); margin: 0 0 26px; font-size: 14px; }
.wo-receipt div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--order-line); padding: 13px 0; }
.wo-receipt dt { color: var(--order-muted); }
.wo-receipt dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
#request-number { font-size: 15px; }
.wo-receipt, .wo-estimate, .wo-field input, .wo-field textarea { font-variant-numeric: lining-nums tabular-nums; }
.wo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wo-sheet [hidden] { display: none !important; }
body:has(.work-order[open]) { overflow: hidden; }
@media (max-width: 480px) {
  .work-order { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); }
  .wo-sheet { padding: 10px 18px 24px; }
  .wo-grid { grid-template-columns: 1fr; gap: 13px; }
  .work-order form { gap: 13px; }
  .work-order h2 { margin-top: 18px; }
  .work-order .wo-intro { margin-bottom: 19px; font-size: 14px; }
  .wo-receipt div { grid-template-columns: 88px 1fr; }
  .wo-actions > * { flex: 1 0 auto; }
}
