.cfg-estimate-overview {
  margin: 0;
  padding: clamp(14px, 2.5vw, 22px);
  border: 1px solid #47404a;
  border-radius: 16px;
  background: #201b23;
}

.cfg-mobile-shell .cfg-estimate-overview .cfg-quote-total-line {
  gap: 4px 16px;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 650;
}

.cfg-mobile-shell .cfg-estimate-overview .cfg-quote-total-line strong {
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.cfg-estimate-overview .cfg-summary-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.cfg-estimate-overview .cfg-summary-kpi {
  border-color: #47404a;
  background: #29232d;
}

.cfg-estimate-overview .cfg-summary-kpi span {
  color: #ddd6e1;
  font-size: 13px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
}

.cfg-estimate-overview .cfg-summary-kpi strong {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.cfg-estimate-overview [data-cfg-quote-sub] {
  color: #ddd6e1;
}

.cfg-estimate-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cfg-estimate-primary-actions:not(:has(button:not([hidden]))) {
  display: none;
}

.cfg-estimate-lines {
  display: grid;
  gap: 12px;
}

.cfg-estimate-lines > h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.3;
}

.cfg-estimate-group {
  min-width: 0;
  border: 1px solid #3d3942;
  border-radius: 12px;
  background: #19171c;
}

.cfg-estimate-group-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid #3d3942;
  border-radius: 11px 11px 0 0;
  background: #26222b;
}

.cfg-estimate-group-heading h4 {
  margin: 0;
  font-size: 15px;
}

.cfg-estimate-group-heading span {
  color: #eee8ef;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.cfg-estimate-items {
  padding: 0;
  margin: 0;
  list-style: none;
}

.cfg-estimate-column-headings,
.cfg-estimate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 48%);
  align-items: start;
  gap: 12px;
  padding: 10px 14px;
}

.cfg-estimate-item + .cfg-estimate-item,
.cfg-estimate-column-headings {
  border-top: 1px solid #342f38;
}

.cfg-estimate-column-headings {
  border-top: 0;
  border-bottom: 1px solid #342f38;
  color: #c9c0cc;
  font-size: 12px;
}

.cfg-estimate-item-title {
  color: #f4f0f5;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cfg-estimate-item-title small { display: block; }

.cfg-estimate-column-headings > div,
.cfg-estimate-item-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  text-align: right;
}

.cfg-estimate-item-values dt {
  color: #c9c0cc;
  font-size: 11px;
}

.cfg-estimate-item-values dd {
  margin: 0;
  color: #eee8ef;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.cfg-estimate-item-values > :last-child dd {
  font-weight: 700;
}

@media (min-width: 761px) {
  .cfg-estimate-item-values dt {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .cfg-estimate-column-headings {
    display: none;
  }

  .cfg-estimate-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .cfg-estimate-item-values {
    text-align: left;
  }
}
