/*
 * TCC Web v1.9.1 · Tarifas / Cotizar — Desktop Polish + Calculator UX
 * Scope: /cotizar/ only. Loaded conditionally from functions.php.
 */

/* Calculator: cleaner numeric fields and unit alignment. */
.tcc-quote-page .tcc-quote-calc-field > div {
  grid-template-columns: minmax(0, 1fr) 54px;
}
.tcc-quote-page .tcc-quote-calc-field input {
  min-width: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.tcc-quote-page .tcc-quote-calc-field input::-webkit-outer-spin-button,
.tcc-quote-page .tcc-quote-calc-field input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.tcc-quote-page .tcc-quote-calc-field > div span {
  white-space: nowrap;
  letter-spacing: .03em;
}

/* Calculator: make the selected mode unmistakable without changing the layout. */
.tcc-quote-page .tcc-quote-calc-tabs button {
  position: relative;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.tcc-quote-page .tcc-quote-calc-tabs button::before {
  content: "";
  position: absolute;
  left: auto;
  right: 20px;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 0 rgba(217,65,45,0);
  transition: background .18s ease, box-shadow .18s ease;
}
.tcc-quote-page .tcc-quote-calc-tabs button.is-active {
  background: linear-gradient(135deg, rgba(217,65,45,.22), rgba(217,65,45,.055));
  color: #fff;
  box-shadow: inset 0 -3px var(--quote-red);
}
.tcc-quote-page .tcc-quote-calc-tabs button.is-active::before {
  background: #e05440;
  box-shadow: 0 0 0 4px rgba(217,65,45,.10);
}
.tcc-quote-page .tcc-quote-calc-tabs button.is-active small {
  color: #e9b9b0;
}

/* Calculator: explain why a value becomes the estimated billing basis. */
.tcc-quote-page .tcc-quote-calc-explain {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 2px solid #d9412d;
  border-radius: 0 8px 8px 0;
  background: rgba(217,65,45,.065);
  color: #d2d4d5;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.55;
}
.tcc-quote-page .tcc-quote-calc-result-grid {
  margin-bottom: 12px;
}

/* Modalities: desktop-only optical alignment for a more even card rhythm. */
@media (min-width: 1100px) {
  .tcc-quote-page .tcc-quote-mode-grid article {
    min-height: 414px;
    padding-bottom: 24px;
  }
  .tcc-quote-page .tcc-quote-mode-grid h3 {
    min-height: 42px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
  }
  .tcc-quote-page .tcc-quote-mode-basis {
    min-height: 56px;
  }
  .tcc-quote-page .tcc-quote-mode-grid p {
    min-height: 72px;
  }
}

/* Keep calculator explanation comfortable on smaller screens. */
@media (max-width: 760px) {
  .tcc-quote-page .tcc-quote-calc-tabs button::before {
    top: 18px;
  }
  .tcc-quote-page .tcc-quote-calc-explain {
    font-size: 10px;
  }
}
