.shop-tracking-order .shop-tracking-heading { margin-bottom: 14px; }
.shop-tracking-order .shop-tracking-heading h2 { font-size: 1.1rem; }
.shop-tracking-order #shop-tracking-name { margin: 0; font-size: 1rem; }
.shop-tracking-order :is(#shop-tracking-pickup, .shop-tracking-payment-summary) {
  margin: 5px 0 0;
  font-size: .875rem;
  line-height: 1.55;
}
.shop-tracking-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45em;
  font-weight: 650;
}
.shop-tracking-order .shop-tracking-result { justify-content: center; }
.shop-tracking-result:has(.shop-print-check:not([hidden])) { color: #16674f; }
.shop-print-check {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  background: #e6f3ed;
  color: #14634c;
}
.shop-print-check::after {
  width: .64em;
  height: .4em;
  margin-top: -.15em;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  box-sizing: border-box;
  transform: rotate(-45deg);
  content: '';
}
.shop-print-check:not([hidden]) { animation: shop-print-complete .22s ease-out both; }
.shop-queue {
  margin-block: 16px;
  padding: 13px clamp(12px, 3vw, 18px);
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: #f8fafc;
  color: #1f344f;
  text-align: center;
}
.shop-queue h3 { margin: 0 0 9px; font-size: .95rem; font-weight: 750; }
.shop-queue [hidden], .shop-queue[hidden], .shop-print-check[hidden] { display: none; }
.shop-queue .shop-queue-lines { margin: 0; padding: 0; list-style: none; }
.shop-queue .shop-queue-row { margin: 0; padding-block: 10px; border-top: 1px solid #dce4ee; list-style: none; }
.shop-queue .shop-queue-row:last-child { padding-bottom: 0; }
.shop-queue-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 9px; }
.shop-queue-part { font-size: .875rem; font-weight: 700; }
.shop-queue-sheets { margin: 6px 0 0; color: #475d78; font-size: .875rem; }
.shop-queue-sheets strong { color: #193c74; font-size: 1rem; font-variant-numeric: tabular-nums; }
.shop-queue-pages {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  gap: 0 8px;
  margin: 8px 0 0;
  color: #234f91;
  font-size: .875rem;
}
.shop-queue-page-number { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.shop-queue-page-source { grid-column: 1 / -1; color: #475d78; font-size: .75rem; }
.shop-queue-state {
  padding: 2px 8px;
  border-radius: 5px;
  background: #e9eef4;
  color: #354a68;
  font-size: .8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.shop-queue-row[data-graphic="printing"] .shop-queue-state { background: #e6effd; color: #204f9c; }
.shop-queue-row[data-tone="done"] .shop-queue-state { background: #e6f3ed; color: #16674f; }
.shop-queue-row[data-tone="attention"] .shop-queue-state { background: #fff0d9; color: #75440e; }
.shop-queue-estimate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 11px 0 0;
}
.shop-queue-estimate > div { padding-inline: 8px; }
.shop-queue-estimate > div + div { border-inline-start: 1px solid #dce4ee; }
.shop-queue-estimate dt, .shop-queue-day { font-size: .78rem; color: #516580; }
.shop-queue-estimate dd { margin: 2px 0 0; line-height: 1.25; }
.shop-queue-clock, .shop-queue-finish {
  display: block;
  color: #193c74;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.shop-queue-day { display: block; margin-top: 2px; }
.shop-queue-detail, .shop-queue-note { margin: 6px 0 0; font-size: .79rem; color: #475d78; }
.shop-queue-note { margin-top: 10px; }
.shop-print-scene {
  display: none;
  grid-template-columns: minmax(48px, 1fr) minmax(106px, 1.15fr);
  align-items: center;
  gap: 4px;
  min-height: 116px;
  margin: 10px 0 12px;
  padding: 0 clamp(10px, 5%, 24px);
  border-radius: 9px;
  background: linear-gradient(145deg, #edf4fc, #f7faff);
  color: #23508a;
}
.shop-queue-row:is([data-graphic="waiting"], [data-graphic="sending"], [data-graphic="received"], [data-graphic="printing"]) .shop-print-scene { display: grid; }
.shop-print-track {
  position: relative;
  min-width: 0;
  height: 44px;
  margin-top: -12px;
}
.shop-print-track::before {
  position: absolute;
  top: calc(50% - 1px);
  inset-inline: 16px 3px;
  border-top: 2px dashed #9db8d9;
  content: '';
}
.shop-print-track::after {
  position: absolute;
  top: calc(50% - 4px);
  inset-inline-end: 2px;
  width: 6px;
  height: 6px;
  border: solid #5276a6;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  content: '';
}
.shop-print-file {
  position: absolute;
  z-index: 1;
  inset-inline-start: 0;
  top: 4px;
  width: 29px;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid #82a3cb;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 8px #24456c12;
}
.shop-print-file::before, .shop-print-output i {
  position: absolute;
  top: 10px;
  left: 6px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #597eac;
  box-shadow: 0 5px #9db3ce, 0 10px #9db3ce;
  content: '';
}
.shop-print-packet { display: none; z-index: 2; border-color: #3978c7; }
.shop-queue-row[data-graphic="sending"] .shop-print-packet {
  display: block;
  animation: shop-print-send 2.4s cubic-bezier(.38,.05,.36,1) infinite;
}
.shop-print-machine {
  position: relative;
  width: 100%;
  max-width: 164px;
  height: 100px;
  justify-self: center;
}
.shop-print-tray {
  position: absolute;
  inset: 5px 20% auto;
  height: 33px;
  border: 1px solid #9db3cd;
  border-radius: 5px 5px 2px 2px;
  background: #fcfdff;
  box-shadow: 0 2px 6px #254b7a15;
}
.shop-print-unit {
  position: absolute;
  z-index: 1;
  inset: 23px 0 auto;
  height: 47px;
  border: 1px solid #294969;
  border-radius: 9px;
  background: linear-gradient(180deg, #446988 0 31%, #315473 32%, #203d5b 100%);
  box-shadow: 0 5px 10px #193b6229;
}
.shop-print-lamp {
  position: absolute;
  top: 8px;
  inset-inline-end: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ee6db;
}
.shop-print-slot {
  position: absolute;
  inset: 23px 16% auto;
  height: 9px;
  border-radius: 3px;
  background: #142a43;
  box-shadow: 0 1px #7390a7;
}
.shop-print-output {
  position: absolute;
  z-index: 2;
  inset: 50px 23% auto;
  height: 34px;
  border: 1px solid #93aeca;
  border-radius: 2px 2px 4px 4px;
  background: #fff;
  box-shadow: 0 3px 8px #24456c1c;
  clip-path: inset(0 0 85%);
}
.shop-print-output i { width: 64%; left: 18%; }
.shop-queue-row[data-graphic="printing"] .shop-print-output { animation: shop-print-output 2.6s ease-in-out infinite; }
.shop-queue-row[data-graphic="printing"] .shop-print-track { opacity: .6; }
@keyframes shop-print-send {
  0%, 10% { inset-inline-start: 0; opacity: 0; transform: scale(.9); }
  18% { opacity: 1; }
  76% { inset-inline-start: calc(100% - 26px); opacity: 1; transform: scale(.85); }
  86%, 100% { inset-inline-start: calc(100% - 17px); opacity: 0; transform: scale(.68); }
}
@keyframes shop-print-output {
  0%, 8% { clip-path: inset(0 0 85%); }
  58%, 86% { clip-path: inset(0); }
  100% { clip-path: inset(0 0 85%); }
}
@keyframes shop-print-complete {
  from { transform: scale(.9); opacity: .5; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-queue-row[data-graphic="sending"] .shop-print-packet,
  .shop-queue-row[data-graphic="printing"] .shop-print-output,
  .shop-print-check:not([hidden]) { animation: none; }
  .shop-queue-row[data-graphic="sending"] .shop-print-packet { display: none; }
  .shop-queue-row[data-graphic="printing"] .shop-print-output { clip-path: none; }
}

.shop-order-alert {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
}
.shop-order-alert-card {
  --alert-accent: #2056c5;
  --alert-soft: #edf4ff;
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 350px);
  padding: 27px 18px 25px;
  border: 1px solid #d9e5f6;
  border-radius: 24px;
  background: linear-gradient(165deg, var(--alert-soft), #fff 62%);
  color: #13284a;
  text-align: center;
  box-shadow: 0 18px 58px rgb(19 40 74 / 28%);
  animation: shop-order-alert-appear 3400ms ease both;
}
.shop-order-alert-card[data-kind="print"] {
  --alert-accent: #10765c;
  animation-duration: 3500ms;
  --alert-soft: #e8f7f0;
  border-color: #cce8df;
}
.shop-order-alert-card strong {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.45;
}
.shop-order-alert-detail { color: #465e7c; font-size: .9rem; }
.shop-order-alert-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border: 1px solid var(--alert-accent);
  border-radius: 20px;
  background: var(--alert-soft);
  color: var(--alert-accent);
}
.shop-order-alert-icon > span {
  position: relative;
  box-sizing: border-box;
  width: 32px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 5px;
}
.shop-order-alert-icon > span::before {
  position: absolute;
  content: '';
  inset: 5px 0 auto;
  border-top: 2px solid currentColor;
}
.shop-order-alert-icon::after {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--alert-accent);
  color: #fff;
  content: '✓';
  font: 700 15px/1 system-ui, sans-serif;
}
.shop-order-alert-card[data-kind="print"] .shop-order-alert-icon > span {
  height: 18px;
  background: var(--alert-soft);
}
.shop-order-alert-card[data-kind="print"] .shop-order-alert-icon > span::before,
.shop-order-alert-card[data-kind="print"] .shop-order-alert-icon > span::after {
  position: absolute;
  left: 5px;
  right: 5px;
  height: 8px;
  content: '';
  background: var(--alert-soft);
  border: 2px solid currentColor;
  border-radius: 2px;
}
.shop-order-alert-card[data-kind="print"] .shop-order-alert-icon > span::before { top: -10px; }
.shop-order-alert-card[data-kind="print"] .shop-order-alert-icon > span::after { bottom: -8px; }
@keyframes shop-order-alert-appear {
  0% { opacity: 0; transform: translateY(8px) scale(.97); }
  9%, 93% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-4px) scale(.99); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-order-alert-card { animation: none; }
}

.shop-qr-download:not([hidden]) {
  display: flex; width: fit-content; margin: 0 auto 12px; min-height: 44px;
}
.shop-qr-download[hidden] { display: none !important; }
