.order-main {
  width: min(90%, 1320px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 70px) 0 65px;
}

.order-header .nav-buy[aria-current="page"] {
  border-color: #a27a43;
  background: #271b10;
  color: #f1d5a1;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: "gallery intro" "gallery form";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 22px clamp(25px, 5vw, 75px);
}

.order-intro { grid-area: intro; }
.order-intro h1,
.order-message h1,
.order-manager h1 {
  font-size: clamp(36px, 4.7vw, 66px);
  line-height: 1.16;
  color: #ebd29f;
  margin: .2em 0 .28em;
}

.order-intro h1 em { color: #d3a460; }
.order-byline { color: var(--muted); font-size: 13px; line-height: 1.6; }
.order-gallery { grid-area: gallery; min-width: 0; }
.order-photo {
  display: grid;
  place-items: center;
  height: clamp(420px, 49vw, 660px);
  margin: 0;
  background: #100c09;
  border: 1px solid #69502d;
  overflow: hidden;
}

.order-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.order-thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.order-thumbs button { padding: 2px; border: 1px solid var(--line); background: #19120d; min-width: 0; cursor: pointer; }
.order-thumbs button[aria-pressed="true"] { border-color: #dfb977; }
.order-thumbs img { display: block; width: 100%; height: auto; }

.order-panel {
  grid-area: form;
  border: 1px solid #604726;
  background: linear-gradient(145deg, #261b11, #15100b 74%);
  padding: clamp(18px, 3vw, 34px);
}

.order-promotion { margin: 0 0 6px; color: #e8c78d; font-size: 13px; font-weight: 700; }
.order-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 22px; }
.order-price span { color: var(--muted); font-size: 13px; }
.order-price strong { font-family: var(--serif); color: #e8c78d; font-size: clamp(26px, 3.5vw, 37px); font-weight: 400; }
.order-panel h2 { font-size: 24px; margin: 0 0 18px; }
.order-panel form { display: grid; gap: 15px; }
.order-field { display: grid; gap: 6px; min-width: 0; }
.order-field-row { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(75px, 1fr); gap: 14px; }
.order-field label { color: #e4c895; font-size: 13px; }
.order-field label span { color: var(--muted); }
.order-field input,
.order-field textarea {
  width: 100%;
  color: #f0d8ac;
  border: 1px solid #6d5332;
  border-radius: 0;
  background: #100c09;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
}

.order-field input { min-height: 43px; }
.order-field textarea { resize: vertical; }
.order-field :is(input, textarea):focus-visible { outline: 2px solid #dfb977; outline-offset: 2px; }
.order-subtotal { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 15px; font-size: 14px; }
.order-subtotal output { font-weight: 700; color: #f1d5a1; white-space: nowrap; }
.order-help { color: #c9b794; font-size: 13px; line-height: 1.65; margin: 0; }
.order-submit { justify-content: space-between; width: 100%; font-size: 14px; }
.order-error { border-left: 2px solid #dc9877; color: #f2b898; margin: 0; padding: 8px 12px; font-size: 14px; }
.order-owner-link { display: inline-block; margin-top: 22px; text-decoration: underline; text-underline-offset: 4px; }
.order-footer { margin-top: 0; border-top: 1px solid var(--line); }

.order-message { width: min(90%, 680px); margin: 65px auto; padding: clamp(24px, 5vw, 52px); border: 1px solid #604726; background: #1d150e; }
.order-message p { color: #c9b794; line-height: 1.7; }
.order-reference { font-family: var(--serif); color: #ebd29f; font-size: 23px; }
.order-manager { width: min(90%, 1200px); margin: 44px auto; }
.order-manager > a, .order-pagination a { color: #ebd29f; text-decoration: underline; text-underline-offset: 4px; }
.order-table-wrap { overflow-x: auto; margin: 26px 0; }
.order-table { width: 100%; min-width: 700px; border-collapse: collapse; background: #1c140d; font-size: 14px; text-align: left; }
.order-table :is(th, td) { padding: 13px 11px; border: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.order-table th { background: #271b10; }
.order-table td:nth-child(2), .order-table td:nth-child(4) { white-space: nowrap; }
.order-table td:last-child { max-width: 300px; white-space: pre-wrap; }
.order-pagination { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .order-header.site-header { height: auto; padding: 18px 0 12px; flex-wrap: wrap; row-gap: 15px; }
  .order-header.site-header nav { position: static; display: flex; flex-wrap: wrap; gap: 10px 18px; width: 100%; padding: 0; border: 0; background: none; box-shadow: none; }
  .order-header.site-header .nav-buy { margin: 0; padding: 9px 14px; }
  .order-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "gallery" "form"; grid-template-rows: auto; }
  .order-photo { height: clamp(290px, 104vw, 530px); }
  .order-thumbs { gap: 4px; }
}
