.tabs .tabs-list {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
}

.tabs .tabs-list button {
  flex: 0 0 max-content;
  margin: 0;
  border: 1px solid var(--dark-color);
  border-radius: 0;
  padding: 8px 16px;
  background-color: var(--light-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: var(--body-xs-line-height);
  text-align: left;
  text-decoration: none;
  text-transform: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.tabs .tabs-list button + button {
  margin-left: -1px;
}

.tabs .tabs-list button:first-child {
  border-top-left-radius: 6px;
}

.tabs .tabs-list button:last-child {
  border-top-right-radius: 6px;
}

.tabs .tabs-list button[aria-selected="true"] {
  border-bottom: 1px solid var(--background-color);
  background-color: var(--background-color);
  cursor: initial;
}

.tabs .tabs-list button[aria-selected="false"]:hover,
.tabs .tabs-list button[aria-selected="false"]:focus {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white);
}

.tabs .tabs-panel {
  margin-top: -1px;
  padding: 20px 16px;
  border: 1px solid var(--dark-color);
  min-height: 250px;
  overflow: auto;
}

.tabs .tabs-panel p {
  margin: 0;
  line-height: var(--body-line-height);
}

.tabs .tabs-panel p + p {
  margin-top: 12px;
}

.tabs .tabs-panel p:has(strong) {
  margin-top: 28px;
}

.tabs .tabs-panel p:first-child:has(strong) {
  margin-top: 0;
}

.tabs .tabs-panel strong {
  display: inline-block;
  font-weight: 700;
  line-height: var(--body-xs-line-height);
}

.tabs .tabs-panel ul,
.tabs .tabs-panel ol {
  margin: 12px 0;
  line-height: var(--body-line-height);
}

.tabs .tabs-panel[aria-hidden="true"] {
  display: none;
}