/**
 * Foxes Calculators: Costs (Purchase costs)
 * All rules scoped under #foxes-costs-calculator-mount.
 * Sized for modal embed (max-width 680px works) and standalone page use.
 */

#foxes-costs-calculator-mount{
  --fx-red:#D05050;
  --fx-red-dark:#C04545;
  --fx-red-soft:#F7E0E0;
  --fx-ink:#0C0C0C;
  --fx-ink-soft:#1F1F1F;
  --fx-cream:#FAF6EE;
  --fx-rule:#E8DECC;
  --fx-muted:#6B6557;
  --fx-track:#EDE7D9;

  max-width:680px;margin:0 auto;padding:16px;
  font-family:Geist,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color:var(--fx-ink);
  box-sizing:border-box;
}
#foxes-costs-calculator-mount *{box-sizing:border-box;}
#foxes-costs-calculator-mount script[type="application/json"]{display:none;}

#foxes-costs-calculator-mount .fx-cst-card{
  background:#fff;border:1px solid var(--fx-rule);border-radius:20px;overflow:hidden;
  box-shadow:0 1px 3px rgba(12,12,12,.06);
}
#foxes-costs-calculator-mount .fx-cst-panel{padding:22px;}

#foxes-costs-calculator-mount .fx-cst-row{margin-bottom:18px;}
#foxes-costs-calculator-mount .fx-cst-row:last-child{margin-bottom:0;}
#foxes-costs-calculator-mount .fx-cst-row-2{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;
}

#foxes-costs-calculator-mount .fx-cst-field{margin:0;}
#foxes-costs-calculator-mount .fx-cst-label{
  display:block;font-weight:500;font-size:14px;color:var(--fx-ink);
  margin-bottom:8px;
}

#foxes-costs-calculator-mount .fx-cst-ctrlrow{
  display:flex;gap:10px;align-items:center;margin-bottom:12px;
}
#foxes-costs-calculator-mount .fx-cst-numwrap{position:relative;flex:1;}
#foxes-costs-calculator-mount .fx-cst-num{
  width:100%;height:46px;border:1px solid var(--fx-rule);border-radius:10px;
  padding:0 14px 0 34px;font-size:17px;font-weight:600;text-align:right;
  background:#fff;color:var(--fx-ink);font-family:inherit;
}
#foxes-costs-calculator-mount .fx-cst-num:focus{
  outline:none;border-color:var(--fx-red);box-shadow:0 0 0 3px var(--fx-red-soft);
}
#foxes-costs-calculator-mount .fx-cst-prefix{
  position:absolute;left:13px;top:50%;transform:translateY(-50%);
  color:var(--fx-muted);font-weight:500;pointer-events:none;
}

#foxes-costs-calculator-mount .fx-cst-stepper{display:flex;gap:8px;}
#foxes-costs-calculator-mount .fx-cst-btn{
  width:44px;height:44px;border-radius:10px;border:1px solid var(--fx-rule);
  display:grid;place-items:center;background:#fff;cursor:pointer;
  font-size:20px;font-weight:600;color:var(--fx-ink);font-family:inherit;line-height:1;
}
#foxes-costs-calculator-mount .fx-cst-btn:hover{
  border-color:var(--fx-red);color:var(--fx-red);
}
#foxes-costs-calculator-mount .fx-cst-btn:focus-visible{
  outline:none;border-color:var(--fx-red);box-shadow:0 0 0 3px var(--fx-red-soft);
}

#foxes-costs-calculator-mount .fx-cst-range{
  -webkit-appearance:none;appearance:none;width:100%;height:8px;border-radius:999px;
  background:linear-gradient(var(--fx-red),var(--fx-red)) 0/var(--val,0%) 100% no-repeat,var(--fx-track);
  outline:none;cursor:pointer;
}
#foxes-costs-calculator-mount .fx-cst-range::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:22px;height:22px;border-radius:50%;
  background:var(--fx-red);border:3px solid #fff;box-shadow:0 0 0 1px var(--fx-red);cursor:pointer;
}
#foxes-costs-calculator-mount .fx-cst-range::-moz-range-thumb{
  width:20px;height:20px;border-radius:50%;background:var(--fx-red);border:3px solid #fff;cursor:pointer;
}

#foxes-costs-calculator-mount .fx-cst-selwrap{position:relative;}
#foxes-costs-calculator-mount .fx-cst-sel{
  width:100%;height:46px;border:1px solid var(--fx-rule);border-radius:10px;
  padding:0 38px 0 14px;font-size:15px;font-weight:500;
  background:#fff;color:var(--fx-ink);font-family:inherit;
  -webkit-appearance:none;appearance:none;cursor:pointer;
}
#foxes-costs-calculator-mount .fx-cst-sel:focus{
  outline:none;border-color:var(--fx-red);box-shadow:0 0 0 3px var(--fx-red-soft);
}
#foxes-costs-calculator-mount .fx-cst-selwrap::after{
  content:"";position:absolute;right:14px;top:50%;width:10px;height:10px;
  border-right:2px solid var(--fx-ink);border-bottom:2px solid var(--fx-ink);
  transform:translateY(-70%) rotate(45deg);pointer-events:none;
}

#foxes-costs-calculator-mount .fx-cst-toggle{
  display:flex;background:var(--fx-cream);border:1px solid var(--fx-rule);
  border-radius:999px;padding:3px;height:46px;
}
#foxes-costs-calculator-mount .fx-cst-tog{
  flex:1;border:none;background:transparent;cursor:pointer;
  font-size:14px;font-weight:500;color:var(--fx-ink);border-radius:999px;
  font-family:inherit;line-height:1.2;padding:0 12px;
}
#foxes-costs-calculator-mount .fx-cst-tog.is-active{
  background:var(--fx-ink);color:#fff;font-weight:600;
}
#foxes-costs-calculator-mount .fx-cst-tog:focus-visible{
  outline:none;box-shadow:0 0 0 3px var(--fx-red-soft);
}

#foxes-costs-calculator-mount .fx-cst-results{
  background:linear-gradient(155deg,var(--fx-ink),var(--fx-ink-soft));
  color:#fff;padding:24px;
}
#foxes-costs-calculator-mount .fx-cst-results-label{
  margin:0;font-size:12px;font-weight:500;letter-spacing:.05em;
  text-transform:uppercase;color:#D9D4CA;
}
#foxes-costs-calculator-mount .fx-cst-big{
  margin:6px 0 6px;font-size:40px;font-weight:600;line-height:1.12;
  letter-spacing:-.01em;font-variant-numeric:tabular-nums;
}
#foxes-costs-calculator-mount .fx-cst-fine{
  margin:0 0 18px;font-size:13px;line-height:1.5;color:#EDEAE3;
}

#foxes-costs-calculator-mount .fx-cst-breakdown{
  list-style:none;padding:0;margin:0;
  border-top:1px solid rgba(255,255,255,.12);
}
#foxes-costs-calculator-mount .fx-cst-line{
  display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  padding:11px 0;border-bottom:1px solid rgba(255,255,255,.08);
  font-size:14px;
}
#foxes-costs-calculator-mount .fx-cst-line:last-child{border-bottom:none;}
#foxes-costs-calculator-mount .fx-cst-line-label{
  color:#D9D4CA;font-weight:400;
}
#foxes-costs-calculator-mount .fx-cst-line-value{
  color:#fff;font-weight:500;font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

#foxes-costs-calculator-mount .fx-cst-disclaimer{
  margin:14px 6px 0;font-size:11px;line-height:1.55;color:var(--fx-muted);text-align:center;
}

@media (max-width:520px){
  #foxes-costs-calculator-mount .fx-cst-panel{padding:18px;}
  #foxes-costs-calculator-mount .fx-cst-results{padding:20px;}
  #foxes-costs-calculator-mount .fx-cst-big{font-size:32px;}
  #foxes-costs-calculator-mount .fx-cst-row-2{grid-template-columns:1fr;gap:14px;}
}
