.mcs-chart-tip {
  position: fixed;
  z-index: 12;
  width: max-content;
  max-width: min(360px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  overflow: auto;
  padding: 13px 15px 11px;
  border: 1px solid #bfc6ba;
  border-radius: 6px;
  background: #fffffc;
  box-shadow: 0 4px 17px #17251c20;
  color: var(--ink, #202724);
  font: 500 13px/1.35 Karla, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.mcs-chart-tip[hidden] {
  display: none;
}

.mcs-tip-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}
.mcs-tip-year {
  font: 620 19px/1.15 var(--heading, Montserrat), Arial, sans-serif;
  letter-spacing: -0.045em;
}
.mcs-tip-heading > span,
.mcs-tip-percent,
.mcs-tip-breakdown thead {
  color: var(--muted, #626b65);
}
.mcs-tip-breakdown {
  width: 100%;
  border-spacing: 0;
  font-size: 12px;
}
.mcs-tip-breakdown th,
.mcs-tip-breakdown td {
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
  padding: 3px 0 3px 10px;
}
.mcs-tip-breakdown th:first-child {
  text-align: left;
  padding-left: 0;
}
.mcs-tip-breakdown thead th {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line, #d5d8d0);
}
.mcs-tip-name {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mcs-tip-swatch {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 1px;
  background: var(--swatch);
}
.mcs-tip-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 25px;
  margin-top: 4px;
}
.mcs-tip-breakdown + .mcs-tip-metric {
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid var(--line, #d5d8d0);
}
.mcs-tip-metric strong {
  white-space: nowrap;
  font-weight: 680;
}
.mcs-tip-action {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid #c2cbbb;
  border-radius: 4px;
  background: #f1f4ed;
  color: var(--green, #344940);
  font-weight: 650;
}
@media (max-width: 410px) {
  .mcs-chart-tip { padding: 10px; }
  .mcs-tip-breakdown th, .mcs-tip-breakdown td { padding-left: 6px; }
  .mcs-tip-breakdown th:first-child { white-space: normal; }
}
