@import url("./civanta-fonts.css?v=2");

:root {
  --civanta-review-shade: #102d4052;
  --civanta-font: "Bricolage Digits", "Instrument Sans", system-ui, sans-serif;
}

.civanta-host,
.civanta-quick-actions,
.civanta-quick-actions button {
  font-family: var(--civanta-font);
}

.civanta-host[data-portfolio],
body.plant-list-open:not(.embedded) {
  background: linear-gradient(105deg, #0a2d33f5 0%, #0b333cbb 53%, #0d333f91 100%),
    #10383f url("./civanta-landscape.jpg") center 52% / cover no-repeat;
}

@media (max-width: 680px) {
  .civanta-host[data-portfolio],
  body.plant-list-open:not(.embedded) { background-position: center, 61% center; }
}

/* The iframe draws its own backdrop. This layer covers the rest of the site. */
.civanta-review-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--civanta-review-shade);
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    var(--review-left) var(--review-top), var(--review-right) var(--review-top),
    var(--review-right) var(--review-bottom), var(--review-left) var(--review-bottom),
    var(--review-left) var(--review-top), 0 0);
}
.civanta-host:not([data-workspace-ready]) { position: relative; }
.civanta-host:not([data-workspace-ready]) > iframe {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.civanta-workspace-status {
  min-height: 500px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}
.civanta-workspace-status p { font-size: 16px; }
.civanta-workspace-spinner {
  width: 30px;
  height: 30px;
  margin-top: 4px;
  border: 3px solid #bdded6;
  border-top-color: #08765a;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .civanta-workspace-spinner { animation: civanta-workspace-spin .8s linear infinite; }
}
@keyframes civanta-workspace-spin { to { transform: rotate(1turn); } }

.civanta-workspace-status button {
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #123b5a;
  color: #fff;
  font-weight: 700;
}

.civanta-quick-actions {
  position: fixed;
  z-index: 40;
  inset-inline: 0;
  box-sizing: border-box;
  width: max-content;
  max-width: min(var(--site-content-width, 1240px), calc(100% - 24px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px 19px;
  padding: 10px 12px;
  border: 1px solid #bbd4e8;
  border-radius: 12px;
  background: #fff;
  color: #102d43;
  font-size: 16.8px;
  line-height: 1.3;
  box-shadow: 0 2px 12px #102d4012;
}
.civanta-quick-actions [hidden],
.civanta-quick-actions[hidden] { display: none; }

.civanta-quick-metrics, .civanta-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 12px;
}
.civanta-quick-metrics span { color: #45677d; }
.civanta-quick-metrics strong {
  margin-inline-start: 4px;
  color: #102d43;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.civanta-quick-metrics small { font-size: 13px; color: #45677d; }
.civanta-quick-metrics .has-reduction { color: #08765a; }
.civanta-quick-metrics .has-increase { color: #b42318; }
.civanta-quick-metrics [data-quick-scenario] { color: #176e56; }

.civanta-quick-buttons { gap: 6px; }
.civanta-quick-actions button {
  min-height: 43px;
  padding: 6px 11px;
  border: 1px solid #c9dce9;
  border-radius: 8px;
  background: #fff;
  color: #153951;
  font-size: 15.6px;
  font-weight: 700;
}
.civanta-quick-actions button[data-primary] { border-color: #123b5a; background: #123b5a; color: #fff; }
.civanta-quick-actions button:hover:not(:disabled) { background: #e8f2fb; }
.civanta-quick-actions button[data-primary]:hover:not(:disabled) { background: #205b88; }
.civanta-quick-actions button:disabled { opacity: .56; cursor: not-allowed; }
.civanta-quick-actions button:focus-visible { outline: 2px solid #268582; outline-offset: 2px; }
.civanta-quick-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .civanta-quick-actions { gap: 6px; }
  .civanta-quick-metrics, .civanta-quick-buttons { flex-basis: 100%; }
}

.civanta-quick-actions .requires-pro::after {content:"Pro";display:inline-block;margin-left:8px;padding:2px 7px;border:1px solid #c99b35;border-radius:6px;background:linear-gradient(135deg,#fff1ba,#eac15e);color:#6b4305;box-shadow:inset 0 1px 0 #fff8dc;font-size:11px;line-height:1.4;font-weight:700;vertical-align:middle}

.requires-pro::after {content:none!important}
.civanta-pro-badge {display:inline-flex!important;align-items:center;justify-content:center;gap:5px;margin-left:10px;padding:4px 9px;border:1px solid #efae12;border-radius:7px;background:#ffc328;color:#161616;font-size:12px!important;line-height:1.4;font-weight:800;vertical-align:middle;white-space:nowrap;flex-shrink:0;box-shadow:inset 0 1px 0 #ffe28a}
.civanta-pro-badge svg {width:15px;height:15px;fill:currentColor;flex-shrink:0}
