.eco-pt__name strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.9;
}

.eco-pt__modal {
  width: min(880px, calc(100vw - 32px));
  max-height: min(88vh, 720px);
  margin: auto;
  padding: 28px;
  border: 1px solid #dce7e3;
  border-radius: 18px;
  background: #fff;
  overflow: auto;
}

.eco-pt__modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d8e4e0;
  border-radius: 50%;
  background: #f3f7f5;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.eco-pt__modal-close::before,
.eco-pt__modal-close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.eco-pt__modal-close::before { transform: rotate(45deg); }
.eco-pt__modal-close::after { transform: rotate(-45deg); }
.eco-pt__modal-close:hover { border-color: #efc3aa; background: #fff4ec; }
.eco-pt__modal-close:hover::before,
.eco-pt__modal-close:hover::after { background: var(--orange); }

.eco-pt__modal-head {
  padding-left: 48px;
}

.eco-pt__modal-head h3 {
  margin: 3px 0 16px;
  padding: 0;
  font-size: 19px;
  line-height: 1.7;
}

.eco-pt__periods {
  display: flex;
  width: fit-content;
  margin-bottom: 10px;
}

.eco-pt__chart-summary {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #f3f7f5;
}

.eco-pt__chart {
  position: relative;
  min-height: 330px;
  margin-top: 10px;
  padding: 12px 10px 4px;
  border: 1px solid #e1eae7;
  border-radius: 13px;
  background: linear-gradient(180deg, #fbfdfc 0%, #f6faf8 100%);
  overflow: hidden;
}

.eco-pt__chart svg {
  width: 100%;
  height: auto;
  min-height: 0;
}

.eco-pt__chart line {
  stroke: #dfe8e5;
  stroke-dasharray: 4 5;
}

.eco-pt__chart text {
  fill: #69807a;
  font-size: 10px;
}

.eco-pt__chart text.date {
  fill: #526b65;
  font-size: 10px;
}

.eco-pt__chart path.line {
  stroke-width: 3.5;
  filter: drop-shadow(0 3px 4px rgba(6, 60, 50, .12));
}

.eco-pt__chart circle {
  fill: #fff;
  stroke: var(--orange);
  stroke-width: 3;
  cursor: pointer;
  transition: r .15s, fill .15s;
}

.eco-pt__chart circle:hover {
  fill: var(--orange);
  r: 6px;
}

.eco-pt__chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 135px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #063c32;
  color: #fff;
  direction: rtl;
  text-align: right;
  font-size: 10px;
  line-height: 1.8;
  box-shadow: 0 7px 20px rgba(6, 60, 50, .2);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

.eco-pt__chart-tooltip strong {
  display: block;
  color: #fff;
  font-size: 11px;
}

@media (max-width: 767px) {
  .eco-pt__name strong { font-size: 12px; }
  .eco-pt__modal { padding: 22px 14px 17px; border-radius: 14px; }
  .eco-pt__modal-close { top: 13px; left: 13px; width: 32px; height: 32px; }
  .eco-pt__modal-head { padding-left: 38px; }
  .eco-pt__modal-head h3 { font-size: 16px; }
  .eco-pt__chart { min-height: 270px; padding: 7px 4px 0; }
  .eco-pt__chart svg { height: auto; min-height: 0; }
}
