.preorder-badge {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #b09a68;
  border-radius: 4px;
  background: #f1e6cb;
  color: #614b20;
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0;
}
.preorder-badge.is-in-production {
  border-color: #477448;
  background: #477448;
  color: #fffdf6;
}
.preorder-notice {
  padding: 16px 18px;
  margin: 16px 0;
  border: 1px solid #b09a68;
  border-left: 4px solid #977539;
  background: #faf2df;
  color: #493e2b;
  font-size: 15px;
  line-height: 1.6;
}
.preorder-progress {
  display: grid;
  grid-template-columns: 2.2em minmax(60px, 1fr) 2.2em;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 14px;
  color: #725b2d;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.preorder-progress--pdp {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 12px 36px 8px;
  row-gap: 8px;
  max-width: 320px;
  padding: 7px 0;
}
.preorder-progress-heading {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: 0.18em;
}
.preorder-progress-stat {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}
.preorder-progress-stat:nth-child(3) {
  align-items: flex-end;
}
.preorder-progress-value {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 24px;
}
.preorder-progress-caption {
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.04em;
}
.preorder-progress--pdp .preorder-progress-track {
  grid-column: 1 / -1;
  grid-row: 3;
  height: 8px;
}
.preorder-progress-track {
  position: relative;
  display: block;
  height: 7px;
  border: 1px solid rgba(151, 117, 57, 0.32);
  border-radius: 999px;
  background: rgba(176, 154, 104, 0.16);
}
.preorder-progress-fill {
  position: absolute;
  inset: -1px auto -1px -1px;
  width: var(--preorder-progress);
  min-width: 0;
  max-width: calc(100% + 2px);
  border-radius: inherit;
  background: linear-gradient(90deg, #b09a68, #8e7138);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.preorder-progress-fill i {
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px;
  height: 14px;
  border: 1px solid #fffdf6;
  border-radius: 50%;
  background: #806226;
  box-shadow: 0 1px 3px rgba(97, 75, 32, 0.24);
  transform: translate(50%, -50%);
  animation: preorderPulse 2.2s ease-in-out infinite;
}
.preorder-progress.is-ready .preorder-progress-track {
  border-color: rgba(71, 103, 67, 0.55);
  background: rgba(95, 130, 90, 0.18);
  box-shadow: 0 0 0 3px rgba(95, 130, 90, 0.08);
}
.preorder-progress.is-ready .preorder-progress-fill {
  background: linear-gradient(90deg, #829c72, #4f754d);
}
.preorder-progress.is-ready .preorder-progress-fill i {
  width: 14px;
  height: 14px;
  border-width: 1px;
  border-color: #f8f2df;
  background: #416641;
  box-shadow: 0 1px 3px rgba(65, 102, 65, 0.24);
}
@keyframes preorderPulse {
  0%,
  100% {
    box-shadow: 0 1px 3px rgba(97, 75, 32, 0.24);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(151, 117, 57, 0.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .preorder-progress-fill {
    transition: none !important;
  }
  .preorder-progress-fill i {
    animation: none !important;
  }
}
.preorder-notice p {
  margin: 6px 0;
}
.preorder-notice a,
.preorder-dialog a {
  text-decoration: underline;
  color: inherit;
}
.preorder-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid #b09a68;
  border-radius: 12px;
  padding: 24px;
  background: #faf6ec;
  color: #493e2b;
  line-height: 1.6;
}
.preorder-dialog::backdrop {
  background: #231f1b88;
}
.preorder-dialog h2 {
  margin-top: 0;
  font-size: 25px;
}
.preorder-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.preorder-consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: #775e2e;
}
.preorder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.preorder-actions button {
  white-space: normal;
}
.preorder-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.preorder-error {
  color: #983b2f;
  font-size: 14px;
}
.preorder-dialog :focus-visible {
  outline: 3px solid #806226;
  outline-offset: 3px;
}
