/* Cart and checkout component. Reads the website's theme tokens. */
.order-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--module-line);
  border-radius: var(--module-radius);
  background: var(--module-surface);
}
.order-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.order-heading h3 {
  margin: 0;
}
.order-table {
  font-weight: 600;
  color: var(--accent, inherit);
}
.order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.order-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--module-line);
}
.order-line small {
  display: block;
  color: var(--quiet, #6b7080);
}
.order-quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.order-quantity button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--module-line);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.order-line-price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.order-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  margin: 0;
}
.order-totals dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.order-totals dt:last-of-type,
.order-totals dd:last-of-type {
  font-weight: 700;
}
.order-form,
.order-options form {
  display: grid;
  gap: 12px;
}
.order-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}
.order-panel .field {
  display: grid;
  gap: 6px;
}
.order-panel label,
.order-choice legend {
  font-weight: 600;
}
.order-panel input:not([type="radio"], [type="checkbox"]),
.order-panel textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--module-line);
  border-radius: calc(var(--module-radius) * 0.6);
  background: transparent;
  color: inherit;
  font: inherit;
}
.order-choice {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.order-choice legend {
  width: 100%;
  margin-bottom: 6px;
}
.order-choice label {
  font-weight: 400;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
}
.order-options {
  width: min(92vw, 440px);
  border: 0;
  border-radius: var(--module-radius, 14px);
  padding: 22px;
  color: var(--text, #222);
  background: var(--surface, #fff);
}
.order-options::backdrop {
  background: rgb(0 0 0 / 0.45);
}
.order-options h4 {
  margin: 0;
}
.order-options-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.business-button.secondary {
  background: transparent;
  color: inherit;
}
.order-progress {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  font-size: 12px;
  text-align: center;
}
.order-progress li {
  padding-top: 10px;
  border-top: 4px solid #e4e4ea;
  color: #8a8f9f;
}
.order-progress li.is-done {
  border-color: currentColor;
  color: inherit;
  font-weight: 600;
}

/* Itemised lines on the customer's order page. */
.receipt-details.order-receipt-lines {
  grid-template-columns: minmax(0, 1fr) auto;
  font-size: 13px;
  gap: 10px 16px;
}
.order-receipt-lines dt {
  color: #4b4453;
}
.order-receipt-lines dt small {
  color: #9a90a3;
}
.order-receipt-lines dd {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
