/* Wrapper for component example previews */
.component-design-example {
  width: 100%;
  margin-bottom: 2rem;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 1rem;
  background-color: #f9f9f9;
  /* Tab navigation */
}
.component-design-example .example-tabs__list {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}
.component-design-example .example-tabs__list .example-tab {
  background-color: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #333;
}
.component-design-example .example-tabs__list .example-tab[aria-selected=true] {
  background-color: #007f56; /* NHS green */
  color: #fff;
  border-color: #007f56;
}
.component-design-example .example-tabs__list .example-tab:hover {
  background-color: #e6e6e6;
}
.component-design-example {
  /* Panels containing code */
}
.component-design-example .example-panel {
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  padding: 0.5rem;
  background-color: #f4f4f4;
  position: relative;
  margin-bottom: 1rem;
}
.component-design-example .example-panel.js-hidden {
  display: none;
}
.component-design-example .example-panel pre {
  margin: 0;
  overflow-x: auto;
  background: #f4f4f4;
  padding: 0.5rem;
  border-radius: 3px;
}
.component-design-example .example-panel code {
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.4;
}
.component-design-example .example-panel {
  /* Copy button */
}
.component-design-example .example-panel .copy-button {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: #fff;
  border: 1px solid #dcdcdc;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 3px;
  cursor: pointer;
}
.component-design-example .example-panel .copy-button:hover {
  background-color: #e6e6e6;
}