.dsp-hs-comparison-controls {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dsp-hs-comparison-segment {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  padding: 3px;
  border: 1px solid #d5e5de;
  border-radius: 7px;
  background: #f3f7f5;
}

.dsp-hs-comparison-segment button,
.dsp-hs-comparison-segment button:hover,
.dsp-hs-comparison-segment button:focus {
  min-height: 30px;
  margin: 0;
  padding: 5px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #657a71;
  font: inherit;
  font-size: 9px;
  font-weight: 500;
  box-shadow: none;
  cursor: pointer;
}

.dsp-hs-comparison-segment button.is-active {
  background: #fff;
  color: #087653;
  font-weight: 650;
  box-shadow: 0 1px 5px rgba(26, 81, 61, .1);
}

.dsp-hs-sellin-vat-toggle {
  display: grid;
  grid-template-columns: 34px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  color: #35564a;
  cursor: pointer;
}

.dsp-hs-sellin-vat-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dsp-hs-sellin-vat-toggle > span {
  position: relative;
  grid-row: 1 / span 2;
  width: 34px;
  height: 19px;
  border: 1px solid #c7d9d1;
  border-radius: 10px;
  background: #e5ece9;
  transition: background .18s ease, border-color .18s ease;
}

.dsp-hs-sellin-vat-toggle > span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(25, 62, 49, .22);
  transition: transform .18s ease;
}

.dsp-hs-sellin-vat-toggle input:checked + span {
  border-color: #139b6f;
  background: #18aa79;
}

.dsp-hs-sellin-vat-toggle input:checked + span::after {
  transform: translateX(15px);
}

.dsp-hs-sellin-vat-toggle input:focus-visible + span {
  outline: 2px solid #80cdb2;
  outline-offset: 2px;
}

.dsp-hs-sellin-vat-toggle b {
  align-self: end;
  font-size: 9px;
  font-weight: 600;
}

.dsp-hs-sellin-vat-toggle small {
  align-self: start;
  color: #7a8c85;
  font-size: 7px;
  line-height: 1.2;
}

.dsp-hs-comparison-bar.is-zero > span {
  display: none !important;
}

.dsp-hs-trend-body[data-metric="units"] .dsp-hs-comparison-bar > span b {
  color: #17493a;
}

.dsp-hs-trend-body[data-metric="units"] .dsp-hs-comparison-bar > span em {
  color: #71837c;
}

@media (max-width: 700px) {
  .dsp-hs-comparison-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .dsp-hs-comparison-segment {
    width: 100%;
    box-sizing: border-box;
  }

  .dsp-hs-sellin-vat-toggle {
    min-height: 36px;
  }
}

@media print {
  .dsp-hs-comparison-controls {
    display: none !important;
  }
}
