.ml-order {
  --order-edge: max(var(--gutter, 5vw), calc((100% - 86rem) / 2));
  --order-rule: #ccbdc1;
  color: var(--ink, #301833);
  background: var(--paper, #fff5e8);
}
.ml-order :where(h1, h2, h3, p, summary, a, label, dt, dd) { overflow-wrap: break-word; }
.ml-order p { line-height: 1.52; }
.ml-order .button {
  min-height: 3rem;
  padding: .83rem 1.3rem;
  border-radius: 2rem;
  text-align: center;
  white-space: normal;
}
.ml-order :is(button, a, input, select, summary):focus-visible {
  outline: 3px solid #974518;
  outline-offset: 3px;
}
.ml-order [tabindex="-1"] { scroll-margin-top: 6.5rem; }
.ml-order .ml-order-link, .ml-order-answers p a, .ml-order-note a {
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
.ml-order .ml-order-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ml-order .ml-order-link:hover, .ml-order-answers p a:hover { text-decoration-thickness: 2px; }

.ml-order-head { color: var(--paper, #fff5e8); background: var(--ink, #301833); }
.ml-order-cover {
  display: grid;
  grid-template-columns: var(--order-edge) minmax(0, 1fr) clamp(1.5rem, 4.6vw, 5rem) minmax(0, 1.06fr) var(--order-edge);
}
.ml-order-intro {
  grid-column: 2;
  align-self: center;
  min-width: 0;
  padding-block: clamp(2.8rem, 5.2vw, 5.2rem);
}
.ml-order h1 { font-size: clamp(3.5rem, 6.5vw, 7.25rem); line-height: .94; }
.ml-order h1 em, .ml-order-studio h2 em, .ml-order-questions h2 em { display: block; }
.ml-order h1 em { color: #ffac86; }
.ml-order-intro > p { max-width: 36ch; margin-block: 1.1rem; font-size: clamp(1rem, 1.24vw, 1.23rem); }
.ml-order-intro form { max-width: 31rem; margin-top: clamp(1.35rem, 2.6vw, 2.35rem); }
.ml-order label { display: grid; gap: .45rem; font: 680 .94rem/1.35 var(--display, sans-serif); }
.ml-order-code { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; margin-top: .43rem; }
.ml-order :where(input, select) {
  min-width: 0;
  width: 100%;
  min-height: 3rem;
  border: 1px solid #aa969f;
  border-radius: .4rem;
  background-color: #fffdfa;
  color: var(--ink, #301833);
  padding: .67rem .85rem;
  font: 500 1rem/1.35 var(--sans, sans-serif);
}
.ml-order select {
  appearance: none;
  padding-right: 2.3rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 52%), linear-gradient(135deg, currentColor 50%, transparent 52%);
  background-position: right 1.03rem center, right .75rem center;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}
.ml-order-code input { flex: 1 1 9rem; min-height: 3.1rem; border-color: #bca7b6; }
.ml-order-code input::placeholder { color: #776771; }
.ml-order-code input[aria-invalid="true"] { outline: 2px solid #ffae89; }
.ml-order-code .button { border-color: var(--paper); }
.ml-order-code .button:hover { background: #ffdfc7; color: var(--ink); }
.ml-order-intro .ml-order-link { margin-top: .3rem; font-size: .94rem; color: #f2dcd7; }
.ml-order-head :is(a, button, input):focus-visible { outline-color: #ffac86; }
.ml-order-note { font: 400 .92rem/1.45 var(--sans, sans-serif); color: #675860; }
.ml-order-note:not(:empty) { margin-top: .7rem; }
.ml-order-head .ml-order-note { color: #ffe2cc; }
.ml-order-photo { position: relative; overflow: hidden; margin: 0; }
.ml-order-photo img { width: 100%; height: 100%; object-fit: cover; }
.ml-order-cover-photo { grid-column: 4 / -1; background: #6d544a; }
.ml-order-cover-photo img { position: absolute; inset: 0; object-position: 54% 46%; }

.ml-order > :is([data-order-public], [data-order-offer], .ml-order-studio, .ml-order-questions) {
  margin-inline: var(--order-edge);
}
.ml-order-public, .ml-order-selection {
  padding-block: clamp(1.8rem, 3.8vw, 3.5rem);
  border-bottom: 1px solid var(--order-rule);
}
.ml-order-public { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.ml-order-public > div { max-width: 46rem; }
.ml-order-public h2, .ml-order-offer-head h2 { font-size: clamp(2.1rem, 3.9vw, 4.2rem); line-height: 1.02; }
.ml-order-public h2 + p, .ml-order-offer-head p { margin-top: .6rem; }
.ml-order-deadline { color: #704327; font-weight: 650; }
.ml-order-selection form {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5.25rem);
  margin-top: 1.65rem;
}
.ml-order-line { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem auto; gap: .6rem; align-items: end; }
.ml-order-line + .ml-order-line { margin-top: .85rem; }
.ml-order-line [data-remove-size], .ml-order-add {
  min-height: 2.75rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.ml-order-line [data-remove-size] { padding: .55rem .2rem; }
.ml-order-add { padding: .5rem 0; margin-top: .35rem; }
.ml-order-delivery { margin-top: 1rem; }
.ml-order-receipt { padding-inline-start: clamp(1.3rem, 3.2vw, 3.2rem); border-inline-start: 1px dashed #bca8af; }
.ml-order-receipt h3 { font-size: 1.55rem; margin-bottom: .85rem; }
.ml-order-totals { border-block: 1px solid #cdbdc6; margin: 0; }
.ml-order-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: .75rem 0; }
.ml-order-totals > div + div { border-top: 1px solid #e5d9dd; }
.ml-order-totals > div:last-child { border-color: #cdbdc6; font-weight: 750; }
.ml-order-totals dt { min-width: 0; }
.ml-order-totals small { display: block; font-size: .82rem; color: #675860; }
.ml-order-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ml-order-selection [data-pay-route] { margin-top: 1rem; }

.ml-order-studio, .ml-order-questions { display: grid; align-items: center; column-gap: clamp(2.5rem, 6.6vw, 7.5rem); }
.ml-order-studio {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  padding-block: clamp(3.5rem, 7.7vw, 7.5rem);
}
.ml-order-studio-photo { background: #e0cbb7; }
.ml-order-studio-photo img { aspect-ratio: 1.52; height: auto; object-position: 52% 50%; }
.ml-order-studio h2, .ml-order-questions h2 { font-size: clamp(2.7rem, 4.6vw, 5.2rem); line-height: .99; }
.ml-order-studio p { max-width: 39ch; margin-top: 1.2rem; font-size: clamp(1rem, 1.2vw, 1.18rem); }
.ml-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.2rem; margin-top: 1.45rem; }
.ml-order-questions {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  border-top: 1px solid var(--order-rule);
  padding-block: clamp(2.6rem, 5.4vw, 5.5rem) clamp(3.5rem, 8vw, 8rem);
}
.ml-order-questions .ml-order-link { margin-top: .65rem; }
.ml-order-answers details { border-bottom: 1px solid var(--order-rule); }
.ml-order-answers details:first-child { border-top: 1px solid var(--order-rule); }
.ml-order-answers summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  cursor: pointer;
  min-height: 3.5rem;
  padding: 1.1rem 0;
  font: 670 clamp(1.1rem, 1.6vw, 1.52rem)/1.22 var(--display, sans-serif);
  letter-spacing: -.03em;
  list-style: none;
}
.ml-order-answers summary::-webkit-details-marker { display: none; }
.ml-order-answers summary::after {
  content: "";
  width: .57rem;
  height: .57rem;
  margin-right: .35rem;
  flex: none;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.ml-order-answers details[open] summary::after { transform: rotate(225deg); }
.ml-order-answers details > p { max-width: 57ch; padding: 0 1rem 1.25rem 0; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ml-order-photo { view-timeline: --order-photo block; }
    .ml-order-photo img {
      animation: ml-order-photo-drift linear both;
      animation-timeline: --order-photo;
      animation-range: entry 0% exit 100%;
    }
    @keyframes ml-order-photo-drift {
      from { transform: translateY(-2.5%) scale(1.065); }
      to { transform: translateY(2.5%) scale(1.065); }
    }
  }
}
@media (max-width: 52rem) {
  .ml-order-cover { display: block; }
  .ml-order-intro { padding: 2.5rem var(--order-edge) 1.7rem; }
  .ml-order h1 { font-size: clamp(3.5rem, 8.6vw, 4.75rem); }
  .ml-order-cover-photo { height: clamp(11rem, 45vw, 21rem); }
  .ml-order-cover-photo img { object-position: 52% 42%; }
  .ml-order-studio, .ml-order-questions, .ml-order-selection form { grid-template-columns: minmax(0, 1fr); }
  .ml-order-studio { row-gap: 1.75rem; }
  .ml-order-studio-photo img { max-height: 22rem; }
  .ml-order-studio p { max-width: 50ch; }
  .ml-order-receipt { padding: 1.2rem 0 0; border: 0; border-top: 1px dashed #bca8af; }
  .ml-order-questions { row-gap: 1.2rem; }
}
@media (max-width: 37rem) {
  .ml-order-line { grid-template-columns: minmax(0, 1fr) 4.75rem; }
  .ml-order-line [data-remove-size] { grid-column: 1 / -1; justify-self: start; }
}
@media (forced-colors: active) {
  .ml-order select { appearance: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-order .button { transition: none; }
  .ml-order .button:hover { transform: none; }
}
