.shop-sale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  color: var(--t);
}
.shop-sale-panel {
  min-width: 0;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--b);
  border-radius: 14px;
  background: var(--w, #fff);
}
.shop-sale h3 {
  margin: 0;
  font: 800 23px/1.15 "Barlow Condensed", sans-serif;
}
.shop-sale-head, .shop-sale-line-head, .shop-sale-amount, .shop-sale-line-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.shop-sale-head, .shop-sale-panel > h3 { margin-bottom: 16px; }
.shop-sale-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  font: 600 12px/1.35 Manrope, sans-serif;
  color: var(--s);
}
.shop-sale input, .shop-sale select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid var(--b);
  border-radius: 8px;
  background: #fff;
  color: var(--t);
  font: 600 14px/1.4 Manrope, sans-serif;
}
.shop-sale input[aria-invalid="true"] { border-color: #be3846; }
.shop-sale :is(input,select,button):focus-visible, .shop-sale h3:focus-visible {
  outline: 2px solid #007936;
  outline-offset: 2px;
}
.shop-sale-products, .shop-sale-lines {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.shop-sale-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--b);
}
.shop-sale-product:last-child { border-bottom: 0; }
.shop-sale-product-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.shop-sale-product strong, .shop-sale-line-head strong { font-size: 14px; }
.shop-sale-product small, .shop-sale-empty, .shop-sale-line-total { font-size: 12px; color: var(--s); }
.shop-sale-product .shop-sale-soldout { color: #92400e; }
.shop-sale-price, .shop-sale-amount strong, .shop-sale-list-price strong, .shop-sale-line-total strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.shop-sale-price { font-size: 13px; font-weight: 750; }
.shop-sale .btn-sm { min-height: 40px; }
.shop-sale button:disabled { opacity: .52; cursor: default; }
.shop-sale-more { margin-top: 12px; }
.shop-sale-line {
  padding: 14px 0;
  border-top: 1px solid var(--b);
}
.shop-sale-line-head { align-items: start; overflow-wrap: anywhere; }
.shop-sale-remove {
  flex-shrink: 0;
  color: #9a3c39;
  background: transparent;
  padding: 4px 0 4px 8px;
  border: 0;
  cursor: pointer;
  font: 700 12px Manrope, sans-serif;
}
.shop-sale-line-fields {
  display: grid;
  grid-template-columns: minmax(55px, .72fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}
.shop-sale-list-price strong {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--t);
  font-size: 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.shop-sale-line-total { justify-content: end; margin-top: 8px; }
.shop-sale-line-total strong { color: var(--t); }
.shop-sale-line-issue { color: #9f2639; font-size: 12px; line-height: 1.5; margin: 6px 0; }
.shop-sale-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  margin: 14px 0;
  border-radius: 9px;
  background: var(--bg);
}
.shop-sale-amount { font-size: 12px; }
.shop-sale-amount-total { font-size: 17px; font-weight: 750; }
.shop-sale-cash {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}
.shop-sale-cash > p { grid-column: 1 / -1; }
.shop-sale-change {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--s);
}
.shop-sale-change strong {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--t);
}
.shop-sale .shop-sale-pay { width: 100%; min-height: 44px; margin-top: 12px; background: #08773c; }
.shop-sale .shop-sale-pay:hover:not(:disabled) { background: #07582f; }
.shop-sale-message {
  padding: 10px 12px;
  margin: 12px 0 0;
  border-radius: 8px;
  color: #135733;
  background: #e5f5eb;
  font-size: 13px;
}
.shop-sale-message[data-kind="error"] { color: #922b3a; background: #fff0f2; }
.shop-sale [hidden], .shop-sale .shop-sale-jump { display: none; }
@media (max-width: 860px) {
  .shop-sale { grid-template-columns: minmax(0, 1fr); }
  .shop-sale .shop-sale-jump:not([hidden]) { display: inline-block; }
}
@media (max-width: 400px) {
  .shop-sale-product { column-gap: 6px; }
  .shop-sale-product .btn-sm { padding: 6px 8px; }
  .shop-sale-field { font-size: 11px; }
  .shop-sale input, .shop-sale select { padding: 6px; }
}
