.order-entry {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #d6cec3;
}
.detail-copy .order-entry .order-price {
  font: 500 23px/1.2 var(--sans);
  color: #322622;
  margin: 0 0 12px;
}
.detail-copy .order-entry > p:last-child {
  font-size: 13px;
  margin: 9px 0 0;
  color: #61564f;
  line-height: 1.45;
}
.detail-copy .order-entry .button {
  margin: 0;
}
.detail-copy .detail-controls {
  margin-top: 12px;
}
.detail-copy .detail-controls [data-open-rail] {
  color: #502831;
  background: transparent;
  border: 1px solid #aa9494;
}
.rail-price {
  font: 500 clamp(17px, 1.3vw, 23px) / 1.22 var(--sans);
  color: #3f2a2a;
  margin: 13px 0 0;
}
.rail-price:empty,
.product-amount:empty {
  display: none;
}
.product-amount {
  font: 500 14px/1.4 var(--sans);
  color: #3b2b26;
}
#order-sheet {
  width: min(620px, calc(100vw - 28px));
  max-height: 92dvh;
  background: #fbf9f4;
  color: #2e2623;
  box-shadow: 0 20px 70px #21121540;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#order-sheet::backdrop {
  background: #24151dd4;
  backdrop-filter: blur(4px);
}
.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
  gap: 12px;
  padding: 13px clamp(18px, 4vw, 36px);
  background: #fbf9f4;
  border-bottom: 1px solid #d7d0c6;
}
.order-head h2 {
  margin: 0;
  font: 400 clamp(27px, 3vw, 38px) / 1 var(--serif);
  letter-spacing: -0.03em;
}
.order-head button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.order-head svg {
  width: 20px;
  height: 20px;
}
.order-shell {
  padding: clamp(18px, 4vw, 36px);
  font: 400 15px/1.45 var(--sans);
}
.order-piece {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.order-piece img {
  width: 68px;
  height: 81px;
  object-fit: contain;
  background: #ede9e0;
}
.order-piece p,
.order-piece h3 {
  margin: 0;
}
.order-piece h3,
.order-subhead,
.order-receipt h3 {
  font: 400 clamp(27px, 3vw, 37px) / 1.04 var(--serif);
  letter-spacing: -0.027em;
}
.order-piece p,
.order-piece span {
  font-size: 12px;
  color: #62564d;
}
.order-piece span {
  display: block;
  line-height: 1.3;
  margin-top: 5px;
}
.order-fields {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.order-fields label {
  display: grid;
  gap: 5px;
  font: 500 14px/1.4 var(--sans);
  min-width: 0;
}
.order-fields input:not([type="checkbox"]),
.order-fields select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  background: white;
  border: 1px solid #ac9f94;
  border-radius: 0;
  color: #332c28;
  padding: 8px 11px;
  font: 400 16px/1.3 var(--sans);
}
.order-fields input::placeholder {
  color: #7b726b;
}
.order-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.order-count {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d9d2c8;
}
.order-count > label {
  width: 104px;
}
.order-count > div {
  display: grid;
  gap: 3px;
  text-align: right;
}
.order-count > div span {
  color: #695f56;
  font-size: 12px;
}
.order-count strong {
  font: 500 21px/1.2 var(--sans);
}
.order-subhead {
  margin: 6px 0 0;
}
.order-fields .order-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.order-consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #76263c;
}
.order-terms {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.52;
  color: #56483f;
}
.stock-consent {
  background: #ede8df;
  padding: 11px 12px;
}
.order-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 19px;
  margin-top: 19px;
}
.order-foot .button,
.order-receipt .button {
  min-height: 45px;
  padding: 0 18px;
  font: 500 14px/1.3 var(--sans);
}
.order-foot .text-button {
  margin: 0;
  min-height: 44px;
}
.order-error {
  font-size: 14px;
  line-height: 1.5;
  color: #8f183b;
}
.order-receipt h3 {
  margin: 1px 0 10px;
}
.order-number {
  color: #7c1d38;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.order-receipt .button {
  margin-top: 12px;
}
@media (max-width: 600px) {
  #order-sheet {
    width: calc(100vw - 12px);
    max-height: 94dvh;
  }
  .order-head {
    padding: 8px 16px;
  }
  .order-shell {
    padding: 18px 16px 22px;
  }
  .order-pair {
    gap: 9px;
  }
  .order-piece {
    margin-bottom: 18px;
  }
  .rail-price {
    margin-top: 9px;
  }
}
.order-cdek {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #67273c;
  width: fit-content;
}
.order-piece [data-unit-price] {
  display: block;
  margin-top: 3px;
  font: 500 14px/1.35 var(--sans);
  color: #40312c;
}
.detail-copy .order-card-sizes {
  font: 400 13px/1.45 var(--sans);
  margin: -4px 0 11px;
  color: #62564d;
}
.order-receipt [data-receipt-item] {
  margin: 4px 0;
  color: #45362d;
}
.order-question {
  border-top: 1px solid #d6cec3;
  border-bottom: 1px solid #d6cec3;
}
.order-question summary {
  padding: 10px 0;
  cursor: pointer;
  font: 500 13px/1.5 var(--sans);
  color: #4d3639;
}
.order-question textarea {
  resize: vertical;
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
  font: 400 16px/1.4 var(--sans);
  padding: 10px;
  background: white;
  color: #332c28;
  border: 1px solid #ac9f94;
  border-radius: 0;
}
.order-data-link {
  width: fit-content;
  margin: -8px 0 0 29px;
  font: 400 12px/1.45 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #67273c;
}
.cdek-lookup {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.cdek-input {
  display: flex;
  align-items: stretch;
  min-width: 0;
  gap: 5px;
}
.cdek-input input {
  flex: 1;
}
.cdek-clear,
.cdek-retry {
  color: #76263c;
  font: 500 13px/1.3 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cdek-clear {
  flex: 0 0 auto;
  padding: 0 5px;
}
.cdek-lookup [role="listbox"] {
  margin: 0;
  padding: 0;
  max-height: min(230px, 32svh);
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #b2a398;
  background: #fff;
  scrollbar-width: thin;
}
.cdek-lookup [role="option"] {
  position: relative;
  display: grid;
  gap: 3px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 11px;
  cursor: pointer;
  line-height: 1.35;
  overflow-wrap: anywhere;
  touch-action: pan-y;
}
.cdek-lookup [role="option"] + [role="option"] {
  border-top: 1px solid #e8dfd7;
}
.cdek-lookup [role="option"] strong {
  font: 500 14px/1.35 var(--sans);
  color: #322622;
}
.cdek-lookup [role="option"] span,
.cdek-status {
  font: 400 12px/1.4 var(--sans);
  color: #645b52;
}
.cdek-lookup [role="option"][aria-selected="true"] {
  background: #f2e8e4;
  box-shadow: inset 3px 0 #76263c;
}
@media (hover: hover) {
  .cdek-lookup [role="option"]:hover {
    background: #f6eeea;
  }
}
.cdek-status {
  margin: 0;
}
.cdek-retry {
  width: fit-content;
  min-height: 32px;
  text-align: left;
  background: transparent;
}
.cdek-manual-notice {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 2px solid #a68b7c;
  background: #efebe3;
  color: #4f443c;
}
.cdek-manual-notice p {
  margin: 0;
  font: 400 13px/1.45 var(--sans);
}

