/* Budget-based Cartel Cargo builder. */
.cargo-section.stash-builder-section { align-items: start; }
.stash-builder-section .cargo-copy { padding-top: 20px; }
.stash-builder-section .cargo-copy h2 { font-size: clamp(35px, 3.8vw, 54px); }
.stash-builder-section .cargo-description { max-width: 460px; }
.stash-builder-card { width: 100%; min-width: 0; max-width: 540px; justify-self: end; padding: 28px; border: 1px solid var(--green); border-radius: 10px; background: var(--cream); box-shadow: 7px 7px 0 #183e2e1a; }
.stash-builder-card .cargo-manifest { margin-bottom: 24px; }
.stash-field-label, .stash-types legend { font: 700 20px/1.3 var(--serif); letter-spacing: -.5px; }
.stash-field-label { display: block; margin-bottom: 12px; }
.stash-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stash-preset { min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: transparent; font-size: 13px; }
.stash-preset[aria-pressed="true"] { background: var(--green); color: var(--cream); border-color: var(--green); }
.stash-budget-input { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid #183e2e70; border-radius: 5px; padding: 0 15px; }
.stash-budget-input > span { font: 700 23px var(--serif); }
.stash-budget-input input { width: 100%; min-width: 0; min-height: 49px; border: 0; padding: 10px 0; background: transparent; color: var(--green); font-size: 18px; }
.stash-field-hint { font-size: 11px; line-height: 1.6; margin: 9px 0 22px; }
.stash-types { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.stash-types legend { padding: 0; margin-bottom: 12px; }
.stash-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.stash-type { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 11px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; cursor: pointer; }
.stash-type:has(input:checked) { background: #e6eadb; border-color: var(--green); }
.stash-type input { flex-shrink: 0; margin: 0; width: 17px; height: 17px; accent-color: var(--green); }
.stash-type small { display: block; font-size: 9px; margin-top: 3px; line-height: 1.4; }
.stash-type-unavailable { opacity: .65; cursor: default; }
.stash-build-button, .stash-add-button { width: 100%; gap: 16px; }
.stash-builder-note { font-size: 10px; line-height: 1.6; margin-top: 12px; }
.stash-builder-error { padding: 12px 14px; background: #f3dfcf; border-left: 3px solid var(--orange); font-size: 12px; line-height: 1.6; margin: 0 0 18px; }
.stash-results { padding-top: 26px; margin-top: 25px; border-top: 1px solid var(--green); }
.stash-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 8px; }
.stash-results-heading h3 { font-size: 24px; letter-spacing: -.8px; }
.stash-results-heading > span { font-size: 8px; line-height: 1.5; letter-spacing: .6px; text-align: right; }
.stash-results-intro { font-size: 11px; line-height: 1.6; margin-bottom: 8px; }
.stash-picks { list-style: none; margin: 0; padding: 0; }
.stash-pick { display: grid; grid-template-columns: 61px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.stash-pick-art { width: 61px; height: 61px; overflow: hidden; border-radius: 5px; }
.stash-pick-art svg, .stash-pick-art img { width: 100%; height: 100%; object-fit: contain; }
.stash-pick h4 { margin: 0 0 5px; font: 700 15px/1.3 var(--serif); letter-spacing: -.3px; }
.stash-pick p { font-size: 11px; line-height: 1.5; }
.stash-pick-remove { padding: 0; width: 32px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: transparent; font-size: 22px; }
.stash-totals { display: grid; gap: 10px; margin: 19px 0; }
.stash-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; }
.stash-totals dt, .stash-totals dd { margin: 0; }
.stash-totals .stash-total { font-size: 17px; font-weight: 700; }
.stash-totals .stash-total dd { font: 700 27px var(--serif); }
.stash-add-button:disabled { opacity: .5; }
.stash-builder-status { font-size: 12px; line-height: 1.6; margin-top: 13px; }
@media(max-width:800px) {
  .stash-builder-section .cargo-copy { padding-top: 0; }
  .stash-builder-card { justify-self: start; }
}
@media(max-width:580px) {
  .stash-builder-card { padding: 20px; box-shadow: 5px 5px 0 #183e2e1a; }
  .stash-builder-section .cargo-copy h2 { font-size: 35px; }
  .stash-builder-card .cargo-manifest { font-size: 8px; margin-bottom: 21px; }
  .stash-field-label, .stash-types legend { font-size: 19px; }
  .stash-type { padding: 10px; font-size: 12px; }
  .stash-pick { grid-template-columns: 48px minmax(0, 1fr) 29px; gap: 9px; }
  .stash-pick-art { width: 48px; height: 53px; }
  .stash-pick h4 { font-size: 13px; }
  .stash-pick-remove { width: 29px; }
  .stash-results-heading h3 { font-size: 22px; }
}
