/* Repair or Replace calculator.
   Every rule starts with .wc-calc so it can't change anything else on the site.
   In WordPress this file ships inside the small calculator plugin. */

.wc-calc {
  --wc-ink: #24124A;
  --wc-plum: #3A1F73;
  --wc-violet: #6B44CC;
  --wc-mist: #F6F2FD;
  --wc-line: #E7E0F5;
  --wc-mint: #E3F5EE;
  --wc-white: #FFFFFF;
  font-family: "Manrope", sans-serif;
  color: var(--wc-plum);
  box-sizing: border-box;
}
.wc-calc *, .wc-calc *::before, .wc-calc *::after { box-sizing: border-box; min-width: 0; }

.wc-calc .wc-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Inputs */
.wc-calc .wc-inputs {
  display: grid;
  gap: 26px;
  padding: 32px;
  background: var(--wc-white);
  border: 1px solid var(--wc-line);
  border-radius: 28px;
}
.wc-calc .wc-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  color: var(--wc-plum);
}
.wc-calc .wc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wc-mint);
  color: var(--wc-ink);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.wc-calc .wc-hint { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--wc-violet); }
.wc-calc .wc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-calc .wc-chip {
  font: 600 15px "Manrope", sans-serif;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--wc-line);
  background: var(--wc-mist);
  color: var(--wc-plum);
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  transition: background .2s, color .2s, border-color .2s;
}
.wc-calc .wc-chip:hover { border-color: var(--wc-violet); }
.wc-calc .wc-chip[aria-pressed="true"] { background: var(--wc-violet); border-color: var(--wc-violet); color: var(--wc-white); }
.wc-calc [hidden] { display: none !important; }
.wc-calc .wc-select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  font: 600 16px "Manrope", sans-serif;
  color: var(--wc-plum);
  background: var(--wc-mist);
  border: 1px solid var(--wc-line);
  border-radius: 14px;
}
.wc-calc .wc-diff {
  display: inline-block;
  margin: 12px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.wc-calc .wc-diff-easy { background: #DDF3E6; color: #1F5A3A; }
.wc-calc .wc-diff-moderate { background: #FBEFCB; color: #6B4E0A; }
.wc-calc .wc-diff-pro { background: #FBE1E1; color: #7A1F1F; }
.wc-calc .wc-typical { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--wc-violet); }
.wc-calc .wc-typical:empty { display: none; }

.wc-calc .wc-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.wc-calc .wc-money { position: relative; }
.wc-calc .wc-money span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--wc-violet); font-weight: 700; }
.wc-calc input[type="number"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px 0 32px;
  font: 600 17px "Manrope", sans-serif;
  color: var(--wc-plum);
  background: var(--wc-mist);
  border: 1px solid var(--wc-line);
  border-radius: 14px;
}
.wc-calc .wc-age { display: flex; align-items: center; gap: 16px; }
.wc-calc .wc-age input[type="range"] { flex: 1; accent-color: var(--wc-violet); min-height: 44px; }
.wc-calc .wc-age output {
  min-width: 6ch;
  text-align: right;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 22px;
  white-space: nowrap;
  color: var(--wc-plum);
}
.wc-calc .wc-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 0 0;
  border-top: 1px solid var(--wc-line);
  cursor: pointer;
}
.wc-calc .wc-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--wc-violet); flex: none; }
.wc-calc .wc-check b { display: block; font-weight: 700; color: var(--wc-plum); }
.wc-calc .wc-reset {
  font: 600 14px "Manrope", sans-serif;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--wc-violet);
  text-decoration: underline;
  cursor: pointer;
  justify-self: start;
}
.wc-calc button:focus-visible, .wc-calc input:focus-visible, .wc-calc .wc-check:focus-within {
  outline: 3px solid var(--wc-violet);
  outline-offset: 2px;
}

/* Verdict card */
.wc-calc .wc-card {
  position: sticky;
  top: 24px;
  padding: 34px;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(36, 18, 74, 0.12);
  transition: background .3s, color .3s;
}
.wc-calc .wc-card[data-v="repair"] { background: var(--wc-mint); color: var(--wc-ink); }
.wc-calc .wc-card[data-v="consider"] { background: var(--wc-mist); color: var(--wc-plum); border: 2px solid var(--wc-violet); }
.wc-calc .wc-card[data-v="replace"] { background: var(--wc-violet); color: var(--wc-white); }
.wc-calc .wc-chead { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.wc-calc .wc-verdict {
  margin: 14px 0 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: .98;
  letter-spacing: -0.03em;
}
.wc-calc .wc-why { margin: 0 0 24px; font-size: 18px; line-height: 1.55; }
.wc-calc .wc-mtop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 700; }
.wc-calc .wc-mtop b { font-family: "Bricolage Grotesque", sans-serif; font-size: 36px; white-space: nowrap; }
.wc-calc .wc-track { position: relative; height: 16px; margin: 28px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
.wc-calc .wc-card[data-v="consider"] .wc-track { background: var(--wc-white); }
.wc-calc .wc-card[data-v="replace"] .wc-track { background: rgba(255, 255, 255, .25); }
.wc-calc .wc-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: currentColor; transition: width .45s ease; }
.wc-calc .wc-fill-age { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: currentColor; opacity: .35; transition: width .45s ease; }
.wc-calc .wc-half { position: absolute; top: -24px; bottom: -4px; border-left: 2px dashed currentColor; }
.wc-calc .wc-half span { position: absolute; top: -2px; left: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wc-calc .wc-scale { display: flex; justify-content: space-between; font-size: 13px; opacity: .8; }
.wc-calc .wc-reasons { margin: 22px 0 0; padding: 16px 0 0 18px; border-top: 1px solid currentColor; font-size: 15px; line-height: 1.55; }
.wc-calc .wc-reasons li { margin: 4px 0; }
.wc-calc .wc-reasons .wc-flag {
  list-style: none;
  margin: 12px 0 0 -18px;
  padding: 12px 14px;
  border-left: 4px solid #D9A21B;
  border-radius: 10px;
  background: #FBEFCB;
  color: #4A3606;
}
.wc-calc .wc-note { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.55; background: rgba(255, 255, 255, .6); }
.wc-calc .wc-card[data-v="consider"] .wc-note { background: var(--wc-white); }
.wc-calc .wc-card[data-v="replace"] .wc-note { background: rgba(255, 255, 255, .15); }
.wc-calc .wc-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 22px;
  border-radius: 999px;
  font: 700 15px "Manrope", sans-serif;
  text-decoration: none;
  background: var(--wc-ink);
  color: var(--wc-white);
}
.wc-calc .wc-card[data-v="replace"] .wc-cta { background: var(--wc-mint); color: var(--wc-ink); }

/* Rules and price table */
.wc-calc .wc-how {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--wc-line);
}
.wc-calc .wc-how h2 {
  margin: 0 0 18px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  color: var(--wc-plum);
}
.wc-calc .wc-rules { margin: 0; padding-left: 20px; font-size: 17px; line-height: 1.65; }
.wc-calc .wc-rules li { margin: 0 0 12px; }
.wc-calc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wc-calc th, .wc-calc td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--wc-line); }
.wc-calc th { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wc-violet); }
.wc-calc .wc-n { text-align: right; white-space: nowrap; }
.wc-calc .wc-fine { margin-top: 12px; font-size: 13px; font-style: italic; color: var(--wc-violet); }

/* Phone/tablet mini verdict bar: pinned to the top of the screen while answering */
.wc-calc .wc-mini { display: none; }
.wc-calc .wc-mini-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wc-calc .wc-mini-v { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 20px; line-height: 1.1; }
.wc-calc .wc-mini-pct { font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; white-space: nowrap; }
.wc-calc .wc-mini-track { position: relative; display: block; height: 8px; margin: 8px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
.wc-calc .wc-mini[data-v="consider"] .wc-mini-track { background: var(--wc-white); }
.wc-calc .wc-mini[data-v="replace"] .wc-mini-track { background: rgba(255, 255, 255, .25); }
.wc-calc .wc-mini-fill, .wc-calc .wc-mini-age { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: currentColor; transition: width .3s ease; }
.wc-calc .wc-mini-age { opacity: .35; }
.wc-calc .wc-mini-mark { position: absolute; top: -3px; bottom: -3px; border-left: 2px solid currentColor; opacity: .7; }
.wc-calc .wc-mini-mark-50 { left: 50%; }
.wc-calc .wc-mini-mark-70 { left: 70%; }
.wc-calc .wc-mini-go { display: block; font-size: 12px; font-weight: 700; opacity: .85; }

@media (max-width: 900px) {
  .wc-calc .wc-main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .wc-calc .wc-card { position: static; scroll-margin-top: 16px; }
  .wc-calc .wc-mini {
    display: block;
    position: sticky;
    top: 8px;
    z-index: 5;
    padding: 12px 18px;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(36, 18, 74, 0.18);
    transition: background .3s, color .3s, opacity .25s, transform .25s;
  }
  .wc-calc .wc-mini[data-v="repair"] { background: var(--wc-mint); color: var(--wc-ink); }
  .wc-calc .wc-mini[data-v="consider"] { background: var(--wc-mist); color: var(--wc-plum); border: 2px solid var(--wc-violet); }
  .wc-calc .wc-mini[data-v="replace"] { background: var(--wc-violet); color: var(--wc-white); }
  .wc-calc .wc-mini.wc-mini-off { opacity: 0; transform: translateY(-8px); pointer-events: none; }
  .wc-calc .wc-how { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 600px) {
  .wc-calc .wc-inputs { padding: 22px 18px; border-radius: 22px; }
  .wc-calc .wc-card { padding: 24px 20px; border-radius: 22px; }
  .wc-calc .wc-verdict { font-size: 40px; }
  .wc-calc .wc-row2 { grid-template-columns: minmax(0, 1fr); }
  .wc-calc table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wc-calc .wc-fill, .wc-calc .wc-card, .wc-calc .wc-mini, .wc-calc .wc-mini-fill, .wc-calc .wc-mini-age { transition: none; }
}

/* Guard rules for WordPress: keep the theme's button and link styles from changing the calculator. */
.wc-calc .wc-chip:hover, .wc-calc .wc-chip:focus { background: var(--wc-mist); color: var(--wc-plum); }
.wc-calc .wc-chip[aria-pressed="true"]:hover, .wc-calc .wc-chip[aria-pressed="true"]:focus { background: var(--wc-violet); color: var(--wc-white); }
.wc-calc .wc-chip { box-shadow: none; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.wc-calc .wc-reset:hover, .wc-calc .wc-reset:focus { background: none; color: var(--wc-violet); }
.wc-calc .wc-cta:hover, .wc-calc .wc-cta:focus { color: var(--wc-white); }
.wc-calc .wc-card[data-v="replace"] .wc-cta:hover { color: var(--wc-ink); }
.wc-calc a.wc-mini, .wc-calc a.wc-mini:hover { color: inherit; text-decoration: none; }
.wc-calc ul, .wc-calc ol { margin-left: 0; }