.eg-rate-chart-tabs {
  margin-top: 18px;
}

.eg-rate-chart-tabs__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.eg-rate-chart-tabs__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.eg-rate-chart-tabs__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(25, 24, 22, .10);
  background: #fbfaf7;
  color: #5f584f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

.eg-rate-chart-tabs__radio:checked + .eg-rate-chart-tabs__button {
  background: #151413;
  border-color: #151413;
  color: #fff;
}

.eg-rate-chart-tabs__radio:focus-visible + .eg-rate-chart-tabs__button {
  outline: 2px solid #d9aa32;
  outline-offset: 2px;
}

.eg-rate-chart-tabs__panel {
  display: none;
}

.eg-rate-chart-tabs:has(.eg-rate-chart-tabs__radio:nth-of-type(1):checked) .eg-rate-chart-tabs__panel:nth-child(1),
.eg-rate-chart-tabs:has(.eg-rate-chart-tabs__radio:nth-of-type(2):checked) .eg-rate-chart-tabs__panel:nth-child(2),
.eg-rate-chart-tabs:has(.eg-rate-chart-tabs__radio:nth-of-type(3):checked) .eg-rate-chart-tabs__panel:nth-child(3),
.eg-rate-chart-tabs:has(.eg-rate-chart-tabs__radio:nth-of-type(4):checked) .eg-rate-chart-tabs__panel:nth-child(4),
.eg-rate-chart-tabs:has(.eg-rate-chart-tabs__radio:nth-of-type(5):checked) .eg-rate-chart-tabs__panel:nth-child(5),
.eg-rate-chart-tabs:has(.eg-rate-chart-tabs__radio:nth-of-type(6):checked) .eg-rate-chart-tabs__panel:nth-child(6) {
  display: block;
}

.eg-rate-chart {
  padding: 14px;
  border-radius: 16px;
  background: #fbfaf7;
  border: 1px solid rgba(25, 24, 22, .08);
}

.eg-rate-chart__top,
.eg-rate-chart__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.eg-rate-chart__label {
  font-size: 13px;
  font-weight: 950;
  color: #151413;
}

.eg-rate-chart__date {
  margin-top: 3px;
  font-size: 11px;
  color: #8a8378;
}

.eg-rate-chart__price {
  font-size: 18px;
  font-weight: 950;
  color: #151413;
  white-space: nowrap;
}

.eg-rate-chart__canvas {
  position: relative;
  margin: 12px 0 10px;
}

.eg-rate-chart__svg {
  display: block;
  width: 100%;
  height: 170px;
  overflow: visible;
}

.eg-rate-chart__grid {
  stroke: rgba(25, 24, 22, .10);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.eg-rate-chart__line {
  fill: none;
  stroke: #d9aa32;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.eg-rate-chart__axis-label {
  fill: #8a8378;
  font-size: 8px;
  font-weight: 700;
}

.eg-rate-chart__axis-label--y {
  text-anchor: start;
}

.eg-rate-chart__axis-label--x {
  text-anchor: middle;
}

.eg-rate-chart__point-hit {
  fill: transparent;
  cursor: pointer;
  pointer-events: all;
}

.eg-rate-chart__tooltip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, calc(-100% - 10px));
  min-width: 92px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(25, 24, 22, .10);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  color: #151413;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

.eg-rate-chart__tooltip strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
}

.eg-rate-chart__bottom {
  font-size: 11px;
  color: #8a8378;
}

.eg-rate-chart-empty {
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  background: #fbfaf7;
  color: #8a8378;
  font-size: 13px;
  line-height: 1.4;
}