html {
  font-size: 16px;
  font-family: 'BaloiseCreateText';
}

#root > div > div {
  border-right-width: 2px;
}

#root section[data-test-id='sb-preview-toolbar'] {
  box-shadow: rgb(232, 232, 232) 0px -2px 0px 0px inset;
}

/***************************************
 * SEARCH FIELD
 ***************************************/

div[role='toolbar'] button {
  font-family: 'BaloiseCreateHeadline';
}

button[aria-label='Show sidebar'],
button[aria-label='Grid visibility'],
button[aria-label='Preview background'],
button[aria-label='Preview background Light'],
button[aria-label='Preview background Dark'],
button[aria-label='Preview background Green'],
button[aria-label='Preview background Red'],
button[aria-label='Preview background Yellow'],
button[aria-label='Preview background Purple'],
button[aria-label='Outline tool'],
button[aria-label='Enter full screen'],
button[aria-label='Open in editor'] {
  background: #f6f6f6 !important;
  color: #000d6e;
  border: none;
  box-shadow: none;
  font-family: 'BaloiseCreateHeadline';
}

button[aria-label='Show sidebar']:hover,
button[aria-label='Grid visibility']:hover,
button[aria-label='Preview background']:hover,
button[aria-label='Preview background Light']:hover,
button[aria-label='Preview background Dark']:hover,
button[aria-label='Preview background Green']:hover,
button[aria-label='Preview background Red']:hover,
button[aria-label='Preview background Yellow']:hover,
button[aria-label='Preview background Purple']:hover,
button[aria-label='Outline tool']:hover,
button[aria-label='Enter full screen']:hover,
button[aria-label='Open in editor']:hover {
  background: #e5f1fe !important;
  color: #0014aa;
}

button[aria-label='Show sidebar']:active,
button[aria-label='Grid visibility']:active,
button[aria-label='Preview background']:active,
button[aria-label='Preview background Light']:active,
button[aria-label='Preview background Dark']:active,
button[aria-label='Preview background Green']:active,
button[aria-label='Preview background Red']:active,
button[aria-label='Preview background Yellow']:active,
button[aria-label='Preview background Purple']:active,
button[aria-label='Outline tool']:active,
button[aria-label='Enter full screen']:active,
button[aria-label='Open in editor']:active {
  background: #e5f1fe !important;
  color: #000739;
}

button[aria-label='Show sidebar'] + span {
  width: 2px !important;
  background: #f6f6f6 !important;
  border-radius: 1px !important;
}

button[title='View on GitHub'],
button[title='Chose a region for the Design System'],
button[title='Chose a language for the Design System'],
button[title='Select Design System version'],
button[title='Select a brand (theme)'],
button[title='Chose your integration technology'] {
  background: #f6f6f6 !important;
  color: #000d6e;
  border: none;
  box-shadow: none;
  font-family: 'BaloiseCreateHeadline';
}

button[title='View on GitHub']:hover,
button[title='Chose a region for the Design System']:hover,
button[title='Chose a language for the Design System']:hover,
button[title='Select Design System version']:hover,
button[title='Select a brand (theme)']:hover,
button[title='Chose your integration technology']:hover {
  background: #e5f1fe !important;
  color: #0014aa;
}

button[title='View on GitHub']:active,
button[title='Chose a region for the Design System']:active,
button[title='Chose a language for the Design System']:active,
button[title='Select Design System version']:active,
button[title='Select a brand (theme)']:active,
button[title='Chose your integration technology']:active {
  background: #e5f1fe !important;
  color: #000739;
}

div[data-testid='tooltip'],
div[data-testid='tooltip'] > div,
div[data-testid='tooltip'] > div > div {
  border-radius: 6px !important;
}

div[data-testid='tooltip'] a,
div[data-testid='tooltip'] button {
  border-radius: 4px !important;
}

div[data-testid='tooltip'] a:hover,
div[data-testid='tooltip'] button:hover {
  background: #e5e7f0;
  color: #0014aa;
}

div[data-testid='tooltip'] a:active,
div[data-testid='tooltip'] button:active {
  background: #e5e7f0;
  color: #000739;
}

.search-field {
  border-radius: 4px !important;
}

.search-field input {
  border-radius: 4px;
  border-width: 2px;
  font-size: 16px;
  min-height: 32px;
}

.search-field svg {
  top: 8px;
  height: 16px;
  width: 16px;
}

.search-field code {
  top: 8px;
}

.search-field code + svg {
  top: 8px;
}

.search-result-item--label {
  font-weight: 700;
}

.search-result-item--label mark {
  background: #ffecbc;
}

.search-result-item[aria-selected='true'],
.search-result-item:focus,
.search-result-item:active,
.search-result-item:hover {
  background-color: #e5e7f0 !important;
}

#storybook-explorer-searchfield mark {
  color: #000d6e;
}

::-moz-selection {
  /* Code for Firefox */
  color: #000d6e;
  background: #cccfe2;
}

::selection {
  color: #000d6e;
  background: #cccfe2;
}

/***************************************
 * SIDEBAR ROOTs
 ***************************************/

.sidebar-header img {
  max-width: 80%;
}

[data-parent-id]:has(+ :not([data-parent-id])) {
  margin-bottom: 16px !important;
}

.sidebar-subheading > button {
  color: #000d6e;
  font-family: 'BaloiseCreateHeadline';
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  width: 100%;
  justify-content: flex-start !important;
}

.sidebar-subheading > button[aria-expanded='true'] {
  background: #f6f6f6 !important;
}

.sidebar-subheading > button[aria-expanded='true']:hover {
  color: #0014aa !important;
  background: #e5f1fe !important;
}

.sidebar-subheading > button[aria-expanded='true']:active {
  color: #000739 !important;
  background: #e5f1fe !important;
}

.sidebar-subheading > button.sidebar-subheading-action {
  display: none !important;
}

/* .sidebar-header img {
  max-width: 80% !important;
}

.sidebar-subheading {
  margin-block: 4px !important;
}



.sidebar-subheading > button.sidebar-subheading-action {
  display: none !important;
} */

/***************************************
 * SIDEBAR ITEM
 ***************************************/

.sidebar-item,
.sidebar-item > a,
.sidebar-item > button {
  color: #000d6e;
  font-family: 'BaloiseCreateText';
  font-weight: 400;
  font-size: 16px !important;
}

.sidebar-item > a > div {
  margin-top: 4px !important;
}

.sidebar-item > div[data-testid='context-menu'] {
  top: 2px !important;
}

.sidebar-item > span {
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid;
  margin-right: 10px !important;
}

.sidebar-item > svg,
.sidebar-item > a > svg {
  height: 16px !important;
  width: 16px !important;
}

.sidebar-item[data-nodetype='component'] a svg {
  color: #00b28f;
}

.sidebar-item[data-selected='false'][data-nodetype='document'] a svg {
  color: #000d6e;
}

.sidebar-item[data-selected='false'][data-nodetype='story'] svg {
  color: #fa9319;
}

.sidebar-item[data-selected='true'] svg {
  color: #ffffff !important;
}

.sidebar-item[data-nodetype='story'] svg {
  display: none;
}

.sidebar-item[data-nodetype='story'] > button > div {
  display: none;
}

.sidebar-item[data-nodetype='document'] > a:hover {
  background-color: #e5e7f0 !important;
  color: #000d6e !important;
}

.sidebar-item[data-nodetype='document'] > a:active {
  color: #000739 !important;
  background-color: #e5e7f0 !important;
}

.sidebar-item[data-nodetype='document'][data-selected='true'] > a:hover {
  background-color: #000d6e !important;
  color: #ffffff !important;
}

.sidebar-item[data-nodetype='document'][data-selected='true'] > a:hover svg {
  color: #ffffff !important;
}

.sidebar-item[data-nodetype='document'][data-selected='true'] > a:active {
  color: #ffffff !important;
  background-color: #000d6e !important;
}

.sidebar-item[data-nodetype='document'][data-selected='true'] > a:active svg {
  color: #ffffff !important;
}

.sidebar-item[data-nodetype='document'] > button[data-testid='context-menu']:hover,
.sidebar-item[data-nodetype='document'] > button[data-testid='context-menu']:active,
.sidebar-item[data-nodetype='document'] > button[data-testid='context-menu'] {
  background-color: transparent !important;
  box-shadow: none !important;
}
/*
.sidebar-item[data-selected='true'] > button,
.sidebar-item[data-selected='true'] > div > button {
  background-color: #000d6e !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.sidebar-item[aria-selected='true'],
.sidebar-item:focus,
.sidebar-item:active,
.sidebar-item:hover {
  background-color: #e5e7f0 !important;
}

.sidebar-item[data-selected='true']:hover,
.sidebar-item[data-selected='true']:active,
.sidebar-item[data-selected='true']:focus,
.sidebar-item[data-selected='true'] {
  background-color: #000d6e !important;
  color: #ffffff !important;
} */

svg[type='story'] {
  display: none;
}

/***************************************
 * Cookie Alert
 ***************************************/

.my-cookie {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 26rem;
  min-height: 3.5rem;
  padding: 1.5rem;
  background-color: #f6f6f6;
  border-radius: 4px;
  box-shadow: 0 0 10px 0 rgba(0, 7, 57, 0.15);
  z-index: 9999;
}

.my-cookie strong {
  font-family: BaloiseCreateHeadline, Arial, sans-serif;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.25rem;
}

.my-cookie span {
  font-size: 1rem;
  display: block;
}

.my-cookie a {
  color: #000d6e;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 2px;
}

.my-cookie button {
  margin-top: 1.5rem;
  font-family: BaloiseCreateHeadline, Arial, sans-serif;
  background: transparent;
  border: 2px solid #000d6e;
  color: #000d6e;
  min-height: 3rem;
  padding: 0.625rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.my-cookie button:hover {
  background: #e5f1fe;
  border-color: #0015aa;
  color: #0015aa;
}

.my-cookie button:active {
  background: #e5f1fe;
  border-color: #000739;
  color: #000739;
}

/***************************************
 * CANVAS OVERFLOW VISIBLE
 ***************************************/

.canvas-overflow-visible,
.canvas-overflow-visible > div,
.canvas-overflow-visible .sbdocs-preview,
.canvas-overflow-visible .sbdocs-preview > div {
  overflow: visible !important;
  z-index: 10;
}
