:host([hidden]) {
  display: none;
}
:host {
  display: flex;
}

:host {
  contain: content;
}

:host::after,
:host::before {
  align-self: center;
  background: var(--colorNeutralStroke2);
  box-sizing: border-box;
  content: '';
  display: flex;
  flex-grow: 1;
  height: var(--strokeWidthThin);
}

:host([inset]) {
  padding: 0 12px;
}

:host ::slotted(*) {
  color: var(--colorNeutralForeground2);
  font-family: var(--fontFamilyBase);
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightRegular);
  margin: 0;
  padding: 0 12px;
}

:host([align-content='start'])::before,
:host([align-content='end'])::after {
  flex-basis: 12px;
  flex-grow: 0;
  flex-shrink: 0;
}

:host([orientation='vertical']) {
  align-items: center;
  flex-direction: column;
  height: 100%;
  min-height: 84px;
}

:host([orientation='vertical']):empty {
  min-height: 20px;
}

:host([orientation='vertical'][inset])::before {
  margin-top: 12px;
}
:host([orientation='vertical'][inset])::after {
  margin-bottom: 12px;
}

:host([orientation='vertical']):empty::before,
:host([orientation='vertical']):empty::after {
  height: 10px;
  min-height: 10px;
  flex-grow: 0;
}

:host([orientation='vertical'])::before,
:host([orientation='vertical'])::after {
  width: var(--strokeWidthThin);
  min-height: 20px;
  height: 100%;
}

:host([orientation='vertical']) ::slotted(*) {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  line-height: 20px;
}

:host([orientation='vertical'][align-content='start'])::before {
  min-height: 8px;
}
:host([orientation='vertical'][align-content='end'])::after {
  min-height: 8px;
}

:host([appearance='strong'])::before,
:host([appearance='strong'])::after {
  background: var(--colorNeutralStroke1);
}
:host([appearance='strong']) ::slotted(*) {
  color: var(--colorNeutralForeground1);
}
:host([appearance='brand'])::before,
:host([appearance='brand'])::after {
  background: var(--colorBrandStroke1);
}
:host([appearance='brand']) ::slotted(*) {
  color: var(--colorBrandForeground1);
}
:host([appearance='subtle'])::before,
:host([appearance='subtle'])::after {
  background: var(--colorNeutralStroke3);
}
:host([appearance='subtle']) ::slotted(*) {
  color: var(--colorNeutralForeground3);
}

@media (forced-colors: active) {
  :host([appearance='strong'])::before,
  :host([appearance='strong'])::after,
  :host([appearance='brand'])::before,
  :host([appearance='brand'])::after,
  :host([appearance='subtle'])::before,
  :host([appearance='subtle'])::after,
  :host::after,
  :host::before {
    background: WindowText;
    color: WindowText;
  }
}
