/* Checkout and order handoff */
#order-builder, .ux-thank-body {
  --ux-ink: #161a17;
  --ux-cream: #f7f7ef;
  --ux-white: #fff;
  --ux-lime: #e2fb40;
  --ux-muted: #49504a;
  --ux-rule: #daddd2;
  color: var(--ux-ink);
}

#order-builder [hidden], .ux-thank-body [hidden] {
  display: none !important;
}

.ux-order-header {
  color: #f8f9f2;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.ux-order-eyebrow {
  color: #435031;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .13em;
  margin: 0 0 .8rem;
  text-transform: uppercase;
}

.ux-order-header h2, .ux-thank-content h1 {
  font-size: clamp(2.45rem, 5.5vw, 5.1rem);
  font-weight: 750;
  letter-spacing: -.07em;
  line-height: .98;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.ux-order-header > p:last-child, .ux-thank-intro {
  color: var(--ux-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
  max-width: 40rem;
}

.ux-order-header .ux-order-eyebrow { color: var(--ux-lime); }
.ux-order-header > p:last-child { color: #d3dccc; }

.ux-order-layout, .ux-thank-layout {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.ux-order-form, .ux-order-summary {
  border: 1px solid var(--ux-rule);
  border-radius: 1.4rem;
  min-width: 0;
  padding: clamp(1rem, 4vw, 2rem);
}

.ux-order-form {
  background: var(--ux-white);
  scroll-margin-top: .6rem;
}

.ux-order-form fieldset {
  border: 0;
  margin: 0;
  min-inline-size: 0;
  padding: 0;
}

.ux-order-progress {
  color: var(--ux-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.1rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.ux-order-progress li {
  align-items: center;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 700;
  gap: .4rem;
}

.ux-order-progress li span {
  align-items: center;
  border: 1px solid var(--ux-rule);
  border-radius: 50%;
  display: inline-flex;
  height: 1.6rem;
  justify-content: center;
  width: 1.6rem;
}

.ux-order-progress li[aria-current] {
  color: var(--ux-ink);
}

.ux-order-progress li[aria-current] span {
  background: var(--ux-lime);
  border-color: var(--ux-lime);
}

.ux-form-title {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.1;
  padding: 0;
}

.ux-form-title:focus, .ux-thank-main:focus {
  outline: none;
}

.ux-form-hint, .ux-summary-terms, .ux-thank-tip {
  color: var(--ux-muted);
  font-size: .88rem;
  line-height: 1.55;
  margin: .55rem 0 1rem;
}

.ux-kit-button {
  align-items: center;
  background: #f4f8db;
  border: 1px solid #d4ddaa;
  border-radius: .8rem;
  color: var(--ux-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: .55rem;
  justify-content: space-between;
  margin-bottom: .35rem;
  min-height: 3rem;
  padding: .7rem .85rem;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease;
  width: 100%;
}

.ux-kit-button:hover {
  background: #edf5bd;
  border-color: #b8c573;
}

.ux-kit-button strong, .ux-kit-price {
  font-size: .92rem;
  font-weight: 750;
}

.ux-kit-button small, .ux-quantity small {
  color: var(--ux-muted);
  display: block;
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.42;
  margin-top: .15rem;
}

.ux-kit-price {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
  white-space: nowrap;
}

.ux-kit-price span {
  align-items: center;
  background: var(--ux-lime);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.2rem;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.ux-quantity {
  align-items: center;
  border-bottom: 1px solid var(--ux-rule);
  display: flex;
  font-weight: 650;
  gap: .55rem;
  justify-content: space-between;
  padding: .65rem 0;
}

.ux-quantity > label {
  line-height: 1.2;
}

.ux-stepper {
  border: 1px solid #cbd1c5;
  border-radius: .65rem;
  display: grid;
  flex: none;
  grid-template-columns: 2.75rem 2.65rem 2.75rem;
  min-height: 2.75rem;
}

.ux-stepper button, .ux-stepper input {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  margin: 0;
  min-width: 0;
  padding: .2rem 0;
  text-align: center;
  width: 100%;
}

.ux-stepper button {
  cursor: pointer;
  font-size: 1.23rem;
  transition: background-color .2s ease;
}

.ux-stepper button:first-child { border-radius: .6rem 0 0 .6rem; }
.ux-stepper button:last-child { border-radius: 0 .6rem .6rem 0; }
.ux-stepper button:hover { background: #f0f3e7; }

.ux-stepper input {
  -moz-appearance: textfield;
  appearance: textfield;
  border-inline: 1px solid var(--ux-rule);
  border-radius: 0;
  font-size: 1rem;
}

.ux-stepper input::-webkit-outer-spin-button,
.ux-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ux-order-error {
  color: #9b2219;
  font-size: .88rem;
  font-weight: 650;
  margin: .65rem 0 0;
}

.ux-order-primary, .ux-order-secondary {
  align-items: center;
  border: 1px solid transparent;
  border-radius: .7rem;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  gap: .6rem;
  justify-content: center;
  min-height: 3.15rem;
  padding: .75rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ux-order-primary {
  background: var(--ux-lime);
  border-color: var(--ux-lime);
  color: var(--ux-ink);
}

.ux-order-primary:hover {
  background: #cee626;
  border-color: #cee626;
  color: var(--ux-ink);
  transform: translateY(-1px);
}

.ux-order-secondary {
  background: transparent;
  border-color: #bfc6b8;
  color: var(--ux-ink);
}

.ux-order-secondary:hover {
  background: #edf0e5;
  color: var(--ux-ink);
}

.ux-order-next, .ux-inline-handoff {
  margin-top: 1.1rem;
  width: 100%;
}

.ux-order-fields {
  display: grid;
  gap: .85rem;
  margin-top: 1.2rem;
}

.ux-order-field {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.ux-order-field label {
  font-size: .86rem;
  font-weight: 700;
}

.ux-order-field label span {
  color: var(--ux-muted);
  font-size: .78rem;
  font-weight: 500;
}

.ux-order-field input, .ux-order-field textarea {
  background: var(--ux-white);
  border: 1px solid #cbd1c5;
  border-radius: .62rem;
  box-sizing: border-box;
  color: var(--ux-ink);
  font: inherit;
  font-size: 1rem;
  min-height: 2.85rem;
  padding: .6rem .7rem;
  width: 100%;
}

.ux-order-field textarea { resize: vertical; }
.ux-order-field input::placeholder, .ux-order-field textarea::placeholder { color: #626b62; }

.ux-order-actions, .ux-thank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.ux-order-actions .ux-order-primary { flex: 1 1 12rem; }
.ux-order-privacy { margin: 1rem 0 .7rem; }

.ux-order-summary, .ux-order-review {
  align-self: start;
  background: #eff1e7;
  border-color: #d8dccd;
}

.ux-order-summary h3, .ux-order-summary h2, .ux-order-review h3 {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -.035em;
  margin: 0 0 .9rem;
}

.ux-order-review {
  border: 1px solid #d8dccd;
  border-radius: .8rem;
  margin-top: 1.25rem;
  padding: .85rem;
}

#order-builder[data-active-step="2"] .ux-order-summary { display: none; }

.ux-order-summary [data-order-empty] {
  color: var(--ux-muted);
  font-size: .87rem;
  margin: 0 0 .8rem;
}

.ux-order-items {
  display: grid;
  gap: .5rem;
  margin: 0 0 .9rem;
}

.ux-order-items:empty { display: none; }

.ux-order-items > div, .ux-order-line, .ux-order-total {
  align-items: baseline;
  display: flex;
  font-size: .86rem;
  gap: .45rem;
  justify-content: space-between;
}

.ux-order-items dd {
  flex: none;
  font-weight: 650;
  margin: 0;
}

.ux-order-line { margin-bottom: .4rem; }

.ux-order-line strong, .ux-order-total strong { white-space: nowrap; }

.ux-order-total {
  border-top: 1px solid #cbd1c1;
  font-weight: 700;
  padding-top: .6rem;
}

.ux-order-total strong { font-size: 1.22rem; }

.ux-order-minimum {
  background: #fffbe7;
  border-radius: .5rem;
  color: #514715;
  font-size: .78rem;
  line-height: 1.45;
  margin: .8rem 0 0;
  padding: .55rem .65rem;
}

.ux-summary-terms { margin: .75rem 0; }
.ux-order-review .ux-summary-terms { margin-bottom: 0; }

.ux-payment {
  align-items: center;
  display: flex;
  font-size: .81rem;
  font-weight: 700;
  gap: .4rem;
  line-height: 1.35;
  margin: 0;
}

.ux-payment span {
  align-items: center;
  background: var(--ux-lime);
  border-radius: 50%;
  display: inline-flex;
  flex: none;
  height: 1.25rem;
  justify-content: center;
  width: 1.25rem;
}

#order-builder :focus-visible, .ux-thank-body :focus-visible {
  outline: 2px solid #31591f;
  outline-offset: 2px;
}

.ux-thank-body {
  background: var(--ux-cream);
  display: flex;
  flex-direction: column;
  font-family: 'Manrope', 'DM Sans', system-ui, sans-serif;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
}

.ux-thank-body *, .ux-thank-body *::before, .ux-thank-body *::after { box-sizing: border-box; }

.ux-thank-skip {
  background: var(--ux-white);
  color: var(--ux-ink);
  left: 1rem;
  padding: .5rem .8rem;
  position: absolute;
  top: .4rem;
  transform: translateY(-160%);
  z-index: 2;
}

.ux-thank-skip:focus { transform: translateY(0); }
.ux-thank-shell { margin-inline: auto; width: min(70rem, calc(100% - 2rem)); }
.ux-thank-header { background: #fdfdf8; border-bottom: 1px solid var(--ux-rule); }

.ux-thank-header > div, .ux-thank-footer > div {
  align-items: center;
  display: flex;
  gap: .7rem 1.2rem;
  justify-content: space-between;
  min-height: 4.4rem;
}

.ux-thank-logo {
  color: var(--ux-ink);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -.075em;
  text-decoration: none;
}

.ux-thank-logo span { color: #bf3d05; }

.ux-thank-back, .ux-thank-footer a {
  align-items: center;
  color: var(--ux-ink);
  display: inline-flex;
  font-size: .85rem;
  font-weight: 650;
  gap: .35rem;
  min-height: 2.75rem;
  text-underline-offset: .2em;
}

.ux-thank-main { flex: 1; padding-block: clamp(2.6rem, 10vw, 7.5rem); }
.ux-thank-content { min-width: 0; }
.ux-thank-content h1 { max-width: 45rem; }
.ux-thank-content .ux-order-primary { min-width: min(100%, 14rem); }
.ux-thank-intro { margin-bottom: 1.3rem; }
.ux-thank-tip { margin: .95rem 0 0; }
.ux-copy-status { font-size: .86rem; margin: .25rem 0 0; min-height: 1.5rem; }

.ux-thank-mark {
  align-items: center;
  background: var(--ux-lime);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 800;
  height: 2.8rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.8rem;
}

.ux-thank-summary { background: #e9eddd; }
.ux-thank-reference { color: var(--ux-muted); font-size: .8rem; margin: -.45rem 0 .9rem; }
.ux-thank-footer { border-top: 1px solid var(--ux-rule); color: var(--ux-muted); font-size: .85rem; }

@media (min-width: 540px) {
  .ux-order-fields { grid-template-columns: 1fr 1fr; }
  .ux-order-field-wide { grid-column: 1 / -1; }
}

@media (min-width: 820px) {
  .ux-order-layout { gap: 1.35rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .ux-thank-layout { align-items: center; gap: 3.2rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .ux-order-summary { position: sticky; top: 6.2rem; }
  .ux-thank-summary { position: static; }
  .ux-order-review { display: none; }
  #order-builder[data-active-step="2"] .ux-order-summary { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .ux-kit-button, .ux-stepper button, .ux-order-primary, .ux-order-secondary { transition: none; }
  .ux-order-primary:hover { transform: none; }
}
