.order-top {
  background: radial-gradient(ellipse at 28% 0, #fff0bb 0%, #fffaf0 72%);
}
.order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-width: 420px;
  list-style: none;
  margin: 0 0 15px;
  margin-inline-end: 45px;
  padding: 0;
}
.order-steps li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  position: relative;
  padding: 0 0 9px;
  color: #695d4d;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.15;
}
.order-steps li::before,
.order-steps li::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  border-radius: 3px;
  background: #ded2b9;
}
.order-steps li::after {
  background: #9d620e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .36s cubic-bezier(.2,.72,.2,1);
}
.order-steps li:is([aria-current], [data-done])::after { transform: scaleX(1); }
.order-steps li[aria-current] { color: var(--ink); font-weight: 700; }
.order-steps li > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffffa1;
  font-size: .75rem;
}
.order-steps li[aria-current] > span { color: var(--ink); background: var(--yellow); }
.order-step-description { margin: 5px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
#order-title:focus { outline: 0; }

.order-body { flex: 1 1 auto; }
.order-body > [data-order-panel]:not([hidden]) { animation: order-step-in .34s cubic-bezier(.22,.75,.24,1) both; }
.order-dialog[data-direction="back"] .order-body { --step-start: -15px; }
@keyframes order-step-in {
  from { opacity: 0; transform: translateX(var(--step-start, 15px)); }
  to { opacity: 1; transform: translateX(0); }
}
.order-body #video-topic { min-height: 108px; margin-bottom: 20px; }
.order-dialog .brief-type-grid label > span { border-radius: 10px; }

.order-style-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: stretch;
  gap: 14px;
}
.order-style-preview {
  --gallery-paper: #fff7e8;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 11px;
  padding: 15px;
  border-radius: 15px;
  color: var(--gallery-paper);
  background: radial-gradient(ellipse at 50% 14%, color-mix(in srgb, var(--style-accent) 55%, #211c2b), #211929 76%);
}
.order-style-preview .style-screen { width: min(100%, 148px); border-radius: 9px; }
.order-style-preview .style-play { width: 44px; height: 44px; inset-inline: auto 6px; inset-block-end: 6px; }
.order-style-caption { min-width: 0; width: 100%; max-width: 25ch; text-align: center; }
.order-style-caption strong { font: 700 clamp(20px, 2.7vw, 27px)/1.05 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.order-style-caption p { margin: 4px 0 0; color: #e4dce7; font-size: .875rem; line-height: 1.35; }
.order-style-options { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.order-style-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.order-style-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 51px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid #e1d5bf;
  color: var(--ink);
  background: #fffdf8;
  cursor: pointer;
  transition: border-color .16s, background-color .16s;
}
.order-style-shortcut:has(input:checked) { border-color: #a26d13; background: #fff0bf; }
.order-style-shortcut input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: #8f5e08; }
.order-style-shortcut span { line-height: 1.15; font-size: .875rem; }
.order-style-shortcut small { display: block; color: #625548; font-size: .75rem; margin-top: 3px; }
.order-dialog .style-grid { gap: 8px; }
.order-dialog .style-option-card { transition: border-color .16s, transform .2s; }
.order-dialog .style-option-card span { padding-inline: 6px; }
.order-dialog .style-option:hover .style-option-card { transform: translateY(-2px); }
.order-dialog .style-option input:focus-visible + .style-option-card { outline-color: #2543b6; outline-offset: 1px; }
.order-dialog [data-order-panel="style"]:not([hidden]) .style-option { animation: order-step-in .32s var(--card-delay, .06s) ease both; }
.order-dialog .style-option:nth-child(n+4) { --card-delay: .10s; }
.order-dialog .style-option:nth-child(n+7) { --card-delay: .14s; }

.order-actions,
.order-pay-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-actions > p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.2; }
.order-actions > p strong { display: block; margin-top: 4px; color: var(--ink); font-size: .9375rem; }
.order-actions .button { min-width: min(52%, 250px); padding-inline: clamp(8px, 3vw, 18px); white-space: normal; }
.order-back-button {
  min-height: 44px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.order-back-button:disabled { opacity: .6; cursor: progress; }
.order-pay-note .dialog-footnote { margin: 0; text-align: end; }
.brief-review [data-summary-style] { color: var(--muted); }

@media (max-width: 620px) {
  .order-dialog[data-step="style"] .order-steps { margin-bottom: 10px; }
  .order-dialog[data-step="style"] .order-body { padding-block: 12px; }
  .order-style-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .order-style-preview {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
  }
  .order-style-preview .style-screen { width: min(100%, 88px); }
  .order-style-caption { text-align: start; }
  .order-style-shortcut { min-height: 44px; }
  .order-dialog .style-option-card { aspect-ratio: 1.8 / 1; }
}
