.shop-order-button {
  min-width: 150px;
  background: var(--cream);
  color: var(--purple);
  box-shadow: 4px 5px 0 rgba(44, 20, 74, .3);
}

.shop-order-button:hover {
  color: var(--purple);
  background: #ffbd62;
  box-shadow: 2px 3px 0 rgba(44, 20, 74, .3);
}

.shop-order-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.8rem;
  padding: 1.35rem 1.45rem 1.35rem 1.75rem;
  color: var(--purple);
  background: var(--orange);
  border-radius: 2px 2px 32px 2px;
}

.shop-order-callout p {
  max-width: 660px;
  margin: 0;
  font: 750 clamp(1.05rem, 1.5vw, 1.35rem)/1.35 var(--display);
}

.shop-order-callout .shop-order-button {
  flex: none;
  box-shadow: 4px 5px 0 rgba(44, 20, 74, .22);
}

.order-page {
  background: var(--cream);
}

.order-page button,
.order-page input,
.order-page select,
.order-page textarea {
  font: inherit;
}

.order-page button,
.order-page summary,
.order-page select {
  cursor: pointer;
}

.order-page button:focus-visible,
.order-page input:focus-visible,
.order-page select:focus-visible,
.order-page textarea:focus-visible,
.order-page summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.order-page .order-submit-panel button:focus-visible {
  outline-color: var(--cream);
}

.order-page .order-input-error {
  margin: .35rem 0 0;
  color: #9e2f21;
  font-size: .86rem;
  line-height: 1.4;
}

.order-page [hidden] {
  display: none !important;
}

.order-shell {
  width: min(100% - 96px, 1240px);
  margin-inline: auto;
}

.order-header {
  position: relative;
  width: 100%;
  max-width: none;
  height: 84px;
  margin: 0;
  padding-inline: max(48px, calc((100vw - 1440px) / 2));
  color: var(--purple);
  background: var(--orange);
}

.order-back-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding-bottom: .2rem;
  border-bottom: 1.5px solid currentColor;
}

.order-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3vw, 40px) 0 clamp(42px, 4vw, 58px);
  color: var(--purple);
  background: var(--orange);
}

.order-intro::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -55px;
  left: -4%;
  height: 82px;
  background: var(--cream);
  border-radius: 52% 48% 0 0 / 100% 100% 0 0;
  transform: rotate(-.8deg);
}

.order-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

.order-intro-content {
  position: relative;
  z-index: 2;
}

.order-intro-content > .eyebrow {
  margin-bottom: 1.15rem;
}

.order-shop-photo {
  display: block;
  width: min(100%, 570px);
  aspect-ratio: 2 / 1;
  margin-top: clamp(1rem, 2.2vw, 1.5rem);
  object-fit: cover;
  object-position: center 50%;
  border: 5px solid var(--cream);
  border-radius: 46% 54% 12% 10% / 24% 26% 12% 10%;
  box-shadow: 6px 7px 0 var(--purple);
}

.order-portrait {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.order-intro-art {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid var(--cream);
  border-radius: 48% 48% 17% 14% / 32% 32% 9% 11%;
  box-shadow: 9px 10px 0 var(--purple);
}

.order-intro h1 {
  max-width: 770px;
  margin: 0;
  font: 800 clamp(3.5rem, 5.5vw, 5rem)/.88 var(--display);
  font-variation-settings: "SOFT" 50, "WONK" 1;
  letter-spacing: -.075em;
}

.order-intro h1 em {
  display: inline-block;
  width: fit-content;
  padding: .08em .2em .12em;
  color: var(--orange);
  background: var(--purple);
  border-radius: .34em .72em .38em .64em;
  font-style: normal;
  line-height: .85;
  transform: rotate(-1deg);
}

.order-intro-copy {
  max-width: 570px;
  margin-top: clamp(1.4rem, 3vw, 2.5rem);
}

.order-intro-copy > p:first-child {
  margin: 0;
  font: 700 clamp(1.12rem, 1.7vw, 1.48rem)/1.48 var(--display);
}

.order-workspace {
  position: relative;
  isolation: isolate;
  margin-top: -6px;
  padding: calc(clamp(24px, 4vw, 58px) + 6px) 0 clamp(90px, 10vw, 150px);
  background: var(--cream);
}

.order-workspace::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("./assets/order-groovy-background.webp") center center / cover no-repeat;
  opacity: .2;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 150px, #000 calc(100% - 110px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 150px, #000 calc(100% - 110px), transparent);
  pointer-events: none;
}

.order-workspace > .order-shell {
  position: relative;
  z-index: 1;
}

.order-email-fallback {
  margin: 0 0 2rem;
  padding: .9rem 1.15rem;
  color: var(--purple);
  border: 1.5px solid rgba(86, 38, 93, .35);
  border-radius: 28px 36px 30px 38px;
  background: var(--paper);
  font-size: .92rem;
  line-height: 1.5;
}

.order-email-fallback span {
  font-weight: 800;
}

.order-email-fallback a,
.order-noscript a {
  font-weight: 800;
  text-underline-offset: .18em;
}

.order-noscript {
  padding: clamp(1.5rem, 4vw, 3rem);
  color: white;
  background: var(--purple);
  border-radius: 44px 38px 48px 40px;
}

.order-noscript h2 {
  margin: 0 0 .7rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.order-noscript p {
  margin: 0;
  line-height: 1.55;
}

.order-noscript p + p {
  margin-top: .75rem;
}

.order-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.order-panel,
.order-message-panel {
  position: relative;
  padding: 34px;
  border: var(--frame-rim-desktop, 10px) solid var(--frame-color, var(--purple));
  border-radius: var(--organic-radius, 48px);
  background: var(--paper);
  box-shadow: 7px 8px 0 var(--frame-color, var(--purple));
  --frame-color: var(--purple);
}

.order-contact-panel {
  --frame-color: var(--blue);
}

.order-message-panel {
  --frame-color: var(--orange);
}

.order-panel.has-order-frame,
.order-message-panel.has-order-frame {
  padding: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.order-frame {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.order-frame-outer {
  fill: var(--frame-color, var(--purple));
  filter: drop-shadow(7px 8px 0 var(--frame-color, var(--purple)));
}

.order-frame-inner {
  fill: var(--paper);
}

.order-panel > :not(.order-frame),
.order-message-panel > :not(.order-frame) {
  position: relative;
  z-index: 1;
}

.order-contact-panel {
  margin-top: 4rem;
}

.order-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.order-step-heading > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--cream);
  background: var(--purple);
  border-radius: 50%;
  font: 800 .82rem/1 var(--display);
}

.order-contact-panel .order-step-heading > span {
  background: var(--blue);
}

.order-step-heading .eyebrow {
  margin: 0 0 .35rem;
  color: var(--text-orange);
  font-size: .69rem;
}

.order-step-heading h2 {
  margin: 0;
  color: var(--purple);
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: .98;
}

.order-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.order-field {
  min-width: 0;
}

.order-field-wide,
.order-product-fields .order-field:not(.order-quantity-field):not(.order-note-field):not(.order-size-field) {
  grid-column: 1 / -1;
}

.order-size-field,
.order-quantity-field {
  grid-column: span 1;
}

.order-note-field {
  grid-column: span 1;
}

.order-field label {
  display: block;
  margin: 0 0 .42rem;
  color: var(--purple);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.3;
}

.order-field label span,
.required-note {
  color: #775f79;
  font-size: .76rem;
  font-weight: 600;
}

.order-field input,
.order-field select,
.order-field textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem .85rem;
  color: var(--ink);
  background: white;
  border: 1.5px solid rgba(86, 38, 93, .48);
  border-radius: 12px;
}

.order-field select {
  padding-right: 2.2rem;
}

.order-field input::placeholder,
.order-field textarea::placeholder {
  color: #7b6a7d;
  opacity: 1;
}

.order-field input[readonly] {
  color: #625766;
  background: #f3eee6;
}

.order-field select:disabled,
.order-field input:disabled {
  color: #756d75;
  background: #eee9df;
  cursor: not-allowed;
}

.order-field input[aria-invalid="true"],
.order-field select[aria-invalid="true"],
.order-field textarea[aria-invalid="true"],
.order-field .field-error {
  border-color: #a32e1c;
  box-shadow: 0 0 0 2px rgba(163, 46, 28, .16);
}

.order-secondary-button,
.order-submit-button,
.order-text-button,
.order-line-remove {
  border: 0;
}

.order-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 50px;
  padding: .75rem 1.1rem;
  color: white;
  background: var(--blue);
  border-radius: 100px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.order-secondary-button:hover {
  background: #00588d;
  transform: translateY(-2px);
}

.order-add-button {
  margin-top: 1.35rem;
}

.order-add-button span {
  font-size: 1.35rem;
  line-height: .8;
}

.order-help {
  max-width: 500px;
  margin: .75rem 0 0;
  color: #675869;
  font-size: .78rem;
  line-height: 1.45;
}

.order-product-detail {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: -.35rem 0 0;
  color: #675869;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.5;
}

.order-field-status,
.order-status {
  min-height: 1.35em;
  margin: .65rem 0 0;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}

.order-page .status-error,
.order-page .order-field-status.status-error,
.order-page .order-status.status-error {
  color: #922311;
}

.order-page .status-success,
.order-page .order-field-status.status-success,
.order-page .order-status.status-success {
  color: #075f3e;
}

.order-list-wrap {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1.5px solid rgba(86, 38, 93, .27);
}

.order-list-wrap h3 {
  margin: 0 0 .8rem;
  color: var(--purple);
  font: 800 1.25rem/1.2 var(--display);
}

.order-items {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem 1rem;
  align-items: center;
  padding: .9rem 1rem;
  color: var(--purple);
  background: #ffead0;
  border-left: 5px solid var(--orange);
  border-radius: 20px 24px 22px 26px;
}

.order-line-main {
  min-width: 0;
}

.order-line-name {
  display: block;
  font-weight: 850;
  line-height: 1.3;
}

.order-line-meta,
.order-line-note {
  display: block;
  margin-top: .2rem;
  color: #6f5a70;
  font-size: .78rem;
  line-height: 1.35;
}

.order-line-quantity {
  display: grid;
  grid-template-columns: auto 58px;
  align-items: center;
  gap: .5rem;
  color: #6f5a70;
  font-size: .72rem;
  font-weight: 800;
}

.order-line-quantity input {
  width: 58px;
  min-height: 40px;
  padding: .35rem .25rem;
  color: var(--purple);
  background: white;
  border: 1.5px solid rgba(86, 38, 93, .48);
  border-radius: 10px;
  text-align: center;
}

.order-line-remove {
  grid-column: 2;
  align-self: center;
  padding: .35rem .15rem;
  color: var(--purple);
  background: transparent;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.order-items-empty {
  padding: 1rem;
  color: #6f5a70;
  background: rgba(86, 38, 93, .05);
  border-radius: 20px 24px 22px 26px;
  font-size: .85rem;
  line-height: 1.45;
}

.required-note {
  margin: -1rem 0 1rem;
  text-align: right;
}

.order-address {
  margin: 1.3rem 0;
  border-block: 1.5px solid rgba(86, 38, 93, .3);
}

.order-address summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem .1rem;
  color: var(--purple);
  list-style: none;
  font: 800 .92rem/1.3 var(--display);
}

.order-address summary::-webkit-details-marker {
  display: none;
}

.order-address summary span {
  font: 500 1.5rem/1 var(--body);
  transition: transform .2s ease;
}

.order-address[open] summary span {
  transform: rotate(45deg);
}

.order-address-fields {
  padding: .25rem 0 1.2rem;
}

.order-fulfilment-field {
  margin-top: 1.2rem;
}

.order-terms {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  color: #584b5a;
  background: #e9f5fb;
  border-left: 4px solid var(--blue);
  border-radius: 8px 22px 20px 24px;
  font-size: .79rem;
  line-height: 1.5;
}

.order-terms p {
  margin: 0;
}

.order-terms p + p {
  margin-top: .55rem;
}

.order-message-panel {
  margin-top: clamp(2.5rem, 6vw, 5.5rem);
  border-color: var(--orange);
  box-shadow: 7px 8px 0 var(--orange);
}

.order-message-panel .order-step-heading > span {
  color: var(--purple);
  background: var(--orange);
}

.order-message-intro {
  max-width: 720px;
  margin: -1rem 0 1.35rem 58px;
  color: #675869;
  font-size: .92rem;
  line-height: 1.55;
}

.order-message-panel textarea {
  min-height: 270px;
  resize: vertical;
  line-height: 1.55;
}

.order-message-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .9rem;
  margin-top: 1rem;
}

.order-refresh-control {
  align-self: center;
  max-width: 280px;
}

.order-refresh-warning {
  display: none;
  margin-top: .25rem;
  color: #6f5a70;
  font-size: .73rem;
  line-height: 1.35;
}

.order-text-button.is-visible + .order-refresh-warning {
  display: block;
}

.order-text-button {
  padding: .65rem .25rem;
  color: var(--purple);
  background: transparent;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.order-submit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(1.7rem, 4vw, 3.5rem);
  color: white;
  background: var(--purple);
  border-radius: 52px 46px 58px 44px;
}

.order-submit-kicker {
  margin: 0 0 .35rem;
  color: #ffc064;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.order-submit-panel h2 {
  margin: 0;
  color: white;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
}

.order-submit-panel div > p:last-child {
  max-width: 690px;
  margin: 1rem 0 0;
  color: #eadcea;
  font-size: .9rem;
  line-height: 1.55;
}

.order-submit-panel strong {
  color: white;
}

.order-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  min-height: 58px;
  padding: .95rem 1.25rem .95rem 1.6rem;
  color: var(--purple);
  background: var(--orange);
  border-radius: 100px;
  box-shadow: 4px 5px 0 #2b0c32;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}

.order-submit-button:hover {
  background: #ffad4c;
  transform: translateY(-2px);
}

.order-submit-button span {
  font-size: 1.3rem;
}

.order-submit-panel > .order-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffd08d;
}

.order-submit-panel > .order-status.status-error {
  color: #ffd2c9;
}

.order-submit-panel > .order-status.status-success {
  color: #c9f4dd;
}

.order-footer {
  padding: 3.3rem 0;
  color: var(--purple);
  background: var(--orange);
}

.order-footer .order-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.order-footer img {
  width: 50px;
  height: 50px;
  transform: rotate(-15deg);
}

.order-footer p {
  margin: 0;
  font: 800 1rem/1.25 var(--display);
}

.order-footer p a {
  font: inherit;
}

.order-footer a {
  font-size: .85rem;
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
}

.order-footer-socials {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
}

.order-footer-socials + a {
  margin-left: 1.5rem;
}

@media (max-width: 900px) {
  .order-shell {
    width: min(100% - 64px, 1240px);
  }

  .order-form-grid {
    grid-template-columns: 1fr;
  }

  .order-intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 30vw);
    gap: 1.5rem;
  }

  .order-contact-panel {
    margin-top: 1rem;
  }

  .order-submit-panel {
    grid-template-columns: 1fr;
  }

  .order-submit-button {
    justify-self: start;
  }
}

@media (width < 761px) {
  .order-workspace::before {
    background-position: 5% center;
  }

  .shop-order-callout {
    align-items: flex-start;
  }

  .order-shell {
    width: calc(100% - 40px);
  }

  .order-header {
    width: 100%;
    margin: 0;
    padding-inline: 20px;
  }

  .order-intro {
    padding-top: 34px;
  }

  .order-intro-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: start;
  }

  .order-portrait {
    width: min(70vw, 350px);
  }

}

@media (max-width: 560px) {
  .shop-order-callout {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
  }

  .shop-order-callout .shop-order-button {
    justify-self: start;
  }

  .order-header .brand {
    max-width: 140px;
  }

  .order-back-link {
    max-width: 92px;
    text-align: right;
  }

  .order-page .site-nav .order-back-link {
    display: inline-flex;
  }

  .order-intro h1 {
    font-size: clamp(3.35rem, 17vw, 5.5rem);
  }

  .order-intro-grid {
    grid-template-columns: 1fr;
  }

  .order-intro-content {
    display: block;
  }

  .order-intro-content > .eyebrow {
    margin: 0 0 .8rem;
  }

  .order-intro-copy {
    margin-top: 1rem;
  }

  .order-intro-copy > p:first-child {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    line-height: 1.35;
  }

  .order-portrait {
    width: min(78vw, 320px);
  }

  .order-intro-art {
    justify-self: center;
    border-width: 6px;
    box-shadow: 5px 6px 0 var(--purple);
  }

  .order-panel,
  .order-message-panel {
    padding: 18px;
    border-width: 10px;
    border-radius: 36px;
    box-shadow: 5px 6px 0 var(--frame-color, var(--purple));
  }

  .order-panel.has-order-frame,
  .order-message-panel.has-order-frame {
    padding: 28px;
  }

  .order-fields,
  .order-address-fields {
    grid-template-columns: 1fr;
  }

  .order-field,
  .order-field-wide,
  .order-product-fields .order-field,
  .order-quantity-field,
  .order-size-field,
  .order-note-field {
    grid-column: 1;
  }

  .order-step-heading {
    gap: .75rem;
  }

  .order-step-heading > span {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .order-message-intro {
    margin-left: 0;
  }

  .order-message-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .order-secondary-button,
  .order-submit-button {
    width: 100%;
  }

  .order-submit-panel {
    padding: 1.5rem;
    border-radius: 30px 24px 34px 26px;
  }

  .order-submit-button {
    justify-self: stretch;
  }

  .order-footer .order-shell {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .order-footer p {
    max-width: calc(100% - 66px);
  }

  .order-footer p span {
    display: none;
  }

  .order-footer-socials {
    width: 100%;
    margin: .5rem 0 0 66px;
  }

  .order-footer-socials + a {
    width: 100%;
    margin: .15rem 0 0 66px;
  }
}

@media (max-width: 350px) {
  .order-portrait {
    width: min(78vw, 280px);
  }
}

@media (max-width: 400px) {
  .order-line {
    grid-template-columns: minmax(0, 1fr);
    row-gap: .35rem;
  }

  .order-line-quantity {
    grid-column: 1;
    margin-top: .1rem;
  }

  .order-line-remove {
    grid-column: 1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-page *,
  .order-page *::before,
  .order-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
