/* AnyPrint Product Configurator – brand colours taken from the AnyPrint logo */
.apc-configurator {
  --apc-orange: #f07f1d;
  --apc-orange-dark: #d96a0b;
  --apc-blue: #1f8fd6;
  --apc-ink: #1d2433;
  --apc-muted: #5b6475;
  --apc-line: #e2e6ec;
  --apc-soft: #fff4ea;
  --apc-bg: #ffffff;
  max-width: 880px;
  margin: 0 auto;
  color: var(--apc-ink);
  font-size: 16px;
  line-height: 1.45;
}
.apc-configurator *, .apc-configurator *::before, .apc-configurator *::after { box-sizing: border-box; }

.apc-step { background: var(--apc-bg); border: 1px solid var(--apc-line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.apc-h { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.apc-desc { margin: -6px 0 14px; color: var(--apc-muted); }

.apc-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.apc-product {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px; border: 2px solid var(--apc-line); border-radius: 10px;
  background: var(--apc-bg); color: var(--apc-ink); cursor: pointer; text-align: left; font: inherit;
}
.apc-product span { color: var(--apc-muted); font-size: 14px; }
.apc-product:hover { border-color: var(--apc-orange); }
.apc-product.is-on { border-color: var(--apc-orange); background: var(--apc-soft); }

.apc-field { border: 0; margin: 0 0 14px; padding: 0; }
.apc-field:last-child { margin-bottom: 0; }
.apc-label { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.apc-fixed { display: inline-block; padding: 8px 14px; background: #f3f5f8; border-radius: 999px; font-size: 15px; }
.apc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.apc-pill {
  position: relative; padding: 8px 16px; border: 2px solid var(--apc-line); border-radius: 999px;
  cursor: pointer; font-size: 15px; user-select: none;
}
.apc-pill input { position: absolute; opacity: 0; pointer-events: none; }
.apc-pill:hover { border-color: var(--apc-orange); }
.apc-pill.is-on { border-color: var(--apc-orange); background: var(--apc-soft); font-weight: 600; }
.apc-pill:focus-within { outline: 2px solid var(--apc-blue); outline-offset: 2px; }
.apc-pill small { color: var(--apc-muted); font-weight: 400; }

.apc-prices { width: 100%; border-collapse: collapse; margin: 0; }
.apc-prices th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--apc-muted); padding: 8px 12px; border-bottom: 1px solid var(--apc-line); }
.apc-prices td { padding: 12px; border-bottom: 1px solid var(--apc-line); }
.apc-row { cursor: pointer; }
.apc-row:hover td { background: #fafbfc; }
.apc-row.is-on td { background: var(--apc-soft); }
.apc-row.is-on td:first-child { box-shadow: inset 4px 0 0 var(--apc-orange); }
.apc-row:focus { outline: 2px solid var(--apc-blue); outline-offset: -2px; }

.apc-summary {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: 12px; background: var(--apc-ink); color: #fff;
  position: sticky; bottom: 12px; z-index: 5;
}
.apc-summary-text { flex: 1 1 220px; min-width: 0; }
.apc-summary-title { font-weight: 700; }
.apc-summary-spec { font-size: 14px; opacity: .8; }
.apc-total { font-size: 26px; font-weight: 800; white-space: nowrap; }
.apc-buy {
  display: inline-block; padding: 12px 22px; border: 0; border-radius: 8px;
  background: var(--apc-orange); color: #fff !important; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.apc-buy:hover { background: var(--apc-orange-dark); }
.apc-buy[disabled] { opacity: .6; cursor: progress; }

.apc-notice { margin-top: 12px; padding: 12px 16px; border-radius: 8px; }
.apc-notice--ok { background: #e8f6ee; color: #145c33; }
.apc-notice--error { background: #fdecec; color: #8a1c1c; }
.apc-notice a { color: inherit; font-weight: 700; }

@media (max-width: 560px) {
  .apc-step { padding: 16px; }
  .apc-prices th:last-child, .apc-prices td:last-child { display: none; }
  .apc-summary { bottom: 0; border-radius: 12px 12px 0 0; }
  .apc-buy { width: 100%; text-align: center; }
  .apc-total { font-size: 22px; }
}
