/* Canal Street Printing Co. — Creative Calculator
   Scoped under .calc-root so it won't clash with bootstrap.min.css / mdb.min.css / style.css */

.calc-root {
  --calc-ink: #1A1816;
  --calc-paper: #F2EFE9;
  --calc-mustard: #D98E2B;
  --calc-teal: #2F6F6B;
  --calc-rust: #C2503B;
  --calc-line: rgba(26, 24, 22, 0.14);
}

.calc-root * { box-sizing: border-box; }

.calc-field { margin-bottom: 22px; }
.calc-field:last-child { margin-bottom: 0; }

.calc-field > label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: inherit;
}

.calc-hint {
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.78rem;
  display: block;
  margin-top: 4px;
}

.calc-choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.calc-choice {
  border: 1px solid var(--calc-line);
  border-radius: 3px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  background: transparent;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.calc-choice:hover { border-color: var(--calc-teal); }

.calc-choice.active {
  border-color: var(--calc-teal);
  background: var(--calc-teal);
  color: #fff;
}

.calc-choice:focus-visible {
  outline: 2px solid var(--calc-teal);
  outline-offset: 2px;
}

.calc-stepper-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-stepper-row input[type="range"] {
  flex: 1;
  accent-color: var(--calc-teal);
}

.calc-qty-display {
  font-size: 1.3rem;
  font-weight: 700;
  min-width: 44px;
  text-align: right;
}

.calc-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--calc-line);
  border-radius: 3px;
  padding: 12px 14px;
  cursor: pointer;
}

.calc-checkbox-row input { width: 17px; height: 17px; accent-color: var(--calc-rust); }
.calc-checkbox-row span { font-size: 0.88rem; font-weight: 500; }

/* ticket / estimate panel */
.calc-ticket {
  background: var(--calc-ink);
  color: var(--calc-paper);
  border-radius: 6px;
  padding: 26px 24px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 7px,
    rgba(242, 239, 233, 0.05) 7px,
    rgba(242, 239, 233, 0.05) 8px
  );
}

.calc-ticket .calc-label {
  font-size: 0.76rem;
  opacity: 0.65;
  margin: 0 0 2px;
}

.calc-ticket .calc-per-unit {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 4px;
  color: var(--calc-mustard);
}

.calc-ticket .calc-per-unit small { font-size: 0.42em; font-weight: 600; }

.calc-ticket .calc-range {
  font-size: 0.84rem;
  opacity: 0.75;
  margin: 0 0 18px;
}

.calc-ticket hr {
  border: none;
  border-top: 1px dashed rgba(242, 239, 233, 0.3);
  margin: 16px 0;
}

.calc-line-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  padding: 5px 0;
  opacity: 0.85;
}

.calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
}

.calc-total-row .calc-t-label { font-size: 0.88rem; opacity: 0.75; }
.calc-total-row .calc-t-value { font-size: 1.7rem; font-weight: 700; color: #fff; }

.calc-disclaimer {
  margin-top: 16px;
  font-size: 0.7rem;
  opacity: 0.55;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .calc-ticket { margin-top: 24px; }
}
