.demo-notice {
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--pale);
  margin: 0 0 20px;
}
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.demo-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.demo-products article {
  min-width: 0;
}
.demo-products h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 12px 0 8px;
}
.demo-products p {
  font-size: 0.9rem;
  margin: 8px 0;
}
.demo-products .demo-price {
  font-size: 1.1rem;
  font-weight: 700;
}
.demo-products button {
  width: 100%;
  font-size: 0.88rem;
  line-height: 1.4;
  padding: 10px;
  min-height: 44px;
}
.demo-drawing {
  display: block;
  width: 100%;
  height: auto;
}
.store-site .demo-products .demo-drawing {
  width: 100%;
  height: 120px;
  stroke: none;
  fill: none;
}
.store-site .demo-products h2 {
  font-size: 1.1rem;
}
.store-site .compact-head {
  padding-bottom: 0;
  margin-bottom: 20px;
}
.store-site .compact-head .lede {
  max-width: 90ch;
}
.demo-cart {
  background: var(--pale);
  padding: 20px;
  min-width: 0;
}
.demo-cart h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
}
.demo-cart .field {
  display: block;
  margin: 16px 0;
}
.demo-cart .field span {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
}
.demo-cart select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  min-height: 44px;
}
.demo-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.demo-line strong {
  grid-column: 1/-1;
}
.demo-line label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-line input {
  width: 65px;
  padding: 6px;
  min-height: 40px;
  font: inherit;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
}
.demo-line button {
  grid-column: 1/-1;
  justify-self: start;
  padding: 5px 10px;
  min-height: 36px;
}
.demo-cart dl {
  margin: 16px 0;
}
.demo-cart dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}
.demo-cart dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}
.demo-cart dl div:last-child {
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}
#demo-message {
  font-size: 0.9rem;
  min-height: 3em;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.demo-file {
  --paper: #faf9f5;
  --sheet: #fffefa;
  --ink: #322337;
  --muted: #685b69;
  --line: #d3cbd6;
  --pale: #eee7f2;
  --accent: #593779;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    sans-serif;
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}
.demo-file * {
  box-sizing: border-box;
}
.demo-file h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 12px;
}
.demo-file button {
  font: inherit;
  border: 1px solid var(--accent);
  background: var(--sheet);
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
  min-height: 44px;
}
.demo-file button.primary {
  background: var(--accent);
  color: white;
}
.demo-file :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .demo-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  }
}
@media (max-width: 650px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .demo-cart {
    padding: 16px;
  }
  .demo-products {
    grid-template-columns: 1fr;
  }
  .demo-products article {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
  }
  .demo-products .demo-drawing,
  .store-site .demo-products .demo-drawing {
    width: 96px;
    height: auto;
    grid-column: 1;
    grid-row: 1/6;
  }
  .demo-products h2 {
    margin-top: 0;
  }
  .demo-products button {
    grid-column: 2;
  }
  .demo-products article:last-child {
    max-width: none;
  }
  .demo-notice {
    font-size: 0.9rem;
  }
  .demo-file {
    padding: 14px;
  }
}
@media (max-width: 350px) {
  .demo-products {
    grid-template-columns: 1fr;
  }
  .demo-products article {
    max-width: none;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 12px;
  }
  .demo-products .demo-drawing,
  .store-site .demo-products .demo-drawing {
    width: 76px;
  }
}
