.cb-savings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  color: var(--color-text);
}

.cb-savings,
.cb-savings * { box-sizing: border-box; }

.cb-savings__controls,
.cb-savings__summary { min-width: 0; padding: 24px; border-radius: 8px; }

.cb-savings__controls {
  background: linear-gradient(180deg, #fff, var(--color-bg-light));
  border: 1px solid var(--color-border);
}

.cb-savings__overline {
  display: block;
  margin-bottom: 8px;
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.cb-savings h3 { margin: 0 0 10px; font-size: 28px; font-weight: 800; overflow-wrap: anywhere; }
.cb-savings__description { margin: 0 0 22px; color: var(--color-text-muted); line-height: 1.65; }
.cb-savings__field { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--color-border); }
.cb-savings__field label,
.cb-savings__field > div { display: flex; justify-content: space-between; gap: 12px; }
.cb-savings__field label { font-size: 13px; font-weight: 700; }
.cb-savings__field output { font-size: 15px; font-weight: 800; }
.cb-savings__field > div { color: var(--color-text-muted); font-size: 12px; }

.cb-savings input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 0;
  appearance: none;
  background: rgba(var(--color-brand-rgb), .2);
  border-radius: 4px;
  cursor: pointer;
}

.cb-savings input[type="range"]::-webkit-slider-thumb {
  width: 21px;
  height: 21px;
  appearance: none;
  background: var(--color-brand);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(var(--color-shadow-rgb), .2);
}

.cb-savings input[type="range"]::-moz-range-thumb {
  width: 21px;
  height: 21px;
  background: var(--color-brand);
  border: 3px solid #fff;
  border-radius: 50%;
}

.cb-savings__summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--color-cta-from), var(--color-cta-to));
}

.cb-savings__rate { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.15); }
.cb-savings__rate span,
.cb-savings__results span { display: block; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.cb-savings__rate strong { display: block; margin-top: 8px; color: color-mix(in srgb, var(--color-brand) 30%, white); font-size: 32px; }
.cb-savings__results { display: grid; gap: 12px; }
.cb-savings__results > div { padding: 15px 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); border-radius: 8px; }
.cb-savings__results strong { display: block; margin-top: 6px; font-size: 22px; }
.cb-savings__results .cb-savings__total { background: rgba(255,255,255,.14); }
.cb-savings__total strong { color: color-mix(in srgb, var(--color-brand) 30%, white); font-size: 30px; }
.cb-savings__apply { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: auto; padding: 12px 18px; color: var(--color-brand-darker); font-weight: 800; text-decoration: none; background: #fff; border-radius: 8px; }
.cb-savings__disclaimer { margin: 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.55; }

@media (max-width: 760px) {
  .cb-savings { grid-template-columns: 1fr; }
  .cb-savings__controls,
  .cb-savings__summary { padding: 20px; }
  .cb-savings h3 { font-size: 24px; }
}
