/* EPC-led commercial solar opportunity page */

.commercial-case-v3 {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding: 44px;
  border-radius: 32px;
}

.commercial-v3-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 27px;
}

.commercial-v3-header h2 {
  max-width: 850px;
  margin: 7px 0 13px;
  font-size: clamp(2.75rem, 5vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.commercial-v3-header > div > p {
  max-width: 790px;
  margin: 0;
  color: rgba(31, 58, 72, 0.63);
  font-size: 1rem;
  line-height: 1.55;
}

.commercial-v3-identity {
  margin-top: 21px;
}

.commercial-v3-identity strong,
.commercial-v3-identity span {
  display: block;
}

.commercial-v3-identity strong {
  font-size: 1.04rem;
}

.commercial-v3-identity span {
  margin-top: 5px;
  color: rgba(31, 58, 72, 0.58);
  line-height: 1.45;
}

.commercial-v3-confidence {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: #eaf6fb;
  color: #21709a;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

/* EPC banner */

.commercial-v3-epc-banner {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(24, 48, 62, 0.11);
  border-radius: 22px;
  background: #fff;
}

.commercial-v3-epc-colour {
  display: flex;
  min-height: 150px;
  padding: 20px 16px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #70808a;
  color: #fff;
  text-align: center;
}

.commercial-v3-epc-colour > span {
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.commercial-v3-epc-colour > strong {
  margin: 6px 0 2px;
  font-size: 4.2rem;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.commercial-v3-epc-colour > small {
  font-size: 0.75rem;
  font-weight: 750;
}

.commercial-v3-epc-colour[data-band="A"] {
  background: #008054;
}

.commercial-v3-epc-colour[data-band="B"] {
  background: #2f974a;
}

.commercial-v3-epc-colour[data-band="C"] {
  background: #8bc53f;
  color: #17361e;
}

.commercial-v3-epc-colour[data-band="D"] {
  background: #f0d400;
  color: #3d3500;
}

.commercial-v3-epc-colour[data-band="E"] {
  background: #f3aa18;
  color: #402b00;
}

.commercial-v3-epc-colour[data-band="F"] {
  background: #eb7028;
}

.commercial-v3-epc-colour[data-band="G"] {
  background: #d52b31;
}

.commercial-v3-epc-banner[data-status="expired"] {
  border-color: rgba(191, 126, 25, 0.3);
  background: #fffbf4;
}

.commercial-v3-epc-banner[data-status="expired"]
.commercial-v3-epc-colour {
  filter: saturate(0.72);
}

.commercial-v3-epc-banner[data-status="unknown"] {
  background: #fffaf1;
}

.commercial-v3-epc-banner[data-status="not_found"] {
  background: #f7fafc;
}

.commercial-v3-epc-content {
  align-self: center;
  padding: 21px 0;
}

.commercial-v3-epc-content h3 {
  margin: 5px 0 7px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.commercial-v3-epc-content > p {
  max-width: 720px;
  margin: 0;
  color: rgba(31, 58, 72, 0.58);
  line-height: 1.46;
}

.commercial-v3-epc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 28px;
  margin-top: 16px;
}

.commercial-v3-epc-facts span,
.commercial-v3-epc-facts strong {
  display: block;
}

.commercial-v3-epc-facts span {
  color: rgba(31, 58, 72, 0.47);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-v3-epc-facts strong {
  max-width: 320px;
  margin-top: 3px;
  font-size: 0.82rem;
  line-height: 1.3;
}

.commercial-v3-epc-banner > button {
  align-self: center;
  margin-right: 22px;
  white-space: nowrap;
}

/* Main map and accuracy panel */

.commercial-v3-main-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(350px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.commercial-v3-map-card,
.commercial-v3-energy-card {
  overflow: hidden;
  border: 1px solid rgba(24, 48, 62, 0.1);
  border-radius: 23px;
  background: #fff;
}

.commercial-v3-map-card {
  position: relative;
}

.commercial-v3-map-card
#opportunityRoofMap {
  min-height: 505px;
  border-radius: 0;
}

.commercial-v3-map-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(24, 48, 62, 0.09);
}

.commercial-v3-map-summary > div {
  padding: 18px 21px;
}

.commercial-v3-map-summary > div + div {
  border-left: 1px solid rgba(24, 48, 62, 0.09);
}

.commercial-v3-map-summary span,
.commercial-v3-map-summary strong,
.commercial-v3-map-summary small {
  display: block;
}

.commercial-v3-map-summary span {
  margin-bottom: 5px;
  color: rgba(31, 58, 72, 0.5);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.commercial-v3-map-summary small {
  margin-top: 4px;
  color: rgba(31, 58, 72, 0.5);
}

.commercial-v3-energy-card {
  padding: 27px;
  background: rgba(250, 252, 253, 0.98);
}

.commercial-v3-energy-heading h3 {
  margin: 5px 0 7px;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.commercial-v3-energy-heading p {
  margin: 0;
  color: rgba(31, 58, 72, 0.58);
  line-height: 1.46;
}

.commercial-v3-epc-actions {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.commercial-v3-epc-actions[hidden] {
  display: none;
}

.commercial-v3-epc-actions button {
  width: 100%;
  min-height: 48px;
  border-radius: 13px;
}

.commercial-v3-epc-actions small {
  margin-top: 5px;
  color: rgba(31, 58, 72, 0.48);
  line-height: 1.42;
  text-align: center;
}

.commercial-v3-energy-fields {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.commercial-v3-energy-fields[hidden] {
  display: none;
}

.commercial-v3-energy-fields label {
  display: grid;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 750;
}

.commercial-v3-energy-fields input,
.commercial-v3-energy-fields select {
  width: 100%;
  min-height: 47px;
  box-sizing: border-box;
  border: 1px solid rgba(24, 48, 62, 0.16);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.commercial-v3-energy-fields input {
  padding: 11px 13px;
}

.commercial-v3-energy-fields select {
  padding: 11px 12px;
}

.commercial-v3-unit-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(24, 48, 62, 0.16);
  border-radius: 12px;
  background: #fff;
}

.commercial-v3-unit-input input {
  border: 0;
  border-radius: 0;
}

.commercial-v3-unit-input > span {
  padding: 0 13px;
  color: rgba(31, 58, 72, 0.52);
  font-size: 0.84rem;
  white-space: nowrap;
}

.commercial-v3-pound {
  grid-template-columns: auto 1fr;
}

.commercial-v3-pound > span {
  padding-right: 0;
}

.commercial-v3-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(31, 58, 72, 0.42);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.commercial-v3-or::before,
.commercial-v3-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(24, 48, 62, 0.1);
}

.commercial-v3-message {
  min-height: 21px;
  margin: 16px 0 0;
  font-size: 0.84rem;
}

.commercial-v3-message[data-state="error"] {
  color: #a23a3a;
}

.commercial-v3-message[data-state="success"] {
  color: #267b58;
}

.commercial-v3-calculate {
  width: 100%;
  min-height: 49px;
  margin-top: 5px;
  border-radius: 13px;
}

.commercial-v3-calculate[hidden] {
  display: none;
}

.commercial-v3-form-note {
  display: block;
  margin-top: 12px;
  color: rgba(31, 58, 72, 0.47);
  text-align: center;
  line-height: 1.4;
}

/* Estimate result */

.commercial-v3-results {
  margin-top: 24px;
  padding: 29px;
  border: 1px solid rgba(24, 48, 62, 0.1);
  border-radius: 23px;
  background: rgba(248, 251, 252, 0.97);
}

.commercial-v3-results[hidden] {
  display: none;
}

.commercial-v3-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.commercial-v3-results-header h3 {
  margin: 5px 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.commercial-v3-results-header p {
  max-width: 790px;
  margin: 0;
  color: rgba(31, 58, 72, 0.57);
  line-height: 1.45;
}

.commercial-v3-results-badge {
  padding: 8px 11px;
  border-radius: 999px;
  background: #eaf6fb;
  color: #26719a;
  font-size: 0.71rem;
  font-weight: 800;
  white-space: nowrap;
}

.commercial-v3-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 22px;
}

.commercial-v3-results-grid article {
  padding: 20px;
  border: 1px solid rgba(24, 48, 62, 0.09);
  border-radius: 17px;
  background: #fff;
}

.commercial-v3-results-grid span,
.commercial-v3-results-grid strong,
.commercial-v3-results-grid small {
  display: block;
}

.commercial-v3-results-grid span {
  color: rgba(31, 58, 72, 0.5);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-v3-results-grid strong {
  margin-top: 8px;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.commercial-v3-results-grid small {
  margin-top: 7px;
  color: rgba(31, 58, 72, 0.49);
  line-height: 1.35;
}

.commercial-v3-delivery-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(24, 48, 62, 0.09);
  border-radius: 18px;
  background: #fff;
}

.commercial-v3-delivery-panel h3 {
  margin: 5px 0;
  font-size: 1.25rem;
}

.commercial-v3-delivery-panel p {
  max-width: 590px;
  margin: 0;
  color: rgba(31, 58, 72, 0.56);
}

.commercial-v3-delivery-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.commercial-v3-delivery-options span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf6fa;
  color: #286681;
  font-size: 0.74rem;
  font-weight: 750;
}

.commercial-v3-assumptions {
  margin-top: 14px;
  border-top: 1px solid rgba(24, 48, 62, 0.09);
}

.commercial-v3-assumptions summary {
  padding: 17px 0 3px;
  color: #087fc3;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.commercial-v3-assumptions > div {
  padding-top: 10px;
  color: rgba(31, 58, 72, 0.58);
  line-height: 1.5;
}

.commercial-v3-result-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 17px;
}

.commercial-v3-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 21px;
  padding: 25px 27px;
  border: 1px solid rgba(24, 48, 62, 0.1);
  border-radius: 19px;
  background: rgba(247, 250, 252, 0.95);
}

.commercial-v3-next-step h3 {
  margin: 5px 0;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.commercial-v3-next-step p {
  max-width: 680px;
  margin: 0;
  color: rgba(31, 58, 72, 0.57);
}

.commercial-v3-next-step button {
  flex: 0 0 auto;
  min-height: 48px;
  border-radius: 13px;
}

#epcBookingResultCard {
  display: none !important;
}

.commercial-hidden-hooks,
.energy-opportunity-layer,
.opportunity-panel-canvas,
.commercial-layout-v2-badge {
  display: none !important;
}

@media (max-width: 1020px) {
  .commercial-v3-epc-banner {
    grid-template-columns: 135px 1fr;
  }

  .commercial-v3-epc-banner > button {
    grid-column: 2;
    justify-self: start;
    margin: 0 0 20px;
  }

  .commercial-v3-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .commercial-case-v3 {
    padding: 27px 20px;
    border-radius: 24px;
  }

  .commercial-v3-header,
  .commercial-v3-results-header,
  .commercial-v3-delivery-panel,
  .commercial-v3-next-step {
    display: block;
  }

  .commercial-v3-confidence {
    display: inline-flex;
    margin-top: 18px;
  }

  .commercial-v3-epc-banner {
    grid-template-columns: 1fr;
  }

  .commercial-v3-epc-colour {
    min-height: 120px;
  }

  .commercial-v3-epc-content {
    padding: 0 21px;
  }

  .commercial-v3-epc-banner > button {
    grid-column: auto;
    margin: 0 21px 21px;
  }

  .commercial-v3-results-grid {
    grid-template-columns: 1fr;
  }

  .commercial-v3-delivery-options {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .commercial-v3-next-step button {
    width: 100%;
    margin-top: 17px;
  }
}

@media (max-width: 560px) {
  .commercial-v3-map-summary {
    grid-template-columns: 1fr;
  }

  .commercial-v3-map-summary > div + div {
    border-top: 1px solid rgba(24, 48, 62, 0.09);
    border-left: 0;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .commercial-case-v3,
  .commercial-case-v3 * {
    visibility: visible;
  }

  .commercial-case-v3 {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    box-shadow: none;
  }

  .commercial-v3-energy-card,
  .commercial-v3-next-step,
  .opportunity-result-actions,
  .commercial-v3-result-actions {
    display: none !important;
  }
}

/* Return from manual usage entry to the EPC-backed estimate */

.commercial-v3-back-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 18px 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #087fc3;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.commercial-v3-back-button:hover {
  text-decoration: underline;
}

.commercial-v3-back-button[hidden] {
  display: none;
}

/* New Energy Estimate evidence disclosure */

.commercial-v3-source-note {
  display: block;
  max-width: 820px;
  margin-top: 9px;
  color: rgba(31, 58, 72, 0.46);
  font-size: 0.74rem;
  line-height: 1.45;
}

/* Integrated estimate options */

.commercial-v3-estimate-options {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(24, 48, 62, 0.09);
  border-radius: 19px;
  background: #fff;
}

.commercial-v3-options-heading {
  padding: 22px 23px 17px;
}

.commercial-v3-options-heading h3 {
  margin: 5px 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.commercial-v3-options-heading p {
  margin: 0;
  color: rgba(31, 58, 72, 0.56);
  line-height: 1.45;
}

.commercial-v3-option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(24, 48, 62, 0.08);
  border-bottom: 1px solid rgba(24, 48, 62, 0.08);
}

.commercial-v3-option-grid article {
  position: relative;
  min-width: 0;
  padding: 22px 23px 24px;
  background: rgba(250, 252, 253, 0.72);
}

.commercial-v3-option-grid article + article {
  border-left: 1px solid rgba(24, 48, 62, 0.08);
}

.commercial-v3-option-number {
  display: block;
  margin-bottom: 18px;
  color: rgba(8, 127, 195, 0.58);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.commercial-v3-option-grid h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.commercial-v3-option-grid p {
  margin: 7px 0 0;
  color: rgba(31, 58, 72, 0.55);
  font-size: 0.86rem;
  line-height: 1.46;
}

.commercial-v3-estimate-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 68px;
  padding: 0 22px;
}

.commercial-v3-estimate-tools .commercial-v3-assumptions {
  flex: 1;
  margin: 0;
  border: 0;
}

.commercial-v3-estimate-tools .commercial-v3-assumptions summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  color: #087fc3;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.commercial-v3-estimate-tools
.commercial-v3-assumptions summary::-webkit-details-marker {
  display: none;
}

.commercial-v3-estimate-tools
.commercial-v3-assumptions summary span {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(8, 127, 195, 0.25);
  border-radius: 50%;
  font-size: 0.72rem;
}

.commercial-v3-estimate-tools
.commercial-v3-assumptions > div {
  max-width: 760px;
  padding: 0 0 22px;
}

.commercial-v3-download-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding-inline: 17px;
  border-radius: 12px;
}

.commercial-v3-download-button span {
  font-size: 1rem;
}

/* Superseded delivery styling is no longer used. */

.commercial-v3-delivery-panel,
.commercial-v3-result-actions {
  display: none;
}

@media (max-width: 760px) {
  .commercial-v3-option-grid {
    grid-template-columns: 1fr;
  }

  .commercial-v3-option-grid article + article {
    border-top: 1px solid rgba(24, 48, 62, 0.08);
    border-left: 0;
  }

  .commercial-v3-estimate-tools {
    display: block;
    padding: 0 20px 20px;
  }

  .commercial-v3-download-button {
    width: 100%;
    justify-content: center;
  }
}

/* Customer-value sections */

.commercial-v3-business-impact,
.commercial-v3-support {
  margin-top: 18px;
  padding: 25px;
  border: 1px solid rgba(24, 48, 62, 0.09);
  border-radius: 20px;
  background: #fff;
}

.commercial-v3-section-heading h3 {
  margin: 5px 0;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.commercial-v3-section-heading p {
  max-width: 760px;
  margin: 0;
  color: rgba(31, 58, 72, 0.56);
  line-height: 1.45;
}

.commercial-v3-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.commercial-v3-impact-grid article {
  padding: 20px;
  border: 1px solid rgba(24, 48, 62, 0.08);
  border-radius: 16px;
  background: rgba(248, 251, 252, 0.88);
}

.commercial-v3-impact-icon {
  display: grid;
  width: 35px;
  height: 35px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 11px;
  background: #eaf6fb;
  color: #087fc3;
  font-size: 0.9rem;
  font-weight: 850;
}

.commercial-v3-impact-grid article > span,
.commercial-v3-impact-grid article > strong {
  display: block;
}

.commercial-v3-impact-grid article > span {
  color: rgba(31, 58, 72, 0.48);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-v3-impact-grid article > strong {
  margin-top: 7px;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.commercial-v3-impact-grid article > p {
  margin: 8px 0 0;
  color: rgba(31, 58, 72, 0.53);
  font-size: 0.84rem;
  line-height: 1.45;
}

.commercial-v3-impact-battery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(190px, 0.65fr) 1fr;
  gap: 18px;
  align-items: center;
  background: #f5faf7 !important;
}

.commercial-v3-impact-battery[hidden] {
  display: none !important;
}

.commercial-v3-impact-battery .commercial-v3-impact-icon {
  margin: 0;
}

.commercial-v3-impact-battery > p {
  margin: 0 !important;
}

/* Relevant New Energy case study */

.commercial-v3-case-study {
  display: grid;
  grid-template-columns: minmax(340px, 1.08fr) minmax(340px, 0.92fr);
  min-height: 370px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(24, 48, 62, 0.09);
  border-radius: 20px;
  background: #fff;
}

.commercial-v3-case-image {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  background: #dfe9ee;
}

.commercial-v3-case-image img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
}

.commercial-v3-case-image img[hidden] {
  display: none;
}

.commercial-v3-case-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 38px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 216, 88, 0.5),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #14394b,
      #1f6079 56%,
      #87bccc
    );
  color: #fff;
}

.commercial-v3-case-image-fallback[hidden] {
  display: none;
}

.commercial-v3-case-image-fallback span {
  margin-bottom: 7px;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.commercial-v3-case-image-fallback strong {
  max-width: 420px;
  font-size: 2rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.commercial-v3-case-image-fallback small {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
}

.commercial-v3-case-content {
  display: flex;
  padding: 32px;
  flex-direction: column;
  justify-content: center;
}

.commercial-v3-case-content h3 {
  margin: 6px 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.045em;
}

.commercial-v3-case-content > p {
  margin: 0;
  color: rgba(31, 58, 72, 0.57);
  line-height: 1.5;
}

.commercial-v3-case-stats {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.commercial-v3-case-stats span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 700;
}

.commercial-v3-case-stats strong {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eaf8f1;
  color: #238056;
  font-size: 0.68rem;
}

.commercial-v3-case-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 25px;
}

.commercial-v3-case-actions .primary-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.commercial-v3-text-link {
  color: #087fc3;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.commercial-v3-text-link:hover {
  text-decoration: underline;
}

/* Funding and EPC support */

.commercial-v3-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 20px;
}

.commercial-v3-support-grid.is-single {
  grid-template-columns: 1fr;
}

.commercial-v3-support-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 21px;
  border: 1px solid rgba(24, 48, 62, 0.08);
  border-radius: 16px;
  background: rgba(248, 251, 252, 0.84);
}

.commercial-v3-support-grid article[hidden] {
  display: none !important;
}

.commercial-v3-support-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: #eaf6fb;
  color: #087fc3;
  font-weight: 850;
}

.commercial-v3-support-grid article > div:nth-child(2) > span {
  color: rgba(31, 58, 72, 0.47);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-v3-support-grid h4 {
  margin: 5px 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.commercial-v3-support-grid p {
  margin: 0;
  color: rgba(31, 58, 72, 0.54);
  font-size: 0.85rem;
  line-height: 1.47;
}

.commercial-v3-support-status {
  grid-column: 2;
  width: fit-content;
  margin-top: 3px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf8f1;
  color: #237b55;
  font-size: 0.67rem;
  font-weight: 850;
}

.commercial-v3-support-smallprint {
  display: block;
  margin-top: 15px;
  color: rgba(31, 58, 72, 0.44);
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (max-width: 850px) {
  .commercial-v3-impact-grid,
  .commercial-v3-support-grid {
    grid-template-columns: 1fr;
  }

  .commercial-v3-impact-battery {
    grid-column: auto;
    grid-template-columns: auto 1fr;
  }

  .commercial-v3-impact-battery > p {
    grid-column: 1 / -1;
  }

  .commercial-v3-case-study {
    grid-template-columns: 1fr;
  }

  .commercial-v3-case-image,
  .commercial-v3-case-image img {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .commercial-v3-business-impact,
  .commercial-v3-support {
    padding: 21px;
  }

  .commercial-v3-case-content {
    padding: 25px 21px;
  }

  .commercial-v3-case-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .commercial-v3-case-actions .primary-button {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  .commercial-v3-text-link {
    text-align: center;
  }
}

/* Data-led commercial battery screening */

.commercial-v3-impact-grid
.commercial-v3-impact-battery {
  display: block;
  grid-column: 1 / -1;
  padding: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(244, 251, 247, 0.98),
      rgba(248, 252, 253, 0.98)
    ) !important;
}

.commercial-v3-impact-grid
.commercial-v3-impact-battery[hidden] {
  display: none !important;
}

.commercial-v3-battery-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 17px;
  align-items: start;
}

.commercial-v3-battery-header
.commercial-v3-impact-icon {
  margin: 0;
}

.commercial-v3-battery-header > div:nth-child(2) > span {
  display: block;
  color: rgba(31, 58, 72, 0.48);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.commercial-v3-battery-header h4 {
  margin: 5px 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.commercial-v3-battery-header p {
  max-width: 720px;
  margin: 0;
  color: rgba(31, 58, 72, 0.56);
  line-height: 1.45;
}

.commercial-v3-battery-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: #e3f5ea;
  color: #24754f;
  font-size: 0.69rem;
  font-weight: 850;
  white-space: nowrap;
}

.commercial-v3-battery-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 21px;
  overflow: hidden;
  border: 1px solid rgba(24, 48, 62, 0.09);
  border-radius: 15px;
  background: #fff;
}

.commercial-v3-battery-metrics > div {
  min-width: 0;
  padding: 17px;
}

.commercial-v3-battery-metrics > div + div {
  border-left: 1px solid rgba(24, 48, 62, 0.08);
}

.commercial-v3-battery-metrics span,
.commercial-v3-battery-metrics strong,
.commercial-v3-battery-metrics small {
  display: block;
}

.commercial-v3-battery-metrics span {
  color: rgba(31, 58, 72, 0.48);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.commercial-v3-battery-metrics strong {
  margin-top: 7px;
  font-size: 1rem;
  line-height: 1.25;
}

.commercial-v3-battery-metrics small {
  margin-top: 5px;
  color: rgba(31, 58, 72, 0.46);
  font-size: 0.72rem;
  line-height: 1.35;
}

.commercial-v3-battery-detail {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.72fr);
  gap: 17px;
  margin-top: 17px;
}

.commercial-v3-battery-detail > div {
  padding: 18px;
  border: 1px solid rgba(24, 48, 62, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.commercial-v3-battery-detail h5 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.commercial-v3-battery-detail ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: rgba(31, 58, 72, 0.58);
  font-size: 0.82rem;
  line-height: 1.42;
}

.commercial-v3-battery-evidence span,
.commercial-v3-battery-evidence strong {
  display: block;
}

.commercial-v3-battery-evidence span {
  color: rgba(31, 58, 72, 0.47);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-v3-battery-evidence strong {
  margin-top: 6px;
  font-size: 0.95rem;
}

.commercial-v3-battery-evidence p {
  margin: 7px 0 0;
  color: rgba(31, 58, 72, 0.55);
  font-size: 0.81rem;
  line-height: 1.43;
}

.commercial-v3-battery-smallprint {
  display: block;
  margin-top: 14px;
  color: rgba(31, 58, 72, 0.43);
  font-size: 0.7rem;
  line-height: 1.42;
}

@media (max-width: 900px) {
  .commercial-v3-battery-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .commercial-v3-battery-metrics > div:nth-child(3) {
    border-top: 1px solid rgba(24, 48, 62, 0.08);
    border-left: 0;
  }

  .commercial-v3-battery-metrics > div:nth-child(4) {
    border-top: 1px solid rgba(24, 48, 62, 0.08);
  }

  .commercial-v3-battery-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .commercial-v3-battery-header {
    grid-template-columns: auto 1fr;
  }

  .commercial-v3-battery-status {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .commercial-v3-battery-metrics {
    grid-template-columns: 1fr;
  }

  .commercial-v3-battery-metrics > div + div {
    border-top: 1px solid rgba(24, 48, 62, 0.08);
    border-left: 0;
  }
}

/* Subtle attention pulse for the primary New Energy Estimate action */

#viewEpcEstimate:not(.has-been-viewed) {
  position: relative;
  animation: new-energy-estimate-pulse 2.6s ease-in-out infinite;
  will-change: transform, box-shadow;
}

#viewEpcEstimate.has-been-viewed {
  animation: none;
}

@keyframes new-energy-estimate-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 8px 20px rgba(8, 127, 195, 0.18),
      0 0 0 0 rgba(17, 155, 223, 0);
  }

  50% {
    transform: scale(1.018);
    box-shadow:
      0 11px 25px rgba(8, 127, 195, 0.24),
      0 0 0 8px rgba(17, 155, 223, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  #viewEpcEstimate:not(.has-been-viewed) {
    animation: none;
  }
}

/* Financial figures that require customer energy information */

.commercial-v3-results-grid article.requires-energy-data {
  border-style: dashed;
  background: rgba(246, 250, 252, 0.9);
}

.commercial-v3-results-grid article.requires-energy-data strong {
  color: #087fc3;
  font-size: 1.05rem;
}

.commercial-v3-results-grid article.requires-energy-data small {
  max-width: 230px;
}

/* Battery sizing remains hidden until interval consumption data exists. */

.commercial-v3-battery-metrics[hidden] {
  display: none !important;
}

.commercial-v3-battery-status {
  background: #eef4f7;
  color: #526b78;
}

/* Most-likely estimate with supporting sensitivity range */

.commercial-v3-results-grid article strong {
  font-size: 1.38rem;
}

.commercial-v3-results-grid article small {
  margin-top: 7px;
  color: rgba(31, 58, 72, 0.53);
  font-weight: 600;
}

#estimatePayback,
#estimateSaving {
  color: #163f53;
}

/* Restore numerical financial cards with a central estimate and likely range. */

.commercial-v3-results-grid article.requires-energy-data {
  border-style: solid;
  background: #fff;
}

.commercial-v3-results-grid article.requires-energy-data strong {
  color: inherit;
  font-size: 1.38rem;
}

.commercial-v3-results-grid article small {
  margin-top: 7px;
  color: rgba(31, 58, 72, 0.54);
  font-weight: 600;
  line-height: 1.38;
}

#estimateSaving,
#estimatePayback {
  color: #163f53;
}

/* NO-EPC + BUILDING USAGE SUGGESTION 20260807 */

/* ---------------------------------------------------------
   No EPC state
   Keep the same banner geometry, but make missing EPC
   evidence feel intentional rather than disabled.
   --------------------------------------------------------- */

.commercial-v3-epc-banner[data-status="not_found"] {
  background: #ffffff;
  border-color: rgba(31, 91, 117, 0.13);
}

.commercial-v3-epc-banner[data-status="not_found"]
  .commercial-v3-epc-colour {
  background: #eef6f8;
  color: #173745;

  border-right:
    1px solid
    rgba(31, 91, 117, 0.09);
}

.commercial-v3-epc-banner[data-status="not_found"]
  .commercial-v3-epc-colour > span {
  color: rgba(23, 55, 69, 0.58);
}

.commercial-v3-epc-banner[data-status="not_found"]
  .commercial-v3-epc-colour > strong {
  display: grid;
  place-items: center;

  width: 66px;
  height: 66px;

  margin: 10px 0 8px;

  border:
    1px solid
    rgba(31, 91, 117, 0.12);

  border-radius: 19px;

  background:
    rgba(255, 255, 255, 0.96);

  box-shadow:
    0 3px 12px
    rgba(19, 55, 70, 0.06);

  color: #255f78;

  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.11em;
}

.commercial-v3-epc-banner[data-status="not_found"]
  .commercial-v3-epc-colour > small {
  color: rgba(23, 55, 69, 0.60);
  font-weight: 700;
}


/* ---------------------------------------------------------
   Building-based electricity suggestion
   --------------------------------------------------------- */

.commercial-v3-usage-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  margin: 20px 0 21px;
  padding: 16px 17px;

  border:
    1px solid
    rgba(35, 115, 151, 0.13);

  border-radius: 17px;

  background:
    #eef7fb;
}

.commercial-v3-usage-suggestion[hidden] {
  display: none !important;
}

.commercial-v3-usage-suggestion-copy {
  min-width: 0;
}

.commercial-v3-usage-suggestion-copy > span,
.commercial-v3-usage-suggestion-copy > strong,
.commercial-v3-usage-suggestion-copy > small {
  display: block;
}

.commercial-v3-usage-suggestion-copy > span {
  margin-bottom: 4px;

  color: #287397;

  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.commercial-v3-usage-suggestion-copy > strong {
  color: #173745;

  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.commercial-v3-usage-suggestion-copy > small {
  max-width: 490px;

  margin-top: 5px;

  color: rgba(31, 58, 72, 0.60);

  font-size: 0.76rem;
  line-height: 1.42;
}

.commercial-v3-usage-suggestion
  > button {
  flex: 0 0 auto;
  white-space: nowrap;

  background: #ffffff;
}

@media (max-width: 720px) {
  .commercial-v3-usage-suggestion {
    align-items: stretch;
    flex-direction: column;
  }

  .commercial-v3-usage-suggestion
    > button {
    width: 100%;
  }
}


/* UNIVERSAL COMMERCIAL USAGE CHOICES 20260807 */

.commercial-v3-usage-suggestion {
  display: block;
}

.commercial-v3-usage-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.commercial-v3-usage-choice {
  appearance: none;
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid rgba(28, 78, 101, 0.12);
  border-radius: 13px;
  background: rgba(255,255,255,0.88);
  color: #173745;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.commercial-v3-usage-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 143, 201, 0.32);
  box-shadow: 0 4px 13px rgba(20, 64, 84, 0.07);
}

.commercial-v3-usage-choice span,
.commercial-v3-usage-choice strong {
  display: block;
}

.commercial-v3-usage-choice span {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
}

.commercial-v3-usage-choice strong {
  color: rgba(31, 58, 72, 0.58);
  font-size: 0.68rem;
  font-weight: 650;
}

.commercial-v3-usage-choice.is-recommended {
  border-color: rgba(28, 145, 202, 0.30);
  background: #fff;
}

.commercial-v3-usage-choice.is-recommended::after {
  content: "Suggested";
  display: inline-block;
  margin-top: 7px;
  color: #197bab;
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.commercial-v3-usage-choice.is-selected {
  border-color: #1594d0;
  background: #f2faff;
  box-shadow: 0 0 0 2px rgba(21,148,208,0.09);
}

@media (max-width: 720px) {
  .commercial-v3-usage-choices {
    grid-template-columns: 1fr;
  }
}


/* AUTOMATIC ENERGY ASSUMPTIONS 20260807 */

.commercial-v3-assumption-note {
  display: block;
  margin: 6px 2px 0;
  color: rgba(31, 92, 118, 0.68);
  font-size: 0.67rem;
  font-weight: 650;
  line-height: 1.35;
}

.commercial-v3-assumption-note[data-state="customer"] {
  color: #247b61;
}

.commercial-v3-usage-suggestion {
  padding: 15px 16px;
}

.commercial-v3-usage-suggestion-copy > strong {
  font-size: 1.08rem;
}


/* EXPANDED COMMERCIAL BUILDING MAP 20260807 */

/*
 * Let the left-hand building card use the full height
 * created by the electricity-assumptions panel.
 */
.commercial-v3-map-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/*
 * The satellite experience becomes the flexible hero
 * rather than leaving unused white space below it.
 */
.commercial-v3-map-card #opportunityRoofMap {
  flex: 1 1 auto;
  min-height: 505px;
  height: auto;
}

/*
 * Keep the evidence strip fixed at the bottom.
 */
.commercial-v3-map-summary {
  flex: 0 0 auto;
  min-height: 74px;
}

/*
 * Slimmer evidence bar.
 */
.commercial-v3-map-summary > div {
  padding: 13px 18px 14px;
}

.commercial-v3-map-summary span {
  margin-bottom: 3px;
  font-size: 0.63rem;
}

.commercial-v3-map-summary strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

/*
 * The explanatory copy repeats what the visual
 * experience has already established.
 */
.commercial-v3-map-summary small {
  display: none;
}


/* ==========================================================
   POTENTIAL ANNUAL SAVING HIGHLIGHT
   CSS ONLY — 20260807
   ========================================================== */

/*
 * Make the commercial saving the strongest result
 * without altering the results layout or calculation logic.
 */

.commercial-v3-results-grid article:has(#estimateSaving) {
  position: relative;
  overflow: hidden;

  border-color: rgba(13, 126, 99, 0.28);

  background:
    linear-gradient(
      145deg,
      #f1faf7 0%,
      #e8f6f1 100%
    );

  box-shadow:
    0 8px 24px
    rgba(15, 104, 83, 0.10);
}


/* subtle visual accent */

.commercial-v3-results-grid article:has(#estimateSaving)::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;

  width: 4px;

  background: #10866b;
}


/* POTENTIAL ANNUAL SAVING label */

.commercial-v3-results-grid article:has(#estimateSaving) > span {
  color: #19745f;
}


/* main £ result */

.commercial-v3-results-grid #estimateSaving {
  margin-top: 8px;

  color: #08745d;

  font-size: clamp(
    1.65rem,
    2.3vw,
    2.15rem
  );

  line-height: 1.05;

  letter-spacing: -0.045em;
}


/* likely range underneath */

.commercial-v3-results-grid #estimateSavingNote {
  margin-top: 7px;

  color: rgba(20, 92, 75, 0.70);

  font-weight: 650;
}


/* very subtle decorative circle */

.commercial-v3-results-grid article:has(#estimateSaving)::after {
  content: "£";

  position: absolute;
  right: 17px;
  top: 13px;

  display: grid;
  place-items: center;

  width: 31px;
  height: 31px;

  border-radius: 10px;

  background: rgba(16, 134, 107, 0.10);

  color: #10866b;

  font-size: 0.9rem;
  font-weight: 850;
}


/* ==========================================================
   ANNUAL GENERATION — HOMES EQUIVALENT
   isolated visual enhancement
   ========================================================== */

.commercial-homes-equivalent {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 11px;
  padding-top: 11px;

  border-top:
    1px solid
    rgba(25, 65, 84, 0.09);
}

.commercial-homes-equivalent[hidden] {
  display: none !important;
}

.commercial-homes-icon {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 36px;
  height: 36px;

  border-radius: 11px;

  background: #eaf7fc;
  color: #1688b8;
}

.commercial-homes-icon svg {
  width: 20px;
  height: 20px;
}

.commercial-homes-equivalent > div:last-child {
  min-width: 0;
}

.commercial-homes-equivalent
  #estimateHomesValue {
  display: block;

  color: #173745;

  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.15;
}

.commercial-homes-equivalent
  small {
  display: block;

  margin-top: 2px;

  color:
    rgba(31, 58, 72, 0.53);

  font-size: 0.62rem;
  line-height: 1.25;
}


/* =========================================================
   COMMERCIAL RESULT — PAYBACK SECONDARY HIGHLIGHT
   ========================================================= */

.commercial-v3-results-grid article:has(#estimatePayback) {
  position: relative;
  overflow: hidden;
  border-color: rgba(24, 127, 181, .20);
  background:
    linear-gradient(
      145deg,
      #f5fbfe 0%,
      #edf7fb 100%
    );
}

.commercial-v3-results-grid article:has(#estimatePayback)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2297c7;
}

.commercial-v3-results-grid article:has(#estimatePayback) > span {
  color: #397a98;
}

.commercial-v3-results-grid #estimatePayback {
  margin-top: 8px;
  color: #173c4d;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.commercial-v3-results-grid #estimatePaybackNote {
  margin-top: 7px;
  color: rgba(34, 76, 95, .62);
}

.commercial-v3-results-grid article:has(#estimatePayback)::after {
  content: "↻";
  position: absolute;
  right: 17px;
  top: 13px;

  display: grid;
  place-items: center;

  width: 31px;
  height: 31px;

  border-radius: 10px;

  background: rgba(34, 151, 199, .09);
  color: #2188b3;

  font-size: 1rem;
  font-weight: 800;
}


/* =========================================================
   COMMERCIAL ESTIMATE — INLINE ASSESSMENT CTAs
   ========================================================= */

.commercial-assessment-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  margin-top: 18px;
  padding: 24px 26px;

  border: 1px solid rgba(24, 124, 169, .15);
  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      rgba(244, 250, 253, .98),
      rgba(238, 248, 252, .98)
    );
}

.commercial-assessment-inline-copy {
  max-width: 650px;
}

.commercial-assessment-inline-copy .eyebrow {
  display: block;
  margin-bottom: 7px;
}

.commercial-assessment-inline-copy h3 {
  margin: 0;

  color: #173746;

  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.commercial-assessment-inline-copy p {
  margin: 7px 0 0;

  color: #728692;

  font-size: .9rem;
  line-height: 1.48;
}

.commercial-assessment-inline-cta .primary-button {
  flex: 0 0 auto;
  min-width: 205px;
}

@media (max-width: 760px) {
  .commercial-assessment-inline-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .commercial-assessment-inline-cta .primary-button {
    width: 100%;
  }
}

