/* Canna Fab order status (tracker #5). Served at /apps/order-status/widget.css
   through the Shopify App Proxy; the page body is docs/shopify-order-status-page.html.
   Everything is scoped under .cfos so the store theme and this page can't
   restyle each other. Phone first: one column, 16px inputs (no iOS zoom),
   48px tap targets. */
.cfos {
  --cfos-green: #213432;
  --cfos-green-2: #2f4a47;
  --cfos-lime: #9bbf3a;
  --cfos-ink: #1f2a28;
  --cfos-muted: #5f6b69;
  --cfos-line: #dfe5e4;
  --cfos-error: #9b1c1c;
  box-sizing: border-box;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  color: var(--cfos-ink);
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}
.cfos *, .cfos *::before, .cfos *::after { box-sizing: border-box; }
.cfos-heading, .cfos h2, .cfos-stage {
  font-family: Oswald, "Oswald", "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--cfos-green);
  font-weight: 500;
  margin: 0;
}
.cfos-heading { font-size: 2rem; line-height: 1.15; text-align: center; }
.cfos-intro { text-align: center; color: var(--cfos-muted); margin: .5rem 0 1.5rem; }
.cfos-field { margin: 0 0 1rem; }
.cfos label { display: block; font-size: .875rem; font-weight: 600; margin: 0 0 .375rem; color: var(--cfos-ink); }
.cfos input {
  display: block; width: 100%; min-height: 48px; margin: 0;
  padding: .625rem .75rem; font: inherit; font-size: 16px; color: var(--cfos-ink);
  background: #fff; border: 1px solid #c5cecc; border-radius: 2px;
  -webkit-appearance: none; appearance: none;
}
.cfos input:focus { outline: none; border-color: var(--cfos-green); box-shadow: 0 0 0 1px var(--cfos-green); }
.cfos-button {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: .75rem 1rem;
  font-family: Oswald, "Oswald", "Arial Narrow", Arial, sans-serif; font-size: .9375rem;
  text-transform: uppercase; letter-spacing: .08em; text-align: center; text-decoration: none;
  color: #fff; background: var(--cfos-green); border: 0; border-radius: 2px; cursor: pointer;
}
.cfos-button:hover, .cfos-button:focus { background: var(--cfos-green-2); color: #fff; }
.cfos-button[disabled] { opacity: .6; cursor: default; }
.cfos-error {
  margin: 1rem 0 0; padding: .625rem .75rem; font-size: .9375rem;
  color: var(--cfos-error); background: #fdf2f2; border: 1px solid #f3c7c7; border-radius: 2px;
}
.cfos-error:empty { display: none; }
.cfos-hello { text-align: center; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cfos-muted); margin: 0; }
.cfos-stage { text-align: center; font-size: 1.75rem; line-height: 1.2; margin-top: .25rem; }
.cfos-stage-desc { text-align: center; color: var(--cfos-muted); margin: .5rem 0 0; }
.cfos-rows { margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--cfos-line); }
.cfos-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--cfos-line); }
.cfos-row dt { color: var(--cfos-muted); margin: 0; }
.cfos-row dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.cfos-parcel { margin-top: 1rem; }
.cfos-invoice { margin: .75rem 0 0; font-size: .9375rem; }
.cfos-section { margin-top: 2rem; }
.cfos h2 { font-size: 1.125rem; margin-bottom: .75rem; }
.cfos-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cfos-line); }
.cfos-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .625rem 0; border-bottom: 1px solid var(--cfos-line); }
.cfos-item-name { min-width: 0; overflow-wrap: anywhere; }
.cfos-item-variant { display: block; font-size: .875rem; color: var(--cfos-muted); }
.cfos-item-qty { flex-shrink: 0; color: var(--cfos-muted); font-variant-numeric: tabular-nums; }
.cfos-timeline { list-style: none; margin: 0 0 0 .5rem; padding: 0; border-left: 2px solid var(--cfos-line); }
.cfos-timeline li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.cfos-timeline li:last-child { padding-bottom: 0; }
.cfos-timeline li::before {
  content: ""; position: absolute; left: -7px; top: .45rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--cfos-green);
}
.cfos-timeline li.cfos-now::before { background: var(--cfos-lime); box-shadow: 0 0 0 4px rgba(155, 191, 58, .25); }
/* Reached: a tick. Still to come: hollow and grey. */
.cfos-timeline li.cfos-done::after {
  content: ""; position: absolute; left: -3.5px; top: calc(.45rem + 2px);
  width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.cfos-timeline li.cfos-next::before { background: #fff; border: 2px solid #c5cecc; }
.cfos-step { margin: 0; font-weight: 600; }
.cfos-now .cfos-step { color: var(--cfos-green); }
.cfos-next .cfos-step { color: var(--cfos-muted); font-weight: 400; }
.cfos-when { margin: 0; font-size: .875rem; color: var(--cfos-muted); }
.cfos a:not(.cfos-button) { color: var(--cfos-green); text-decoration: underline; text-underline-offset: 2px; }
.cfos-note { margin-top: 1.5rem; padding: .875rem 1rem; background: #f4f7ec; border-left: 3px solid var(--cfos-lime); border-radius: 2px; }
.cfos-note h2 { font-size: .9375rem; margin-bottom: .375rem; }
.cfos-note-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.cfos-item-state { display: block; font-size: .8125rem; color: var(--cfos-muted); }
.cfos-item-shipped { color: var(--cfos-green); font-weight: 600; }
.cfos-item-shipped a { font-weight: 400; }
.cfos-guides { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cfos-line); }
.cfos-guides li { padding: .625rem 0; border-bottom: 1px solid var(--cfos-line); }
.cfos-guides a { display: inline-block; min-height: 24px; }
.cfos-updated { margin: 1.5rem 0 0; font-size: .8125rem; color: var(--cfos-muted); }
.cfos-again {
  display: inline-block; margin: 2rem 0 0; padding: .5rem 0; min-height: 44px;
  font: inherit; font-size: .9375rem; color: var(--cfos-green); background: none; border: 0;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.cfos-help { text-align: center; font-size: .875rem; color: var(--cfos-muted); margin: 2rem 0 0; }
.cfos-help a { color: var(--cfos-green); text-decoration: underline; text-underline-offset: 2px; }
.cfos-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 640px) {
  .cfos { padding-top: 2.5rem; }
  .cfos-heading { font-size: 2.5rem; }
}
