[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header nav [aria-current="page"] {
  color: var(--orange);
  text-decoration: underline;
}

.order-page {
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  background-image: radial-gradient(#9e8a622f .7px, transparent .7px);
  background-size: 5px 5px;
}

.order-heading {
  overflow: hidden;
  border-bottom: 4px solid var(--orange);
  background: radial-gradient(ellipse at 11% 100%, #28201a, #080808 70%);
  color: var(--paper);
}

.order-heading-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26%);
  align-items: center;
  min-height: 226px;
  padding-block: 34px;
}

.order-heading h1 { font-size: clamp(3.25rem, 5.4vw, 6rem); }

.order-heading-inner > div > p:last-child {
  max-width: 39ch;
  color: #ded6c9;
  font-size: 1.06rem;
  line-height: 1.5;
}

.order-rocket {
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  transform: rotate(-6deg);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
  gap: clamp(1.15rem, 3.4vw, 3rem);
  align-items: start;
  padding-block: clamp(1.5rem, 4vw, 3.25rem) clamp(3rem, 6vw, 5rem);
}

.order-controls { display: grid; gap: 1.2rem; }

.order-panel {
  padding: clamp(1rem, 2.6vw, 2rem);
  background: #fffcf5;
  border: 1px solid #b9ad9b;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #dacebc;
}

.order-panel h2, .order-summary h2, .review-dialog h2 {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 3.45vw, 3rem);
  line-height: 1;
}

.option-grid {
  display: grid;
  gap: .6rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.art-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shape-options, .round-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.size-options { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; }
.pack-options { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1rem; }
.shape-options legend, .size-options legend, .pack-options legend, .round-controls legend {
  padding: 0;
  margin-bottom: .55rem;
  font-weight: 700;
}
#size-help { margin-top: .4rem; }

.order-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  min-width: 0;
  padding: .85rem;
  border: 1px solid #aca18f;
  border-radius: 3px;
  cursor: pointer;
}

.order-option:hover { border-color: #a6370a; }
.order-option:has(:checked) { background: #ffe8d9; border-color: #a6370a; }
.order-option:focus-within { outline: 2px solid #a6370a; outline-offset: 2px; }

.order-option input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: .18rem 0 0;
  accent-color: #af3a0c;
}

.shape-option, .size-option {
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem .35rem;
}
.shape-option input, .size-option input { margin: 0; }
.order-option strong, .order-option small { display: block; }
.order-option strong { line-height: 1.35; }
.order-option small { margin-top: .25rem; color: #4b4037; font-size: .875rem; line-height: 1.42; }

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  margin-top: 1rem;
}

.file-action { position: relative; display: inline-flex; }
.file-action input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-action:focus-within span { outline: 3px solid var(--ink); outline-offset: 3px; }
.file-action:hover span { background: #ff8f55; }

.sample-action {
  background: transparent;
  border: 0;
  padding: .4rem 0;
  color: #8c2b06;
  font: 700 .9rem/1.4 var(--body);
  text-decoration: underline;
  text-underline-offset: .17em;
  cursor: pointer;
}
.sample-action:hover { color: var(--ink); }
.background-actions:has(button:not([hidden])) { margin-top: .1rem; }

.quiet-copy, .file-feedback {
  margin-top: .7rem;
  color: #54483d;
  font-size: .9rem;
  line-height: 1.5;
}

.file-feedback.is-error { color: #a12614; font-weight: 700; }

.artwork-result {
  display: grid;
  grid-template-columns: minmax(120px, 210px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c8bbab;
}

.artwork-figure {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 1rem;
  border: 1px solid #a29787;
  border-radius: 3px;
  background: #f6f2eb conic-gradient(#ded8ce 25%, #f6f2eb 0 50%, #ded8ce 0 75%, #f6f2eb 0) 0 0 / 16px 16px;
}
.artwork-figure img { display: block; max-width: 100%; max-height: 180px; }

.artwork-details h3, .design-panel h3 {
  font: 700 1.55rem/1.15 var(--display);
  text-transform: uppercase;
}

.artwork-details p { margin-top: .3rem; line-height: 1.45; }
.artwork-details .art-filename { font-weight: 700; overflow-wrap: anywhere; }
.artwork-details .quality-result { margin-top: .6rem; font-weight: 800; }
.quality-result[data-quality="good"] { color: #1b6449; }
.quality-result[data-quality="warning"] { color: #8c2b06; }

.design-panel {
  margin-top: 1rem;
  border-left: 3px solid #a6370a;
  padding: .6rem 0 .6rem .9rem;
}
.design-panel p { margin-top: .5rem; line-height: 1.5; }

.pack-specs { margin-bottom: 1rem; line-height: 1.55; }

.order-summary {
  position: sticky;
  top: 1rem;
  background: #12110f;
  color: var(--paper);
  padding: 1.35rem 1.4rem;
  border-top: 4px solid var(--orange);
  border-radius: 4px;
}
.summary-spec, .unit-price { color: #e5d8c9; font-size: .95rem; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-top: 1.2rem;
  padding-top: .75rem;
  border-top: 1px solid #605146;
}
.summary-total strong { color: var(--orange); font: 700 2.7rem/1 var(--display); }
.unit-price { margin: .2rem 0 .85rem; }
.summary-note { color: #d0c2b4; font-size: .875rem; line-height: 1.4; }
.review-button { width: 100%; margin-block: 1rem .6rem; }
.review-button:focus-visible { outline-color: var(--teal); }

.review-dialog {
  color-scheme: light;
  width: min(100% - 32px, 460px);
  max-height: calc(100% - 32px);
  overflow: auto;
  border: 1px solid #8c745d;
  border-top: 4px solid var(--orange);
  border-radius: 4px;
  padding: 1.5rem;
  background: var(--paper);
  color: var(--ink);
}
.review-dialog::backdrop { background: #080808bf; }
.review-dialog h2 { padding-inline-end: 1.6rem; }
.review-dialog h2[tabindex="-1"]:focus { outline: none; }
.review-dialog dl { margin-block: 1rem; }
.review-dialog dl div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-block: .5rem;
  border-bottom: 1px solid #c7bba9;
}
.review-dialog dt { font-weight: 700; }
.review-dialog dd { margin: 0; overflow-wrap: anywhere; }
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}
.review-actions .button:not(.button-primary) {
  color: var(--ink);
  border-color: #a29886;
}
.sticker-proof { margin: 1rem 0 0; }
.proof-artwork {
  display: grid;
  place-items: center;
  min-height: 10rem;
  padding: .4rem;
  border: 1px solid #b5a897;
  border-radius: 4px;
  background: #e6dfd4;
}
.proof-artwork canvas { display: block; width: min(100%, 14rem); height: auto; }
.sticker-proof figcaption {
  display: grid;
  gap: .25rem;
  margin-top: .5rem;
  font-size: .875rem;
}
.sticker-proof figcaption span { color: #4e4134; }
.cut-line-swatch {
  display: inline-block;
  width: 1.25rem;
  border-top: 2px dashed #1553b3;
  margin-inline-end: .3rem;
  vertical-align: .2em;
}
.round-controls {
  min-width: 0;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}
.round-modes .order-option { padding: .55rem; }
.round-crop-controls {
  display: grid;
  gap: .3rem;
  margin-block: .75rem;
}
.round-crop-controls label { font-weight: 700; font-size: .875rem; }
.round-crop-controls output { margin-inline-start: .35rem; font-weight: 400; }
.round-crop-controls input { width: 100%; accent-color: #af3a0c; }
.round-controls .quiet-copy { margin-top: .6rem; }
.round-original { margin-top: .6rem; }
.round-original summary { cursor: pointer; font-weight: 700; }
.round-original img { display: block; max-width: 100%; max-height: 10rem; margin: .5rem auto 0; }
.proof-approval {
  margin-top: .75rem;
  padding: .55rem .7rem;
  border-left: 3px solid #39764e;
  background: #e8f1e7;
  color: #254e37;
  font-weight: 700;
}
.checkout-note { margin-top: .55rem; }
.checkout-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .7rem .8rem;
  min-width: 0;
  margin: 1.15rem 0 0;
  border: 0;
  padding: 0;
}
.checkout-fields legend {
  margin-bottom: .55rem;
  font-weight: 700;
}
.checkout-fields label {
  display: grid;
  grid-template-columns: 1fr;
  gap: .3rem;
  min-width: 0;
  font-size: .95rem;
  font-weight: 700;
}
.checkout-fields .checkout-full { grid-column: 1 / -1; }
.checkout-fields input {
  width: 100%;
  min-width: 0;
  padding: .62rem .7rem;
  border: 1px solid #a89a87;
  border-radius: 3px;
  color: var(--ink);
  background: #fffdf8;
  font: 1rem/1.4 var(--body);
}
.checkout-fields input:focus-visible {
  outline: 2px solid #a6370a;
  outline-offset: 2px;
}
.review-dialog .button:focus-visible { outline-color: var(--ink); }
.dialog-close {
  position: absolute;
  top: .55rem;
  right: .65rem;
  border: 0;
  padding: .25rem .55rem;
  background: transparent;
  color: var(--ink);
  font: 700 1.5rem/1 var(--body);
  cursor: pointer;
}

@media (max-width: 1000px) {
  .pack-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .order-heading-inner { grid-template-columns: 1fr; min-height: 0; }
  .order-heading h1 { font-size: clamp(2.75rem, 8.3vw, 4.5rem); }
  .order-rocket { display: none; }
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

@media (max-width: 430px) {
  .art-options, .artwork-result { grid-template-columns: 1fr; }
  .artwork-figure { min-height: 125px; }
}

.designer-form { display: grid; gap: .6rem; margin-top: .85rem; }
.designer-form label { font-size: 1rem; font-weight: 750; }
.designer-form textarea, .designer-form input {
  width: 100%;
  padding: .66rem .75rem;
  border: 1px solid #a89a87;
  border-radius: 3px;
  color: var(--ink);
  background: #fffdf8;
  font: 1rem/1.45 var(--body);
}
.designer-form textarea { resize: vertical; min-height: 5.4rem; }
.designer-form textarea:focus-visible, .designer-form input:focus-visible {
  outline: 2px solid #a6370a;
  outline-offset: 2px;
}
.designer-form .quiet-copy { margin-top: 0; }
.designer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .9rem; }
.designer-actions .button:focus-visible { outline-color: var(--ink); }
button:disabled { cursor: wait; opacity: .7; }

.concept-results { margin-top: .95rem; }
.concept-results h4 { margin: .85rem 0 .6rem; font: 700 1.4rem/1.15 var(--display); text-transform: uppercase; }
.chat-message { border: 1px solid #e1d7c5; background: #f7f1e5; padding: .65rem .8rem; border-radius: 3px; }
.chat-message p { margin-top: .2rem; overflow-wrap: anywhere; }
.chat-message strong { font-size: .875rem; color: #6f2a0b; }
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.concept-option {
  min-width: 0;
  border: 1px solid #b5a897;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #fffaf0;
}
.concept-option:has(:checked) { border-color: #a6370a; background: #ffe8d9; }
.concept-option:focus-within, .concept-option:hover { outline: 2px solid #a6370a; outline-offset: 2px; }
.concept-visual {
  display: block;
  line-height: 0;
  background: #e8e2d6 conic-gradient(#f3ede3 25%, #e8e2d6 0 50%, #f3ede3 0 75%, #e8e2d6 0) 0 0 / 18px 18px;
}
.concept-visual canvas { display: block; width: 100%; height: auto; }
.concept-caption {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  padding: .62rem .4rem;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.2;
}
.concept-caption input { flex: none; margin: 0; accent-color: #a6370a; }
.refine-panel { border-top: 1px solid #c8bbab; margin-top: 1rem; }
.revision-log { display: grid; gap: .45rem; }
.refine-button { border-color: #a29886; background: #fffdf8; color: var(--ink); cursor: pointer; }
.refine-button:hover { border-color: #a6370a; }

@media (max-width: 440px) {
  .concept-grid { gap: .35rem; }
  .concept-caption { display: grid; justify-items: start; }
}

.refine-layout { display: grid; grid-template-columns: minmax(110px, 210px) minmax(0, 1fr); gap: .85rem; align-items: start; }
.refine-artwork { border: 1px solid #b5a897; border-radius: 4px; }
.refine-layout .designer-form { margin-top: 0; }
.revision-log:not(:empty) { max-height: 12rem; overflow: auto; margin-bottom: .7rem; }

@media (max-width: 540px) {
  .refine-layout { grid-template-columns: 1fr; }
  .refine-artwork { width: min(100%, 225px); }
}
