.hd-order {
  --hd-accent: #c3f264;
  --hd-gray: #b9beb7;
  --hd-rule: #3b403a;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100vw, 32.5rem);
  height: 100%;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--hd-rule);
  background: #141615;
  color: #f6f8f1;
  overflow: hidden;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color-scheme: dark;
  box-shadow: -1.25rem 0 3rem #0004;
  z-index: 99;
}
.hd-order::backdrop { background: #050705b8; }
.hd-order-open { overflow: hidden; }
.hd-order:not([open]), .hd-order [hidden] { display: none !important; }
.hd-order *, .hd-order *::before, .hd-order *::after { box-sizing: border-box; }
.hd-order svg { display: block; height: 1.15rem; width: 1.15rem; flex: none; }
.hd-order button, .hd-order a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hd-order button, .hd-order input, .hd-order textarea { font: inherit; }
.hd-order button { cursor: pointer; background: none; color: inherit; border: 0; padding: 0; text-transform: none; letter-spacing: normal; }
.hd-order button:disabled { opacity: .4; cursor: default; }
.hd-order :is(button, input, a, textarea):focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 2px; }
.hd-order__shell { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.hd-order__head { display: flex; align-items: center; justify-content: space-between; padding: max(1rem, env(safe-area-inset-top)) 1.4rem 1rem; border-bottom: 1px solid var(--hd-rule); flex: none; }
.hd-order__head h2 { font-size: clamp(1.65rem, 3vw, 2rem); letter-spacing: -.055em; line-height: 1; font-weight: 750; margin: 0; color: #f6f8f1; }
.hd-order button.hd-order__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.5rem; border-radius: 50%; }
.hd-order__icon:hover, .hd-order__remove:hover { background: #ffffff0c; }
.hd-order__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 1.4rem; }
.hd-order__empty { min-height: min(28rem, 70vh); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.hd-order__empty h3 { margin: 1rem 0 .35rem; font-size: 1.3rem; color: #f6f8f1; }
.hd-order__empty p { max-width: 18rem; margin: 0; color: var(--hd-gray); }
.hd-order__empty .hd-order__bag { display: grid; place-items: center; height: 4rem; width: 4rem; background: #20251e; color: var(--hd-accent); border-radius: 50%; }
.hd-order__bag svg { height: 1.7rem; width: 1.7rem; }
.hd-order button.hd-order__browse { border: 1px solid var(--hd-rule); border-radius: .6rem; min-height: 2.75rem; padding: .5rem 1rem; margin-top: 1.25rem; font-weight: 650; }
.hd-order__lines-heading { font-size: .94rem; font-weight: 600; color: #d3d8cd; margin: 1.2rem 0 .25rem; }
.hd-order__items { list-style: none; width: 100%; margin: 0; padding: 0; }
.hd-order__row { display: grid; grid-template-columns: 4.3rem minmax(0,1fr); column-gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--hd-rule); }
.hd-order__thumb { height: 4.3rem; border-radius: .55rem; background: #edf0e9; display: grid; place-items: center; overflow: hidden; }
.hd-order__thumb svg { color: #727b6d; }
.hd-order__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hd-order__meta { min-width: 0; }
.hd-order__name { font-weight: 660; letter-spacing: -.025em; line-height: 1.2; margin: .08rem 0 .35rem; overflow-wrap: anywhere; }
.hd-order__code { line-height: 1.35; font-size: .8125rem; color: var(--hd-gray); }
.hd-order__row-foot { display: flex; align-items: center; gap: .65rem; margin-top: .6rem; }
.hd-order__step { display: flex; align-items: stretch; flex: none; border-radius: .45rem; border: 1px solid var(--hd-rule); overflow: hidden; }
.hd-order__step button { width: 2.75rem; min-height: 2.75rem; font-size: 1.18rem; }
.hd-order__step button:hover { background: #ffffff0c; }
.hd-order__step input { width: 2.45rem; min-width: 0; border: 0; margin: 0; border-radius: 0; background: #1d211d; color: #fff; font-size: 1rem; text-align: center; appearance: textfield; padding: .12rem; }
.hd-order__step input::-webkit-inner-spin-button, .hd-order__step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hd-order__step :focus-visible { outline-offset: -3px !important; }
.hd-order__unit { color: var(--hd-gray); font-size: .875rem; line-height: 1.2; }
.hd-order__line-pcs { display: block; margin-top: .1rem; color: #e0e6d9; font-size: .8125rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hd-order button.hd-order__remove { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-left: auto; border-radius: .4rem; color: var(--hd-gray); }
.hd-order__totals { display: flex; flex-wrap: wrap; gap: .4rem 0; margin: 1rem 0 1.5rem; padding: .85rem .35rem; background: #21271d; border: 1px solid #394130; border-radius: .7rem; }
.hd-order__totals > div { flex: 1 1 0; padding: 0 .7rem; min-width: 0; line-height: 1.25; display: flex; flex-direction: column; }
.hd-order__totals > div + div { border-left: 1px solid #424b39; }
.hd-order__totals > div > span { color: #d1d7ca; font-size: .875rem; }
.hd-order__totals strong { order: -1; color: #e9f8cd; font-size: clamp(1.15rem, 4.8vw, 1.5rem); font-weight: 730; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin-bottom: .1rem; letter-spacing: -.025em; }
.hd-order__totals p { width: 100%; margin: .25rem .7rem 0; color: var(--hd-gray); font-size: .8125rem; }
.hd-order__buyer { display: grid; grid-template-columns: minmax(0,1fr); gap: .85rem; }
.hd-order__buyer h3 { margin: 0; grid-column: 1/-1; font-size: 1.1rem; letter-spacing: -.025em; color: #f6f8f1; }
.hd-order__field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.hd-order__extras { border-block: 1px solid var(--hd-rule); }
.hd-order__extras summary { min-height: 2.875rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: .94rem; font-weight: 610; list-style: none; }
.hd-order__extras summary:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 2px; }
.hd-order__extras summary::-webkit-details-marker { display: none; }
.hd-order__extras summary::after { content: '+'; color: var(--hd-accent); font-size: 1.25rem; font-weight: 450; }
.hd-order__extras[open] summary::after { content: '−'; }
.hd-order__extras-body { display: grid; gap: .8rem; padding: .15rem 0 1rem; }
.hd-order__field > span { color: #e4e8de; font-size: .875rem; }
.hd-order__field input, .hd-order__field textarea { width: 100%; min-height: 2.75rem; background: #191c19; color: #f6f8f1; border: 1px solid var(--hd-rule); border-radius: .45rem; padding: .6rem .7rem; font-size: 1rem; margin: 0; }
.hd-order__field textarea { min-height: 4.15rem; resize: vertical; }
.hd-order__field :is(input,textarea)::placeholder { color: #a5ada2; opacity: 1; }
.hd-order__footer { flex: none; padding: .9rem 1.4rem max(.65rem, env(safe-area-inset-bottom)); background: #141615; border-top: 1px solid var(--hd-rule); }
.hd-order .hd-order__send { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; background: var(--hd-accent); border-radius: .6rem; padding: .65rem 1rem; font-weight: 740; color: #151b0e; text-decoration: none; text-align: center; }
.hd-order__send:hover { filter: brightness(1.06); }
.hd-order__tip { margin: .6rem 0 .1rem; color: var(--hd-gray); text-align: center; line-height: 1.35; font-size: .875rem; }
.hd-order__filled > .hd-order__options { margin: .4rem 0 1rem; }
.hd-order__options { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1.25rem; }
.hd-order__options :is(button,a) { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; gap: .4rem; color: #ebeee9; font-size: .875rem; }
.hd-order__options :is(button,a):hover { text-decoration: underline; }
.hd-order__options svg { width: .92rem; height: .92rem; }
.hd-order__status { text-align: center; color: var(--hd-accent); font-size: .82rem; }
.hd-order__status:empty { display: none; }
.hd-order__copy-text { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: .01; }
@media (max-width: 35rem) {
  .hd-order { width: 100%; border: 0; }
  .hd-order__scroll { padding: 0 1rem; }
  .hd-order__head { padding-left: 1rem; padding-right: 1rem; }
  .hd-order__footer { padding-left: 1rem; padding-right: 1rem; }
  .hd-order__step button { width: 2.75rem; min-height: 2.75rem; }
}
@media (max-width: 23rem) {
  .hd-order__row { grid-template-columns: 3rem minmax(0,1fr); gap: .55rem; }
  .hd-order__thumb { height: 3.5rem; }
  .hd-order__row-foot { gap: .3rem; }
  .hd-order__buyer { grid-template-columns: 1fr; }
}
@media (max-height: 32rem) {
  .hd-order__head { padding-top: .25rem; padding-bottom: .25rem; }
  .hd-order__footer { padding-top: .35rem; padding-bottom: .2rem; }
  .hd-order__options :is(button,a) { min-height: 2rem; }
}

.hd-order__footer .hd-order__send { width: 100%; }
.hd-order__receipt { padding: 2.2rem 0 1rem; }
.hd-order__receipt-mark { display: inline-grid; width: 3.25rem; aspect-ratio: 1; place-items: center; margin-bottom: 1.15rem; color: var(--hd-accent); background: #25301b; border: 1px solid #475b36; border-radius: 50%; }
.hd-order__receipt-mark svg { width: 1.65rem; height: 1.65rem; }
.hd-order__receipt .hd-order__options { margin: .6rem 0; }
.hd-order__receipt h3 { margin: 0 0 .4rem; color: var(--hd-accent); font-size: 1.75rem; letter-spacing: -.045em; }
.hd-order__receipt p { color: var(--hd-gray); }
.hd-order__reference { display: block; margin: .9rem 0 1.4rem; overflow-wrap: anywhere; }
.hd-order__receipt .hd-order__browse { width: 100%; }
