:root{
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:#143b80;
  background:#eff5ff;
  font-synthesis:none;
  --ink:#143b80;
  --muted:#526b8b;
  --line:#d9e5f7;
  --accent:#9ab4d7;
  --green:#244c87
}
*{
  box-sizing:border-box
}
body{
  margin:0
}
button,input{
  font:inherit
}
button{
  cursor:pointer
}
button,a,input{
  -webkit-tap-highlight-color:transparent
}
button{
  transition:background .16s,border-color .16s,box-shadow .16s
}
button:focus-visible,a:focus-visible,summary:focus-visible{
  outline:3px solid #526b8b;
  outline-offset:4px
}
button:disabled{
  cursor:default;
  opacity:.45
}
button svg{
  pointer-events:none
}
.hidden{
  display:none!important
}
.site-header{
  background:#fff;
  border-bottom:1px solid var(--line)
}
.header-inner{
  max-width:1360px;
  margin:auto;
  padding:23px 48px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  color:var(--ink)
}
.brand-mark{
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  background:var(--ink);
  border-radius:11px;
  color:var(--accent);
  font-size:25px;
  font-weight:800
}
.brand-name{
  font-size:22px;
  letter-spacing:-1px;
  font-weight:800
}
.brand-label{
  border-left:1px solid var(--line);
  margin-left:12px;
  padding-left:22px;
  font-size:13px;
  color:var(--muted)
}
.header-note{
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:8px
}
.status-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#526b8b
}
.workspace{
  max-width:1360px;
  margin:auto;
  padding:43px 48px 24px
}
.intro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:30px;
  gap:20px
}
.eyebrow{
  font-size:11px;
  font-weight:750;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:#526b8b;
  margin:0 0 12px
}
h1{
  font-size:36px;
  line-height:1.2;
  letter-spacing:-1.35px;
  margin:0 0 11px;
  font-weight:650
}
.intro p:last-child{
  font-size:14px;
  color:var(--muted);
  margin:0;
  line-height:1.6
}
.tool-tag{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  border:1px solid #d9e5f7;
  border-radius:7px;
  padding:10px 13px;
  background:#eff5ff;
  color:#244c87;
  white-space:nowrap
}
.tool-tag svg{
  width:15px;
  height:15px
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px
}
.offers{
  padding:24px;
  margin-bottom:24px
}
.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.heading-title{
  display:flex;
  align-items:center;
  gap:10px
}
h2{
  margin:0;
  font-size:16px;
  letter-spacing:-.25px;
  font-weight:650
}
.step-number{
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  font-size:11px;
  border:1px solid #d9e5f7;
  border-radius:50%;
  color:#526b8b
}
.section-note{
  font-size:12px;
  color:var(--muted)
}
.scheme-options{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:19px
}
.scheme-btn,.add-scheme-btn{
  min-height:43px;
  padding:10px 16px;
  border:1px solid #d9e5f7;
  border-radius:8px;
  background:#fff;
  color:#244c87;
  font-size:13px;
  font-weight:600;
  white-space:nowrap
}
.scheme-btn:hover{
  background:#eff5ff;
  border-color:#9ab4d7
}
.scheme-btn[aria-pressed=true]{
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
  box-shadow:0 2px 3px #143b8010
}
.add-scheme-btn{
  border-style:dashed;
  display:flex;
  align-items:center;
  gap:8px
}
.add-scheme-btn:hover,.add-scheme-btn[aria-expanded=true]{
  background:#eff5ff;
  border-color:#526b8b
}
.saved-custom-scheme{
  position:relative
}
.saved-custom-scheme .scheme-btn{
  padding-right:38px
}
.delete-custom-scheme{
  position:absolute;
  right:5px;
  top:9px;
  height:26px;
  width:26px;
  border:0;
  border-radius:5px;
  background:#eff5ff;
  color:#244c87;
  font-size:19px
}
.delete-custom-scheme:hover{
  background:#f7dddd;
  color:#9a3737
}
.custom-panel{
  border-top:1px solid var(--line);
  margin-top:22px;
  padding-top:20px
}
.custom-panel p{
  font-size:13px;
  color:var(--muted);
  margin:8px 0 18px
}
.custom-form{
  display:flex;
  align-items:flex-end;
  gap:14px;
  flex-wrap:wrap
}
.field-label{
  display:block;
  color:#244c87;
  font-size:12px;
  font-weight:600
}
.field-label input{
  display:block;
  margin-top:7px;
  border:1px solid #d9e5f7;
  border-radius:7px;
  padding:11px 12px;
  width:155px;
  background:#fff
}
.primary-button{
  border:1px solid var(--ink);
  border-radius:8px;
  background:var(--ink);
  color:white;
  padding:11px 18px;
  min-height:42px;
  font-size:13px;
  font-weight:600
}
.text-button{
  background:transparent;
  border:0;
  color:#526b8b;
  padding:10px 4px;
  font-size:12px
}
.text-button:hover{
  color:var(--ink);
  text-decoration:underline
}
.form-message{
  flex-basis:100%;
  color:#b14233!important;
  margin:0!important
}
.calculator-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 328px;
  gap:24px;
  align-items:start
}
.items-card{
  overflow:hidden
}
.items-heading{
  padding:24px 24px 15px
}
.items-description{
  font-size:12px;
  color:var(--muted);
  margin:11px 0 0;
  line-height:1.6
}
.clear-button{
  border:0;
  background:none;
  display:flex;
  gap:6px;
  align-items:center;
  color:#526b8b;
  font-size:12px;
  padding:8px;
  border-radius:6px
}
.clear-button:hover{
  background:#eff5ff;
  color:#143b80
}
.clear-button svg{
  width:14px;
  height:14px
}
.table-wrap{
  padding:0 24px
}
table{
  border-collapse:collapse;
  width:100%;
  table-layout:fixed;
  text-align:left
}
thead th{
  font-size:10px;
  font-weight:650;
  letter-spacing:.75px;
  text-transform:uppercase;
  color:#526b8b;
  padding:16px 8px;
  border-bottom:1px solid var(--line)
}
thead th:first-child{
  width:17%;
  padding-left:0
}
thead th:nth-child(2){
  width:25%
}
thead th:nth-child(3){
  width:20%
}
thead th:nth-child(4){
  width:20%
}
thead th:last-child{
  width:18%;
  text-align:right;
  padding-right:0
}
tbody td{
  padding:21px 8px;
  border-bottom:1px solid #eff5ff;
  font-size:13px;
  font-variant-numeric:tabular-nums
}
tbody tr:last-child td{
  border-bottom:0
}
tbody td:first-child{
  padding-left:0
}
tbody td:last-child{
  padding-right:0;
  text-align:right;
  font-weight:650
}
.item-name{
  font-size:12px;
  font-weight:600;
  white-space:nowrap
}
.item-status{
  display:block;
  margin-top:6px;
  color:#526b8b;
  font-size:10px;
  font-weight:500
}
.item-row.is-paid .item-status{
  color:#244c87
}
.item-row.is-free .item-status{
  color:#244c87
}
.input-shell{
  position:relative;
  display:block
}
.input-shell>span{
  position:absolute;
  left:11px;
  top:50%;
  transform:translateY(-50%);
  color:#526b8b;
  font-size:13px
}
.mrp-input{
  width:100%;
  min-width:0;
  border:1px solid #d9e5f7;
  border-radius:7px;
  padding:11px 10px 11px 25px;
  font-size:14px;
  background:#eff5ff;
  color:var(--ink);
  font-weight:550;
  font-variant-numeric:tabular-nums;
  outline:none
}
.mrp-input::placeholder{
  color:#9ab4d7;
  font-weight:400
}
.mrp-input:focus,.field-label input:focus{
  border-color:#526b8b;
  box-shadow:0 0 0 3px #d4e7ae66;
  background:#fff;
  outline:none
}
.mrp-input[aria-invalid=true]{
  border-color:#ba654f
}
.result-cell{
  white-space:nowrap;
  color:#526b8b
}
.result-cell>span{
  font-size:12px
}
.copy-btn,.copy-perc-btn{
  border:0;
  background:transparent;
  padding:8px 3px;
  color:#526b8b;
  border-radius:5px;
  vertical-align:middle;
  min-width:27px;
  min-height:32px
}
.copy-btn:hover,.copy-perc-btn:hover{
  color:#143b80;
  background:#eff5ff
}
.copy-icon{
  display:inline-block;
  width:12px;
  height:13px;
  border:1.3px solid currentColor;
  border-radius:2px;
  position:relative
}
.copy-icon:before{
  content:"";
  position:absolute;
  left:-4px;
  top:-4px;
  width:8px;
  height:9px;
  border-top:1.3px solid currentColor;
  border-left:1.3px solid currentColor;
  border-radius:2px
}
.copy-btn.copied,.copy-perc-btn.copied{
  color:#244c87
}
.entry-progress{
  display:flex;
  align-items:center;
  gap:8px;
  padding:16px 24px;
  background:#eff5ff;
  border-top:1px solid var(--line);
  font-size:11px;
  color:#526b8b
}
.entry-progress svg{
  height:14px;
  width:14px;
  flex-shrink:0
}
.input-error{
  padding:0 24px 12px;
  color:#ad4330;
  font-size:12px;
  margin:0
}
.summary-card{
  background:var(--ink);
  color:#fff;
  border-radius:16px;
  padding:25px;
  position:sticky;
  top:24px
}
.summary-header{
  display:flex;
  justify-content:space-between;
  align-items:center
}
.summary-header h2{
  font-size:16px
}
.summary-header svg{
  width:19px;
  height:19px;
  color:#9ab4d7
}
.active-offer{
  font-size:11px;
  color:#d9e5f7;
  margin:10px 0 24px
}
.summary-line{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:baseline;
  font-size:12px;
  color:#d9e5f7;
  margin:17px 0
}
.summary-line strong{
  color:#fff;
  font-size:14px;
  font-weight:500;
  font-variant-numeric:tabular-nums
}
.summary-line.saving strong{
  color:var(--accent)
}
.summary-total{
  border-top:1px solid #ffffff24;
  padding-top:22px;
  margin-top:23px
}
.total-label{
  font-size:12px;
  color:#d9e5f7
}
.total-value{
  display:block;
  font-size:40px;
  letter-spacing:-1.4px;
  font-weight:600;
  margin:7px 0 14px;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere
}
.saving-pill{
  display:inline-flex;
  background:#ffffff0d;
  border:1px solid #ffffff18;
  color:#9ab4d7;
  padding:7px 10px;
  border-radius:5px;
  font-size:11px
}
.copy-summary{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:8px;
  padding:13px 8px;
  background:var(--accent);
  color:#143b80;
  font-size:12px;
  font-weight:650;
  margin-top:25px;
  min-height:43px
}
.copy-summary:hover{
  background:#d9e5f7
}
.copy-summary svg{
  width:14px;
  height:14px
}
.summary-hint{
  color:#9ab4d7;
  font-size:10px;
  text-align:center;
  line-height:1.6;
  margin:12px 0 0
}
.how-it-works{
  padding:20px 3px;
  color:#526b8b;
  font-size:12px;
  line-height:1.8
}
.how-it-works summary{
  cursor:pointer;
  font-size:12px;
  font-weight:600;
  color:#244c87
}
.how-it-works p{
  margin:10px 0 0;
  max-width:590px
}
.promo{
  margin-top:16px;
  border:1px solid #d9e5f7;
  background:#eff5ff;
  border-radius:12px;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.promo-title{
  font-weight:650;
  font-size:13px;
  color:#244c87
}
.promo p{
  font-size:12px;
  color:#526b8b;
  margin:5px 0 0
}
.promo button{
  white-space:nowrap;
  border:1px solid #9ab4d7;
  border-radius:7px;
  background:#fff;
  padding:10px 12px;
  color:#244c87;
  font-size:12px
}
.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line);
  margin-top:38px;
  padding-top:20px;
  color:#526b8b;
  font-size:10px;
  gap:16px
}
.footer strong{
  font-weight:600;
  color:#526b8b
}
.toast{
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  z-index:10;
  background:#143b80;
  color:#fff;
  border:1px solid #244c87;
  border-radius:9px;
  padding:12px 20px;
  box-shadow:0 6px 24px #0002;
  font-size:13px;
  max-width:calc(100vw - 32px);
  text-align:center
}
.skip-link{
  position:fixed;
  top:-60px;
  left:16px;
  z-index:100;
  background:var(--ink);
  color:#fff;
  padding:12px
}
.skip-link:focus{
  top:10px
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
@media(min-width:1450px){
  .workspace{
    padding-top:56px
  }
}
@media(max-width:1100px){
  .header-inner{
    padding:20px 28px
  }
  .workspace{
    padding:32px 28px 24px
  }
  .calculator-layout{
    grid-template-columns:minmax(0,1fr) 285px;
    gap:20px
  }
  .offers,.items-heading{
    padding:20px
  }
  .table-wrap{
    padding:0 20px
  }
  .scheme-btn,.add-scheme-btn{
    padding:10px 13px
  }
  .summary-card{
    padding:22px
  }
  .result-cell>span{
    font-size:11px
  }
  tbody td{
    padding:20px 5px
  }
  .copy-btn,.copy-perc-btn{
    min-width:23px;
    padding:8px 2px
  }
}
@media(max-width:900px){
  .calculator-layout{
    grid-template-columns:minmax(0,1fr)
  }
  .summary-card{
    position:static
  }
  .summary-total{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center
  }
  .total-label{
    grid-column:1
  }
  .total-value{
    grid-column:1;
    margin-bottom:0
  }
  .saving-pill{
    grid-column:2;
    grid-row:1/3
  }
  .summary-card{
    padding:24px
  }
  .active-offer{
    margin-bottom:18px
  }
  .summary-line{
    margin:14px 0
  }
  .copy-summary{
    margin-top:20px
  }
}
@media(max-width:600px){
  .header-inner{
    padding:18px 20px
  }
  .brand-name{
    font-size:20px
  }
  .brand-label{
    font-size:11px;
    margin-left:4px;
    padding-left:14px
  }
  .header-note{
    display:none
  }
  .workspace{
    padding:30px 16px 22px
  }
  h1{
    font-size:29px;
    letter-spacing:-1px
  }
  .intro{
    margin-bottom:24px
  }
  .intro p:last-child{
    font-size:13px;
    max-width:285px
  }
  .tool-tag{
    display:none
  }
  .offers{
    padding:20px 16px;
    margin-bottom:18px
  }
  .offers>.section-heading{
    align-items:flex-start
  }
  .offers .section-note{
    font-size:10px;
    padding-top:6px
  }
  .scheme-options{
    gap:8px;
    margin-top:18px;
    display:grid;
    grid-template-columns:1fr 1fr
  }
  .scheme-btn,.add-scheme-btn{
    width:100%;
    font-size:12px;
    justify-content:center
  }
  .scheme-btn{
    min-height:44px
  }
  .calculator-layout{
    gap:18px
  }
  .items-heading{
    padding:20px 16px 8px
  }
  .items-description{
    font-size:11px
  }
  .table-wrap{
    padding:0 16px
  }
  thead{
    display:none
  }
  table,tbody{
    display:block
  }
  tbody tr{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:15px 8px;
    padding:18px 0;
    border-bottom:1px solid var(--line)
  }
  tbody tr:last-child{
    border:0
  }
  tbody td{
    display:block;
    border:0;
    padding:0!important
  }
  .item-row td:first-child{
    grid-column:1;
    display:flex;
    flex-direction:column;
    justify-content:center
  }
  .item-row td:nth-child(2){
    grid-column:2/4
  }
  .item-row td:nth-child(n+3)::before{
    content:attr(data-label);
    display:block;
    color:#526b8b;
    font-size:9px;
    font-weight:500;
    letter-spacing:.3px;
    margin-bottom:7px;
    text-transform:uppercase
  }
  .item-row td:nth-child(n+3){
    font-size:13px
  }
  .result-cell>span{
    font-size:12px
  }
  .item-row td:last-child{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    padding-top:0!important
  }
  .final-price-val{
    padding-top:9px
  }
  .copy-btn,.copy-perc-btn{
    min-height:36px;
    min-width:30px
  }
  .mrp-input{
    font-size:16px;
    min-height:46px
  }
  .item-name{
    font-size:13px
  }
  .item-status{
    font-size:11px
  }
  .entry-progress{
    padding:14px 16px;
    font-size:10px
  }
  .field-label{
    flex:1;
    min-width:110px
  }
  .field-label input{
    width:100%;
    font-size:16px
  }
  .custom-form .primary-button{
    flex:1
  }
  .summary-card{
    padding:23px
  }
  .total-value{
    font-size:36px
  }
  .promo{
    align-items:flex-start;
    flex-direction:column
  }
  .footer{
    font-size:10px;
    margin-top:30px;
    align-items:flex-start;
    line-height:1.6
  }
  .footer span:last-child{
    text-align:right;
    max-width:155px
  }
  .how-it-works{
    padding:16px 3px 3px
  }
}
@media(prefers-reduced-motion:reduce){
  *{
    transition:none!important;
    scroll-behavior:auto!important
  }
}
/* Keep secondary information readable and unusually large prices contained. */
.section-note, .items-description, .how-it-works{
  color: #526b8b;
}
.item-status, .entry-progress, .footer, thead th{
  color: #526b8b;
}
.result-cell{
  white-space: normal;
}
.result-cell > span, .final-price-val{
  overflow-wrap: anywhere;
}
.copy-btn, .copy-perc-btn{
  color: #526b8b;
}
@media (max-width: 600px){
  .item-row td:nth-child(n+3)::before{
    color: #526b8b;
  }
}

/* Compact, value-first blue calculator layout. */
:root { --ink: #17458d; --accent: #c6dfff; --line: #dce5f1; --muted: #526782; background: #f1f5fb; color: #172b4d; }
.site-header { background: #2563eb; color: #fff; padding: 13px 20px; text-align: center; }
.site-header h1 { margin: 0; font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: 25px; line-height: 1.25; font-weight: 600; letter-spacing: .4px; }
.workspace { max-width: 1600px; padding: 14px 24px 10px; }
.offers { padding: 12px 16px; margin-bottom: 12px; }
.scheme-options { margin-top: 10px; gap: 8px; }
.scheme-btn, .add-scheme-btn { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.scheme-btn[aria-pressed=true], .primary-button { background: #2563eb; border-color: #2563eb; }
.calculator-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; }
.items-heading { padding: 12px 16px 7px; }
.items-description { margin-top: 5px; font-size: 12px; }
.table-wrap { padding: 0 16px; }
thead th { padding: 9px 8px; font-size: 11px; }
thead th:first-child { width: 14%; }
thead th:nth-child(3), thead th:nth-child(4) { width: 21%; }
thead th:last-child { width: 19%; }
tbody td { padding: 8px; }
.mrp-input { font-size: 22px; font-weight: 750; padding: 6px 9px 6px 26px; color: #173f80; background: #f6f9ff; }
.mrp-input:focus, .field-label input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px #bfdbfe80; }
.result-cell > span { font-size: 21px; font-weight: 750; color: #244c87; }
.final-price-val { font-size: 23px; font-weight: 800; color: #1554bd; }
.item-name { font-size: 13px; }
.item-status { margin-top: 3px; }
.entry-progress { padding: 9px 16px; }
.summary-card { background: #fff; color: #172b4d; border: 1px solid #c6d9f8; border-top: 4px solid #2563eb; padding: 18px; position: static; }
.summary-header svg, .active-offer, .summary-line, .total-label, .summary-hint { color: #526782; }
.active-offer { font-size: 13px; margin: 8px 0 16px; }
.summary-line { margin: 13px 0; font-size: 13px; flex-wrap: wrap; }
.summary-line strong { font-size: 24px; font-weight: 750; color: #173d76; overflow-wrap: anywhere; }
.summary-line.saving strong { color: #2563eb; }
.summary-total { margin-top: 16px; padding-top: 14px; border-color: #dce5f1; }
.total-value { font-size: 42px; font-weight: 800; color: #1554bd; margin: 5px 0 12px; }
.saving-pill { background: #eaf2ff; border: 0; color: #2257ae; font-size: 13px; font-weight: 650; }
.copy-summary { background: #2563eb; color: #fff; margin-top: 18px; padding: 11px; }
.copy-summary:hover { background: #1d4ed8; }
.summary-hint { margin-top: 9px; font-size: 11px; }
.how-it-works { padding: 9px 2px 0; }
.footer { display: block; text-align: right; margin-top: 10px; padding: 0; border: 0; }
.promo { padding: 12px 16px; margin-top: 10px; }
.custom-panel { margin-top: 12px; padding-top: 12px; }
.custom-panel p { margin: 6px 0 10px; }
.form-message:empty { display: none; }
@media (min-width: 901px) and (max-height: 800px) {
  .site-header { padding: 10px 20px; }
  .workspace { padding-top: 10px; }
  .offers { padding: 10px 14px; margin-bottom: 10px; }
  .scheme-options { margin-top: 8px; }
  .scheme-btn, .add-scheme-btn { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
  .items-heading { padding-top: 8px; padding-bottom: 4px; }
  thead th { padding-top: 6px; padding-bottom: 6px; }
  tbody td { padding-top: 4px; padding-bottom: 4px; }
  .mrp-input { padding-top: 4px; padding-bottom: 4px; }
  .entry-progress { padding-top: 7px; padding-bottom: 7px; }
  .summary-card { padding: 14px 18px; }
  .summary-line { margin: 10px 0; }
}
@media (max-width: 1150px) and (min-width: 901px) {
  .workspace { padding-left: 16px; padding-right: 16px; }
  .calculator-layout { grid-template-columns: minmax(0, 1fr) 275px; gap: 12px; }
  .scheme-btn, .add-scheme-btn { padding-left: 10px; padding-right: 10px; font-size: 13px; }
  .result-cell > span { font-size: 18px; }
  .mrp-input, .final-price-val { font-size: 20px; }
  .summary-line strong { font-size: 22px; }
  .total-value { font-size: 37px; }
}
@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .site-header { padding: 15px 12px; }
  .site-header h1 { font-size: 21px; }
  .workspace { padding: 12px; }
  .offers { padding: 14px 12px; }
  .offers .section-note { display: none; }
  .scheme-btn, .add-scheme-btn { min-height: 42px; font-size: 13px; padding-left: 8px; padding-right: 8px; }
  .items-heading { padding: 14px 12px 4px; }
  .items-description { font-size: 11px; }
  .table-wrap { padding: 0 12px; }
  tbody tr { padding: 14px 0; }
  .result-cell > span, .final-price-val { font-size: 18px; }
  .final-price-val { padding-top: 7px; }
  .entry-progress { padding: 10px 12px; flex-wrap: wrap; gap: 5px; }
  .total-value { font-size: 36px; }
  .saving-pill { font-size: 11px; }
  .footer { text-align: center; }
  .footer span:last-child { max-width: none; }
}

/* Roomier rows and clearly separated table actions. */
.offers { padding: 16px 18px; }
.scheme-options { gap: 10px; margin-top: 12px; }
.items-heading { padding: 18px 18px 12px; }
.items-description { margin-top: 8px; }
.table-wrap { padding: 0 18px; }
tbody td { padding-top: 12px; padding-bottom: 12px; }
.item-row.is-paid { background: #edf4ff; }
.item-row.is-paid td:first-child { box-shadow: inset 3px 0 #3b82f6; padding-left: 12px; }
.table-actions { display: flex; justify-content: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.clear-button { justify-content: center; min-width: 170px; min-height: 40px; padding: 10px 22px; border: 1px solid #e5aaaa; background: #fff0f0; color: #a52c2c; font-size: 14px; font-weight: 700; }
.clear-button:hover:not(:disabled) { background: #ffe0e0; color: #922020; border-color: #c96767; }
.clear-button svg { width: 17px; height: 17px; }
.saved-custom-scheme { display: flex; align-items: stretch; }
.saved-custom-scheme .scheme-btn { padding-right: 43px; }
.delete-custom-scheme { top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; line-height: 1; font-size: 22px; }
.promo { background: #fff6db; border: 2px solid #efbd4f; border-left: 6px solid #e6a119; box-shadow: 0 3px 12px #bd86121a; padding: 16px 18px; }
.gift-badge { display: block; color: #875100; font-size: 10px; font-weight: 800; letter-spacing: 1px; margin-bottom: 6px; }
.promo-title { display: block; color: #754300; font-size: 18px; font-weight: 750; }
.promo p { color: #795f2e; }
.promo button { background: #925900; border-color: #925900; color: #fff; min-height: 40px; padding: 10px 15px; font-weight: 700; }
.promo button:hover:not(:disabled) { background: #754700; }
.promo button:disabled { opacity: 1; background: #ffedb8; border-color: #d6ac48; color: #754300; }
@media (min-width: 901px) and (max-height: 800px) {
  .offers { padding: 12px 16px; }
  .scheme-options { margin-top: 9px; }
  .items-heading { padding: 12px 18px 7px; }
  .items-description { margin-top: 5px; }
  tbody td { padding-top: 6px; padding-bottom: 6px; }
  .table-actions { padding: 9px 16px; }
  .clear-button { min-height: 36px; padding-top: 7px; padding-bottom: 7px; }
}
@media (max-width: 600px) {
  .offers { padding: 16px 12px; }
  .items-heading { padding: 16px 12px 8px; }
  .table-wrap { padding: 0 12px; }
  tbody tr { padding: 18px 8px; }
  .item-row.is-paid { box-shadow: inset 3px 0 #3b82f6; }
  .item-row.is-paid td:first-child { box-shadow: none; padding-left: 0; }
  .table-actions { padding: 14px; }
  .promo { padding: 16px; }
}
@media (min-width: 901px) and (max-height: 740px) {
  tbody td { padding-top: 5px; padding-bottom: 5px; }
}
/* Offer controls and price inputs need no extra section headings. */
.offers > .scheme-options { margin-top: 0; }
.items-heading { padding-top: 10px; padding-bottom: 6px; }
.items-description { margin-top: 0; }

/* Add Offer is a dedicated view, separate from every bill table. */
#custom-scheme-panel { margin: 0; padding: 0; border: 1px solid var(--line); overflow: hidden; }
.scheme-form-heading { padding: 20px 24px 10px; }
.scheme-form-heading p { margin: 8px 0; }
.scheme-form-table { display: table; width: 100%; table-layout: fixed; }
.scheme-form-table thead { display: table-header-group; }
.scheme-form-table tbody { display: table-row-group; }
.scheme-form-table tr { display: table-row; }
.scheme-form-table th, .scheme-form-table td { display: table-cell; width: 50% !important; padding: 16px 24px !important; text-align: left !important; }
.scheme-form-table th { background: #f3f7ff; text-transform: none; font-size: 14px; letter-spacing: 0; }
.scheme-form-table input { width: 100%; max-width: 320px; min-width: 0; border: 1px solid #c9d8ee; border-radius: 7px; padding: 10px 12px; font-size: 22px; font-weight: 700; color: #173f80; background: #f6f9ff; }
.scheme-form-table input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px #bfdbfe80; }
.scheme-form-actions { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 18px 24px; border-top: 1px solid var(--line); }
#custom-scheme-message:not(:empty) { padding: 10px 24px; }
#custom-tab-btn[aria-expanded=true] { background: #2563eb; border: 1px solid #2563eb; color: #fff; }
@media (max-width: 600px) {
  .scheme-form-heading { padding: 16px 14px 8px; }
  .scheme-form-table th, .scheme-form-table td { padding: 14px 10px !important; }
  .scheme-form-table th { font-size: 12px; }
  .scheme-form-table input { font-size: 18px; padding: 10px 8px; }
}

/* Give the calculator breathing room, adapting to available screen height. */
.workspace { padding-top: 22px; }
.offers { padding: 22px 24px; margin-bottom: 22px; }
.scheme-options { gap: 12px; }
.calculator-layout { gap: 24px; }
.items-heading { padding: 18px 24px 12px; }
.table-wrap { padding: 0 24px; }
#item-list td { padding-top: 18px; padding-bottom: 18px; }
.table-actions { padding: 20px 24px; }
.entry-progress { padding: 12px 24px; }
.summary-card { padding: 24px; }
.summary-line { margin: 20px 0; }
.summary-total { margin-top: 24px; padding-top: 22px; }
.copy-summary { margin-top: 24px; }
.promo { margin-top: 18px; padding: 20px 24px; }
.scheme-form-heading { padding: 24px 28px 16px; }
.scheme-form-actions { padding: 24px; }
@media (min-width: 901px) and (max-height: 800px) {
  .workspace { padding-top: 16px; }
  .offers { padding: 16px 22px; margin-bottom: 16px; }
  .items-heading { padding: 14px 22px 9px; }
  #item-list td { padding-top: 10px; padding-bottom: 10px; }
  .table-actions { padding: 12px 22px; }
  .entry-progress { padding: 9px 22px; }
  .summary-card { padding: 22px; }
}
@media (min-width: 901px) and (max-height: 740px) {
  #item-list td { padding-top: 7px; padding-bottom: 7px; }
  .table-actions { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 1150px) and (min-width: 901px) {
  .calculator-layout { gap: 18px; }
  .table-wrap { padding: 0 18px; }
  .summary-card { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 600px) {
  .workspace { padding-top: 18px; }
  .offers { padding: 20px 16px; margin-bottom: 20px; }
  .scheme-options { gap: 10px; }
  .items-heading { padding: 18px 16px 12px; }
  .table-wrap { padding: 0 16px; }
  #item-list tr { padding: 24px 8px; gap: 20px 8px; }
  .table-actions { padding: 20px 16px; }
  .entry-progress { padding: 14px 16px; }
  .summary-card { padding: 24px 18px; }
  .promo { padding: 20px 16px; }
  .scheme-form-heading { padding: 20px 16px 12px; }
}
@media (min-width: 901px) and (min-height: 801px) and (max-height: 950px) {
  #item-list td { padding-top: 14px; padding-bottom: 14px; }
}
