.Root {
  height: 30px;
  flex-basis: 30px;
  flex-shrink: 0;
  flex-grow: 0;

  width: 100%;
  -webkit-app-region: drag;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 2px solid var(--theme-color-bg-1);
  background-color: var(--theme-color-bg-2);
  box-sizing: border-box;
  user-select: none;

  &.is-variant-shallow {
    background-color: var(--theme-color-bg-1);
    border-bottom: 0;
  }
}

.Title {
  font-family: var(--font-family);
  color: var(--theme-color-fg-muted);
  font-size: 12px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.Version {
  font-family: var(--font-family);
  color: var(--theme-color-fg-default-shy);
  font-size: 11px;
  margin-right: 10px;
}

.OSWindows {
  display: flex;
  height: 100%;
}

.OSWindowsIcon {
  -webkit-app-region: no-drag;
  width: 46px;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;

  cursor: pointer;

  &:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
  }
}

.OSWindowsIcon__Minimize:before {
  position: absolute;
  width: 10px;
  height: 1px;
  border-bottom: 1px solid var(--theme-color-bg-1);
  border-color: var(--theme-color-fg-highlight);
  content: '';
  box-sizing: border-box;
}

.OSWindowsIcon__Maximize:before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1px solid var(--theme-color-fg-highlight);
  box-sizing: border-box;
}

.OSWindowsIcon__Close {
  &:before,
  &:after {
    position: absolute;
    content: '';
    height: 14px;
    width: 1px;
    background-color: var(--theme-color-fg-highlight);
    box-sizing: border-box;
  }

  &:before {
    transform: rotate(45deg);
  }

  &:after {
    transform: rotate(-45deg);
  }

  &:hover {
    background: var(--theme-color-danger);

    &:before,
    &:after {
      background-color: var(--theme-color-fg-highlight);
    }
  }
}
