/**
 * EcoVolt Calculator Styles
 * Version: 1.0.0
 */

:root {
  --green: #3C9F21;
  --green-2: #2f861b;
  --green-soft: #E9F5E6;
  --card: #FFFFFF;
  --border: #E2E7E4;
  --text: #1F2A24;
  --muted: #6A7A72;
  --shadow: 0 14px 40px rgba(0, 0, 0, .08);
  --r: 22px;

  --red: #B42318;
  --red-soft: rgba(180, 35, 24, .10);
  --red-border: rgba(180, 35, 24, .28);
}

.ecovolt-calculator-widget * {
  box-sizing: border-box;
}

.ecovolt-calculator-widget {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(900px 520px at 20% 0%, rgba(60, 159, 33, .14), transparent 60%),
    linear-gradient(180deg, #ffffff, #f3f6f4 40%, #ffffff);
  color: var(--text);
  padding: 34px 16px;
}

.ecovolt-calculator-widget .wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 980px) {
  .ecovolt-calculator-widget .wrap {
    grid-template-columns: 1fr;
  }
}

/* Modal/Presentation Mode */
body.presentationMode {
  overflow: hidden;
}

.ecovolt-calculator-widget .wrap.presentationMode {
  grid-template-columns: 1fr;
  max-width: 600px;
  gap: 0;
}

.ecovolt-calculator-widget .wrap.presentationMode>section {
  filter: blur(8px);
  opacity: 0.3;
  pointer-events: none;
  transition: filter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: filter, opacity;
}

.ecovolt-calculator-widget .wrap.presentationMode>aside {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(1.05) !important;
  z-index: 1000;
  max-width: 600px;
  max-height: calc(100vh - 80px);
  width: 90%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: resultFloat 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 0 !important;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(white 30%, rgba(255, 255, 255, 0)),
    linear-gradient(rgba(255, 255, 255, 0), white 70%) 0 100%,
    radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0)),
    radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0)) 0 100%;
  background-repeat: no-repeat;
  background-color: white;
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
  background-attachment: local, local, scroll, scroll;
}

.ecovolt-calculator-widget .wrap.presentationMode>aside::-webkit-scrollbar {
  width: 8px;
}

.ecovolt-calculator-widget .wrap.presentationMode>aside::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.ecovolt-calculator-widget .wrap.presentationMode>aside::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.ecovolt-calculator-widget .wrap.presentationMode>aside::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

@keyframes resultFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -52%) scale(0.94);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -49%) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Overlay */
.ecovolt-calculator-widget .presentationOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  animation: overlayFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  will-change: opacity;
}

.ecovolt-calculator-widget .presentationOverlay.active {
  display: block;
}

@media (max-width: 767px) {
  .ecovolt-calculator-widget .presentationOverlay {
    backdrop-filter: blur(2px);
  }

  .ecovolt-calculator-widget .wrap.presentationMode>section {
    filter: blur(4px);
  }
}

@keyframes overlayFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Cards */
.ecovolt-calculator-widget .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.ecovolt-calculator-widget .header {
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--green-soft), #fff);
}

.ecovolt-calculator-widget .title {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: .1px;
}

.ecovolt-calculator-widget .subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 70ch;
}

/* Stepper */
.ecovolt-calculator-widget .stepper {
  padding: 14px 18px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.ecovolt-calculator-widget .step {
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafcfb;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.ecovolt-calculator-widget .step:hover {
  background: #f7fbf8;
}

.ecovolt-calculator-widget .step.active {
  border-color: rgba(60, 159, 33, .35);
  background: rgba(60, 159, 33, .06);
  transform: translateY(-1px);
}

.ecovolt-calculator-widget .step.done {
  border-color: rgba(60, 159, 33, .28);
  background: rgba(60, 159, 33, .04);
}

.ecovolt-calculator-widget .bubble {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  flex: 0 0 auto;
}

.ecovolt-calculator-widget .step.active .bubble,
.ecovolt-calculator-widget .step.done .bubble {
  border-color: rgba(60, 159, 33, .35);
  background: rgba(60, 159, 33, .10);
  color: var(--green-2);
}

.ecovolt-calculator-widget .stepTxt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ecovolt-calculator-widget .stepTxt b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecovolt-calculator-widget .stepTxt span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecovolt-calculator-widget .content {
  padding: 18px 22px 22px;
}

/* Form Elements */
.ecovolt-calculator-widget label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.ecovolt-calculator-widget .field {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease;
}

.ecovolt-calculator-widget .field:focus-within {
  border-color: rgba(60, 159, 33, .55);
  box-shadow: 0 0 0 3px rgba(60, 159, 33, .12);
  transform: translateY(-1px);
}

.ecovolt-calculator-widget #feedToggleCard:hover {
  border-color: var(--green);
  background: rgba(60, 159, 33, .02);
}

.ecovolt-calculator-widget #feedToggleCard.active {
  border-color: var(--green);
  background: rgba(60, 159, 33, .05);
}

.ecovolt-calculator-widget input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--text);
}

.ecovolt-calculator-widget input::placeholder {
  color: rgba(31, 42, 36, .35);
}

.ecovolt-calculator-widget .hint {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(106, 122, 114, .95);
  line-height: 1.35;
}

.ecovolt-calculator-widget .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 620px) {
  .ecovolt-calculator-widget .grid {
    grid-template-columns: 1fr;
  }
}

.ecovolt-calculator-widget .actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.ecovolt-calculator-widget .btn {
  border: none;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 850;
  letter-spacing: .1px;
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
  font-size: 14px;
}

.ecovolt-calculator-widget .btn:active {
  transform: translateY(1px);
}

.ecovolt-calculator-widget .btn.primary {
  background: linear-gradient(180deg, #56cf3a, var(--green));
  color: #fff;
  box-shadow: 0 10px 22px rgba(60, 159, 33, .18);
}

.ecovolt-calculator-widget .btn.primary:hover {
  filter: saturate(1.05) brightness(1.02);
}

.ecovolt-calculator-widget .btn.secondary {
  background: #F0F3F1;
  color: #2C3A33;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: none;
}

.ecovolt-calculator-widget .btn.secondary:hover {
  filter: brightness(.99);
}

.ecovolt-calculator-widget .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Panels */
.ecovolt-calculator-widget .panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 14px;
}

.ecovolt-calculator-widget .panelHead {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  background: #fbfdfc;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease;
}

.ecovolt-calculator-widget .panelHead:hover {
  background: #f7fbf8;
}

.ecovolt-calculator-widget .panelHead .h {
  margin: 0;
  font-weight: 950;
  font-size: 14px;
}

.ecovolt-calculator-widget .panelHead .s {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  max-width: 80ch;
}

.ecovolt-calculator-widget .panelHead .summary {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: rgba(60, 159, 33, .08);
  border: 1px solid rgba(60, 159, 33, .20);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: none;
}

.ecovolt-calculator-widget .panelHead .summary.visible {
  display: block;
}

.ecovolt-calculator-widget .panelBody {
  padding: 14px 16px 16px;
}

.ecovolt-calculator-widget .collapse {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  transition: max-height .38s ease, opacity .22s ease, transform .22s ease;
}

.ecovolt-calculator-widget .collapse.open {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
}

/* Result card */
.ecovolt-calculator-widget .resultTop {
  padding: 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--green-soft), #fff);
}

.ecovolt-calculator-widget .kpiRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .ecovolt-calculator-widget .kpiRow {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .ecovolt-calculator-widget .kpiRow>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .ecovolt-calculator-widget .kpiLabel {
    text-align: center;
    width: 100%;
  }

  .ecovolt-calculator-widget .kpiValue {
    text-align: center;
  }

  .ecovolt-calculator-widget .kpiSub {
    text-align: center;
    width: 100%;
  }

  .ecovolt-calculator-widget .kostenreduktion {
    align-self: center;
    margin: 8px auto 0;
  }
}

.ecovolt-calculator-widget .kpiLabel {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.ecovolt-calculator-widget .kpiValue {
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -.4px;
  color: var(--green-2);
  margin: 0;
  line-height: 1.05;
  display: inline-block;
}

.ecovolt-calculator-widget .kpiValue.anim {
  animation: riseFade .55s ease;
}

@keyframes riseFade {
  from {
    transform: translateY(10px);
    opacity: 0;
    filter: blur(.4px);
  }

  to {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

.ecovolt-calculator-widget .kpiSub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.ecovolt-calculator-widget .pctBadge {
  border: 1px solid rgba(60, 159, 33, .28);
  background: rgba(60, 159, 33, .10);
  color: var(--green-2);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 950;
  font-size: 13px;
  white-space: nowrap;
}

.ecovolt-calculator-widget .kostenreduktion {
  border: 1px solid rgba(60, 159, 33, .28);
  background: rgba(60, 159, 33, .10);
  color: var(--green-2);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 950;
  font-size: 13px;
  white-space: nowrap;
}

/* Negative state */
.ecovolt-calculator-widget .negText {
  color: var(--red) !important;
}

.ecovolt-calculator-widget .pctBadge.neg {
  color: var(--red);
  background: var(--red-soft);
  border-color: var(--red-border);
}

.ecovolt-calculator-widget .breakdown {
  padding: 16px 22px 8px;
  display: grid;
  gap: 10px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: opacity .4s ease, max-height .4s ease, transform .4s ease;
}

.ecovolt-calculator-widget .breakdown.show {
  opacity: 1;
  max-height: 800px;
  transform: translateY(0);
}

.ecovolt-calculator-widget .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  background: #fff;
}

.ecovolt-calculator-widget .line .l {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.ecovolt-calculator-widget .line .name {
  font-size: 13px;
  font-weight: 900;
}

.ecovolt-calculator-widget .line .desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.ecovolt-calculator-widget .line .v {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 900;
}

.ecovolt-calculator-widget .line .pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-2);
  background: rgba(60, 159, 33, .10);
  border: 1px solid rgba(60, 159, 33, .20);
  border-radius: 8px;
  padding: 4px 8px;
  white-space: nowrap;
}

.ecovolt-calculator-widget .line.without {
  background: linear-gradient(135deg, rgba(180, 35, 24, .04), rgba(180, 35, 24, .08));
  border-color: rgba(180, 35, 24, .15);
}

.ecovolt-calculator-widget .line.with {
  background: linear-gradient(135deg, rgba(60, 159, 33, .04), rgba(60, 159, 33, .08));
  border-color: rgba(60, 159, 33, .20);
}

.ecovolt-calculator-widget .line.assumptions {
  background: linear-gradient(135deg, rgba(100, 120, 140, .04), rgba(100, 120, 140, .08));
  border-color: rgba(100, 120, 140, .15);
}

/* Pie Charts */
.ecovolt-calculator-widget .egAnteile {
  padding: 16px 22px 18px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: opacity .4s ease .1s, max-height .4s ease .1s, transform .4s ease .1s;
}

.ecovolt-calculator-widget .egAnteile.show {
  opacity: 1;
  max-height: 600px;
  transform: translateY(0);
}

.ecovolt-calculator-widget .egAnteileBlock {
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: #fff;
}

.ecovolt-calculator-widget .egAnteileGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}

.ecovolt-calculator-widget .egAnteileGrid.single {
  grid-template-columns: 1fr;
  justify-items: center;
}

@media (max-width: 620px) {
  .ecovolt-calculator-widget .egAnteileGrid {
    grid-template-columns: 1fr;
  }
}

.ecovolt-calculator-widget .pieChartWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ecovolt-calculator-widget .pieChartTitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.ecovolt-calculator-widget .pieChart {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(var(--green) 0deg,
      var(--green) calc(var(--eg-pct) * 3.6deg),
      rgba(31, 42, 36, .18) calc(var(--eg-pct) * 3.6deg),
      rgba(31, 42, 36, .18) 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.ecovolt-calculator-widget .pieChart::before {
  content: '';
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
}

.ecovolt-calculator-widget .pieChartValue {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 900;
  color: var(--green-2);
}

.ecovolt-calculator-widget .pieChartLegend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  width: 100%;
}

.ecovolt-calculator-widget .pieChartLegend .key {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: rgba(0, 0, 0, .02);
  border-radius: 8px;
}

.ecovolt-calculator-widget .pieChartLegend .key .label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ecovolt-calculator-widget .pieChartLegend .key .value {
  font-weight: 700;
}

.ecovolt-calculator-widget .barTitle {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.ecovolt-calculator-widget .barTitle b {
  font-size: 13px;
}

.ecovolt-calculator-widget .barTitle span {
  font-size: 12px;
  color: var(--muted);
}

.ecovolt-calculator-widget .legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  align-items: center;
}

.ecovolt-calculator-widget .key {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ecovolt-calculator-widget .swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .08);
}

.ecovolt-calculator-widget .sw-grid {
  background: rgba(31, 42, 36, .18);
}

.ecovolt-calculator-widget .sw-eg {
  background: rgba(60, 159, 33, .55);
}

.ecovolt-calculator-widget .sw-save {
  background: rgba(60, 159, 33, .20);
}

/* No-savings box */
.ecovolt-calculator-widget .noSavingsWrap {
  padding: 16px 22px 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: opacity .4s ease, max-height .4s ease, transform .4s ease;
}

.ecovolt-calculator-widget .noSavingsWrap.show {
  opacity: 1;
  max-height: 2000px;
  transform: translateY(0);
}

.ecovolt-calculator-widget .noSavingsBox {
  border: 1px solid var(--red-border);
  background: rgba(180, 35, 24, .06);
  border-radius: 16px;
  padding: 16px;
  line-height: 1.45;
  font-size: 14px;
}

.ecovolt-calculator-widget .noSavingsBox b {
  display: block;
  margin-bottom: 8px;
}

.ecovolt-calculator-widget .noSavingsBox p {
  margin: 10px 0;
}

.ecovolt-calculator-widget .noSavingsBox ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.ecovolt-calculator-widget .noSavingsBox li {
  margin: 6px 0;
}

.ecovolt-calculator-widget .noSavingsBox a {
  color: var(--red);
  text-decoration: underline;
  font-weight: 800;
}

.ecovolt-calculator-widget .cta {
  border-top: 1px solid var(--border);
  padding: 18px 22px 22px;
}

.ecovolt-calculator-widget .cta a {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #56cf3a, var(--green));
  color: #fff;
  font-weight: 950;
  font-size: 16px;
  box-shadow: 0 12px 26px rgba(60, 159, 33, .18);
  transition: transform .12s ease, filter .2s ease;
}

.ecovolt-calculator-widget .cta a:hover {
  filter: saturate(1.05) brightness(1.02);
}

.ecovolt-calculator-widget .cta a:active {
  transform: translateY(1px);
}

.ecovolt-calculator-widget .cta .tiny {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  text-align: center;
}

/* Close Button */
.ecovolt-calculator-widget .presentationCloseBtn {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  color: #666;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(8px);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
}

.ecovolt-calculator-widget .presentationCloseBtn:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: scale(1.08);
}

.ecovolt-calculator-widget .presentationCloseBtn:active {
  transform: scale(0.92);
}

.ecovolt-calculator-widget .presentationCloseBtn svg {
  display: block;
  width: 18px;
  height: 18px;
}

.ecovolt-calculator-widget .wrap.presentationMode>aside .presentationCloseBtn {
  display: flex;
  animation: closeButtonFadeIn 0.3s ease 0.3s both;
  position: sticky;
  top: 12px;
  right: 12px;
  margin: 12px 12px -32px auto;
  align-self: flex-end;
  z-index: 30;
}

@keyframes closeButtonFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-90deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.ecovolt-calculator-widget .wrap.presentationMode>aside .cta {
  position: sticky;
  bottom: 0;
  background: white;
  z-index: 10;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  margin-top: auto;
  flex-shrink: 0;
}

.ecovolt-calculator-widget .wrap.presentationMode>aside .resultTop,
.ecovolt-calculator-widget .wrap.presentationMode>aside .breakdown,
.ecovolt-calculator-widget .wrap.presentationMode>aside .egAnteile,
.ecovolt-calculator-widget .wrap.presentationMode>aside .noSavingsWrap {
  flex-shrink: 0;
}

/* Modal */
.ecovolt-calculator-widget .modalOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .25s ease;
}

.ecovolt-calculator-widget .modalOverlay.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.ecovolt-calculator-widget .modalBox {
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ecovolt-calculator-widget .modalBox h3 {
  margin: 0 0 12px;
  font-size: 19px;
  color: var(--text);
}

.ecovolt-calculator-widget .modalBox p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.ecovolt-calculator-widget .modalBox p:last-of-type {
  margin-bottom: 20px;
}

.ecovolt-calculator-widget .modalBox .modalActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ecovolt-calculator-widget .modalBox a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  transition: color .2s ease;
}

.ecovolt-calculator-widget .modalBox a:hover {
  color: var(--green-2);
}
